[13:31:39]ConnectInit Can't connect to host [13:31:39]accept exits with 7 [13:31:39]New connection [13:31:39]New thread 3066879332 created [13:31:39]Thread 3067022692 joined [13:31:39]Waiting for new connection... [13:31:39] Sock 7.Parse request [13:31:39]Sock 7.Check first char [13:31:39]Sock 7.First char is OK [13:31:39]request: POST /json_proto HTTP/1.0 [13:31:39]Method: POST [13:31:39]URL: /json_proto [13:31:39]Method is POST - this is cgi request [13:31:39]url: /json_proto [13:31:39]query_string will be loaded in cgi processing [13:31:39]execute_cgi json_proto POST (null) [13:31:39]execute_cgi path=json_proto method=POST [13:31:39]POST find Content-Length [13:31:39]Host: 172.17.63.3:8080 [13:31:39]Content-Length: 676 [13:31:39]Content-Type: application/json [13:31:39] [13:31:39]POST finish read [13:31:39]Found Content-Length = 676 [13:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:39]execute_script... [13:31:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:39]POST & json_proto [13:31:39]process_json_proto [13:31:39]json parsed OK: [13:31:39]protocol is kg_v1.0 [13:31:39]action value=close_receipt [13:31:39]process_action close_receipt [13:31:39]cmd_close_receipt [13:31:39]MH_GetDate [13:31:39]Write to MH i2c: F0 00 00 48 63 9A [13:31:39]Write i2c OK [13:31:39]MH_I2C_Read... [13:31:39]Read from MH i2c: F0 [13:31:39]MH_I2C_Read... [13:31:39]Read from MH i2c: F0 09 00 [13:31:39]MH_I2C_Read... [13:31:39]Read from MH i2c: F0 09 00 48 63 00 42 4C 1A 67 50 D1 6C 64 A3 [13:31:39]GetLastDocTimeStamp 1729776608 [13:31:39]current date 1729776706 [13:31:39]FM_GetShiftState [13:31:39]SAM_PROTO_GetShiftState [13:31:39]wFMCommunicate request_size=4 [13:31:39]MH_SAM_APDU [13:31:39]CAPDU: 80 13 01 00 [13:31:39]Write to MH i2c: E2 08 00 49 63 80 13 01 00 00 00 00 00 29 [13:31:39]Write i2c OK [13:31:39]MH_I2C_Read... [13:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:39]Read from MH i2c: E2 [13:31:39]MH_I2C_Read... [13:31:39]Read from MH i2c: E2 0E 00 [13:31:39]MH_I2C_Read... [13:31:39]Read from MH i2c: E2 0E 00 49 63 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 76 [13:31:39]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [13:31:39]wFMCommunicate OK [13:31:39]SAM_PROTO_GetShiftState done [13:31:39]FM_GetShiftState done [13:31:39]opened in 1729729836 [13:31:39]opened+sec_in_day 1729816236 [13:31:39]quantity*price = 50041 [13:31:39]sum+1 = 50042 [13:31:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 162 24.10.2024 13:31 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155537 ФПД: 182341922015309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133146&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155537&fm=182341922015309&tin=02508201610067®Number=0000000000091693&sum=50000 [13:31:41]StoreToDocumentArchive [13:31:41]shift 534 fd 155537 [13:31:41]save to /storage/0534/doc_00155537 [13:31:41]save last doc name /storage/0534/doc_00155537 to /storage/kkm_last_doc_name [13:31:41]save OK [13:31:41]Clear old archive folders... [13:31:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:41]tlvbuf is 016B38D0 [13:31:41]SAM_PROTO_ClearQueue [13:31:41]wFMCommunicate request_size=4 [13:31:41]MH_SAM_APDU [13:31:41]CAPDU: 80 09 00 00 [13:31:41]Write to MH i2c: E2 08 00 56 63 80 09 00 00 00 00 00 00 2B [13:31:41]Write i2c OK [13:31:41]MH_I2C_Read... [13:31:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:41]Read from MH i2c: E2 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: E2 03 00 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: E2 03 00 56 63 00 90 00 2D [13:31:41]RAPDU: 90 00 [13:31:41]wFMCommunicate OK [13:31:41]SAM_PROTO_ClearQueue done [13:31:41]KKMCreateOFDPacket [13:31:41]OFDProtocolAddRootSTLVToBuf [13:31:41]FM_MakeSignedData [13:31:41]FM_MakeSignedData [13:31:41]SAM_PROTO_SignData [13:31:41]wFMCommunicate request_size=4 [13:31:41]MH_SAM_APDU [13:31:41]CAPDU: 80 0D 01 02 [13:31:41]Write to MH i2c: E2 08 00 57 63 80 0D 01 02 00 00 00 00 33 [13:31:41]Write i2c OK [13:31:41]MH_I2C_Read... [13:31:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:41]Read from MH i2c: E2 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: E2 03 00 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: E2 03 00 57 63 00 90 00 2E [13:31:41]RAPDU: 90 00 [13:31:41]wFMCommunicate OK [13:31:41]wFMCommunicate request_size=255 [13:31:41]MH_SAM_APDU [13:31: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 42 4C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 5F 02 00 35 04 06 00 A5 [13:31:41]Write to MH i2c: E2 02 01 58 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 42 4C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 5F 02 00 35 04 06 00 A5 00 00 27 [13:31:41]Write i2c OK [13:31:41]MH_I2C_Read... [13:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:41]Read from MH i2c: E2 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: E2 03 00 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: E2 03 00 58 63 00 90 00 2F [13:31:41]RAPDU: 90 00 [13:31:41]wFMCommunicate OK [13:31:41]wFMCommunicate request_size=10 [13:31:41]MH_SAM_APDU [13:31:41]CAPDU: 80 0D 02 02 05 D6 C9 7D 48 4D [13:31:41]Write to MH i2c: E2 0D 00 59 63 80 0D 02 02 05 00 D6 C9 7D 48 4D 00 00 F1 [13:31:41]Write i2c OK [13:31:41]MH_I2C_Read... [13:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:41]Read from MH i2c: E2 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: E2 03 00 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: E2 03 00 59 63 00 90 00 30 [13:31:41]RAPDU: 90 00 [13:31:41]wFMCommunicate OK [13:31:41]wFMCommunicate request_size=4 [13:31:41]MH_SAM_APDU [13:31:41]CAPDU: 80 0D 03 02 [13:31:41]Write to MH i2c: E2 08 00 5A 63 80 0D 03 02 00 00 00 00 38 [13:31:41]Write i2c OK [13:31:41]MH_I2C_Read... [13:31:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:41]Read from MH i2c: E2 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: E2 0B 00 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: E2 0B 00 5A 63 00 DC 07 F2 25 69 5B 3C C5 90 00 F8 [13:31:41]RAPDU: DC 07 F2 25 69 5B 3C C5 90 00 [13:31:41]wFMCommunicate OK [13:31:41]SAM_PROTO_SignData done [13:31:41]FM_MakeSignedData done [13:31:41]CreateOFDProtocolMessage [13:31:41]wFMCommunicate request_size=4 [13:31:41]MH_SAM_APDU [13:31:41]CAPDU: 80 11 00 00 [13:31:41]Write to MH i2c: E2 08 00 5B 63 80 11 00 00 00 00 00 00 38 [13:31:41]Write i2c OK [13:31:41]MH_I2C_Read... [13:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:41]Read from MH i2c: E2 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: E2 17 00 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: E2 17 00 5B 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8D [13:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:31:41]wFMCommunicate OK [13:31:41]CreateOFDProtocolMessage done [13:31:41]OFDSenderStorePacket 155537 [13:31:41]StoreOFDPacket docnum=155537 [13:31:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EC 7E 07 01 D1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 42 4C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 5F 02 00 35 04 06 00 A5 D6 C9 7D 48 4D DC 07 F2 25 69 5B 3C C5 [13:31:41]CheckFolder [13:31:41]dirname=/storage/ofd_packets [13:31:41]CheckFolder done [13:31:41]ProducePacketName [13:31:41]name=ofd_packets/00155537 [13:31:41]NVStorageSaveData ofd_packets/00155537 [13:31:41]File name is /storage/ofd_packets/00155537 [13:31:41]Write 301 bytes [13:31:41]NVStorageSaveData done [13:31:41]OFDSenderStorePacket done [13:31:41]KKMCreateOFDPacket done [13:31:41]NVStorageSaveData kkm_last_timestamp [13:31:41]File name is /storage/kkm_last_timestamp [13:31:41]Write 4 bytes [13:31:41]NVStorageSaveData done [13:31:41]ExternCall_PrintAddStr [13:31:41]wPrintStart [13:31:41]Write to MH i2c: 01 00 00 5C 63 BF [13:31:41]Write i2c OK [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: 01 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: 01 07 00 [13:31:41]MH_I2C_Read... [13:31:41]Read from MH i2c: 01 07 00 5C 63 00 00 00 00 00 FF 0F D4 [13:31:41]RasterBufferAndPrint [13:31:41]line Счет N : (1)98340 [13:31:41]line ИНН: 02508201610067 [13:31:41]line Контрольно-Кассовый Чек [13:31:41]line ПРОДАЖА [13:31:41]line ТРК (МРК, ГНК) : 31 [13:31:41]line Товар: 2710124130 [13:31:41]line Аи-92-К-5 [13:31:41]line 7.480 * 66.90 [13:31:41]line = 500.41 [13:31:41]line НДС 12% НСП 1% [13:31:41]line > о реализуемом товаре [13:31:41]line ОКРУГЛЕНИЕ: -0.41 [13:31:41]line ИТОГО: 500.00 [13:31:41]line Внесено: 500.00 [13:31:41]line СДАЧА: 0.00 [13:31:41]line НСП 1% : 4.43 [13:31:41]line НДС 12% : 53.14 [13:31:41]line Наличными: 500.00 [13:31:41]line Безнал.: 0.00 [13:31:41]line Место: АЗС № 143 "Партнер Нефть" [13:31:41]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:31:41]line СНО: Общий режим [13:31:41]line Чек 162 24.10.2024 13:31 [13:31:41]line Смена: 534 ФФД: 1.0 [13:31:41]line ЗНМ: 0300000096 [13:31:41]line РНМ: 0000000000091693 [13:31:41]line Версия ККМ: 001 [13:31:41]line ФМ: 0000000000871792 [13:31:41]line ФД: 155537 [13:31:41]line ФПД: 182341922015309 [13:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T133146&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155537&fm=182341922015309&tin=02508201610067®Number=0000000000091693&sum=50000 [13:31:41]OFD Sender: Processing packet 155537 [packets to send 31, broken 30] [13:31:41]ProducePacketName [13:31:41]name=ofd_packets/00155537 [13:31:41]OFD Sender: To server: pG, [13:31:41]CommunicateWithHost lk.salyk.kg:30040 [13:31:41]ConnectInit lk.salyk.kg [13:31:41]written 0, free lines is 4095 [13:31:42]Connected sock=10 [13: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 39 32 0F 01 00 00 EC 7E 07 01 D1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 42 4C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 5F 02 00 35 04 06 00 A5 D6 C9 7D 48 4D DC 07 F2 25 69 5B 3C C5 [13: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 39 32 4F 00 00 00 55 4A 47 00 28 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 5F 02 00 F4 03 04 00 BB F1 19 67 B6 04 01 00 00 D5 97 AB 17 6C 34 11 99 [13:31:42]CommunicateWithHost err = 0 [13:31:42]CheckOFDResponse [13:31:42]1017 (14) - 77093643461234 [13:31:42]1041 (16) - 0000000000871792 [13:31:42]1040 (4) - 155537 [13:31:42]1012 (4) - 24.10.2024 07:05 [13:31:42]1206 (1) - 0 [13:31:42]OFD Sender: Remove packet 155537 [13:31:42]ProducePacketName [13:31:42]name=ofd_packets/00155537 [13:31:42]NVStorageDeleteData [13:31:42]Write to MH i2c: 01 00 00 87 63 EA [13:31:42]Write i2c OK [13:31:42]MH_I2C_Read... [13:31:42]Read from MH i2c: 01 [13:31:42]MH_I2C_Read... [13:31:42]Read from MH i2c: 01 07 00 [13:31:42]MH_I2C_Read... [13:31:42]Read from MH i2c: 01 07 00 87 63 00 00 00 00 00 EA 0C E7 [13:31:42]RasterBufferAndPrint [13:31:42]line [13:31:42]line [13:31:42]line [13:31:42]line [13:31:42]line [13:31:42]written 0, free lines is 3313 [13:31:42]process_action close_receipt done [13:31:42]requested_data is exist [13:31:42]produce_requested_data [13:31:42]requested_item fm.sn is exist - process it [13:31:42]wFMCommunicate request_size=4 [13:31:42]MH_SAM_APDU [13:31:42]CAPDU: 80 11 00 00 [13:31:42]Write to MH i2c: E2 08 00 8E 63 80 11 00 00 00 00 00 00 6B [13:31:42]Write i2c OK [13:31:42]MH_I2C_Read... [13:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:42]Read from MH i2c: E2 [13:31:42]MH_I2C_Read... [13:31:42]Read from MH i2c: E2 17 00 [13:31:42]MH_I2C_Read... [13:31:42]Read from MH i2c: E2 17 00 8E 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C0 [13:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:31:42]wFMCommunicate OK [13:31:42]requested_item fd.num is exist - process it [13:31:42]SAM_PROTO_GetFieldsCounters [13:31:42]wFMCommunicate request_size=4 [13:31:42]MH_SAM_APDU [13:31:42]CAPDU: 80 13 00 00 [13:31:42]Write to MH i2c: E2 08 00 8F 63 80 13 00 00 00 00 00 00 6E [13:31:42]Write i2c OK [13:31:42]MH_I2C_Read... [13:31:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:42]Read from MH i2c: E2 [13:31:42]MH_I2C_Read... [13:31:42]Read from MH i2c: E2 62 00 [13:31:42]MH_I2C_Read... [13:31:42]Read from MH i2c: E2 62 00 8F 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 91 5F 02 00 0E 04 04 00 16 02 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 84 [13:31: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 91 5F 02 00 0E 04 04 00 16 02 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 [13:31:42]wFMCommunicate OK [13:31:42]SAM_PROTO_GetFieldsCounters done [13:31:42]requested_item shift.num is exist - process it [13:31:42]requested_item shift.opened is exist - process it [13:31:42]req_shift_opened [13:31:42]FM_GetShiftState [13:31:42]SAM_PROTO_GetShiftState [13:31:42]wFMCommunicate request_size=4 [13:31:42]MH_SAM_APDU [13:31:42]CAPDU: 80 13 01 00 [13:31:42]Write to MH i2c: E2 08 00 90 63 80 13 01 00 00 00 00 00 70 [13:31:42]Write i2c OK [13:31:42]MH_I2C_Read... [13:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:42]Read from MH i2c: E2 [13:31:42]MH_I2C_Read... [13:31:42]Read from MH i2c: E2 0E 00 [13:31:42]MH_I2C_Read... [13:31:42]Read from MH i2c: E2 0E 00 90 63 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 BD [13:31:42]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [13:31:42]wFMCommunicate OK [13:31:42]SAM_PROTO_GetShiftState done [13:31:42]FM_GetShiftState done [13:31:42]req_shift_opened done [13:31:42]requested_item shift.open_date is exist - process it [13:31:42]req_shift_open_date [13:31:42]req_shift_open_date done [13:31:42]produce_requested_data done [13:31:42]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155537,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [13:31:42]process_action_free close_receipt [13:31:42]json_value_free [13:31:42]json_value_free done [13:31:42]process_json_proto returns [13:31:42]Send response to host [13:31:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155537,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [13:31:42]free response buf [13:31:42]execute_script done [13:31:42]execute_script returns [13:31:42]free content buf [13:31:42]Sock 7.Close socket [13:31:42]Sock 7.Thread stoped [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:07]OFD Sender: No OFD packet to send [13:35:12]OFD Sender: No OFD packet to send [13:35:17]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:15]accept exits with 9 [13:41:15]New connection [13:41:15]New thread 3067022692 created [13:41:15]Thread 3066879332 joined [13:41:15]Waiting for new connection... [13:41:15] Sock 9.Parse request [13:41:15]Sock 9.Check first char [13:41:15]Sock 9.First char is OK [13:41:15]request: POST /json_proto HTTP/1.0 [13:41:15]Method: POST [13:41:15]URL: /json_proto [13:41:15]Method is POST - this is cgi request [13:41:15]url: /json_proto [13:41:15]query_string will be loaded in cgi processing [13:41:15]execute_cgi json_proto POST (null) [13:41:15]execute_cgi path=json_proto method=POST [13:41:15]POST find Content-Length [13:41:15]Host: 172.17.63.3:8080 [13:41:15]Content-Length: 678 [13:41:15]Content-Type: application/json [13:41:15] [13:41:15]POST finish read [13:41:15]Found Content-Length = 678 [13:41:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:15]execute_script... [13:41: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)98341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:15]POST & json_proto [13:41:15]process_json_proto [13:41:15]json parsed OK: [13:41:15]protocol is kg_v1.0 [13:41:15]action value=close_receipt [13:41:15]process_action close_receipt [13:41:15]cmd_close_receipt [13:41:15]MH_GetDate [13:41:15]Write to MH i2c: F0 00 00 91 63 E3 [13:41:15]Write i2c OK [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: F0 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: F0 09 00 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: F0 09 00 91 63 00 82 4E 1A 67 50 D1 6C 64 2E [13:41:15]GetLastDocTimeStamp 1729776706 [13:41:15]current date 1729777282 [13:41:15]FM_GetShiftState [13:41:15]SAM_PROTO_GetShiftState [13:41:15]wFMCommunicate request_size=4 [13:41:15]MH_SAM_APDU [13:41:15]CAPDU: 80 13 01 00 [13:41:15]Write to MH i2c: E2 08 00 92 63 80 13 01 00 00 00 00 00 72 [13:41:15]Write i2c OK [13:41:15]MH_I2C_Read... [13:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:15]Read from MH i2c: E2 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: E2 0E 00 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: E2 0E 00 92 63 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 BF [13:41:15]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [13:41:15]wFMCommunicate OK [13:41:15]SAM_PROTO_GetShiftState done [13:41:15]FM_GetShiftState done [13:41:15]opened in 1729729836 [13:41:15]opened+sec_in_day 1729816236 [13:41:15]quantity*price = 100050 [13:41:15]sum+1 = 100052 [13:41: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 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 163 24.10.2024 13:41 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155538 ФПД: 120122169176825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134122&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155538&fm=120122169176825&tin=02508201610067®Number=0000000000091693&sum=100000 [13:41:16]StoreToDocumentArchive [13:41:16]shift 534 fd 155538 [13:41:16]save to /storage/0534/doc_00155538 [13:41:16]save last doc name /storage/0534/doc_00155538 to /storage/kkm_last_doc_name [13:41:16]save OK [13:41:16]Clear old archive folders... [13:41:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:41:16]tlvbuf is 018509A0 [13:41:16]SAM_PROTO_ClearQueue [13:41:16]wFMCommunicate request_size=4 [13:41:16]MH_SAM_APDU [13:41:16]CAPDU: 80 09 00 00 [13:41:16]Write to MH i2c: E2 08 00 9F 63 80 09 00 00 00 00 00 00 74 [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:16]Read from MH i2c: E2 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 03 00 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 03 00 9F 63 00 90 00 76 [13:41:16]RAPDU: 90 00 [13:41:16]wFMCommunicate OK [13:41:16]SAM_PROTO_ClearQueue done [13:41:16]KKMCreateOFDPacket [13:41:16]OFDProtocolAddRootSTLVToBuf [13:41:16]FM_MakeSignedData [13:41:16]FM_MakeSignedData [13:41:16]SAM_PROTO_SignData [13:41:16]wFMCommunicate request_size=4 [13:41:16]MH_SAM_APDU [13:41:16]CAPDU: 80 0D 01 02 [13:41:16]Write to MH i2c: E2 08 00 A0 63 80 0D 01 02 00 00 00 00 7C [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:16]Read from MH i2c: E2 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 03 00 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 03 00 A0 63 00 90 00 77 [13:41:16]RAPDU: 90 00 [13:41:16]wFMCommunicate OK [13:41:16]wFMCommunicate request_size=255 [13:41:16]MH_SAM_APDU [13:41:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 82 4E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 5F 02 00 35 04 06 00 6D 40 1F 39 [13:41:16]Write to MH i2c: E2 02 01 A1 63 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 82 4E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 5F 02 00 35 04 06 00 6D 40 1F 39 00 00 0A [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:17]Read from MH i2c: E2 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 03 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 03 00 A1 63 00 90 00 78 [13:41:17]RAPDU: 90 00 [13:41:17]wFMCommunicate OK [13:41:17]wFMCommunicate request_size=7 [13:41:17]MH_SAM_APDU [13:41:17]CAPDU: 80 0D 02 02 02 32 F9 [13:41:17]Write to MH i2c: E2 0A 00 A2 63 80 0D 02 02 02 00 32 F9 00 00 AE [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:17]Read from MH i2c: E2 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 03 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 03 00 A2 63 00 90 00 79 [13:41:17]RAPDU: 90 00 [13:41:17]wFMCommunicate OK [13:41:17]wFMCommunicate request_size=4 [13:41:17]MH_SAM_APDU [13:41:17]CAPDU: 80 0D 03 02 [13:41:17]Write to MH i2c: E2 08 00 A3 63 80 0D 03 02 00 00 00 00 81 [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:17]Read from MH i2c: E2 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 0B 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 0B 00 A3 63 00 01 1F 38 A3 81 1D 0D 53 90 00 7B [13:41:17]RAPDU: 01 1F 38 A3 81 1D 0D 53 90 00 [13:41:17]wFMCommunicate OK [13:41:17]SAM_PROTO_SignData done [13:41:17]FM_MakeSignedData done [13:41:17]CreateOFDProtocolMessage [13:41:17]wFMCommunicate request_size=4 [13:41:17]MH_SAM_APDU [13:41:17]CAPDU: 80 11 00 00 [13:41:17]Write to MH i2c: E2 08 00 A4 63 80 11 00 00 00 00 00 00 81 [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:17]Read from MH i2c: E2 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 17 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: E2 17 00 A4 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D6 [13:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:41:17]wFMCommunicate OK [13:41:17]CreateOFDProtocolMessage done [13:41:17]OFDSenderStorePacket 155538 [13:41:17]StoreOFDPacket docnum=155538 [13:41:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 5E 66 04 01 D7 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 82 4E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 5F 02 00 35 04 06 00 6D 40 1F 39 32 F9 01 1F 38 A3 81 1D 0D 53 [13:41:17]CheckFolder [13:41:17]dirname=/storage/ofd_packets [13:41:17]CheckFolder done [13:41:17]ProducePacketName [13:41:17]name=ofd_packets/00155538 [13:41:17]NVStorageSaveData ofd_packets/00155538 [13:41:17]File name is /storage/ofd_packets/00155538 [13:41:17]Write 298 bytes [13:41:17]NVStorageSaveData done [13:41:17]OFDSenderStorePacket done [13:41:17]KKMCreateOFDPacket done [13:41:17]NVStorageSaveData kkm_last_timestamp [13:41:17]File name is /storage/kkm_last_timestamp [13:41:17]Write 4 bytes [13:41:17]NVStorageSaveData done [13:41:17]ExternCall_PrintAddStr [13:41:17]wPrintStart [13:41:17]Write to MH i2c: 01 00 00 A5 63 08 [13:41:17]Write i2c OK [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: 01 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: 01 07 00 [13:41:17]MH_I2C_Read... [13:41:17]Read from MH i2c: 01 07 00 A5 63 00 00 00 00 00 FF 0F 1D [13:41:17]RasterBufferAndPrint [13:41:17]line Счет N : (1)98341 [13:41:17]line ИНН: 02508201610067 [13:41:17]line Контрольно-Кассовый Чек [13:41:17]line ПРОДАЖА [13:41:17]line ТРК (МРК, ГНК) : 32 [13:41:17]line Товар: 2710194210 [13:41:17]line ДТ-К-5 [13:41:17]line 13.130 * 76.20 [13:41:17]line = 1000.51 [13:41:17]line НДС 12% НСП 1% [13:41:17]line > о реализуемом товаре [13:41:17]line ОКРУГЛЕНИЕ: -0.51 [13:41:17]line ИТОГО: 1000.00 [13:41:17]line Внесено: 1000.00 [13:41:17]line СДАЧА: 0.00 [13:41:17]line НСП 1% : 8.85 [13:41:17]line НДС 12% : 106.25 [13:41:17]line Наличными: 1000.00 [13:41:17]line Безнал.: 0.00 [13:41:17]line Место: АЗС № 143 "Партнер Нефть" [13:41:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:41:17]line СНО: Общий режим [13:41:17]line Чек 163 24.10.2024 13:41 [13:41:17]line Смена: 534 ФФД: 1.0 [13:41:17]line ЗНМ: 0300000096 [13:41:17]line РНМ: 0000000000091693 [13:41:17]line Версия ККМ: 001 [13:41:17]line ФМ: 0000000000871792 [13:41:17]line ФД: 155538 [13:41:17]line ФПД: 120122169176825 [13:41:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134122&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155538&fm=120122169176825&tin=02508201610067®Number=0000000000091693&sum=100000 [13:41:17]written 0, free lines is 4095 [13:41:17]OFD Sender: Processing packet 155538 [packets to send 31, broken 30] [13:41:17]ProducePacketName [13:41:17]name=ofd_packets/00155538 [13:41:17]OFD Sender: To server: pG, [13:41:17]CommunicateWithHost lk.salyk.kg:30040 [13:41:17]ConnectInit lk.salyk.kg [13:41:18]Write to MH i2c: 01 00 00 D0 63 33 [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: 01 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: 01 07 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: 01 07 00 D0 63 00 00 00 00 00 DD 0C 23 [13:41:18]RasterBufferAndPrint [13:41:18]line [13:41:18]line [13:41:18]line [13:41:18]line [13:41:18]line [13:41:18]written 0, free lines is 3297 [13:41:18]process_action close_receipt done [13:41:18]requested_data is exist [13:41:18]produce_requested_data [13:41:18]requested_item fm.sn is exist - process it [13:41:18]wFMCommunicate request_size=4 [13:41:18]MH_SAM_APDU [13:41:18]CAPDU: 80 11 00 00 [13:41:18]Write to MH i2c: E2 08 00 D7 63 80 11 00 00 00 00 00 00 B4 [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:18]Read from MH i2c: E2 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 17 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 17 00 D7 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 09 [13:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:41:18]wFMCommunicate OK [13:41:18]requested_item fd.num is exist - process it [13:41:18]SAM_PROTO_GetFieldsCounters [13:41:18]wFMCommunicate request_size=4 [13:41:18]MH_SAM_APDU [13:41:18]CAPDU: 80 13 00 00 [13:41:18]Write to MH i2c: E2 08 00 D8 63 80 13 00 00 00 00 00 00 B7 [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:18]Read from MH i2c: E2 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 62 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 62 00 D8 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 92 5F 02 00 0E 04 04 00 16 02 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 D1 [13:41: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 92 5F 02 00 0E 04 04 00 16 02 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 [13:41:18]wFMCommunicate OK [13:41:18]SAM_PROTO_GetFieldsCounters done [13:41:18]requested_item shift.num is exist - process it [13:41:18]requested_item shift.opened is exist - process it [13:41:18]req_shift_opened [13:41:18]FM_GetShiftState [13:41:18]SAM_PROTO_GetShiftState [13:41:18]wFMCommunicate request_size=4 [13:41:18]MH_SAM_APDU [13:41:18]CAPDU: 80 13 01 00 [13:41:18]Write to MH i2c: E2 08 00 D9 63 80 13 01 00 00 00 00 00 B9 [13:41:18]Write i2c OK [13:41:18]MH_I2C_Read... [13:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:18]Read from MH i2c: E2 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 0E 00 [13:41:18]MH_I2C_Read... [13:41:18]Read from MH i2c: E2 0E 00 D9 63 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 06 [13:41:18]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [13:41:18]wFMCommunicate OK [13:41:18]SAM_PROTO_GetShiftState done [13:41:18]FM_GetShiftState done [13:41:18]req_shift_opened done [13:41:18]requested_item shift.open_date is exist - process it [13:41:18]req_shift_open_date [13:41:18]req_shift_open_date done [13:41:18]produce_requested_data done [13:41:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155538,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [13:41:18]process_action_free close_receipt [13:41:18]json_value_free [13:41:18]json_value_free done [13:41:18]process_json_proto returns [13:41:18]Send response to host [13:41:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155538,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [13:41:18]free response buf [13:41:18]execute_script done [13:41:18]execute_script returns [13:41:18]free content buf [13:41:18]Sock 9.Close socket [13:41:18]Sock 9.Thread stoped [13:43:27]ConnectInit Can't connect to host [13:43:27]CommunicateWithHost connect error [13:43:27]CommunicateWithHost err = -1 [13:43:27]OFD Sender: Server communicate error [13:43:32]OFD Sender: Processing packet 155538 [packets to send 31, broken 30] [13:43:32]ProducePacketName [13:43:32]name=ofd_packets/00155538 [13:43:32]OFD Sender: To server: pG, [13:43:32]CommunicateWithHost lk.salyk.kg:30040 [13:43:32]ConnectInit lk.salyk.kg [13:43:32]Connected sock=9 [13:43: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 39 32 0C 01 00 00 5E 66 04 01 D7 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 82 4E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 5F 02 00 35 04 06 00 6D 40 1F 39 32 F9 01 1F 38 A3 81 1D 0D 53 [13:43: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 39 32 4F 00 00 00 4C EE 47 00 85 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 39 32 10 04 04 00 92 5F 02 00 F4 03 04 00 81 F4 19 67 B6 04 01 00 00 C9 F4 D5 6A A4 3B 3B 8B [13:43:32]CommunicateWithHost err = 0 [13:43:32]CheckOFDResponse [13:43:32]1017 (14) - 77093643461234 [13:43:32]1041 (16) - 0000000000871792 [13:43:32]1040 (4) - 155538 [13:43:32]1012 (4) - 24.10.2024 07:17 [13:43:32]1206 (1) - 0 [13:43:32]OFD Sender: Remove packet 155538 [13:43:32]ProducePacketName [13:43:32]name=ofd_packets/00155538 [13:43:32]NVStorageDeleteData [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:56]accept exits with 7 [13:44:56]New connection [13:44:56]New thread 3066879332 created [13:44:56]Thread 3067022692 joined [13:44:56]Waiting for new connection... [13:44:56] Sock 7.Parse request [13:44:56]Sock 7.Check first char [13:44:56]Sock 7.First char is OK [13:44:56]request: POST /json_proto HTTP/1.0 [13:44:56]Method: POST [13:44:56]URL: /json_proto [13:44:56]Method is POST - this is cgi request [13:44:56]url: /json_proto [13:44:56]query_string will be loaded in cgi processing [13:44:56]execute_cgi json_proto POST (null) [13:44:56]execute_cgi path=json_proto method=POST [13:44:56]POST find Content-Length [13:44:56]Host: 172.17.63.3:8080 [13:44:56]Content-Length: 676 [13:44:56]Content-Type: application/json [13:44:56] [13:44:56]POST finish read [13:44:56]Found Content-Length = 676 [13:44:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:56]execute_script... [13: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)98342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:56]POST & json_proto [13:44:56]process_json_proto [13:44:56]json parsed OK: [13:44:56]protocol is kg_v1.0 [13:44:56]action value=close_receipt [13:44:56]process_action close_receipt [13:44:56]cmd_close_receipt [13:44:56]MH_GetDate [13:44:56]Write to MH i2c: F0 00 00 DA 63 2C [13:44:56]Write i2c OK [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: F0 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: F0 09 00 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: F0 09 00 DA 63 00 5E 4F 1A 67 50 D1 6C 64 54 [13:44:56]GetLastDocTimeStamp 1729777282 [13:44:56]current date 1729777502 [13:44:56]FM_GetShiftState [13:44:56]SAM_PROTO_GetShiftState [13:44:56]wFMCommunicate request_size=4 [13:44:56]MH_SAM_APDU [13:44:56]CAPDU: 80 13 01 00 [13:44:56]Write to MH i2c: E2 08 00 DB 63 80 13 01 00 00 00 00 00 BB [13:44:56]Write i2c OK [13:44:56]MH_I2C_Read... [13:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:56]Read from MH i2c: E2 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: E2 0E 00 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: E2 0E 00 DB 63 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 08 [13:44:56]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [13:44:56]wFMCommunicate OK [13:44:56]SAM_PROTO_GetShiftState done [13:44:56]FM_GetShiftState done [13:44:56]opened in 1729729836 [13:44:56]opened+sec_in_day 1729816236 [13:44:56]quantity*price = 50041 [13:44:56]sum+1 = 50042 [13:44:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 164 24.10.2024 13:45 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155539 ФПД: 143047816478150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134502&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155539&fm=143047816478150&tin=02508201610067®Number=0000000000091693&sum=50000 [13:44:57]StoreToDocumentArchive [13:44:57]shift 534 fd 155539 [13:44:57]save to /storage/0534/doc_00155539 [13:44:57]save last doc name /storage/0534/doc_00155539 to /storage/kkm_last_doc_name [13:44:57]save OK [13:44:57]Clear old archive folders... [13:44:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:57]tlvbuf is 018705C0 [13:44:57]SAM_PROTO_ClearQueue [13:44:57]wFMCommunicate request_size=4 [13:44:57]MH_SAM_APDU [13:44:57]CAPDU: 80 09 00 00 [13:44:57]Write to MH i2c: E2 08 00 E8 63 80 09 00 00 00 00 00 00 BD [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 E8 63 00 90 00 BF [13:44:57]RAPDU: 90 00 [13:44:57]wFMCommunicate OK [13:44:57]SAM_PROTO_ClearQueue done [13:44:57]KKMCreateOFDPacket [13:44:57]OFDProtocolAddRootSTLVToBuf [13:44:57]FM_MakeSignedData [13:44:57]FM_MakeSignedData [13:44:57]SAM_PROTO_SignData [13:44:57]wFMCommunicate request_size=4 [13:44:57]MH_SAM_APDU [13:44:57]CAPDU: 80 0D 01 02 [13:44:57]Write to MH i2c: E2 08 00 E9 63 80 0D 01 02 00 00 00 00 C5 [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 E9 63 00 90 00 C0 [13:44:57]RAPDU: 90 00 [13:44:57]wFMCommunicate OK [13:44:57]wFMCommunicate request_size=255 [13:44:57]MH_SAM_APDU [13: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 5E 4F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 5F 02 00 35 04 06 00 82 [13:44:57]Write to MH i2c: E2 02 01 EA 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 5E 4F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 5F 02 00 35 04 06 00 82 00 00 B9 [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 EA 63 00 90 00 C1 [13:44:57]RAPDU: 90 00 [13:44:57]wFMCommunicate OK [13:44:57]wFMCommunicate request_size=10 [13:44:57]MH_SAM_APDU [13:44:57]CAPDU: 80 0D 02 02 05 19 EA 49 7D C6 [13:44:57]Write to MH i2c: E2 0D 00 EB 63 80 0D 02 02 05 00 19 EA 49 7D C6 00 00 61 [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 EB 63 00 90 00 C2 [13:44:57]RAPDU: 90 00 [13:44:57]wFMCommunicate OK [13:44:57]wFMCommunicate request_size=4 [13:44:57]MH_SAM_APDU [13:44:57]CAPDU: 80 0D 03 02 [13:44:57]Write to MH i2c: E2 08 00 EC 63 80 0D 03 02 00 00 00 00 CA [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 0B 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 0B 00 EC 63 00 55 7E 03 3F C7 39 4C 50 90 00 7C [13:44:57]RAPDU: 55 7E 03 3F C7 39 4C 50 90 00 [13:44:57]wFMCommunicate OK [13:44:57]SAM_PROTO_SignData done [13:44:57]FM_MakeSignedData done [13:44:57]CreateOFDProtocolMessage [13:44:57]wFMCommunicate request_size=4 [13:44:57]MH_SAM_APDU [13:44:57]CAPDU: 80 11 00 00 [13:44:57]Write to MH i2c: E2 08 00 ED 63 80 11 00 00 00 00 00 00 CA [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 17 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 17 00 ED 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1F [13:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:44:57]wFMCommunicate OK [13:44:57]CreateOFDProtocolMessage done [13:44:57]OFDSenderStorePacket 155539 [13:44:57]StoreOFDPacket docnum=155539 [13:44:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 43 D4 07 01 BD 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 5E 4F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 5F 02 00 35 04 06 00 82 19 EA 49 7D C6 55 7E 03 3F C7 39 4C 50 [13:44:57]CheckFolder [13:44:57]dirname=/storage/ofd_packets [13:44:57]CheckFolder done [13:44:57]ProducePacketName [13:44:57]name=ofd_packets/00155539 [13:44:57]NVStorageSaveData ofd_packets/00155539 [13:44:57]File name is /storage/ofd_packets/00155539 [13:44:57]Write 301 bytes [13:44:57]NVStorageSaveData done [13:44:57]OFDSenderStorePacket done [13:44:57]KKMCreateOFDPacket done [13:44:57]NVStorageSaveData kkm_last_timestamp [13:44:57]File name is /storage/kkm_last_timestamp [13:44:57]Write 4 bytes [13:44:57]NVStorageSaveData done [13:44:57]ExternCall_PrintAddStr [13:44:57]wPrintStart [13:44:57]Write to MH i2c: 01 00 00 EE 63 51 [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: 01 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: 01 07 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: 01 07 00 EE 63 00 00 00 00 00 FF 0F 66 [13:44:57]RasterBufferAndPrint [13:44:57]line Счет N : (1)98342 [13:44:57]line ИНН: 02508201610067 [13:44:57]line Контрольно-Кассовый Чек [13:44:57]line ПРОДАЖА [13:44:57]line ТРК (МРК, ГНК) : 31 [13:44:57]line Товар: 2710124130 [13:44:57]line Аи-92-К-5 [13:44:57]line 7.480 * 66.90 [13:44:57]line = 500.41 [13:44:57]line НДС 12% НСП 1% [13:44:57]line > о реализуемом товаре [13:44:57]line ОКРУГЛЕНИЕ: -0.41 [13:44:57]line ИТОГО: 500.00 [13:44:57]line Внесено: 500.00 [13:44:57]line СДАЧА: 0.00 [13:44:57]line НСП 1% : 4.43 [13:44:57]line НДС 12% : 53.14 [13:44:57]line Наличными: 500.00 [13:44:57]line Безнал.: 0.00 [13:44:57]line Место: АЗС № 143 "Партнер Нефть" [13:44:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:44:57]line СНО: Общий режим [13:44:57]line Чек 164 24.10.2024 13:45 [13:44:57]line Смена: 534 ФФД: 1.0 [13:44:57]line ЗНМ: 0300000096 [13:44:57]line РНМ: 0000000000091693 [13:44:57]line Версия ККМ: 001 [13:44:57]line ФМ: 0000000000871792 [13:44:57]line ФД: 155539 [13:44:57]line ФПД: 143047816478150 [13:44:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T134502&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155539&fm=143047816478150&tin=02508201610067®Number=0000000000091693&sum=50000 [13:44:57]written 0, free lines is 4095 [13:44:57]OFD Sender: Processing packet 155539 [packets to send 31, broken 30] [13:44:57]ProducePacketName [13:44:57]name=ofd_packets/00155539 [13:44:57]OFD Sender: To server: pG, [13:44:57]CommunicateWithHost lk.salyk.kg:30040 [13:44:57]ConnectInit lk.salyk.kg [13:44:57]Connected sock=10 [13:44:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 43 D4 07 01 BD 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 5E 4F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 5F 02 00 35 04 06 00 82 19 EA 49 7D C6 55 7E 03 3F C7 39 4C 50 [13: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 39 32 4F 00 00 00 EB 2A 47 00 F2 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 39 32 10 04 04 00 93 5F 02 00 F4 03 04 00 D7 F4 19 67 B6 04 01 00 00 E0 CF EC D6 39 EB 42 3E [13:44:58]CommunicateWithHost err = 0 [13:44:58]CheckOFDResponse [13:44:58]1017 (14) - 77093643461234 [13:44:58]1041 (16) - 0000000000871792 [13:44:58]1040 (4) - 155539 [13:44:58]1012 (4) - 24.10.2024 07:18 [13:44:58]1206 (1) - 0 [13:44:58]OFD Sender: Remove packet 155539 [13:44:58]ProducePacketName [13:44:58]name=ofd_packets/00155539 [13:44:58]NVStorageDeleteData [13:44:58]Write to MH i2c: 01 00 00 19 64 7D [13:44:58]Write i2c OK [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: 01 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: 01 07 00 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: 01 07 00 19 64 00 00 00 00 00 F7 0C 87 [13:44:58]RasterBufferAndPrint [13:44:58]line [13:44:58]line [13:44:58]line [13:44:58]line [13:44:58]line [13:44:58]written 0, free lines is 3326 [13:44:58]process_action close_receipt done [13:44:58]requested_data is exist [13:44:58]produce_requested_data [13:44:58]requested_item fm.sn is exist - process it [13:44:58]wFMCommunicate request_size=4 [13:44:58]MH_SAM_APDU [13:44:58]CAPDU: 80 11 00 00 [13:44:58]Write to MH i2c: E2 08 00 20 64 80 11 00 00 00 00 00 00 FE [13:44:58]Write i2c OK [13:44:58]MH_I2C_Read... [13:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:58]Read from MH i2c: E2 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: E2 17 00 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: E2 17 00 20 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 53 [13:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:44:58]wFMCommunicate OK [13:44:58]requested_item fd.num is exist - process it [13:44:58]SAM_PROTO_GetFieldsCounters [13:44:58]wFMCommunicate request_size=4 [13:44:58]MH_SAM_APDU [13:44:58]CAPDU: 80 13 00 00 [13:44:58]Write to MH i2c: E2 08 00 21 64 80 13 00 00 00 00 00 00 01 [13:44:58]Write i2c OK [13:44:58]MH_I2C_Read... [13:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:58]Read from MH i2c: E2 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: E2 62 00 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: E2 62 00 21 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 93 5F 02 00 0E 04 04 00 16 02 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 1F [13:44:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 93 5F 02 00 0E 04 04 00 16 02 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 [13:44:58]wFMCommunicate OK [13:44:58]SAM_PROTO_GetFieldsCounters done [13:44:58]requested_item shift.num is exist - process it [13:44:58]requested_item shift.opened is exist - process it [13:44:58]req_shift_opened [13:44:58]FM_GetShiftState [13:44:58]SAM_PROTO_GetShiftState [13:44:58]wFMCommunicate request_size=4 [13:44:58]MH_SAM_APDU [13:44:58]CAPDU: 80 13 01 00 [13:44:58]Write to MH i2c: E2 08 00 22 64 80 13 01 00 00 00 00 00 03 [13:44:58]Write i2c OK [13:44:58]MH_I2C_Read... [13:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:58]Read from MH i2c: E2 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: E2 0E 00 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: E2 0E 00 22 64 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 50 [13:44:58]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [13:44:58]wFMCommunicate OK [13:44:58]SAM_PROTO_GetShiftState done [13:44:58]FM_GetShiftState done [13:44:58]req_shift_opened done [13:44:58]requested_item shift.open_date is exist - process it [13:44:58]req_shift_open_date [13:44:58]req_shift_open_date done [13:44:58]produce_requested_data done [13:44:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155539,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [13:44:58]process_action_free close_receipt [13:44:58]json_value_free [13:44:58]json_value_free done [13:44:58]process_json_proto returns [13:44:58]Send response to host [13:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155539,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [13:44:58]free response buf [13:44:58]execute_script done [13:44:58]execute_script returns [13:44:58]free content buf [13:44:58]Sock 7.Close socket [13:44:58]Sock 7.Thread stoped [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:16]accept exits with 9 [13:51:16]New connection [13:51:16]New thread 3067022692 created [13:51:16]Thread 3066879332 joined [13:51:16]Waiting for new connection... [13:51:16] Sock 9.Parse request [13:51:16]Sock 9.Check first char [13:51:16]Sock 9.First char is OK [13:51:16]request: POST /json_proto HTTP/1.0 [13:51:16]Method: POST [13:51:16]URL: /json_proto [13:51:16]Method is POST - this is cgi request [13:51:16]url: /json_proto [13:51:16]query_string will be loaded in cgi processing [13:51:16]execute_cgi json_proto POST (null) [13:51:16]execute_cgi path=json_proto method=POST [13:51:16]POST find Content-Length [13:51:16]Host: 172.17.63.3:8080 [13:51:16]Content-Length: 768 [13:51:16]Content-Type: application/json [13:51:16] [13:51:16]POST finish read [13:51:16]Found Content-Length = 768 [13:51:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:16]execute_script... [13:51:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:16]POST & json_proto [13:51:16]process_json_proto [13:51:16]json parsed OK: [13:51:16]protocol is kg_v1.0 [13:51:16]action value=close_receipt [13:51:16]process_action close_receipt [13:51:16]cmd_close_receipt [13:51:16]MH_GetDate [13:51:16]Write to MH i2c: F0 00 00 23 64 76 [13:51:16]Write i2c OK [13:51:16]MH_I2C_Read... [13:51:16]Read from MH i2c: F0 [13:51:16]MH_I2C_Read... [13:51:16]Read from MH i2c: F0 09 00 [13:51:16]MH_I2C_Read... [13:51:16]Read from MH i2c: F0 09 00 23 64 00 DB 50 1A 67 50 D1 6C 64 1C [13:51:16]GetLastDocTimeStamp 1729777502 [13:51:16]current date 1729777883 [13:51:16]FM_GetShiftState [13:51:16]SAM_PROTO_GetShiftState [13:51:16]wFMCommunicate request_size=4 [13:51:16]MH_SAM_APDU [13:51:16]CAPDU: 80 13 01 00 [13:51:16]Write to MH i2c: E2 08 00 24 64 80 13 01 00 00 00 00 00 05 [13:51:16]Write i2c OK [13:51:16]MH_I2C_Read... [13:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:16]Read from MH i2c: E2 [13:51:16]MH_I2C_Read... [13:51:16]Read from MH i2c: E2 0E 00 [13:51:16]MH_I2C_Read... [13:51:16]Read from MH i2c: E2 0E 00 24 64 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 52 [13:51:16]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [13:51:16]wFMCommunicate OK [13:51:16]SAM_PROTO_GetShiftState done [13:51:16]FM_GetShiftState done [13:51:16]opened in 1729729836 [13:51:16]opened+sec_in_day 1729816236 [13:51:16]quantity*price = 100015 [13:51:16]sum+1 = 100017 [13:51:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 165 24.10.2024 13:51 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155540 ФПД: 247142019804187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135123&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155540&fm=247142019804187&tin=02508201610067®Number=0000000000091693&sum=100016 [13:51:17]StoreToDocumentArchive [13:51:17]shift 534 fd 155540 [13:51:17]save to /storage/0534/doc_00155540 [13:51:17]save last doc name /storage/0534/doc_00155540 to /storage/kkm_last_doc_name [13:51:17]save OK [13:51:17]Clear old archive folders... [13:51:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:17]tlvbuf is 017832F0 [13:51:17]SAM_PROTO_ClearQueue [13:51:17]wFMCommunicate request_size=4 [13:51:17]MH_SAM_APDU [13:51:17]CAPDU: 80 09 00 00 [13:51:17]Write to MH i2c: E2 08 00 31 64 80 09 00 00 00 00 00 00 07 [13:51:17]Write i2c OK [13:51:17]MH_I2C_Read... [13:51:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:18]Read from MH i2c: E2 [13:51:18]MH_I2C_Read... [13:51:18]Read from MH i2c: E2 03 00 [13:51:18]MH_I2C_Read... [13:51:18]Read from MH i2c: E2 03 00 31 64 00 90 00 09 [13:51:18]RAPDU: 90 00 [13:51:18]wFMCommunicate OK [13:51:18]SAM_PROTO_ClearQueue done [13:51:18]KKMCreateOFDPacket [13:51:18]OFDProtocolAddRootSTLVToBuf [13:51:18]FM_MakeSignedData [13:51:18]FM_MakeSignedData [13:51:18]SAM_PROTO_SignData [13:51:18]wFMCommunicate request_size=4 [13:51:18]MH_SAM_APDU [13:51:18]CAPDU: 80 0D 01 02 [13:51:18]Write to MH i2c: E2 08 00 32 64 80 0D 01 02 00 00 00 00 0F [13:51:18]Write i2c OK [13:51:18]MH_I2C_Read... [13:51:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:18]Read from MH i2c: E2 [13:51:18]MH_I2C_Read... [13:51:18]Read from MH i2c: E2 03 00 [13:51:18]MH_I2C_Read... [13:51:18]Read from MH i2c: E2 03 00 32 64 00 90 00 0A [13:51:18]RAPDU: 90 00 [13:51:18]wFMCommunicate OK [13:51:18]wFMCommunicate request_size=255 [13:51:18]MH_SAM_APDU [13:51:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 DB 50 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 5F 02 00 35 04 06 00 E0 [13:51:18]Write to MH i2c: E2 02 01 33 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 DB 50 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 5F 02 00 35 04 06 00 E0 00 00 FB [13:51:18]Write i2c OK [13:51:18]MH_I2C_Read... [13:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:18]Read from MH i2c: E2 [13:51:18]MH_I2C_Read... [13:51:18]Read from MH i2c: E2 03 00 [13:51:18]MH_I2C_Read... [13:51:18]Read from MH i2c: E2 03 00 33 64 00 90 00 0B [13:51:18]RAPDU: 90 00 [13:51:18]wFMCommunicate OK [13:51:18]wFMCommunicate request_size=10 [13:51:18]MH_SAM_APDU [13:51:18]CAPDU: 80 0D 02 02 05 C6 3C 4C AC 1B [13:51:18]Write to MH i2c: E2 0D 00 34 64 80 0D 02 02 05 00 C6 3C 4C AC 1B 00 00 31 [13:51:18]Write i2c OK [13:51:18]MH_I2C_Read... [13:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:18]Read from MH i2c: E2 [13:51:18]MH_I2C_Read... [13:51:18]Read from MH i2c: E2 03 00 [13:51:18]MH_I2C_Read... [13:51:18]Read from MH i2c: E2 03 00 34 64 00 90 00 0C [13:51:18]RAPDU: 90 00 [13:51:18]wFMCommunicate OK [13:51:18]wFMCommunicate request_size=4 [13:51:18]MH_SAM_APDU [13:51:18]CAPDU: 80 0D 03 02 [13:51:18]Write to MH i2c: E2 08 00 35 64 80 0D 03 02 00 00 00 00 14 [13:51:18]Write i2c OK [13:51:18]MH_I2C_Read... [13:51:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:18]Read from MH i2c: E2 [13:51:18]MH_I2C_Read... [13:51:18]Read from MH i2c: E2 0B 00 [13:51:18]MH_I2C_Read... [13:51:18]Read from MH i2c: E2 0B 00 35 64 00 46 07 51 6B CD BE 11 02 90 00 BC [13:51:18]RAPDU: 46 07 51 6B CD BE 11 02 90 00 [13:51:18]wFMCommunicate OK [13:51:18]SAM_PROTO_SignData done [13:51:18]FM_MakeSignedData done [13:51:18]CreateOFDProtocolMessage [13:51:18]wFMCommunicate request_size=4 [13:51:18]MH_SAM_APDU [13:51:18]CAPDU: 80 11 00 00 [13:51:18]Write to MH i2c: E2 08 00 36 64 80 11 00 00 00 00 00 00 14 [13:51:18]Write i2c OK [13:51:18]MH_I2C_Read... [13:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:18]Read from MH i2c: E2 [13:51:18]MH_I2C_Read... [13:51:18]Read from MH i2c: E2 17 00 [13:51:18]MH_I2C_Read... [13:51:18]Read from MH i2c: E2 17 00 36 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 69 [13:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:51:18]wFMCommunicate OK [13:51:18]CreateOFDProtocolMessage done [13:51:18]OFDSenderStorePacket 155540 [13:51:18]StoreOFDPacket docnum=155540 [13:51:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6A AD 07 01 D3 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 DB 50 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 5F 02 00 35 04 06 00 E0 C6 3C 4C AC 1B 46 07 51 6B CD BE 11 02 [13:51:18]CheckFolder [13:51:18]dirname=/storage/ofd_packets [13:51:18]CheckFolder done [13:51:18]ProducePacketName [13:51:18]name=ofd_packets/00155540 [13:51:18]NVStorageSaveData ofd_packets/00155540 [13:51:18]File name is /storage/ofd_packets/00155540 [13:51:18]Write 301 bytes [13:51:18]NVStorageSaveData done [13:51:18]OFDSenderStorePacket done [13:51:18]KKMCreateOFDPacket done [13:51:18]NVStorageSaveData kkm_last_timestamp [13:51:18]File name is /storage/kkm_last_timestamp [13:51:18]Write 4 bytes [13:51:18]NVStorageSaveData done [13:51:18]ExternCall_PrintAddStr [13:51:18]wPrintStart [13:51:18]Write to MH i2c: 01 00 00 37 64 9B [13:51:18]Write i2c OK [13:51:18]MH_I2C_Read... [13:51:18]Read from MH i2c: 01 [13:51:18]MH_I2C_Read... [13:51:18]Read from MH i2c: 01 07 00 [13:51:18]MH_I2C_Read... [13:51:18]Read from MH i2c: 01 07 00 37 64 00 00 00 00 00 FF 0F B0 [13:51:18]RasterBufferAndPrint [13:51:18]line Счет N : (1)98343 [13:51:18]line ИНН: 02508201610067 [13:51:18]line Контрольно-Кассовый Чек [13:51:18]line ПРОДАЖА [13:51:18]line ТРК (МРК, ГНК) : 31 [13:51:18]line Товар: 2710124130 [13:51:18]line Аи-92-К-5 [13:51:18]line 14.950 * 66.90 [13:51:18]line = 1000.16 [13:51:18]line НДС 12% НСП 1% [13:51:18]line > о реализуемом товаре [13:51:18]line ИТОГО: 1000.16 [13:51:18]line НСП 1% : 8.85 [13:51:18]line НДС 12% : 106.21 [13:51:18]line Наличными: 0.00 [13:51:18]line Безнал.: 1000.16 [13:51:18]line Место: АЗС № 143 "Партнер Нефть" [13:51:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:51:18]line СНО: Общий режим [13:51:18]line Чек 165 24.10.2024 13:51 [13:51:18]line Смена: 534 ФФД: 1.0 [13:51:18]line ЗНМ: 0300000096 [13:51:18]line РНМ: 0000000000091693 [13:51:18]line Версия ККМ: 001 [13:51:18]line Платежная система: Mbank [13:51:18]line ФМ: 0000000000871792 [13:51:18]line ФД: 155540 [13:51:18]line ФПД: 247142019804187 [13:51:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135123&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155540&fm=247142019804187&tin=02508201610067®Number=0000000000091693&sum=100016 [13:51:18]written 0, free lines is 4095 [13:51:18]OFD Sender: Processing packet 155540 [packets to send 31, broken 30] [13:51:18]ProducePacketName [13:51:18]name=ofd_packets/00155540 [13:51:18]OFD Sender: To server: pG, [13:51:18]CommunicateWithHost lk.salyk.kg:30040 [13:51:18]ConnectInit lk.salyk.kg [13:51:18]Connected sock=10 [13:51:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6A AD 07 01 D3 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 DB 50 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 5F 02 00 35 04 06 00 E0 C6 3C 4C AC 1B 46 07 51 6B CD BE 11 02 [13:51: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 39 32 4F 00 00 00 64 41 47 00 D0 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 39 32 10 04 04 00 94 5F 02 00 F4 03 04 00 54 F6 19 67 B6 04 01 00 00 3A FE 47 DA 1E EE 9A 95 [13:51:19]CommunicateWithHost err = 0 [13:51:19]CheckOFDResponse [13:51:19]1017 (14) - 77093643461234 [13:51:19]1041 (16) - 0000000000871792 [13:51:19]1040 (4) - 155540 [13:51:19]1012 (4) - 24.10.2024 07:25 [13:51:19]1206 (1) - 0 [13:51:19]OFD Sender: Remove packet 155540 [13:51:19]ProducePacketName [13:51:19]name=ofd_packets/00155540 [13:51:19]NVStorageDeleteData [13:51:19]Write to MH i2c: 01 00 00 60 64 C4 [13:51:19]Write i2c OK [13:51:19]MH_I2C_Read... [13:51:19]Read from MH i2c: 01 [13:51:19]MH_I2C_Read... [13:51:19]Read from MH i2c: 01 07 00 [13:51:19]MH_I2C_Read... [13:51:19]Read from MH i2c: 01 07 00 60 64 00 00 00 00 00 0C 0D E4 [13:51:19]RasterBufferAndPrint [13:51:19]line [13:51:19]line [13:51:19]line [13:51:19]line [13:51:19]line [13:51:19]written 0, free lines is 3347 [13:51:19]process_action close_receipt done [13:51:19]requested_data is exist [13:51:19]produce_requested_data [13:51:19]requested_item fm.sn is exist - process it [13:51:19]wFMCommunicate request_size=4 [13:51:19]MH_SAM_APDU [13:51:19]CAPDU: 80 11 00 00 [13:51:19]Write to MH i2c: E2 08 00 67 64 80 11 00 00 00 00 00 00 45 [13:51:19]Write i2c OK [13:51:19]MH_I2C_Read... [13:51:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:19]Read from MH i2c: E2 [13:51:19]MH_I2C_Read... [13:51:19]Read from MH i2c: E2 17 00 [13:51:19]MH_I2C_Read... [13:51:19]Read from MH i2c: E2 17 00 67 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9A [13:51:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:51:19]wFMCommunicate OK [13:51:19]requested_item fd.num is exist - process it [13:51:19]SAM_PROTO_GetFieldsCounters [13:51:19]wFMCommunicate request_size=4 [13:51:19]MH_SAM_APDU [13:51:19]CAPDU: 80 13 00 00 [13:51:19]Write to MH i2c: E2 08 00 68 64 80 13 00 00 00 00 00 00 48 [13:51:19]Write i2c OK [13:51:19]MH_I2C_Read... [13:51:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:19]Read from MH i2c: E2 [13:51:19]MH_I2C_Read... [13:51:19]Read from MH i2c: E2 62 00 [13:51:19]MH_I2C_Read... [13:51:19]Read from MH i2c: E2 62 00 68 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 94 5F 02 00 0E 04 04 00 16 02 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 6A [13:51: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 94 5F 02 00 0E 04 04 00 16 02 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 [13:51:19]wFMCommunicate OK [13:51:19]SAM_PROTO_GetFieldsCounters done [13:51:19]requested_item shift.num is exist - process it [13:51:19]requested_item shift.opened is exist - process it [13:51:19]req_shift_opened [13:51:19]FM_GetShiftState [13:51:19]SAM_PROTO_GetShiftState [13:51:19]wFMCommunicate request_size=4 [13:51:19]MH_SAM_APDU [13:51:19]CAPDU: 80 13 01 00 [13:51:19]Write to MH i2c: E2 08 00 69 64 80 13 01 00 00 00 00 00 4A [13:51:19]Write i2c OK [13:51:19]MH_I2C_Read... [13:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:19]Read from MH i2c: E2 [13:51:19]MH_I2C_Read... [13:51:19]Read from MH i2c: E2 0E 00 [13:51:19]MH_I2C_Read... [13:51:19]Read from MH i2c: E2 0E 00 69 64 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 97 [13:51:19]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [13:51:19]wFMCommunicate OK [13:51:19]SAM_PROTO_GetShiftState done [13:51:19]FM_GetShiftState done [13:51:19]req_shift_opened done [13:51:19]requested_item shift.open_date is exist - process it [13:51:19]req_shift_open_date [13:51:19]req_shift_open_date done [13:51:19]produce_requested_data done [13:51:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155540,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [13:51:19]process_action_free close_receipt [13:51:19]json_value_free [13:51:19]json_value_free done [13:51:19]process_json_proto returns [13:51:19]Send response to host [13:51:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155540,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [13:51:19]free response buf [13:51:19]execute_script done [13:51:19]execute_script returns [13:51:19]free content buf [13:51:19]Sock 9.Close socket [13:51:19]Sock 9.Thread stoped [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:05]accept exits with 7 [13:59:05]New connection [13:59:05]New thread 3066879332 created [13:59:05]Thread 3067022692 joined [13:59:05]Waiting for new connection... [13:59:05] Sock 7.Parse request [13:59:05]Sock 7.Check first char [13:59:05]Sock 7.First char is OK [13:59:05]request: POST /json_proto HTTP/1.0 [13:59:05]Method: POST [13:59:05]URL: /json_proto [13:59:05]Method is POST - this is cgi request [13:59:05]url: /json_proto [13:59:05]query_string will be loaded in cgi processing [13:59:05]execute_cgi json_proto POST (null) [13:59:05]execute_cgi path=json_proto method=POST [13:59:05]POST find Content-Length [13:59:05]Host: 172.17.63.3:8080 [13:59:05]Content-Length: 765 [13:59:05]Content-Type: application/json [13:59:05] [13:59:05]POST finish read [13:59:05]Found Content-Length = 765 [13:59:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:05]execute_script... [13:59:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:05]POST & json_proto [13:59:05]process_json_proto [13:59:05]json parsed OK: [13:59:05]protocol is kg_v1.0 [13:59:05]action value=close_receipt [13:59:05]process_action close_receipt [13:59:05]cmd_close_receipt [13:59:05]MH_GetDate [13:59:05]Write to MH i2c: F0 00 00 6A 64 BD [13:59:05]Write i2c OK [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: F0 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: F0 09 00 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: F0 09 00 6A 64 00 AF 52 1A 67 50 D1 6C 64 39 [13:59:05]GetLastDocTimeStamp 1729777883 [13:59:05]current date 1729778351 [13:59:05]FM_GetShiftState [13:59:05]SAM_PROTO_GetShiftState [13:59:05]wFMCommunicate request_size=4 [13:59:05]MH_SAM_APDU [13:59:05]CAPDU: 80 13 01 00 [13:59:05]Write to MH i2c: E2 08 00 6B 64 80 13 01 00 00 00 00 00 4C [13:59:05]Write i2c OK [13:59:05]MH_I2C_Read... [13:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:05]Read from MH i2c: E2 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: E2 0E 00 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: E2 0E 00 6B 64 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 99 [13:59:05]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [13:59:05]wFMCommunicate OK [13:59:05]SAM_PROTO_GetShiftState done [13:59:05]FM_GetShiftState done [13:59:05]opened in 1729729836 [13:59:05]opened+sec_in_day 1729816236 [13:59:05]quantity*price = 50041 [13:59:05]sum+1 = 50042 [13:59:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 166 24.10.2024 13:59 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155541 ФПД: 146496048983864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135911&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155541&fm=146496048983864&tin=02508201610067®Number=0000000000091693&sum=50041 [13:59:06]StoreToDocumentArchive [13:59:06]shift 534 fd 155541 [13:59:06]save to /storage/0534/doc_00155541 [13:59:06]save last doc name /storage/0534/doc_00155541 to /storage/kkm_last_doc_name [13:59:06]save OK [13:59:06]Clear old archive folders... [13:59:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:06]tlvbuf is 01805CB0 [13:59:06]SAM_PROTO_ClearQueue [13:59:06]wFMCommunicate request_size=4 [13:59:06]MH_SAM_APDU [13:59:06]CAPDU: 80 09 00 00 [13:59:06]Write to MH i2c: E2 08 00 78 64 80 09 00 00 00 00 00 00 4E [13:59:06]Write i2c OK [13:59:06]MH_I2C_Read... [13:59:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:06]Read from MH i2c: E2 [13:59:06]MH_I2C_Read... [13:59:06]Read from MH i2c: E2 03 00 [13:59:06]MH_I2C_Read... [13:59:06]Read from MH i2c: E2 03 00 78 64 00 90 00 50 [13:59:06]RAPDU: 90 00 [13:59:06]wFMCommunicate OK [13:59:06]SAM_PROTO_ClearQueue done [13:59:06]KKMCreateOFDPacket [13:59:06]OFDProtocolAddRootSTLVToBuf [13:59:06]FM_MakeSignedData [13:59:06]FM_MakeSignedData [13:59:06]SAM_PROTO_SignData [13:59:06]wFMCommunicate request_size=4 [13:59:06]MH_SAM_APDU [13:59:06]CAPDU: 80 0D 01 02 [13:59:06]Write to MH i2c: E2 08 00 79 64 80 0D 01 02 00 00 00 00 56 [13:59:06]Write i2c OK [13:59:06]MH_I2C_Read... [13:59:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:06]Read from MH i2c: E2 [13:59:06]MH_I2C_Read... [13:59:06]Read from MH i2c: E2 03 00 [13:59:06]MH_I2C_Read... [13:59:06]Read from MH i2c: E2 03 00 79 64 00 90 00 51 [13:59:06]RAPDU: 90 00 [13:59:06]wFMCommunicate OK [13:59:06]wFMCommunicate request_size=255 [13:59:06]MH_SAM_APDU [13:59:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 AF 52 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 5F 02 00 35 04 06 00 85 [13:59:06]Write to MH i2c: E2 02 01 7A 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 AF 52 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 5F 02 00 35 04 06 00 85 00 00 F7 [13:59:06]Write i2c OK [13:59:06]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 03 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 03 00 7A 64 00 90 00 52 [13:59:07]RAPDU: 90 00 [13:59:07]wFMCommunicate OK [13:59:07]wFMCommunicate request_size=10 [13:59:07]MH_SAM_APDU [13:59:07]CAPDU: 80 0D 02 02 05 3C C4 F5 EF 38 [13:59:07]Write to MH i2c: E2 0D 00 7B 64 80 0D 02 02 05 00 3C C4 F5 EF 38 00 00 7F [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 03 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 03 00 7B 64 00 90 00 53 [13:59:07]RAPDU: 90 00 [13:59:07]wFMCommunicate OK [13:59:07]wFMCommunicate request_size=4 [13:59:07]MH_SAM_APDU [13:59:07]CAPDU: 80 0D 03 02 [13:59:07]Write to MH i2c: E2 08 00 7C 64 80 0D 03 02 00 00 00 00 5B [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 0B 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 0B 00 7C 64 00 8B B4 39 4E 4E 20 8E A4 90 00 C2 [13:59:07]RAPDU: 8B B4 39 4E 4E 20 8E A4 90 00 [13:59:07]wFMCommunicate OK [13:59:07]SAM_PROTO_SignData done [13:59:07]FM_MakeSignedData done [13:59:07]CreateOFDProtocolMessage [13:59:07]wFMCommunicate request_size=4 [13:59:07]MH_SAM_APDU [13:59:07]CAPDU: 80 11 00 00 [13:59:07]Write to MH i2c: E2 08 00 7D 64 80 11 00 00 00 00 00 00 5B [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 17 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 17 00 7D 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B0 [13:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:59:07]wFMCommunicate OK [13:59:07]CreateOFDProtocolMessage done [13:59:07]OFDSenderStorePacket 155541 [13:59:07]StoreOFDPacket docnum=155541 [13:59:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DE 49 07 01 1F A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 AF 52 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 5F 02 00 35 04 06 00 85 3C C4 F5 EF 38 8B B4 39 4E 4E 20 8E A4 [13:59:07]CheckFolder [13:59:07]dirname=/storage/ofd_packets [13:59:07]CheckFolder done [13:59:07]ProducePacketName [13:59:07]name=ofd_packets/00155541 [13:59:07]NVStorageSaveData ofd_packets/00155541 [13:59:07]File name is /storage/ofd_packets/00155541 [13:59:07]Write 301 bytes [13:59:07]NVStorageSaveData done [13:59:07]OFDSenderStorePacket done [13:59:07]KKMCreateOFDPacket done [13:59:07]NVStorageSaveData kkm_last_timestamp [13:59:07]File name is /storage/kkm_last_timestamp [13:59:07]Write 4 bytes [13:59:07]NVStorageSaveData done [13:59:07]ExternCall_PrintAddStr [13:59:07]wPrintStart [13:59:07]Write to MH i2c: 01 00 00 7E 64 E2 [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: 01 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: 01 07 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: 01 07 00 7E 64 00 00 00 00 00 FF 0F F7 [13:59:07]RasterBufferAndPrint [13:59:07]line Счет N : (1)98344 [13:59:07]line ИНН: 02508201610067 [13:59:07]line Контрольно-Кассовый Чек [13:59:07]line ПРОДАЖА [13:59:07]line ТРК (МРК, ГНК) : 21 [13:59:07]line Товар: 2710124130 [13:59:07]line Аи-92-К-5 [13:59:07]line 7.480 * 66.90 [13:59:07]line = 500.41 [13:59:07]line НДС 12% НСП 1% [13:59:07]line > о реализуемом товаре [13:59:07]line ИТОГО: 500.41 [13:59:07]line НСП 1% : 4.43 [13:59:07]line НДС 12% : 53.14 [13:59:07]line Наличными: 0.00 [13:59:07]line Безнал.: 500.41 [13:59:07]line Место: АЗС № 143 "Партнер Нефть" [13:59:07]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:59:07]line СНО: Общий режим [13:59:07]line Чек 166 24.10.2024 13:59 [13:59:07]line Смена: 534 ФФД: 1.0 [13:59:07]line ЗНМ: 0300000096 [13:59:07]line РНМ: 0000000000091693 [13:59:07]line Версия ККМ: 001 [13:59:07]line Платежная система: Mbank [13:59:07]line ФМ: 0000000000871792 [13:59:07]line ФД: 155541 [13:59:07]line ФПД: 146496048983864 [13:59:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135911&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155541&fm=146496048983864&tin=02508201610067®Number=0000000000091693&sum=50041 [13:59:07]OFD Sender: Processing packet 155541 [packets to send 31, broken 30] [13:59:07]ProducePacketName [13:59:07]name=ofd_packets/00155541 [13:59:07]OFD Sender: To server: pG, [13:59:07]CommunicateWithHost lk.salyk.kg:30040 [13:59:07]ConnectInit lk.salyk.kg [13:59:07]written 0, free lines is 4095 [13:59:07]Connected sock=10 [13:59:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DE 49 07 01 1F A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 AF 52 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 5F 02 00 35 04 06 00 85 3C C4 F5 EF 38 8B B4 39 4E 4E 20 8E A4 [13:59:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E0 C5 47 00 3A 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 39 32 10 04 04 00 95 5F 02 00 F4 03 04 00 28 F8 19 67 B6 04 01 00 00 6A F2 7B 1D 23 12 A3 79 [13:59:07]CommunicateWithHost err = 0 [13:59:07]CheckOFDResponse [13:59:07]1017 (14) - 77093643461234 [13:59:07]1041 (16) - 0000000000871792 [13:59:07]1040 (4) - 155541 [13:59:07]1012 (4) - 24.10.2024 07:32 [13:59:07]1206 (1) - 0 [13:59:07]OFD Sender: Remove packet 155541 [13:59:07]ProducePacketName [13:59:07]name=ofd_packets/00155541 [13:59:07]NVStorageDeleteData [13:59:07]Write to MH i2c: 01 00 00 A7 64 0B [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: 01 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: 01 07 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: 01 07 00 A7 64 00 00 00 00 00 11 0D 30 [13:59:07]RasterBufferAndPrint [13:59:07]line [13:59:07]line [13:59:07]line [13:59:07]line [13:59:07]line [13:59:07]written 0, free lines is 3351 [13:59:08]process_action close_receipt done [13:59:08]requested_data is exist [13:59:08]produce_requested_data [13:59:08]requested_item fm.sn is exist - process it [13:59:08]wFMCommunicate request_size=4 [13:59:08]MH_SAM_APDU [13:59:08]CAPDU: 80 11 00 00 [13:59:08]Write to MH i2c: E2 08 00 AE 64 80 11 00 00 00 00 00 00 8C [13:59:08]Write i2c OK [13:59:08]MH_I2C_Read... [13:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:08]Read from MH i2c: E2 [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: E2 17 00 [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: E2 17 00 AE 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E1 [13:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:59:08]wFMCommunicate OK [13:59:08]requested_item fd.num is exist - process it [13:59:08]SAM_PROTO_GetFieldsCounters [13:59:08]wFMCommunicate request_size=4 [13:59:08]MH_SAM_APDU [13:59:08]CAPDU: 80 13 00 00 [13:59:08]Write to MH i2c: E2 08 00 AF 64 80 13 00 00 00 00 00 00 8F [13:59:08]Write i2c OK [13:59:08]MH_I2C_Read... [13:59:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:08]Read from MH i2c: E2 [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: E2 62 00 [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: E2 62 00 AF 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 95 5F 02 00 0E 04 04 00 16 02 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 B5 [13:59:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 95 5F 02 00 0E 04 04 00 16 02 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 [13:59:08]wFMCommunicate OK [13:59:08]SAM_PROTO_GetFieldsCounters done [13:59:08]requested_item shift.num is exist - process it [13:59:08]requested_item shift.opened is exist - process it [13:59:08]req_shift_opened [13:59:08]FM_GetShiftState [13:59:08]SAM_PROTO_GetShiftState [13:59:08]wFMCommunicate request_size=4 [13:59:08]MH_SAM_APDU [13:59:08]CAPDU: 80 13 01 00 [13:59:08]Write to MH i2c: E2 08 00 B0 64 80 13 01 00 00 00 00 00 91 [13:59:08]Write i2c OK [13:59:08]MH_I2C_Read... [13:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:08]Read from MH i2c: E2 [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: E2 0E 00 [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: E2 0E 00 B0 64 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 DE [13:59:08]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [13:59:08]wFMCommunicate OK [13:59:08]SAM_PROTO_GetShiftState done [13:59:08]FM_GetShiftState done [13:59:08]req_shift_opened done [13:59:08]requested_item shift.open_date is exist - process it [13:59:08]req_shift_open_date [13:59:08]req_shift_open_date done [13:59:08]produce_requested_data done [13:59:08]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155541,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [13:59:08]process_action_free close_receipt [13:59:08]json_value_free [13:59:08]json_value_free done [13:59:08]process_json_proto returns [13:59:08]Send response to host [13:59:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155541,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [13:59:08]free response buf [13:59:08]execute_script done [13:59:08]execute_script returns [13:59:08]free content buf [13:59:08]Sock 7.Close socket [13:59:08]Sock 7.Thread stoped [13:59:08]int [13:59:08]Write to MH i2c: 01 00 00 B1 64 15 [13:59:08]*** FLAG_PRN_PAP2 set [13:59:08]Write i2c OK [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: 01 [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: 01 07 00 [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: 01 07 00 B1 64 00 02 00 00 00 FF 0F 2C [13:59:08]state=0 [13:59:08]Cover opened [13:59:08]OFD Sender: No OFD packet to send [13:59:13]Write to MH i2c: 01 00 00 B2 64 16 [13:59:13]Write i2c OK [13:59:13]MH_I2C_Read... [13:59:13]Read from MH i2c: 01 [13:59:13]MH_I2C_Read... [13:59:13]Read from MH i2c: 01 07 00 [13:59:13]MH_I2C_Read... [13:59:13]Read from MH i2c: 01 07 00 B2 64 00 02 00 00 00 FF 0F 2D [13:59:13]state=3 [13:59:13]Cover opened [13:59:13]OFD Sender: No OFD packet to send [13:59:18]Write to MH i2c: 01 00 00 B3 64 17 [13:59:18]Write i2c OK [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: 01 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: 01 07 00 [13:59:18]MH_I2C_Read... [13:59:18]Read from MH i2c: 01 07 00 B3 64 00 02 00 00 00 FF 0F 2E [13:59:18]state=3 [13:59:18]Cover opened [13:59:18]OFD Sender: No OFD packet to send [13:59:23]Write to MH i2c: 01 00 00 B4 64 18 [13:59:23]Write i2c OK [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: 01 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: 01 07 00 [13:59:23]MH_I2C_Read... [13:59:23]Read from MH i2c: 01 07 00 B4 64 00 02 00 00 00 FF 0F 2F [13:59:23]state=3 [13:59:23]Cover opened [13:59:23]OFD Sender: No OFD packet to send [13:59:28]Write to MH i2c: 01 00 00 B5 64 19 [13:59:28]Write i2c OK [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: 01 [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: 01 07 00 [13:59:28]MH_I2C_Read... [13:59:28]Read from MH i2c: 01 07 00 B5 64 00 02 00 00 00 FF 0F 30 [13:59:28]state=3 [13:59:28]Cover opened [13:59:28]OFD Sender: No OFD packet to send [13:59:33]Write to MH i2c: 01 00 00 B6 64 1A [13:59:33]Write i2c OK [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: 01 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: 01 07 00 [13:59:33]MH_I2C_Read... [13:59:33]Read from MH i2c: 01 07 00 B6 64 00 02 00 00 00 FF 0F 31 [13:59:33]state=3 [13:59:33]Cover opened [13:59:33]OFD Sender: No OFD packet to send [13:59:38]Write to MH i2c: 01 00 00 B7 64 1B [13:59:38]Write i2c OK [13:59:38]MH_I2C_Read... [13:59:38]Read from MH i2c: 01 [13:59:38]MH_I2C_Read... [13:59:38]Read from MH i2c: 01 07 00 [13:59:38]MH_I2C_Read... [13:59:38]Read from MH i2c: 01 07 00 B7 64 00 02 00 00 00 FF 0F 32 [13:59:38]state=3 [13:59:38]Cover opened [13:59:38]OFD Sender: No OFD packet to send [13:59:43]Write to MH i2c: 01 00 00 B8 64 1C [13:59:43]Write i2c OK [13:59:43]MH_I2C_Read... [13:59:43]Read from MH i2c: 01 [13:59:43]MH_I2C_Read... [13:59:43]Read from MH i2c: 01 07 00 [13:59:43]MH_I2C_Read... [13:59:43]Read from MH i2c: 01 07 00 B8 64 00 02 00 00 00 FF 0F 33 [13:59:43]state=3 [13:59:43]Cover opened [13:59:43]OFD Sender: No OFD packet to send [13:59:43]accept exits with 9 [13:59:43]New connection [13:59:43]New thread 3067022692 created [13:59:43]Thread 3066879332 joined [13:59:43]Waiting for new connection... [13:59:43] Sock 9.Parse request [13:59:43]Sock 9.Check first char [13:59:43]Sock 9.First char is OK [13:59:43]request: POST /json_proto HTTP/1.0 [13:59:43]Method: POST [13:59:43]URL: /json_proto [13:59:43]Method is POST - this is cgi request [13:59:43]url: /json_proto [13:59:43]query_string will be loaded in cgi processing [13:59:43]execute_cgi json_proto POST (null) [13:59:43]execute_cgi path=json_proto method=POST [13:59:43]POST find Content-Length [13:59:43]Host: 172.17.63.3:8080 [13:59:43]Content-Length: 796 [13:59:43]Content-Type: application/json [13:59:43] [13:59:43]POST finish read [13:59:43]Found Content-Length = 796 [13:59:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295940", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:43]execute_script... [13:59:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295940", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:43]POST & json_proto [13:59:43]process_json_proto [13:59:43]json parsed OK: [13:59:43]protocol is kg_v1.0 [13:59:43]action value=close_receipt [13:59:43]process_action close_receipt [13:59:43]cmd_close_receipt [13:59:43]MH_GetDate [13:59:43]Write to MH i2c: F0 00 00 B9 64 0C [13:59:43]Write i2c OK [13:59:43]MH_I2C_Read... [13:59:43]Read from MH i2c: F0 [13:59:43]MH_I2C_Read... [13:59:43]Read from MH i2c: F0 09 00 [13:59:43]MH_I2C_Read... [13:59:43]Read from MH i2c: F0 09 00 B9 64 00 D6 52 1A 67 50 D1 6C 64 AF [13:59:43]GetLastDocTimeStamp 1729778351 [13:59:43]current date 1729778390 [13:59:43]FM_GetShiftState [13:59:43]SAM_PROTO_GetShiftState [13:59:43]wFMCommunicate request_size=4 [13:59:43]MH_SAM_APDU [13:59:43]CAPDU: 80 13 01 00 [13:59:43]Write to MH i2c: E2 08 00 BA 64 80 13 01 00 00 00 00 00 9B [13:59:43]Write i2c OK [13:59:43]MH_I2C_Read... [13:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:43]Read from MH i2c: E2 [13:59:43]MH_I2C_Read... [13:59:43]Read from MH i2c: E2 0E 00 [13:59:43]MH_I2C_Read... [13:59:43]Read from MH i2c: E2 0E 00 BA 64 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 E8 [13:59:43]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [13:59:43]wFMCommunicate OK [13:59:43]SAM_PROTO_GetShiftState done [13:59:43]FM_GetShiftState done [13:59:43]opened in 1729729836 [13:59:43]opened+sec_in_day 1729816236 [13:59:43]quantity*price = 0 [13:59:43]sum+1 = 1 [13:59:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 167 24.10.2024 13:59 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4295940 ФМ: 0000000000871792 ФД: 155542 ФПД: 122475097690256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135950&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155542&fm=122475097690256&tin=02508201610067®Number=0000000000091693&sum=0 [13:59:44]StoreToDocumentArchive [13:59:44]shift 534 fd 155542 [13:59:44]save to /storage/0534/doc_00155542 [13:59:44]save last doc name /storage/0534/doc_00155542 to /storage/kkm_last_doc_name [13:59:44]save OK [13:59:44]Clear old archive folders... [13:59:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:59:44]tlvbuf is 01707B70 [13:59:44]SAM_PROTO_ClearQueue [13:59:44]wFMCommunicate request_size=4 [13:59:44]MH_SAM_APDU [13:59:44]CAPDU: 80 09 00 00 [13:59:44]Write to MH i2c: E2 08 00 C7 64 80 09 00 00 00 00 00 00 9D [13:59:44]Write i2c OK [13:59:44]MH_I2C_Read... [13:59:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:44]Read from MH i2c: E2 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 03 00 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 03 00 C7 64 00 90 00 9F [13:59:44]RAPDU: 90 00 [13:59:44]wFMCommunicate OK [13:59:44]SAM_PROTO_ClearQueue done [13:59:44]KKMCreateOFDPacket [13:59:44]OFDProtocolAddRootSTLVToBuf [13:59:44]FM_MakeSignedData [13:59:44]FM_MakeSignedData [13:59:44]SAM_PROTO_SignData [13:59:44]wFMCommunicate request_size=4 [13:59:44]MH_SAM_APDU [13:59:44]CAPDU: 80 0D 01 02 [13:59:44]Write to MH i2c: E2 08 00 C8 64 80 0D 01 02 00 00 00 00 A5 [13:59:44]Write i2c OK [13:59:44]MH_I2C_Read... [13:59:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:44]Read from MH i2c: E2 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 03 00 [13:59:44]MH_I2C_Read... [13:59:44]Read from MH i2c: E2 03 00 C8 64 00 90 00 A0 [13:59:44]RAPDU: 90 00 [13:59:44]wFMCommunicate OK [13:59:44]wFMCommunicate request_size=255 [13:59:44]MH_SAM_APDU [13:59:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D6 52 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 5F 02 00 35 04 06 00 6F 63 F4 B1 [13:59:44]Write to MH i2c: E2 02 01 C9 64 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D6 52 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 5F 02 00 35 04 06 00 6F 63 F4 B1 00 00 14 [13:59:44]Write i2c OK [13:59:44]MH_I2C_Read... [13:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:45]Read from MH i2c: E2 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: E2 03 00 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: E2 03 00 C9 64 00 90 00 A1 [13:59:45]RAPDU: 90 00 [13:59:45]wFMCommunicate OK [13:59:45]wFMCommunicate request_size=7 [13:59:45]MH_SAM_APDU [13:59:45]CAPDU: 80 0D 02 02 02 10 90 [13:59:45]Write to MH i2c: E2 0A 00 CA 64 80 0D 02 02 02 00 10 90 00 00 4C [13:59:45]Write i2c OK [13:59:45]MH_I2C_Read... [13:59:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:45]Read from MH i2c: E2 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: E2 03 00 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: E2 03 00 CA 64 00 90 00 A2 [13:59:45]RAPDU: 90 00 [13:59:45]wFMCommunicate OK [13:59:45]wFMCommunicate request_size=4 [13:59:45]MH_SAM_APDU [13:59:45]CAPDU: 80 0D 03 02 [13:59:45]Write to MH i2c: E2 08 00 CB 64 80 0D 03 02 00 00 00 00 AA [13:59:45]Write i2c OK [13:59:45]MH_I2C_Read... [13:59:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:45]Read from MH i2c: E2 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: E2 0B 00 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: E2 0B 00 CB 64 00 02 7D 34 44 3C DE 58 59 90 00 6D [13:59:45]RAPDU: 02 7D 34 44 3C DE 58 59 90 00 [13:59:45]wFMCommunicate OK [13:59:45]SAM_PROTO_SignData done [13:59:45]FM_MakeSignedData done [13:59:45]CreateOFDProtocolMessage [13:59:45]wFMCommunicate request_size=4 [13:59:45]MH_SAM_APDU [13:59:45]CAPDU: 80 11 00 00 [13:59:45]Write to MH i2c: E2 08 00 CC 64 80 11 00 00 00 00 00 00 AA [13:59:45]Write i2c OK [13:59:45]MH_I2C_Read... [13:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:45]Read from MH i2c: E2 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: E2 17 00 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: E2 17 00 CC 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FF [13:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:59:45]wFMCommunicate OK [13:59:45]CreateOFDProtocolMessage done [13:59:45]OFDSenderStorePacket 155542 [13:59:45]StoreOFDPacket docnum=155542 [13:59:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 0D 90 04 01 3F 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A7 00 00 00 F4 03 04 00 D6 52 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 5F 02 00 35 04 06 00 6F 63 F4 B1 10 90 02 7D 34 44 3C DE 58 59 [13:59:45]CheckFolder [13:59:45]dirname=/storage/ofd_packets [13:59:45]CheckFolder done [13:59:45]ProducePacketName [13:59:45]name=ofd_packets/00155542 [13:59:45]NVStorageSaveData ofd_packets/00155542 [13:59:45]File name is /storage/ofd_packets/00155542 [13:59:45]Write 298 bytes [13:59:45]NVStorageSaveData done [13:59:45]OFDSenderStorePacket done [13:59:45]KKMCreateOFDPacket done [13:59:45]NVStorageSaveData kkm_last_timestamp [13:59:45]File name is /storage/kkm_last_timestamp [13:59:45]Write 4 bytes [13:59:45]NVStorageSaveData done [13:59:45]ExternCall_PrintAddStr [13:59:45]wPrintStart [13:59:45]Write to MH i2c: 01 00 00 CD 64 31 [13:59:45]Write i2c OK [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: 01 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: 01 07 00 [13:59:45]MH_I2C_Read... [13:59:45]Read from MH i2c: 01 07 00 CD 64 00 02 00 00 00 FF 0F 48 [13:59:45]RasterBufferAndPrint [13:59:45]line Счет N : (1)98345 [13:59:45]line ИНН: 02508201610067 [13:59:45]line Контрольно-Кассовый Чек [13:59:45]line ПРОДАЖА [13:59:45]line ТРК (МРК, ГНК) : 32 [13:59:45]line Товар: 2710194210 [13:59:45]line ДТ-К-5 [13:59:45]line 10.000 * 0.00 [13:59:45]line = 0.00 [13:59:45]line НДС 12% НСП 1% [13:59:45]line > о реализуемом товаре [13:59:45]line ИТОГО: 0.00 [13:59:45]line НСП 1% : 0.00 [13:59:45]line НДС 12% : 0.00 [13:59:45]line Наличными: 0.00 [13:59:45]line Безнал.: 0.00 [13:59:45]line Место: АЗС № 143 "Партнер Нефть" [13:59:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:59:45]line СНО: Общий режим [13:59:45]line Чек 167 24.10.2024 13:59 [13:59:45]line Смена: 534 ФФД: 1.0 [13:59:45]line ЗНМ: 0300000096 [13:59:45]line РНМ: 0000000000091693 [13:59:45]line Версия ККМ: 001 [13:59:45]line Талоны: Топливные Талоны [13:59:45]line 4295940 [13:59:45]line ФМ: 0000000000871792 [13:59:45]line ФД: 155542 [13:59:45]line ФПД: 122475097690256 [13:59:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T135950&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155542&fm=122475097690256&tin=02508201610067®Number=0000000000091693&sum=0 [13:59:45]OFD Sender: Processing packet 155542 [packets to send 31, broken 30] [13:59:45]ProducePacketName [13:59:45]name=ofd_packets/00155542 [13:59:45]OFD Sender: To server: pG, [13:59:45]CommunicateWithHost lk.salyk.kg:30040 [13:59:45]ConnectInit lk.salyk.kg [13:59:45]written 0, free lines is 4095 [13:59:45]Error from MH - 05 [13:59:45]process_action_free close_receipt [13:59:45]json_value_free [13:59:45]json_value_free done [13:59:45]process_json_proto returns [13:59:45]Send response to host [13:59:45]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [13:59:45]free response buf [13:59:45]execute_script done [13:59:45]execute_script returns [13:59:45]free content buf [13:59:45]Sock 9.Close socket [13:59:45]Sock 9.Thread stoped [13:59:45]Connected sock=10 [13:59: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 39 32 0C 01 00 00 0D 90 04 01 3F 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A7 00 00 00 F4 03 04 00 D6 52 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 5F 02 00 35 04 06 00 6F 63 F4 B1 10 90 02 7D 34 44 3C DE 58 59 [13:59: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 39 32 4F 00 00 00 E1 79 47 00 2D 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 39 32 10 04 04 00 96 5F 02 00 F4 03 04 00 4E F8 19 67 B6 04 01 00 00 2E E2 03 7E B2 F1 4C 0F [13:59:46]CommunicateWithHost err = 0 [13:59:46]CheckOFDResponse [13:59:46]1017 (14) - 77093643461234 [13:59:46]1041 (16) - 0000000000871792 [13:59:46]1040 (4) - 155542 [13:59:46]1012 (4) - 24.10.2024 07:33 [13:59:46]1206 (1) - 0 [13:59:46]OFD Sender: Remove packet 155542 [13:59:46]ProducePacketName [13:59:46]name=ofd_packets/00155542 [13:59:46]NVStorageDeleteData [13:59:46]OFD Sender: No OFD packet to send [13:59:48]Write to MH i2c: 01 00 00 D0 64 34 [13:59:48]Write i2c OK [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: 01 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: 01 07 00 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: 01 07 00 D0 64 00 02 00 00 00 FF 0F 4B [13:59:48]state=3 [13:59:48]Cover opened [13:59:51]OFD Sender: No OFD packet to send [13:59:53]Write to MH i2c: 01 00 00 D1 64 35 [13:59:53]Write i2c OK [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: 01 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: 01 07 00 [13:59:53]MH_I2C_Read... [13:59:53]Read from MH i2c: 01 07 00 D1 64 00 02 00 00 00 FF 0F 4C [13:59:53]state=3 [13:59:53]Cover opened [13:59:56]int [13:59:56]Write to MH i2c: 01 00 00 D2 64 36 [13:59:56]*** FLAG_PRN_PAP1 set [13:59:56]Write i2c OK [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: 01 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: 01 07 00 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: 01 07 00 D2 64 00 03 00 00 00 FF 0F 4E [13:59:56]state=3 [13:59:56]No paper [13:59:56]Cover opened [13:59:56]OFD Sender: No OFD packet to send [14:00:01]Write to MH i2c: 01 00 00 D3 64 37 [14:00:01]Write i2c OK [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: 01 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: 01 07 00 [14:00:01]MH_I2C_Read... [14:00:01]Read from MH i2c: 01 07 00 D3 64 00 03 00 00 00 FF 0F 4F [14:00:01]state=3 [14:00:01]No paper [14:00:01]Cover opened [14:00:01]OFD Sender: No OFD packet to send [14:00:06]Write to MH i2c: 01 00 00 D4 64 38 [14:00:06]Write i2c OK [14:00:06]MH_I2C_Read... [14:00:06]Read from MH i2c: 01 [14:00:06]MH_I2C_Read... [14:00:06]Read from MH i2c: 01 07 00 [14:00:06]MH_I2C_Read... [14:00:06]Read from MH i2c: 01 07 00 D4 64 00 03 00 00 00 FF 0F 50 [14:00:06]state=3 [14:00:06]No paper [14:00:06]Cover opened [14:00:06]OFD Sender: No OFD packet to send [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 92 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 37 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: *** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]A0 [00:00:11]MH_I2C_Read... [00:00:11]*** Waiting for read because exit forced [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 5400000000572592 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 44925358+1684853072=1729778430 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x220ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33540624 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 92 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 38 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 FF 52 1A 67 50 D1 6C 64 C2 [14:00:31]Current date/time: 24.10.2024 14:00 [14:00:31]FM_Init [14:00:31]wFMConnect [14:00:31]MH_SAM_On [14:00:31]Write to MH i2c: E0 00 00 08 00 E7 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_init finished! [14:00:31]*** atr: [14:00:31]*** 0F 3B D5 18 FF 81 91 FE [14:00:31]*** 1F C3 80 73 C8 21 10 0A [14:00:31]*** 00 00 00 00 00 00 00 00 [14:00:31]*** 00 00 00 00 00 00 00 00 [14:00:31]*** 00 00 00 00 00 00 00 00 [14:00:31]*** 00 00 00 00 00 00 00 00 [14:00:31]*** 00 00 00 00 00 00 00 00 [14:00:31]*** 00 00 00 00 00 00 00 00 [14:00:31]Read from MH i2c: E0 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E0 10 00 [14:00:31]MH_I2C_Read... [14:00:31]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:00:31]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [14:00:31]wFMCommunicate request_size=10 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [14:00:31]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [14:00:31]RAPDU: 90 00 [14:00:31]wFMCommunicate OK [14:00:31]wFMCommunicate request_size=4 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 11 00 00 [14:00:31]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 17 00 [14:00:31]MH_I2C_Read... [14:00:31]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 39 32 90 00 D9 [14:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:00:31]wFMCommunicate OK [14:00:31]Detected FM SN is 0000000000871792 [14:00:31]Stored FM SN is 0000000000871792 [14:00:31]wFMCommunicate request_size=9 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 16 00 00 04 59 28 00 00 [14:00:31]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 59 28 00 00 00 00 13 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [14:00:31]RAPDU: 90 00 [14:00:31]wFMCommunicate OK [14:00:31]FM PIN OK [14:00:31]wFMCommunicate request_size=8 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 14 04 00 03 02 00 01 [14:00:31]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [14:00:31]RAPDU: 90 00 [14:00:31]wFMCommunicate OK [14:00:31]wFMCommunicate request_size=13 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [14:00:31]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:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [14:00:31]RAPDU: 90 00 [14:00:31]wFMCommunicate OK [14:00:31]wFMCommunicate request_size=4 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 11 00 00 [14:00:31]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 17 00 [14:00:31]MH_I2C_Read... [14:00:31]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 39 32 90 00 DD [14:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:00:31]wFMCommunicate OK [14:00:31]DocumentArchiveInit [14:00:31]Start Httpd... [14:00:31]Httpd thread 3067067748 created [14:00:31]Write to MH i2c: 01 00 00 0F 00 0F [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [14:00:31]MH Int Process started [14:00:31]Allocated Socket 7 [14:00:31]Bind OK [14:00:31]Listen OK [14:00:31]httpd running on port 8080 [14:00:31]Waiting for new connection... [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:37]accept exits with 8 [14:00:37]New connection [14:00:37]New thread 3066781028 created [14:00:37]Waiting for new connection... [14:00:37] Sock 8.Parse request [14:00:37]Sock 8.Check first char [14:00:37]Sock 8.First char is OK [14:00:37]request: POST /json_proto HTTP/1.0 [14:00:37]Method: POST [14:00:37]URL: /json_proto [14:00:37]Method is POST - this is cgi request [14:00:37]url: /json_proto [14:00:37]query_string will be loaded in cgi processing [14:00:37]execute_cgi json_proto POST (null) [14:00:37]execute_cgi path=json_proto method=POST [14:00:37]POST find Content-Length [14:00:37]Host: 172.17.63.3:8080 [14:00:37]Content-Length: 215 [14:00:37]Content-Type: application/json [14:00:37] [14:00:37]POST finish read [14:00:37]Found Content-Length = 215 [14:00: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" ] } } [14:00:37]execute_script... [14:00: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" ] } } [14:00:37]POST & json_proto [14:00:37]process_json_proto [14:00:37]json parsed OK: [14:00:37]protocol is kg_v1.0 [14:00:37]action value=get_value [14:00:37]process_action get_value [14:00:37]cmd_get_value [14:00:37]process_action get_value done [14:00:37]requested_data is exist [14:00:37]produce_requested_data [14:00:37]requested_item kkm.sn is exist - process it [14:00:37]requested_item kkm.ver is exist - process it [14:00:37]requested_item fm.sn is exist - process it [14:00:37]wFMCommunicate request_size=4 [14:00:37]MH_SAM_APDU [14:00:37]CAPDU: 80 11 00 00 [14:00:37]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:00:37]Write i2c OK [14:00:37]MH_I2C_Read... [14:00:37]Read from MH i2c: E2 [14:00:37]MH_I2C_Read... [14:00:37]Read from MH i2c: E2 17 00 [14:00:37]MH_I2C_Read... [14:00: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 39 32 90 00 DF [14:00:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:00:37]wFMCommunicate OK [14:00:37]requested_item fd.num is exist - process it [14:00:37]SAM_PROTO_GetFieldsCounters [14:00:37]wFMCommunicate request_size=4 [14:00:37]MH_SAM_APDU [14:00:37]CAPDU: 80 13 00 00 [14:00:37]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:00:37]Write i2c OK [14:00:37]MH_I2C_Read... [14:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:37]Read from MH i2c: E2 [14:00:37]MH_I2C_Read... [14:00:37]Read from MH i2c: E2 62 00 [14:00:37]MH_I2C_Read... [14:00: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 96 5F 02 00 0E 04 04 00 16 02 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 B7 [14:00:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 96 5F 02 00 0E 04 04 00 16 02 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 [14:00:37]wFMCommunicate OK [14:00:37]SAM_PROTO_GetFieldsCounters done [14:00:37]requested_item shift.num is exist - process it [14:00:37]requested_item shift.opened is exist - process it [14:00:37]req_shift_opened [14:00:37]FM_GetShiftState [14:00:37]SAM_PROTO_GetShiftState [14:00:37]wFMCommunicate request_size=4 [14:00:37]MH_SAM_APDU [14:00:37]CAPDU: 80 13 01 00 [14:00:37]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:00:37]Write i2c OK [14:00:37]MH_I2C_Read... [14:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:37]Read from MH i2c: E2 [14:00:37]MH_I2C_Read... [14:00:37]Read from MH i2c: E2 0E 00 [14:00:37]MH_I2C_Read... [14:00:37]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 DC [14:00:37]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:00:37]wFMCommunicate OK [14:00:37]SAM_PROTO_GetShiftState done [14:00:37]FM_GetShiftState done [14:00:37]req_shift_opened done [14:00:37]requested_item shift.open_date is exist - process it [14:00:37]req_shift_open_date [14:00:37]req_shift_open_date done [14:00:37]produce_requested_data done [14:00:37]produce_requested_data return {"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":155542,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:00:37]process_action_free get_value [14:00:37]json_value_free [14:00:37]json_value_free done [14:00:37]process_json_proto returns [14:00:37]Send response to host [14:00:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":155542,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:00:37]free response buf [14:00:37]execute_script done [14:00:37]execute_script returns [14:00:37]free content buf [14:00:37]Sock 8.Close socket [14:00:37]Sock 8.Thread stoped [14:00:37]accept exits with 6 [14:00:37]New connection [14:00:37]New thread 3066637668 created [14:00:37]Thread 3066781028 joined [14:00:37]Waiting for new connection... [14:00:37] Sock 6.Parse request [14:00:37]Sock 6.Check first char [14:00:37]Sock 6.First char is OK [14:00:37]request: POST /json_proto HTTP/1.0 [14:00:37]Method: POST [14:00:37]URL: /json_proto [14:00:37]Method is POST - this is cgi request [14:00:37]url: /json_proto [14:00:37]query_string will be loaded in cgi processing [14:00:37]execute_cgi json_proto POST (null) [14:00:37]execute_cgi path=json_proto method=POST [14:00:37]POST find Content-Length [14:00:37]Host: 172.17.63.3:8080 [14:00:37]Content-Length: 331 [14:00:37]Content-Type: application/json [14:00:37] [14:00:37]POST finish read [14:00:37]Found Content-Length = 331 [14:00: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" ] } } [14:00:37]execute_script... [14:00: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" ] } } [14:00:37]POST & json_proto [14:00:37]process_json_proto [14:00:37]json parsed OK: [14:00:37]protocol is kg_v1.0 [14:00:37]action value=get_value [14:00:37]process_action get_value [14:00:37]cmd_get_value [14:00:37]process_action get_value done [14:00:37]requested_data is exist [14:00:37]produce_requested_data [14:00:37]requested_item fm.sale.total is exist - process it [14:00:37]SAM_PROTO_GetFMData [14:00:37]wFMCommunicate request_size=4 [14:00:37]MH_SAM_APDU [14:00:37]CAPDU: 80 13 03 00 [14:00:37]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:00:37]Write i2c OK [14:00:37]MH_I2C_Read... [14:00:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:00:38]Read from MH i2c: E2 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 FD 00 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 FD 00 13 00 00 C2 04 85 04 BE 04 6E 04 04 00 6A 5B 02 00 69 04 A3 00 6F 04 04 00 5B 5B 02 00 B1 04 05 00 D3 A3 D2 6D 02 70 04 05 00 C8 32 3A 2D 02 72 04 04 00 0B 71 98 40 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 E9 23 10 42 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 3C 81 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 D6 [14:00:38]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 6A 5B 02 00 69 04 A3 00 6F 04 04 00 5B 5B 02 00 B1 04 05 00 D3 A3 D2 6D 02 70 04 05 00 C8 32 3A 2D 02 72 04 04 00 0B 71 98 40 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 E9 23 10 42 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 3C 81 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [14:00:38]wFMCommunicate OK [14:00:38]wFMCommunicate request_size=4 [14:00:38]MH_SAM_APDU [14:00:38]CAPDU: 80 17 00 00 [14:00:38]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:00:38]Write i2c OK [14:00:38]MH_I2C_Read... [14:00:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:00:38]Read from MH i2c: E2 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 FD 00 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 03 [14:00:38]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 [14:00:38]wFMCommunicate OK [14:00:38]wFMCommunicate request_size=4 [14:00:38]MH_SAM_APDU [14:00:38]CAPDU: 80 17 00 00 [14:00:38]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:00:38]Write i2c OK [14:00:38]MH_I2C_Read... [14:00:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:00:38]Read from MH i2c: E2 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 FD 00 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 43 [14:00:38]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 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 90 00 [14:00:38]wFMCommunicate OK [14:00:38]wFMCommunicate request_size=4 [14:00:38]MH_SAM_APDU [14:00:38]CAPDU: 80 17 00 00 [14:00:38]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:00:38]Write i2c OK [14:00:38]MH_I2C_Read... [14:00:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:00:39]Read from MH i2c: E2 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 FD 00 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 FD 00 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [14:00:39]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:00:39]wFMCommunicate OK [14:00:39]wFMCommunicate request_size=4 [14:00:39]MH_SAM_APDU [14:00:39]CAPDU: 80 17 00 00 [14:00:39]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:00:39]Write i2c OK [14:00:39]MH_I2C_Read... [14:00:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [14:00:39]Read from MH i2c: E2 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 DF 00 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 DF 00 17 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 77 [14:00:39]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 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:00:39]wFMCommunicate OK [14:00:39]SAM_PROTO_GetFMData done [14:00:39]requested_item fm.sale_refund.total is exist - process it [14:00:39]requested_item fm.buy.total is exist - process it [14:00:39]requested_item shift.sale.total is exist - process it [14:00:39]SAM_PROTO_GetShiftData [14:00:39]wFMCommunicate request_size=4 [14:00:39]MH_SAM_APDU [14:00:39]CAPDU: 80 13 02 00 [14:00:39]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:00:39]Write i2c OK [14:00:39]MH_I2C_Read... [14:00:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:00:39]Read from MH i2c: E2 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 FD 00 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 A7 00 00 00 69 04 9C 00 6F 04 04 00 A7 00 00 00 B1 04 03 00 08 D9 AA 70 04 03 00 6C 5B 88 72 04 03 00 9C 7D 22 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 38 26 12 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 31 83 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 EE [14:00:39]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 A7 00 00 00 69 04 9C 00 6F 04 04 00 A7 00 00 00 B1 04 03 00 08 D9 AA 70 04 03 00 6C 5B 88 72 04 03 00 9C 7D 22 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 38 26 12 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 31 83 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:00:39]wFMCommunicate OK [14:00:39]wFMCommunicate request_size=4 [14:00:39]MH_SAM_APDU [14:00:39]CAPDU: 80 17 00 00 [14:00:39]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:00:39]Write i2c OK [14:00:39]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 FD 00 [14:00:40]MH_I2C_Read... [14:00: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 [14:00: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 [14:00:40]wFMCommunicate OK [14:00:40]wFMCommunicate request_size=4 [14:00:40]MH_SAM_APDU [14:00:40]CAPDU: 80 17 00 00 [14:00:40]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 FD 00 [14:00:40]MH_I2C_Read... [14:00: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 [14:00: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 [14:00:40]wFMCommunicate OK [14:00:40]wFMCommunicate request_size=4 [14:00:40]MH_SAM_APDU [14:00:40]CAPDU: 80 17 00 00 [14:00:40]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 FD 00 [14:00:40]MH_I2C_Read... [14:00: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 [14:00: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 [14:00:40]wFMCommunicate OK [14:00:40]wFMCommunicate request_size=4 [14:00:40]MH_SAM_APDU [14:00:40]CAPDU: 80 17 00 00 [14:00:40]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:00:40]Write i2c OK [14:00:40]MH_I2C_Read... [14:00:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:00:40]Read from MH i2c: E2 [14:00:40]MH_I2C_Read... [14:00:40]Read from MH i2c: E2 CC 00 [14:00:40]MH_I2C_Read... [14:00:40]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:00:40]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:00:40]wFMCommunicate OK [14:00:40]SAM_PROTO_GetShiftData done [14:00:40]requested_item shift.sale.total_cash is exist - process it [14:00:40]requested_item shift.sale_refund.total is exist - process it [14:00:40]requested_item shift.sale_refund.total_cash is exist - process it [14:00:40]requested_item shift.buy.total is exist - process it [14:00:40]requested_item shift.buy.total_cash is exist - process it [14:00:40]produce_requested_data done [14:00:40]produce_requested_data return {"fm.sale.total":104324556.35,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":111966.80,"shift.sale.total_cash":89363.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:00:40]process_action_free get_value [14:00:40]json_value_free [14:00:40]json_value_free done [14:00:40]process_json_proto returns [14:00:40]Send response to host [14:00:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104324556.35,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":111966.80,"shift.sale.total_cash":89363.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:00:40]free response buf [14:00:40]execute_script done [14:00:40]execute_script returns [14:00:40]free content buf [14:00:40]Sock 6.Close socket [14:00:40]Sock 6.Thread stoped [14:00:41]accept exits with 8 [14:00:41]New connection [14:00:41]New thread 3066781028 created [14:00:41]Thread 3066637668 joined [14:00:41]Waiting for new connection... [14:00:41] Sock 8.Parse request [14:00:41]Sock 8.Check first char [14:00:41]Sock 8.First char is OK [14:00:41]request: POST /json_proto HTTP/1.0 [14:00:41]Method: POST [14:00:41]URL: /json_proto [14:00:41]Method is POST - this is cgi request [14:00:41]url: /json_proto [14:00:41]query_string will be loaded in cgi processing [14:00:41]execute_cgi json_proto POST (null) [14:00:41]execute_cgi path=json_proto method=POST [14:00:41]POST find Content-Length [14:00:41]Host: 172.17.63.3:8080 [14:00:41]Content-Length: 796 [14:00:41]Content-Type: application/json [14:00:41] [14:00:41]POST finish read [14:00:41]Found Content-Length = 796 [14:00:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295940", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:41]execute_script... [14:00: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)98345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295940", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:41]POST & json_proto [14:00:41]process_json_proto [14:00:41]json parsed OK: [14:00:41]protocol is kg_v1.0 [14:00:41]action value=close_receipt [14:00:41]process_action close_receipt [14:00:41]cmd_close_receipt [14:00:41]MH_GetDate [14:00:41]Write to MH i2c: F0 00 00 1D 00 0C [14:00:41]Write i2c OK [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: F0 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: F0 09 00 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: F0 09 00 1D 00 00 09 53 1A 67 50 D1 6C 64 E3 [14:00:41]GetLastDocTimeStamp 97 [14:00:41]current date 1729778441 [14:00:41]FM_GetShiftState [14:00:41]SAM_PROTO_GetShiftState [14:00:41]wFMCommunicate request_size=4 [14:00:41]MH_SAM_APDU [14:00:41]CAPDU: 80 13 01 00 [14:00:41]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [14:00:41]Write i2c OK [14:00:41]MH_I2C_Read... [14:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:41]Read from MH i2c: E2 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: E2 0E 00 [14:00:41]MH_I2C_Read... [14:00:41]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 E8 [14:00:41]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:00:41]wFMCommunicate OK [14:00:41]SAM_PROTO_GetShiftState done [14:00:41]FM_GetShiftState done [14:00:41]opened in 1729729836 [14:00:41]opened+sec_in_day 1729816236 [14:00:41]quantity*price = 0 [14:00:41]sum+1 = 1 [14:00:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 168 24.10.2024 14:00 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4295940 ФМ: 0000000000871792 ФД: 155543 ФПД: 152910380325299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140041&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155543&fm=152910380325299&tin=02508201610067®Number=0000000000091693&sum=0 [14:00:42]StoreToDocumentArchive [14:00:42]shift 534 fd 155543 [14:00:42]save to /storage/0534/doc_00155543 [14:00:42]save last doc name /storage/0534/doc_00155543 to /storage/kkm_last_doc_name [14:00:42]save OK [14:00:42]Clear old archive folders... [14:00:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:00:42]tlvbuf is 01F28700 [14:00:42]SAM_PROTO_ClearQueue [14:00:42]wFMCommunicate request_size=4 [14:00:42]MH_SAM_APDU [14:00:42]CAPDU: 80 09 00 00 [14:00:42]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:00:42]Write i2c OK [14:00:42]MH_I2C_Read... [14:00:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:42]Read from MH i2c: E2 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 03 00 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:00:42]RAPDU: 90 00 [14:00:42]wFMCommunicate OK [14:00:42]SAM_PROTO_ClearQueue done [14:00:42]KKMCreateOFDPacket [14:00:42]OFDProtocolAddRootSTLVToBuf [14:00:42]FM_MakeSignedData [14:00:42]FM_MakeSignedData [14:00:42]SAM_PROTO_SignData [14:00:42]wFMCommunicate request_size=4 [14:00:42]MH_SAM_APDU [14:00:42]CAPDU: 80 0D 01 02 [14:00:42]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:00:42]Write i2c OK [14:00:42]MH_I2C_Read... [14:00:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:42]Read from MH i2c: E2 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 03 00 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:00:42]RAPDU: 90 00 [14:00:42]wFMCommunicate OK [14:00:42]wFMCommunicate request_size=255 [14:00:42]MH_SAM_APDU [14:00:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A8 00 00 00 F4 03 04 00 09 53 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 5F 02 00 35 04 06 00 8B 12 38 E6 [14:00:42]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A8 00 00 00 F4 03 04 00 09 53 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 5F 02 00 35 04 06 00 8B 12 38 E6 00 00 8E [14:00:42]Write i2c OK [14:00:42]MH_I2C_Read... [14:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:43]Read from MH i2c: E2 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 03 00 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:00:43]RAPDU: 90 00 [14:00:43]wFMCommunicate OK [14:00:43]wFMCommunicate request_size=7 [14:00:43]MH_SAM_APDU [14:00:43]CAPDU: 80 0D 02 02 02 D9 B3 [14:00:43]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 D9 B3 00 00 38 [14:00:43]Write i2c OK [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 [14:00:43]MH_I2C_Read... [14:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:43]Read from MH i2c: E2 03 00 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:00:43]RAPDU: 90 00 [14:00:43]wFMCommunicate OK [14:00:43]wFMCommunicate request_size=4 [14:00:43]MH_SAM_APDU [14:00:43]CAPDU: 80 0D 03 02 [14:00:43]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:00:43]Write i2c OK [14:00:43]MH_I2C_Read... [14:00:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:43]Read from MH i2c: E2 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 0B 00 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 0B 00 2F 00 00 DE DA 9D 03 5A 36 EE BA 90 00 3B [14:00:43]RAPDU: DE DA 9D 03 5A 36 EE BA 90 00 [14:00:43]wFMCommunicate OK [14:00:43]SAM_PROTO_SignData done [14:00:43]FM_MakeSignedData done [14:00:43]CreateOFDProtocolMessage [14:00:43]wFMCommunicate request_size=4 [14:00:43]MH_SAM_APDU [14:00:43]CAPDU: 80 11 00 00 [14:00:43]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:00:43]Write i2c OK [14:00:43]MH_I2C_Read... [14:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:43]Read from MH i2c: E2 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 17 00 [14:00:43]MH_I2C_Read... [14:00:43]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 39 32 90 00 FF [14:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:00:43]wFMCommunicate OK [14:00:43]CreateOFDProtocolMessage done [14:00:43]OFDSenderStorePacket 155543 [14:00:43]StoreOFDPacket docnum=155543 [14:00:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 A5 13 04 01 EB 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 09 53 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 5F 02 00 35 04 06 00 8B 12 38 E6 D9 B3 DE DA 9D 03 5A 36 EE BA [14:00:43]CheckFolder [14:00:43]dirname=/storage/ofd_packets [14:00:43]CheckFolder done [14:00:43]ProducePacketName [14:00:43]name=ofd_packets/00155543 [14:00:43]NVStorageSaveData ofd_packets/00155543 [14:00:43]File name is /storage/ofd_packets/00155543 [14:00:43]Write 298 bytes [14:00:43]NVStorageSaveData done [14:00:43]OFDSenderStorePacket done [14:00:43]KKMCreateOFDPacket done [14:00:43]NVStorageSaveData kkm_last_timestamp [14:00:43]File name is /storage/kkm_last_timestamp [14:00:43]Write 4 bytes [14:00:43]NVStorageSaveData done [14:00:43]ExternCall_PrintAddStr [14:00:43]wPrintStart [14:00:43]Write to MH i2c: 01 00 00 31 00 31 [14:00:43]Write i2c OK [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: 01 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: 01 07 00 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:00:43]RasterBufferAndPrint [14:00:43]line Счет N : (1)98345 [14:00:43]OFD Sender: Processing packet 155543 [packets to send 31, broken 30] [14:00:43]ProducePacketName [14:00:43]name=ofd_packets/00155543 [14:00:43]OFD Sender: To server: pG, [14:00:43]CommunicateWithHost lk.salyk.kg:30040 [14:00:43]ConnectInit lk.salyk.kg [14:00:43]line ИНН: 02508201610067 [14:00:43]line Контрольно-Кассовый Чек [14:00:43]line ПРОДАЖА [14:00:43]line ТРК (МРК, ГНК) : 32 [14:00:43]line Товар: 2710194210 [14:00:43]line ДТ-К-5 [14:00:43]line 10.000 * 0.00 [14:00:43]line = 0.00 [14:00:43]line НДС 12% НСП 1% [14:00:43]line > о реализуемом товаре [14:00:43]line ИТОГО: 0.00 [14:00:43]line НСП 1% : 0.00 [14:00:43]line НДС 12% : 0.00 [14:00:43]line Наличными: 0.00 [14:00:43]line Безнал.: 0.00 [14:00:43]line Место: АЗС № 143 "Партнер Нефть" [14:00:43]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:00:43]line СНО: Общий режим [14:00:43]line Чек 168 24.10.2024 14:00 [14:00:43]line Смена: 534 ФФД: 1.0 [14:00:43]line ЗНМ: 0300000096 [14:00:43]line РНМ: 0000000000091693 [14:00:43]line Версия ККМ: 001 [14:00:43]line Талоны: Топливные Талоны [14:00:43]line 4295940 [14:00:43]line ФМ: 0000000000871792 [14:00:43]line ФД: 155543 [14:00:43]line ФПД: 152910380325299 [14:00:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140041&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155543&fm=152910380325299&tin=02508201610067®Number=0000000000091693&sum=0 [14:00:43]written 0, free lines is 4095 [14:00:43]Connected sock=10 [14:00:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 A5 13 04 01 EB 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 09 53 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 5F 02 00 35 04 06 00 8B 12 38 E6 D9 B3 DE DA 9D 03 5A 36 EE BA [14:00: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 39 32 4F 00 00 00 39 5E 47 00 0A 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 39 32 10 04 04 00 97 5F 02 00 F4 03 04 00 82 F8 19 67 B6 04 01 00 00 FA C3 36 75 15 1F C0 7C [14:00:43]CommunicateWithHost err = 0 [14:00:43]CheckOFDResponse [14:00:43]1017 (14) - 77093643461234 [14:00:43]1041 (16) - 0000000000871792 [14:00:43]1040 (4) - 155543 [14:00:43]1012 (4) - 24.10.2024 07:34 [14:00:43]1206 (1) - 0 [14:00:43]OFD Sender: Remove packet 155543 [14:00:43]ProducePacketName [14:00:43]name=ofd_packets/00155543 [14:00:43]NVStorageDeleteData [14:00:43]Write to MH i2c: 01 00 00 5B 00 5B [14:00:43]Write i2c OK [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: 01 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: 01 07 00 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 E4 0C 52 [14:00:43]RasterBufferAndPrint [14:00:43]line [14:00:43]line [14:00:43]line [14:00:43]line [14:00:43]line [14:00:43]written 0, free lines is 3321 [14:00:43]process_action close_receipt done [14:00:43]requested_data is exist [14:00:43]produce_requested_data [14:00:43]requested_item fm.sn is exist - process it [14:00:43]wFMCommunicate request_size=4 [14:00:43]MH_SAM_APDU [14:00:43]CAPDU: 80 11 00 00 [14:00:43]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [14:00:43]Write i2c OK [14:00:43]MH_I2C_Read... [14:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:43]Read from MH i2c: E2 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 17 00 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 31 [14:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:00:43]wFMCommunicate OK [14:00:43]requested_item fd.num is exist - process it [14:00:43]SAM_PROTO_GetFieldsCounters [14:00:43]wFMCommunicate request_size=4 [14:00:43]MH_SAM_APDU [14:00:43]CAPDU: 80 13 00 00 [14:00:43]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [14:00:44]Write i2c OK [14:00:44]MH_I2C_Read... [14:00:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:44]Read from MH i2c: E2 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 62 00 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 62 00 63 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 97 5F 02 00 0E 04 04 00 16 02 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 0D [14:00: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 97 5F 02 00 0E 04 04 00 16 02 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 [14:00:44]wFMCommunicate OK [14:00:44]SAM_PROTO_GetFieldsCounters done [14:00:44]requested_item shift.num is exist - process it [14:00:44]requested_item shift.opened is exist - process it [14:00:44]req_shift_opened [14:00:44]FM_GetShiftState [14:00:44]SAM_PROTO_GetShiftState [14:00:44]wFMCommunicate request_size=4 [14:00:44]MH_SAM_APDU [14:00:44]CAPDU: 80 13 01 00 [14:00:44]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [14:00:44]Write i2c OK [14:00:44]MH_I2C_Read... [14:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:44]Read from MH i2c: E2 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 0E 00 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 2E [14:00:44]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:00:44]wFMCommunicate OK [14:00:44]SAM_PROTO_GetShiftState done [14:00:44]FM_GetShiftState done [14:00:44]req_shift_opened done [14:00:44]requested_item shift.open_date is exist - process it [14:00:44]req_shift_open_date [14:00:44]req_shift_open_date done [14:00:44]produce_requested_data done [14:00:44]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155543,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:00:44]process_action_free close_receipt [14:00:44]json_value_free [14:00:44]json_value_free done [14:00:44]process_json_proto returns [14:00:44]Send response to host [14:00:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155543,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:00:44]free response buf [14:00:44]execute_script done [14:00:44]execute_script returns [14:00:44]free content buf [14:00:44]Sock 8.Close socket [14:00:44]Sock 8.Thread stoped [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:38]int [14:01:38]Write to MH i2c: 01 00 00 65 00 65 [14:01:38]*** FLAG_PRN_KEY set [14:01:38]Write i2c OK [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: 01 [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: 01 07 00 [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: 01 07 00 65 00 00 08 00 00 00 FF 0F 82 [14:01:38]state=0 [14:01:38]Key pressed [14:01:38]Feed [14:01:38]Write to MH i2c: D8 00 00 66 00 3D [14:01:38]Write i2c OK [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: D8 [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: D8 01 00 [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: D8 01 00 66 00 00 3E [14:01:38]int [14:01:38]Write to MH i2c: 01 00 00 67 00 67 [14:01:38]Write i2c OK [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: 01 [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: 01 07 00 [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: 01 07 00 67 00 00 48 00 00 00 3D 00 F3 [14:01:38]state=2 [14:01:38]Key pressed [14:01:38]int [14:01:38]Write to MH i2c: 01 00 00 68 00 68 [14:01:38]*** FLAG_PRN_KEY reset [14:01:38]Write i2c OK [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: 01 [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: 01 07 00 [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: 01 07 00 68 00 00 00 00 00 00 F6 0F 74 [14:01:38]state=2 [14:01:38]Stop feed [14:01:39]OFD Sender: No OFD packet to send [14:01:44]accept exits with 6 [14:01:44]New connection [14:01:44]New thread 3066637668 created [14:01:44]Thread 3066781028 joined [14:01:44]Waiting for new connection... [14:01:44] Sock 6.Parse request [14:01:44]Sock 6.Check first char [14:01:44]Sock 6.First char is OK [14:01:44]request: POST /json_proto HTTP/1.0 [14:01:44]Method: POST [14:01:44]URL: /json_proto [14:01:44]Method is POST - this is cgi request [14:01:44]url: /json_proto [14:01:44]query_string will be loaded in cgi processing [14:01:44]execute_cgi json_proto POST (null) [14:01:44]execute_cgi path=json_proto method=POST [14:01:44]POST find Content-Length [14:01:44]Host: 172.17.63.3:8080 [14:01:44]Content-Length: 678 [14:01:44]Content-Type: application/json [14:01:44] [14:01:44]POST finish read [14:01:44]Found Content-Length = 678 [14:01:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 16.250, "sum" : 1238.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1238.00, "total" : 1238.00, "payments": [ { "type": 0, "sum" : 1238.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:44]execute_script... [14:01: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)98347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 16.250, "sum" : 1238.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1238.00, "total" : 1238.00, "payments": [ { "type": 0, "sum" : 1238.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:44]POST & json_proto [14:01:44]process_json_proto [14:01:44]json parsed OK: [14:01:44]protocol is kg_v1.0 [14:01:44]action value=close_receipt [14:01:44]process_action close_receipt [14:01:44]cmd_close_receipt [14:01:44]MH_GetDate [14:01:44]Write to MH i2c: F0 00 00 69 00 58 [14:01:44]Write i2c OK [14:01:44]MH_I2C_Read... [14:01:44]Read from MH i2c: F0 [14:01:44]MH_I2C_Read... [14:01:44]Read from MH i2c: F0 09 00 [14:01:44]MH_I2C_Read... [14:01:44]Read from MH i2c: F0 09 00 69 00 00 48 53 1A 67 50 D1 6C 64 6E [14:01:44]GetLastDocTimeStamp 1729778441 [14:01:44]current date 1729778504 [14:01:44]FM_GetShiftState [14:01:44]SAM_PROTO_GetShiftState [14:01:44]wFMCommunicate request_size=4 [14:01:44]MH_SAM_APDU [14:01:44]CAPDU: 80 13 01 00 [14:01:44]Write to MH i2c: E2 08 00 6A 00 80 13 01 00 00 00 00 00 E7 [14:01:44]Write i2c OK [14:01:44]MH_I2C_Read... [14:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:44]Read from MH i2c: E2 [14:01:44]MH_I2C_Read... [14:01:44]Read from MH i2c: E2 0E 00 [14:01:44]MH_I2C_Read... [14:01:44]Read from MH i2c: E2 0E 00 6A 00 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 34 [14:01:44]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:01:44]wFMCommunicate OK [14:01:44]SAM_PROTO_GetShiftState done [14:01:44]FM_GetShiftState done [14:01:44]opened in 1729729836 [14:01:44]opened+sec_in_day 1729816236 [14:01:44]quantity*price = 123825 [14:01:44]sum+1 = 123826 [14:01:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1238.00 Внесено: 1238.00 СДАЧА: 0.00 НСП 1% : 10.96 НДС 12% : 131.50 Наличными: 1238.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 169 24.10.2024 14:01 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155544 ФПД: 280634497783340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140144&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155544&fm=280634497783340&tin=02508201610067®Number=0000000000091693&sum=123800 [14:01:45]StoreToDocumentArchive [14:01:45]shift 534 fd 155544 [14:01:45]save to /storage/0534/doc_00155544 [14:01:45]save last doc name /storage/0534/doc_00155544 to /storage/kkm_last_doc_name [14:01:45]save OK [14:01:45]Clear old archive folders... [14:01:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:01:45]tlvbuf is 01F93430 [14:01:45]SAM_PROTO_ClearQueue [14:01:45]wFMCommunicate request_size=4 [14:01:45]MH_SAM_APDU [14:01:45]CAPDU: 80 09 00 00 [14:01:45]Write to MH i2c: E2 08 00 77 00 80 09 00 00 00 00 00 00 E9 [14:01:45]Write i2c OK [14:01:45]MH_I2C_Read... [14:01:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:45]Read from MH i2c: E2 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 03 00 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [14:01:45]RAPDU: 90 00 [14:01:45]wFMCommunicate OK [14:01:45]SAM_PROTO_ClearQueue done [14:01:45]KKMCreateOFDPacket [14:01:45]OFDProtocolAddRootSTLVToBuf [14:01:45]FM_MakeSignedData [14:01:45]FM_MakeSignedData [14:01:45]SAM_PROTO_SignData [14:01:45]wFMCommunicate request_size=4 [14:01:45]MH_SAM_APDU [14:01:45]CAPDU: 80 0D 01 02 [14:01:45]Write to MH i2c: E2 08 00 78 00 80 0D 01 02 00 00 00 00 F1 [14:01:45]Write i2c OK [14:01:45]MH_I2C_Read... [14:01:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:45]Read from MH i2c: E2 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 03 00 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [14:01:45]RAPDU: 90 00 [14:01:45]wFMCommunicate OK [14:01:45]wFMCommunicate request_size=255 [14:01:45]MH_SAM_APDU [14:01:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 3F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 E3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 33 00 00 00 00 07 04 06 00 98 E3 01 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 48 53 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 5F 02 00 35 04 06 00 FF 3C 4F 8D [14:01:45]Write to MH i2c: E2 02 01 79 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 3F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 E3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 33 00 00 00 00 07 04 06 00 98 E3 01 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 48 53 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 5F 02 00 35 04 06 00 FF 3C 4F 8D 00 00 44 [14:01:45]Write i2c OK [14:01:45]MH_I2C_Read... [14:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:45]Read from MH i2c: E2 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 03 00 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [14:01:45]RAPDU: 90 00 [14:01:45]wFMCommunicate OK [14:01:45]wFMCommunicate request_size=7 [14:01:45]MH_SAM_APDU [14:01:45]CAPDU: 80 0D 02 02 02 56 2C [14:01:45]Write to MH i2c: E2 0A 00 7A 00 80 0D 02 02 02 00 56 2C 00 00 7A [14:01:45]Write i2c OK [14:01:45]MH_I2C_Read... [14:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:45]Read from MH i2c: E2 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 03 00 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [14:01:45]RAPDU: 90 00 [14:01:45]wFMCommunicate OK [14:01:45]wFMCommunicate request_size=4 [14:01:45]MH_SAM_APDU [14:01:45]CAPDU: 80 0D 03 02 [14:01:45]Write to MH i2c: E2 08 00 7B 00 80 0D 03 02 00 00 00 00 F6 [14:01:45]Write i2c OK [14:01:45]MH_I2C_Read... [14:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:45]Read from MH i2c: E2 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 0B 00 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 0B 00 7B 00 00 5C 50 07 A9 72 DB 68 24 90 00 2C [14:01:45]RAPDU: 5C 50 07 A9 72 DB 68 24 90 00 [14:01:45]wFMCommunicate OK [14:01:45]SAM_PROTO_SignData done [14:01:45]FM_MakeSignedData done [14:01:45]CreateOFDProtocolMessage [14:01:45]wFMCommunicate request_size=4 [14:01:45]MH_SAM_APDU [14:01:45]CAPDU: 80 11 00 00 [14:01:45]Write to MH i2c: E2 08 00 7C 00 80 11 00 00 00 00 00 00 F6 [14:01:45]Write i2c OK [14:01:45]MH_I2C_Read... [14:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:45]Read from MH i2c: E2 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 17 00 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 17 00 7C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4B [14:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:01:45]wFMCommunicate OK [14:01:45]CreateOFDProtocolMessage done [14:01:45]OFDSenderStorePacket 155544 [14:01:45]StoreOFDPacket docnum=155544 [14:01:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 40 3A 04 01 69 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 3F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 E3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 33 00 00 00 00 07 04 06 00 98 E3 01 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 48 53 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 5F 02 00 35 04 06 00 FF 3C 4F 8D 56 2C 5C 50 07 A9 72 DB 68 24 [14:01:45]CheckFolder [14:01:45]dirname=/storage/ofd_packets [14:01:45]CheckFolder done [14:01:45]ProducePacketName [14:01:45]name=ofd_packets/00155544 [14:01:45]NVStorageSaveData ofd_packets/00155544 [14:01:45]File name is /storage/ofd_packets/00155544 [14:01:45]Write 298 bytes [14:01:45]NVStorageSaveData done [14:01:45]OFDSenderStorePacket done [14:01:45]KKMCreateOFDPacket done [14:01:45]NVStorageSaveData kkm_last_timestamp [14:01:45]File name is /storage/kkm_last_timestamp [14:01:45]Write 4 bytes [14:01:45]NVStorageSaveData done [14:01:45]ExternCall_PrintAddStr [14:01:45]wPrintStart [14:01:45]Write to MH i2c: 01 00 00 7D 00 7D [14:01:45]Write i2c OK [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: 01 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: 01 07 00 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: 01 07 00 7D 00 00 00 00 00 00 FF 0F 92 [14:01:45]RasterBufferAndPrint [14:01:45]line Счет N : (1)98347 [14:01:45]line ИНН: 02508201610067 [14:01:45]line Контрольно-Кассовый Чек [14:01:45]line ПРОДАЖА [14:01:45]line ТРК (МРК, ГНК) : 32 [14:01:45]line Товар: 2710194210 [14:01:45]line ДТ-К-5 [14:01:45]line 16.250 * 76.20 [14:01:45]line = 1238.25 [14:01:45]line НДС 12% НСП 1% [14:01:45]line > о реализуемом товаре [14:01:45]line ОКРУГЛЕНИЕ: -0.25 [14:01:45]line ИТОГО: 1238.00 [14:01:45]line Внесено: 1238.00 [14:01:45]line СДАЧА: 0.00 [14:01:45]line НСП 1% : 10.96 [14:01:45]line НДС 12% : 131.50 [14:01:45]line Наличными: 1238.00 [14:01:45]line Безнал.: 0.00 [14:01:45]line Место: АЗС № 143 "Партнер Нефть" [14:01:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:01:45]line СНО: Общий режим [14:01:45]line Чек 169 24.10.2024 14:01 [14:01:45]line Смена: 534 ФФД: 1.0 [14:01:45]line ЗНМ: 0300000096 [14:01:45]line РНМ: 0000000000091693 [14:01:45]line Версия ККМ: 001 [14:01:45]line ФМ: 0000000000871792 [14:01:45]line ФД: 155544 [14:01:45]line ФПД: 280634497783340 [14:01:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140144&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155544&fm=280634497783340&tin=02508201610067®Number=0000000000091693&sum=123800 [14:01:46]OFD Sender: Processing packet 155544 [packets to send 31, broken 30] [14:01:46]ProducePacketName [14:01:46]name=ofd_packets/00155544 [14:01:46]OFD Sender: To server: pG, [14:01:46]CommunicateWithHost lk.salyk.kg:30040 [14:01:46]ConnectInit lk.salyk.kg [14:01:46]written 0, free lines is 4095 [14:01:46]Connected sock=10 [14:01:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 40 3A 04 01 69 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 3F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B1 E3 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 E3 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 33 00 00 00 00 07 04 06 00 98 E3 01 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 48 53 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 5F 02 00 35 04 06 00 FF 3C 4F 8D 56 2C 5C 50 07 A9 72 DB 68 24 [14:01:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E2 A8 47 00 2B 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 39 32 10 04 04 00 98 5F 02 00 F4 03 04 00 C0 F8 19 67 B6 04 01 00 00 14 32 44 BE B0 20 21 38 [14:01:46]CommunicateWithHost err = 0 [14:01:46]CheckOFDResponse [14:01:46]1017 (14) - 77093643461234 [14:01:46]1041 (16) - 0000000000871792 [14:01:46]1040 (4) - 155544 [14:01:46]1012 (4) - 24.10.2024 07:35 [14:01:46]1206 (1) - 0 [14:01:46]OFD Sender: Remove packet 155544 [14:01:46]ProducePacketName [14:01:46]name=ofd_packets/00155544 [14:01:46]NVStorageDeleteData [14:01:46]Write to MH i2c: 01 00 00 A8 00 A8 [14:01:46]Write i2c OK [14:01:46]MH_I2C_Read... [14:01:46]Read from MH i2c: 01 [14:01:46]MH_I2C_Read... [14:01:46]Read from MH i2c: 01 07 00 [14:01:46]MH_I2C_Read... [14:01:46]Read from MH i2c: 01 07 00 A8 00 00 00 00 00 00 E9 0C A4 [14:01:46]RasterBufferAndPrint [14:01:46]line [14:01:46]line [14:01:46]line [14:01:46]line [14:01:46]line [14:01:46]written 0, free lines is 3311 [14:01:46]process_action close_receipt done [14:01:46]requested_data is exist [14:01:46]produce_requested_data [14:01:46]requested_item fm.sn is exist - process it [14:01:46]wFMCommunicate request_size=4 [14:01:46]MH_SAM_APDU [14:01:46]CAPDU: 80 11 00 00 [14:01:46]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [14:01:46]Write i2c OK [14:01:46]MH_I2C_Read... [14:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:46]Read from MH i2c: E2 [14:01:46]MH_I2C_Read... [14:01:46]Read from MH i2c: E2 17 00 [14:01:46]MH_I2C_Read... [14:01:46]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 39 32 90 00 7E [14:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:01:46]wFMCommunicate OK [14:01:46]requested_item fd.num is exist - process it [14:01:46]SAM_PROTO_GetFieldsCounters [14:01:46]wFMCommunicate request_size=4 [14:01:46]MH_SAM_APDU [14:01:46]CAPDU: 80 13 00 00 [14:01:46]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [14:01:46]Write i2c OK [14:01:46]MH_I2C_Read... [14:01:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:46]Read from MH i2c: E2 [14:01:46]MH_I2C_Read... [14:01:46]Read from MH i2c: E2 62 00 [14:01:46]MH_I2C_Read... [14:01:46]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 98 5F 02 00 0E 04 04 00 16 02 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 5E [14:01:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 98 5F 02 00 0E 04 04 00 16 02 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 [14:01:46]wFMCommunicate OK [14:01:46]SAM_PROTO_GetFieldsCounters done [14:01:46]requested_item shift.num is exist - process it [14:01:46]requested_item shift.opened is exist - process it [14:01:46]req_shift_opened [14:01:46]FM_GetShiftState [14:01:46]SAM_PROTO_GetShiftState [14:01:46]wFMCommunicate request_size=4 [14:01:46]MH_SAM_APDU [14:01:46]CAPDU: 80 13 01 00 [14:01:46]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [14:01:46]Write i2c OK [14:01:46]MH_I2C_Read... [14:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:46]Read from MH i2c: E2 [14:01:46]MH_I2C_Read... [14:01:46]Read from MH i2c: E2 0E 00 [14:01:46]MH_I2C_Read... [14:01:46]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 7B [14:01:46]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:01:46]wFMCommunicate OK [14:01:46]SAM_PROTO_GetShiftState done [14:01:46]FM_GetShiftState done [14:01:46]req_shift_opened done [14:01:46]requested_item shift.open_date is exist - process it [14:01:46]req_shift_open_date [14:01:46]req_shift_open_date done [14:01:46]produce_requested_data done [14:01:46]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155544,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:01:46]process_action_free close_receipt [14:01:46]json_value_free [14:01:46]json_value_free done [14:01:46]process_json_proto returns [14:01:46]Send response to host [14:01:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155544,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:01:46]free response buf [14:01:46]execute_script done [14:01:46]execute_script returns [14:01:46]free content buf [14:01:46]Sock 6.Close socket [14:01:46]Sock 6.Thread stoped [14:01:46]OFD Sender: No OFD packet to send [14:01:47]accept exits with 9 [14:01:47]New connection [14:01:47]New thread 3066781028 created [14:01:47]Thread 3066637668 joined [14:01:47]Waiting for new connection... [14:01:47] Sock 9.Parse request [14:01:47]Sock 9.Check first char [14:01:47]Sock 9.First char is OK [14:01:47]request: POST /json_proto HTTP/1.0 [14:01:47]Method: POST [14:01:47]URL: /json_proto [14:01:47]Method is POST - this is cgi request [14:01:47]url: /json_proto [14:01:47]query_string will be loaded in cgi processing [14:01:47]execute_cgi json_proto POST (null) [14:01:47]execute_cgi path=json_proto method=POST [14:01:47]POST find Content-Length [14:01:47]Host: 172.17.63.3:8080 [14:01:47]Content-Length: 676 [14:01:47]Content-Type: application/json [14:01:47] [14:01:47]POST finish read [14:01:47]Found Content-Length = 676 [14:01:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:47]execute_script... [14:01: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)98348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:47]POST & json_proto [14:01:47]process_json_proto [14:01:47]json parsed OK: [14:01:47]protocol is kg_v1.0 [14:01:47]action value=close_receipt [14:01:47]process_action close_receipt [14:01:47]cmd_close_receipt [14:01:47]MH_GetDate [14:01:47]Write to MH i2c: F0 00 00 B2 00 A1 [14:01:47]Write i2c OK [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: F0 [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: F0 09 00 [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: F0 09 00 B2 00 00 4B 53 1A 67 50 D1 6C 64 BA [14:01:47]GetLastDocTimeStamp 1729778504 [14:01:47]current date 1729778507 [14:01:47]FM_GetShiftState [14:01:47]SAM_PROTO_GetShiftState [14:01:47]wFMCommunicate request_size=4 [14:01:47]MH_SAM_APDU [14:01:47]CAPDU: 80 13 01 00 [14:01:47]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [14:01:47]Write i2c OK [14:01:47]MH_I2C_Read... [14:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:47]Read from MH i2c: E2 [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: E2 0E 00 [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 7D [14:01:47]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:01:47]wFMCommunicate OK [14:01:47]SAM_PROTO_GetShiftState done [14:01:47]FM_GetShiftState done [14:01:47]opened in 1729729836 [14:01:47]opened+sec_in_day 1729816236 [14:01:47]quantity*price = 40006 [14:01:47]sum+1 = 40007 [14:01:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 170 24.10.2024 14:01 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155545 ФПД: 108304621462091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140147&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155545&fm=108304621462091&tin=02508201610067®Number=0000000000091693&sum=40000 [14:01:49]StoreToDocumentArchive [14:01:49]shift 534 fd 155545 [14:01:49]save to /storage/0534/doc_00155545 [14:01:49]save last doc name /storage/0534/doc_00155545 to /storage/kkm_last_doc_name [14:01:49]save OK [14:01:49]Clear old archive folders... [14:01:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:01:49]tlvbuf is 01F97900 [14:01:49]SAM_PROTO_ClearQueue [14:01:49]wFMCommunicate request_size=4 [14:01:49]MH_SAM_APDU [14:01:49]CAPDU: 80 09 00 00 [14:01:49]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:49]Read from MH i2c: E2 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [14:01:49]RAPDU: 90 00 [14:01:49]wFMCommunicate OK [14:01:49]SAM_PROTO_ClearQueue done [14:01:49]KKMCreateOFDPacket [14:01:49]OFDProtocolAddRootSTLVToBuf [14:01:49]FM_MakeSignedData [14:01:49]FM_MakeSignedData [14:01:49]SAM_PROTO_SignData [14:01:49]wFMCommunicate request_size=4 [14:01:49]MH_SAM_APDU [14:01:49]CAPDU: 80 0D 01 02 [14:01:49]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:49]Read from MH i2c: E2 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [14:01:49]RAPDU: 90 00 [14:01:49]wFMCommunicate OK [14:01:49]wFMCommunicate request_size=255 [14:01:49]MH_SAM_APDU [14:01: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 4B 53 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 5F 02 00 35 04 06 00 62 [14:01:49]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 4B 53 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 5F 02 00 35 04 06 00 62 00 00 DA [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:49]Read from MH i2c: E2 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [14:01:49]RAPDU: 90 00 [14:01:49]wFMCommunicate OK [14:01:49]wFMCommunicate request_size=10 [14:01:49]MH_SAM_APDU [14:01:49]CAPDU: 80 0D 02 02 05 80 A2 7D 62 4B [14:01:49]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 80 A2 7D 62 4B 00 00 93 [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:49]Read from MH i2c: E2 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [14:01:49]RAPDU: 90 00 [14:01:49]wFMCommunicate OK [14:01:49]wFMCommunicate request_size=4 [14:01:49]MH_SAM_APDU [14:01:49]CAPDU: 80 0D 03 02 [14:01:49]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:49]Read from MH i2c: E2 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 0B 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 0B 00 C4 00 00 C7 58 A9 B1 F6 36 84 75 90 00 DE [14:01:49]RAPDU: C7 58 A9 B1 F6 36 84 75 90 00 [14:01:49]wFMCommunicate OK [14:01:49]SAM_PROTO_SignData done [14:01:49]FM_MakeSignedData done [14:01:49]CreateOFDProtocolMessage [14:01:49]wFMCommunicate request_size=4 [14:01:49]MH_SAM_APDU [14:01:49]CAPDU: 80 11 00 00 [14:01:49]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:49]Read from MH i2c: E2 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 17 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 94 [14:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:01:49]wFMCommunicate OK [14:01:49]CreateOFDProtocolMessage done [14:01:49]OFDSenderStorePacket 155545 [14:01:49]StoreOFDPacket docnum=155545 [14:01:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 59 58 07 01 8B 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 4B 53 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 5F 02 00 35 04 06 00 62 80 A2 7D 62 4B C7 58 A9 B1 F6 36 84 75 [14:01:49]CheckFolder [14:01:49]dirname=/storage/ofd_packets [14:01:49]CheckFolder done [14:01:49]ProducePacketName [14:01:49]name=ofd_packets/00155545 [14:01:49]NVStorageSaveData ofd_packets/00155545 [14:01:49]File name is /storage/ofd_packets/00155545 [14:01:49]Write 301 bytes [14:01:49]NVStorageSaveData done [14:01:49]OFDSenderStorePacket done [14:01:49]KKMCreateOFDPacket done [14:01:49]NVStorageSaveData kkm_last_timestamp [14:01:49]File name is /storage/kkm_last_timestamp [14:01:49]Write 4 bytes [14:01:49]NVStorageSaveData done [14:01:49]ExternCall_PrintAddStr [14:01:49]wPrintStart [14:01:49]Write to MH i2c: 01 00 00 C6 00 C6 [14:01:49]Write i2c OK [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: 01 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: 01 07 00 [14:01:49]MH_I2C_Read... [14:01:49]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [14:01:49]RasterBufferAndPrint [14:01:49]line Счет N : (1)98348 [14:01:49]line ИНН: 02508201610067 [14:01:49]line Контрольно-Кассовый Чек [14:01:49]line ПРОДАЖА [14:01:49]line ТРК (МРК, ГНК) : 21 [14:01:49]line Товар: 2710124130 [14:01:49]line Аи-92-К-5 [14:01:49]line 5.980 * 66.90 [14:01:49]line = 400.06 [14:01:49]line НДС 12% НСП 1% [14:01:49]line > о реализуемом товаре [14:01:49]line ОКРУГЛЕНИЕ: -0.06 [14:01:49]line ИТОГО: 400.00 [14:01:49]line Внесено: 400.00 [14:01:50]line СДАЧА: 0.00 [14:01:50]line НСП 1% : 3.54 [14:01:50]line НДС 12% : 42.48 [14:01:50]line Наличными: 400.00 [14:01:50]line Безнал.: 0.00 [14:01:50]line Место: АЗС № 143 "Партнер Нефть" [14:01:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:01:50]line СНО: Общий режим [14:01:50]line Чек 170 24.10.2024 14:01 [14:01:50]line Смена: 534 ФФД: 1.0 [14:01:50]line ЗНМ: 0300000096 [14:01:50]line РНМ: 0000000000091693 [14:01:50]line Версия ККМ: 001 [14:01:50]line ФМ: 0000000000871792 [14:01:50]line ФД: 155545 [14:01:50]line ФПД: 108304621462091 [14:01:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140147&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155545&fm=108304621462091&tin=02508201610067®Number=0000000000091693&sum=40000 [14:01:50]OFD Sender: Processing packet 155545 [packets to send 31, broken 30] [14:01:50]ProducePacketName [14:01:50]name=ofd_packets/00155545 [14:01:50]OFD Sender: To server: pG, [14:01:50]CommunicateWithHost lk.salyk.kg:30040 [14:01:50]ConnectInit lk.salyk.kg [14:01:50]written 0, free lines is 4095 [14:01:50]Connected sock=10 [14:01: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 39 32 0F 01 00 00 59 58 07 01 8B 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 4B 53 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 5F 02 00 35 04 06 00 62 80 A2 7D 62 4B C7 58 A9 B1 F6 36 84 75 [14:01: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 39 32 4F 00 00 00 A9 25 47 00 CE 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 39 32 10 04 04 00 99 5F 02 00 F4 03 04 00 C4 F8 19 67 B6 04 01 00 00 FE 48 23 E3 B4 30 A7 FA [14:01:50]CommunicateWithHost err = 0 [14:01:50]CheckOFDResponse [14:01:50]1017 (14) - 77093643461234 [14:01:50]1041 (16) - 0000000000871792 [14:01:50]1040 (4) - 155545 [14:01:50]1012 (4) - 24.10.2024 07:35 [14:01:50]1206 (1) - 0 [14:01:50]OFD Sender: Remove packet 155545 [14:01:50]ProducePacketName [14:01:50]name=ofd_packets/00155545 [14:01:50]NVStorageDeleteData [14:01:50]Write to MH i2c: 01 00 00 F1 00 F1 [14:01:50]Write i2c OK [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: 01 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: 01 07 00 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 E9 0C ED [14:01:50]RasterBufferAndPrint [14:01:50]line [14:01:50]line [14:01:50]line [14:01:50]line [14:01:50]line [14:01:50]written 0, free lines is 3317 [14:01:50]process_action close_receipt done [14:01:50]requested_data is exist [14:01:50]produce_requested_data [14:01:50]requested_item fm.sn is exist - process it [14:01:50]wFMCommunicate request_size=4 [14:01:50]MH_SAM_APDU [14:01:50]CAPDU: 80 11 00 00 [14:01:50]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [14:01:50]Write i2c OK [14:01:50]MH_I2C_Read... [14:01:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:50]Read from MH i2c: E2 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: E2 17 00 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C7 [14:01:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:01:50]wFMCommunicate OK [14:01:50]requested_item fd.num is exist - process it [14:01:50]SAM_PROTO_GetFieldsCounters [14:01:50]wFMCommunicate request_size=4 [14:01:50]MH_SAM_APDU [14:01:50]CAPDU: 80 13 00 00 [14:01:50]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [14:01:50]Write i2c OK [14:01:50]MH_I2C_Read... [14:01:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:50]Read from MH i2c: E2 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: E2 62 00 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: E2 62 00 F9 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 99 5F 02 00 0E 04 04 00 16 02 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 AB [14:01: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 99 5F 02 00 0E 04 04 00 16 02 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 [14:01:50]wFMCommunicate OK [14:01:50]SAM_PROTO_GetFieldsCounters done [14:01:50]requested_item shift.num is exist - process it [14:01:50]requested_item shift.opened is exist - process it [14:01:50]req_shift_opened [14:01:50]FM_GetShiftState [14:01:50]SAM_PROTO_GetShiftState [14:01:50]wFMCommunicate request_size=4 [14:01:50]MH_SAM_APDU [14:01:50]CAPDU: 80 13 01 00 [14:01:50]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [14:01:50]Write i2c OK [14:01:50]MH_I2C_Read... [14:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:50]Read from MH i2c: E2 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: E2 0E 00 [14:01:50]MH_I2C_Read... [14:01:50]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 C4 [14:01:50]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:01:50]wFMCommunicate OK [14:01:50]SAM_PROTO_GetShiftState done [14:01:50]FM_GetShiftState done [14:01:50]req_shift_opened done [14:01:50]requested_item shift.open_date is exist - process it [14:01:50]req_shift_open_date [14:01:50]req_shift_open_date done [14:01:50]produce_requested_data done [14:01:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155545,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:01:50]process_action_free close_receipt [14:01:50]json_value_free [14:01:50]json_value_free done [14:01:50]process_json_proto returns [14:01:50]Send response to host [14:01:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155545,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:01:50]free response buf [14:01:50]execute_script done [14:01:50]execute_script returns [14:01:50]free content buf [14:01:50]Sock 9.Close socket [14:01:50]Sock 9.Thread stoped [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]accept exits with 6 [14:03:25]New connection [14:03:25]New thread 3066637668 created [14:03:25]Thread 3066781028 joined [14:03:25]Waiting for new connection... [14:03:25] Sock 6.Parse request [14:03:25]Sock 6.Check first char [14:03:25]Sock 6.First char is OK [14:03:25]request: POST /json_proto HTTP/1.0 [14:03:25]Method: POST [14:03:25]URL: /json_proto [14:03:25]Method is POST - this is cgi request [14:03:25]url: /json_proto [14:03:25]query_string will be loaded in cgi processing [14:03:25]execute_cgi json_proto POST (null) [14:03:25]execute_cgi path=json_proto method=POST [14:03:25]POST find Content-Length [14:03:25]Host: 172.17.63.3:8080 [14:03:25]Content-Length: 676 [14:03:25]Content-Type: application/json [14:03:25] [14:03:25]POST finish read [14:03:25]Found Content-Length = 676 [14:03:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:25]execute_script... [14:03: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)98349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:25]POST & json_proto [14:03:25]process_json_proto [14:03:25]json parsed OK: [14:03:25]protocol is kg_v1.0 [14:03:25]action value=close_receipt [14:03:25]process_action close_receipt [14:03:25]cmd_close_receipt [14:03:25]MH_GetDate [14:03:25]Write to MH i2c: F0 00 00 FB 00 EA [14:03:25]Write i2c OK [14:03:25]MH_I2C_Read... [14:03:25]Read from MH i2c: F0 [14:03:25]MH_I2C_Read... [14:03:25]Read from MH i2c: F0 09 00 [14:03:25]MH_I2C_Read... [14:03:25]Read from MH i2c: F0 09 00 FB 00 00 AD 53 1A 67 50 D1 6C 64 65 [14:03:25]GetLastDocTimeStamp 1729778507 [14:03:25]current date 1729778605 [14:03:25]FM_GetShiftState [14:03:25]SAM_PROTO_GetShiftState [14:03:25]wFMCommunicate request_size=4 [14:03:25]MH_SAM_APDU [14:03:25]CAPDU: 80 13 01 00 [14:03:25]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [14:03:25]Write i2c OK [14:03:25]MH_I2C_Read... [14:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:25]Read from MH i2c: E2 [14:03:25]MH_I2C_Read... [14:03:25]Read from MH i2c: E2 0E 00 [14:03:25]MH_I2C_Read... [14:03:25]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 C6 [14:03:25]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:03:25]wFMCommunicate OK [14:03:25]SAM_PROTO_GetShiftState done [14:03:25]FM_GetShiftState done [14:03:25]opened in 1729729836 [14:03:25]opened+sec_in_day 1729816236 [14:03:25]quantity*price = 50041 [14:03:25]sum+1 = 50042 [14:03:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 171 24.10.2024 14:03 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155546 ФПД: 277223137356948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140325&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155546&fm=277223137356948&tin=02508201610067®Number=0000000000091693&sum=50000 [14:03:26]StoreToDocumentArchive [14:03:26]shift 534 fd 155546 [14:03:26]save to /storage/0534/doc_00155546 [14:03:26]save last doc name /storage/0534/doc_00155546 to /storage/kkm_last_doc_name [14:03:26]save OK [14:03:26]Clear old archive folders... [14:03:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:26]tlvbuf is 01FAB110 [14:03:26]SAM_PROTO_ClearQueue [14:03:26]wFMCommunicate request_size=4 [14:03:26]MH_SAM_APDU [14:03:26]CAPDU: 80 09 00 00 [14:03:26]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [14:03:26]Write i2c OK [14:03:26]MH_I2C_Read... [14:03:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:26]Read from MH i2c: E2 [14:03:26]MH_I2C_Read... [14:03:26]Read from MH i2c: E2 03 00 [14:03:26]MH_I2C_Read... [14:03:26]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [14:03:26]RAPDU: 90 00 [14:03:26]wFMCommunicate OK [14:03:26]SAM_PROTO_ClearQueue done [14:03:26]KKMCreateOFDPacket [14:03:26]OFDProtocolAddRootSTLVToBuf [14:03:26]FM_MakeSignedData [14:03:26]FM_MakeSignedData [14:03:26]SAM_PROTO_SignData [14:03:26]wFMCommunicate request_size=4 [14:03:26]MH_SAM_APDU [14:03:26]CAPDU: 80 0D 01 02 [14:03:26]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [14:03:26]Write i2c OK [14:03:26]MH_I2C_Read... [14:03:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:26]Read from MH i2c: E2 [14:03:26]MH_I2C_Read... [14:03:26]Read from MH i2c: E2 03 00 [14:03:26]MH_I2C_Read... [14:03:26]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [14:03:26]RAPDU: 90 00 [14:03:26]wFMCommunicate OK [14:03:26]wFMCommunicate request_size=255 [14:03:26]MH_SAM_APDU [14:03: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 AD 53 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 5F 02 00 35 04 06 00 FC [14:03:26]Write to MH i2c: E2 02 01 0B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 AD 53 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 5F 02 00 35 04 06 00 FC 00 00 53 [14:03:26]Write i2c OK [14:03:26]MH_I2C_Read... [14:03:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:27]Read from MH i2c: E2 [14:03:27]MH_I2C_Read... [14:03:27]Read from MH i2c: E2 03 00 [14:03:27]MH_I2C_Read... [14:03:27]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [14:03:27]RAPDU: 90 00 [14:03:27]wFMCommunicate OK [14:03:27]wFMCommunicate request_size=10 [14:03:27]MH_SAM_APDU [14:03:27]CAPDU: 80 0D 02 02 05 22 0A A0 2C 94 [14:03:27]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 22 0A A0 2C 94 00 00 1D [14:03:27]Write i2c OK [14:03:27]MH_I2C_Read... [14:03:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:27]Read from MH i2c: E2 [14:03:27]MH_I2C_Read... [14:03:27]Read from MH i2c: E2 03 00 [14:03:27]MH_I2C_Read... [14:03:27]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [14:03:27]RAPDU: 90 00 [14:03:27]wFMCommunicate OK [14:03:27]wFMCommunicate request_size=4 [14:03:27]MH_SAM_APDU [14:03:27]CAPDU: 80 0D 03 02 [14:03:27]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [14:03:27]Write i2c OK [14:03:27]MH_I2C_Read... [14:03:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:27]Read from MH i2c: E2 [14:03:27]MH_I2C_Read... [14:03:27]Read from MH i2c: E2 0B 00 [14:03:27]MH_I2C_Read... [14:03:27]Read from MH i2c: E2 0B 00 0D 01 00 77 EB 4C 6F 53 1C 92 09 90 00 B1 [14:03:27]RAPDU: 77 EB 4C 6F 53 1C 92 09 90 00 [14:03:27]wFMCommunicate OK [14:03:27]SAM_PROTO_SignData done [14:03:27]FM_MakeSignedData done [14:03:27]CreateOFDProtocolMessage [14:03:27]wFMCommunicate request_size=4 [14:03:27]MH_SAM_APDU [14:03:27]CAPDU: 80 11 00 00 [14:03:27]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [14:03:27]Write i2c OK [14:03:27]MH_I2C_Read... [14:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:27]Read from MH i2c: E2 [14:03:27]MH_I2C_Read... [14:03:27]Read from MH i2c: E2 17 00 [14:03:27]MH_I2C_Read... [14:03:27]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DE [14:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:03:27]wFMCommunicate OK [14:03:27]CreateOFDProtocolMessage done [14:03:27]OFDSenderStorePacket 155546 [14:03:27]StoreOFDPacket docnum=155546 [14:03:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4B E3 07 01 B3 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 AD 53 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 5F 02 00 35 04 06 00 FC 22 0A A0 2C 94 77 EB 4C 6F 53 1C 92 09 [14:03:27]CheckFolder [14:03:27]dirname=/storage/ofd_packets [14:03:27]CheckFolder done [14:03:27]ProducePacketName [14:03:27]name=ofd_packets/00155546 [14:03:27]NVStorageSaveData ofd_packets/00155546 [14:03:27]File name is /storage/ofd_packets/00155546 [14:03:27]Write 301 bytes [14:03:27]NVStorageSaveData done [14:03:27]OFDSenderStorePacket done [14:03:27]KKMCreateOFDPacket done [14:03:27]NVStorageSaveData kkm_last_timestamp [14:03:27]File name is /storage/kkm_last_timestamp [14:03:27]Write 4 bytes [14:03:27]NVStorageSaveData done [14:03:27]ExternCall_PrintAddStr [14:03:27]wPrintStart [14:03:27]Write to MH i2c: 01 00 00 0F 01 10 [14:03:27]Write i2c OK [14:03:27]MH_I2C_Read... [14:03:27]Read from MH i2c: 01 [14:03:27]MH_I2C_Read... [14:03:27]Read from MH i2c: 01 07 00 [14:03:27]MH_I2C_Read... [14:03:27]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [14:03:27]RasterBufferAndPrint [14:03:27]line Счет N : (1)98349 [14:03:27]line ИНН: 02508201610067 [14:03:27]line Контрольно-Кассовый Чек [14:03:27]line ПРОДАЖА [14:03:27]line ТРК (МРК, ГНК) : 11 [14:03:27]line Товар: 2710124130 [14:03:27]line Аи-92-К-5 [14:03:27]line 7.480 * 66.90 [14:03:27]line = 500.41 [14:03:27]line НДС 12% НСП 1% [14:03:27]line > о реализуемом товаре [14:03:27]line ОКРУГЛЕНИЕ: -0.41 [14:03:27]line ИТОГО: 500.00 [14:03:27]line Внесено: 500.00 [14:03:27]line СДАЧА: 0.00 [14:03:27]line НСП 1% : 4.43 [14:03:27]line НДС 12% : 53.14 [14:03:27]line Наличными: 500.00 [14:03:27]line Безнал.: 0.00 [14:03:27]line Место: АЗС № 143 "Партнер Нефть" [14:03:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:03:27]line СНО: Общий режим [14:03:27]line Чек 171 24.10.2024 14:03 [14:03:27]line Смена: 534 ФФД: 1.0 [14:03:27]line ЗНМ: 0300000096 [14:03:27]line РНМ: 0000000000091693 [14:03:27]line Версия ККМ: 001 [14:03:27]line ФМ: 0000000000871792 [14:03:27]line ФД: 155546 [14:03:27]line ФПД: 277223137356948 [14:03:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140325&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155546&fm=277223137356948&tin=02508201610067®Number=0000000000091693&sum=50000 [14:03:27]OFD Sender: Processing packet 155546 [packets to send 31, broken 30] [14:03:27]ProducePacketName [14:03:27]name=ofd_packets/00155546 [14:03:27]OFD Sender: To server: pG, [14:03:27]CommunicateWithHost lk.salyk.kg:30040 [14:03:27]ConnectInit lk.salyk.kg [14:03:27]written 0, free lines is 4095 [14:03:27]Connected sock=10 [14:03: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 39 32 0F 01 00 00 4B E3 07 01 B3 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 AD 53 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 5F 02 00 35 04 06 00 FC 22 0A A0 2C 94 77 EB 4C 6F 53 1C 92 09 [14:03: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 39 32 4F 00 00 00 A0 26 47 00 22 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 39 32 10 04 04 00 9A 5F 02 00 F4 03 04 00 26 F9 19 67 B6 04 01 00 00 7B F8 6F 0C DD F3 6B 58 [14:03:27]CommunicateWithHost err = 0 [14:03:27]CheckOFDResponse [14:03:27]1017 (14) - 77093643461234 [14:03:27]1041 (16) - 0000000000871792 [14:03:27]1040 (4) - 155546 [14:03:27]1012 (4) - 24.10.2024 07:37 [14:03:27]1206 (1) - 0 [14:03:27]OFD Sender: Remove packet 155546 [14:03:27]ProducePacketName [14:03:27]name=ofd_packets/00155546 [14:03:27]NVStorageDeleteData [14:03:28]Write to MH i2c: 01 00 00 3A 01 3B [14:03:28]Write i2c OK [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: 01 [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: 01 07 00 [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 D3 0C 21 [14:03:28]RasterBufferAndPrint [14:03:28]line [14:03:28]line [14:03:28]line [14:03:28]line [14:03:28]line [14:03:28]written 0, free lines is 3287 [14:03:28]process_action close_receipt done [14:03:28]requested_data is exist [14:03:28]produce_requested_data [14:03:28]requested_item fm.sn is exist - process it [14:03:28]wFMCommunicate request_size=4 [14:03:28]MH_SAM_APDU [14:03:28]CAPDU: 80 11 00 00 [14:03:28]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [14:03:28]Write i2c OK [14:03:28]MH_I2C_Read... [14:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:28]Read from MH i2c: E2 [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: E2 17 00 [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: E2 17 00 41 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 11 [14:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:03:28]wFMCommunicate OK [14:03:28]requested_item fd.num is exist - process it [14:03:28]SAM_PROTO_GetFieldsCounters [14:03:28]wFMCommunicate request_size=4 [14:03:28]MH_SAM_APDU [14:03:28]CAPDU: 80 13 00 00 [14:03:28]Write to MH i2c: E2 08 00 42 01 80 13 00 00 00 00 00 00 BF [14:03:28]Write i2c OK [14:03:28]MH_I2C_Read... [14:03:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:28]Read from MH i2c: E2 [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: E2 62 00 [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: E2 62 00 42 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9A 5F 02 00 0E 04 04 00 16 02 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 F9 [14:03: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9A 5F 02 00 0E 04 04 00 16 02 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 [14:03:28]wFMCommunicate OK [14:03:28]SAM_PROTO_GetFieldsCounters done [14:03:28]requested_item shift.num is exist - process it [14:03:28]requested_item shift.opened is exist - process it [14:03:28]req_shift_opened [14:03:28]FM_GetShiftState [14:03:28]SAM_PROTO_GetShiftState [14:03:28]wFMCommunicate request_size=4 [14:03:28]MH_SAM_APDU [14:03:28]CAPDU: 80 13 01 00 [14:03:28]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [14:03:28]Write i2c OK [14:03:28]MH_I2C_Read... [14:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:28]Read from MH i2c: E2 [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: E2 0E 00 [14:03:28]MH_I2C_Read... [14:03:28]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 0E [14:03:28]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:03:28]wFMCommunicate OK [14:03:28]SAM_PROTO_GetShiftState done [14:03:28]FM_GetShiftState done [14:03:28]req_shift_opened done [14:03:28]requested_item shift.open_date is exist - process it [14:03:28]req_shift_open_date [14:03:28]req_shift_open_date done [14:03:28]produce_requested_data done [14:03:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155546,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:03:28]process_action_free close_receipt [14:03:28]json_value_free [14:03:28]json_value_free done [14:03:28]process_json_proto returns [14:03:28]Send response to host [14:03:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155546,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:03:28]free response buf [14:03:28]execute_script done [14:03:28]execute_script returns [14:03:28]free content buf [14:03:28]Sock 6.Close socket [14:03:28]Sock 6.Thread stoped [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:02]accept exits with 9 [14:06:02]New connection [14:06:02]New thread 3066781028 created [14:06:02]Thread 3066637668 joined [14:06:02]Waiting for new connection... [14:06:02] Sock 9.Parse request [14:06:02]Sock 9.Check first char [14:06:02]Sock 9.First char is OK [14:06:02]request: POST /json_proto HTTP/1.0 [14:06:02]Method: POST [14:06:02]URL: /json_proto [14:06:02]Method is POST - this is cgi request [14:06:02]url: /json_proto [14:06:02]query_string will be loaded in cgi processing [14:06:02]execute_cgi json_proto POST (null) [14:06:02]execute_cgi path=json_proto method=POST [14:06:02]POST find Content-Length [14:06:02]Host: 172.17.63.3:8080 [14:06:02]Content-Length: 676 [14:06:02]Content-Type: application/json [14:06:02] [14:06:02]POST finish read [14:06:02]Found Content-Length = 676 [14:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:02]execute_script... [14:06:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:02]POST & json_proto [14:06:02]process_json_proto [14:06:02]json parsed OK: [14:06:02]protocol is kg_v1.0 [14:06:02]action value=close_receipt [14:06:02]process_action close_receipt [14:06:02]cmd_close_receipt [14:06:02]MH_GetDate [14:06:02]Write to MH i2c: F0 00 00 44 01 34 [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: F0 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: F0 09 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: F0 09 00 44 01 00 4A 54 1A 67 50 D1 6C 64 4D [14:06:02]GetLastDocTimeStamp 1729778605 [14:06:02]current date 1729778762 [14:06:02]FM_GetShiftState [14:06:02]SAM_PROTO_GetShiftState [14:06:02]wFMCommunicate request_size=4 [14:06:02]MH_SAM_APDU [14:06:02]CAPDU: 80 13 01 00 [14:06:02]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [14:06:02]Write i2c OK [14:06:02]MH_I2C_Read... [14:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:02]Read from MH i2c: E2 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 0E 00 [14:06:02]MH_I2C_Read... [14:06:02]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 10 [14:06:02]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:06:02]wFMCommunicate OK [14:06:02]SAM_PROTO_GetShiftState done [14:06:02]FM_GetShiftState done [14:06:02]opened in 1729729836 [14:06:02]opened+sec_in_day 1729816236 [14:06:02]quantity*price = 50041 [14:06:02]sum+1 = 50042 [14:06:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 172 24.10.2024 14:06 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155547 ФПД: 259916283002455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140602&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155547&fm=259916283002455&tin=02508201610067®Number=0000000000091693&sum=50000 [14:06:03]StoreToDocumentArchive [14:06:03]shift 534 fd 155547 [14:06:03]save to /storage/0534/doc_00155547 [14:06:03]save last doc name /storage/0534/doc_00155547 to /storage/kkm_last_doc_name [14:06:03]save OK [14:06:03]Clear old archive folders... [14:06:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:03]tlvbuf is 01F25EE0 [14:06:03]SAM_PROTO_ClearQueue [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 09 00 00 [14:06:03]Write to MH i2c: E2 08 00 52 01 80 09 00 00 00 00 00 00 C5 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 03 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [14:06:03]RAPDU: 90 00 [14:06:03]wFMCommunicate OK [14:06:03]SAM_PROTO_ClearQueue done [14:06:03]KKMCreateOFDPacket [14:06:03]OFDProtocolAddRootSTLVToBuf [14:06:03]FM_MakeSignedData [14:06:03]FM_MakeSignedData [14:06:03]SAM_PROTO_SignData [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 0D 01 02 [14:06:03]Write to MH i2c: E2 08 00 53 01 80 0D 01 02 00 00 00 00 CD [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 03 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [14:06:03]RAPDU: 90 00 [14:06:03]wFMCommunicate OK [14:06:03]wFMCommunicate request_size=255 [14:06:03]MH_SAM_APDU [14:06: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 4A 54 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 5F 02 00 35 04 06 00 EC [14:06:03]Write to MH i2c: E2 02 01 54 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 4A 54 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 5F 02 00 35 04 06 00 EC 00 00 2C [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]OFD Sender: No OFD packet to send [14:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 03 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [14:06:03]RAPDU: 90 00 [14:06:03]wFMCommunicate OK [14:06:03]wFMCommunicate request_size=10 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 0D 02 02 05 64 79 B8 3E 57 [14:06:03]Write to MH i2c: E2 0D 00 55 01 80 0D 02 02 05 00 64 79 B8 3E 57 00 00 04 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 03 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [14:06:03]RAPDU: 90 00 [14:06:03]wFMCommunicate OK [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 0D 03 02 [14:06:03]Write to MH i2c: E2 08 00 56 01 80 0D 03 02 00 00 00 00 D2 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 0B 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 0B 00 56 01 00 EA A4 38 83 0D 40 3E 4F 90 00 F6 [14:06:03]RAPDU: EA A4 38 83 0D 40 3E 4F 90 00 [14:06:03]wFMCommunicate OK [14:06:03]SAM_PROTO_SignData done [14:06:03]FM_MakeSignedData done [14:06:03]CreateOFDProtocolMessage [14:06:03]wFMCommunicate request_size=4 [14:06:03]MH_SAM_APDU [14:06:03]CAPDU: 80 11 00 00 [14:06:03]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [14:06:03]Write i2c OK [14:06:03]MH_I2C_Read... [14:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:03]Read from MH i2c: E2 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 17 00 [14:06:03]MH_I2C_Read... [14:06:03]Read from MH i2c: E2 17 00 57 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 27 [14:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:06:03]wFMCommunicate OK [14:06:03]CreateOFDProtocolMessage done [14:06:03]OFDSenderStorePacket 155547 [14:06:03]StoreOFDPacket docnum=155547 [14:06:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9E F0 07 01 90 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 4A 54 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 5F 02 00 35 04 06 00 EC 64 79 B8 3E 57 EA A4 38 83 0D 40 3E 4F [14:06:03]CheckFolder [14:06:03]dirname=/storage/ofd_packets [14:06:03]CheckFolder done [14:06:03]ProducePacketName [14:06:03]name=ofd_packets/00155547 [14:06:03]NVStorageSaveData ofd_packets/00155547 [14:06:03]File name is /storage/ofd_packets/00155547 [14:06:03]Write 301 bytes [14:06:03]NVStorageSaveData done [14:06:03]OFDSenderStorePacket done [14:06:03]KKMCreateOFDPacket done [14:06:03]NVStorageSaveData kkm_last_timestamp [14:06:03]File name is /storage/kkm_last_timestamp [14:06:03]Write 4 bytes [14:06:03]NVStorageSaveData done [14:06:03]ExternCall_PrintAddStr [14:06:03]wPrintStart [14:06:03]Write to MH i2c: 01 00 00 58 01 59 [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 58 01 00 00 00 00 00 FF 0F 6E [14:06:03]RasterBufferAndPrint [14:06:03]line Счет N : (1)98350 [14:06:03]line ИНН: 02508201610067 [14:06:03]line Контрольно-Кассовый Чек [14:06:03]line ПРОДАЖА [14:06:03]line ТРК (МРК, ГНК) : 21 [14:06:03]line Товар: 2710124130 [14:06:03]line Аи-92-К-5 [14:06:03]line 7.480 * 66.90 [14:06:03]line = 500.41 [14:06:03]line НДС 12% НСП 1% [14:06:03]line > о реализуемом товаре [14:06:03]line ОКРУГЛЕНИЕ: -0.41 [14:06:03]line ИТОГО: 500.00 [14:06:03]line Внесено: 500.00 [14:06:03]line СДАЧА: 0.00 [14:06:03]line НСП 1% : 4.43 [14:06:03]line НДС 12% : 53.14 [14:06:03]line Наличными: 500.00 [14:06:03]line Безнал.: 0.00 [14:06:03]line Место: АЗС № 143 "Партнер Нефть" [14:06:03]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:06:03]line СНО: Общий режим [14:06:03]line Чек 172 24.10.2024 14:06 [14:06:03]line Смена: 534 ФФД: 1.0 [14:06:03]line ЗНМ: 0300000096 [14:06:03]line РНМ: 0000000000091693 [14:06:03]line Версия ККМ: 001 [14:06:03]line ФМ: 0000000000871792 [14:06:03]line ФД: 155547 [14:06:03]line ФПД: 259916283002455 [14:06:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140602&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155547&fm=259916283002455&tin=02508201610067®Number=0000000000091693&sum=50000 [14:06:04]OFD Sender: Processing packet 155547 [packets to send 31, broken 30] [14:06:04]ProducePacketName [14:06:04]name=ofd_packets/00155547 [14:06:04]OFD Sender: To server: pG, [14:06:04]CommunicateWithHost lk.salyk.kg:30040 [14:06:04]ConnectInit lk.salyk.kg [14:06:04]written 0, free lines is 4095 [14:06:04]Connected sock=10 [14:06:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9E F0 07 01 90 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 4A 54 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 5F 02 00 35 04 06 00 EC 64 79 B8 3E 57 EA A4 38 83 0D 40 3E 4F [14:06:04]Write to MH i2c: 01 00 00 83 01 84 [14:06: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 39 32 4F 00 00 00 13 65 47 00 B6 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 39 32 10 04 04 00 9B 5F 02 00 F4 03 04 00 C3 F9 19 67 B6 04 01 00 00 72 BF 3C 4E 69 06 D8 38 [14:06:04]CommunicateWithHost err = 0 [14:06:04]CheckOFDResponse [14:06:04]1017 (14) - 77093643461234 [14:06:04]1041 (16) - 0000000000871792 [14:06:04]1040 (4) - 155547 [14:06:04]1012 (4) - 24.10.2024 07:39 [14:06:04]1206 (1) - 0 [14:06:04]OFD Sender: Remove packet 155547 [14:06:04]ProducePacketName [14:06:04]name=ofd_packets/00155547 [14:06:04]NVStorageDeleteData [14:06:04]Write i2c OK [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: 01 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: 01 07 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 D7 0C 6E [14:06:04]RasterBufferAndPrint [14:06:04]line [14:06:04]line [14:06:04]line [14:06:04]line [14:06:04]line [14:06:04]written 0, free lines is 3300 [14:06:04]process_action close_receipt done [14:06:04]requested_data is exist [14:06:04]produce_requested_data [14:06:04]requested_item fm.sn is exist - process it [14:06:04]wFMCommunicate request_size=4 [14:06:04]MH_SAM_APDU [14:06:04]CAPDU: 80 11 00 00 [14:06:04]Write to MH i2c: E2 08 00 8A 01 80 11 00 00 00 00 00 00 05 [14:06:04]Write i2c OK [14:06:04]MH_I2C_Read... [14:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:04]Read from MH i2c: E2 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 17 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 17 00 8A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5A [14:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:06:04]wFMCommunicate OK [14:06:04]requested_item fd.num is exist - process it [14:06:04]SAM_PROTO_GetFieldsCounters [14:06:04]wFMCommunicate request_size=4 [14:06:04]MH_SAM_APDU [14:06:04]CAPDU: 80 13 00 00 [14:06:04]Write to MH i2c: E2 08 00 8B 01 80 13 00 00 00 00 00 00 08 [14:06:04]Write i2c OK [14:06:04]MH_I2C_Read... [14:06:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:04]Read from MH i2c: E2 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 62 00 [14:06:04]MH_I2C_Read... [14:06:04]Read from MH i2c: E2 62 00 8B 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9B 5F 02 00 0E 04 04 00 16 02 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 46 [14:06: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9B 5F 02 00 0E 04 04 00 16 02 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 [14:06:04]wFMCommunicate OK [14:06:04]SAM_PROTO_GetFieldsCounters done [14:06:04]requested_item shift.num is exist - process it [14:06:04]requested_item shift.opened is exist - process it [14:06:04]req_shift_opened [14:06:04]FM_GetShiftState [14:06:04]SAM_PROTO_GetShiftState [14:06:05]wFMCommunicate request_size=4 [14:06:05]MH_SAM_APDU [14:06:05]CAPDU: 80 13 01 00 [14:06:05]Write to MH i2c: E2 08 00 8C 01 80 13 01 00 00 00 00 00 0A [14:06:05]Write i2c OK [14:06:05]MH_I2C_Read... [14:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:05]Read from MH i2c: E2 [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: E2 0E 00 [14:06:05]MH_I2C_Read... [14:06:05]Read from MH i2c: E2 0E 00 8C 01 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 57 [14:06:05]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:06:05]wFMCommunicate OK [14:06:05]SAM_PROTO_GetShiftState done [14:06:05]FM_GetShiftState done [14:06:05]req_shift_opened done [14:06:05]requested_item shift.open_date is exist - process it [14:06:05]req_shift_open_date [14:06:05]req_shift_open_date done [14:06:05]produce_requested_data done [14:06:05]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155547,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:06:05]process_action_free close_receipt [14:06:05]json_value_free [14:06:05]json_value_free done [14:06:05]process_json_proto returns [14:06:05]Send response to host [14:06:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155547,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:06:05]free response buf [14:06:05]execute_script done [14:06:05]execute_script returns [14:06:05]free content buf [14:06:05]Sock 9.Close socket [14:06:05]Sock 9.Thread stoped [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:42]accept exits with 8 [14:08:42]New connection [14:08:42]New thread 3066637668 created [14:08:42]Thread 3066781028 joined [14:08:42]Waiting for new connection... [14:08:42] Sock 8.Parse request [14:08:42]Sock 8.Check first char [14:08:42]Sock 8.First char is OK [14:08:42]request: POST /json_proto HTTP/1.0 [14:08:42]Method: POST [14:08:42]URL: /json_proto [14:08:42]Method is POST - this is cgi request [14:08:42]url: /json_proto [14:08:42]query_string will be loaded in cgi processing [14:08:42]execute_cgi json_proto POST (null) [14:08:42]execute_cgi path=json_proto method=POST [14:08:42]POST find Content-Length [14:08:42]Host: 172.17.63.3:8080 [14:08:42]Content-Length: 676 [14:08:42]Content-Type: application/json [14:08:42] [14:08:42]POST finish read [14:08:42]Found Content-Length = 676 [14:08:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:42]execute_script... [14:08: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)98351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:42]POST & json_proto [14:08:42]process_json_proto [14:08:42]json parsed OK: [14:08:42]protocol is kg_v1.0 [14:08:42]action value=close_receipt [14:08:42]process_action close_receipt [14:08:42]cmd_close_receipt [14:08:42]MH_GetDate [14:08:42]Write to MH i2c: F0 00 00 8D 01 7D [14:08:42]Write i2c OK [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: F0 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: F0 09 00 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: F0 09 00 8D 01 00 EA 54 1A 67 50 D1 6C 64 36 [14:08:42]GetLastDocTimeStamp 1729778762 [14:08:42]current date 1729778922 [14:08:42]FM_GetShiftState [14:08:42]SAM_PROTO_GetShiftState [14:08:42]wFMCommunicate request_size=4 [14:08:42]MH_SAM_APDU [14:08:42]CAPDU: 80 13 01 00 [14:08:42]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [14:08:42]Write i2c OK [14:08:42]MH_I2C_Read... [14:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:42]Read from MH i2c: E2 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: E2 0E 00 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 59 [14:08:42]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:08:42]wFMCommunicate OK [14:08:42]SAM_PROTO_GetShiftState done [14:08:42]FM_GetShiftState done [14:08:42]opened in 1729729836 [14:08:42]opened+sec_in_day 1729816236 [14:08:42]quantity*price = 30038 [14:08:42]sum+1 = 30039 [14:08:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 173 24.10.2024 14:08 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155548 ФПД: 274797669494994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140842&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155548&fm=274797669494994&tin=02508201610067®Number=0000000000091693&sum=30000 [14:08:43]StoreToDocumentArchive [14:08:43]shift 534 fd 155548 [14:08:43]save to /storage/0534/doc_00155548 [14:08:43]save last doc name /storage/0534/doc_00155548 to /storage/kkm_last_doc_name [14:08:43]save OK [14:08:43]Clear old archive folders... [14:08:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:43]tlvbuf is 01F24A40 [14:08:43]SAM_PROTO_ClearQueue [14:08:43]wFMCommunicate request_size=4 [14:08:43]MH_SAM_APDU [14:08:43]CAPDU: 80 09 00 00 [14:08:43]Write to MH i2c: E2 08 00 9B 01 80 09 00 00 00 00 00 00 0E [14:08:43]Write i2c OK [14:08:43]MH_I2C_Read... [14:08:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:43]Read from MH i2c: E2 [14:08:43]MH_I2C_Read... [14:08:43]Read from MH i2c: E2 03 00 [14:08:43]MH_I2C_Read... [14:08:43]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [14:08:43]RAPDU: 90 00 [14:08:43]wFMCommunicate OK [14:08:43]SAM_PROTO_ClearQueue done [14:08:43]KKMCreateOFDPacket [14:08:43]OFDProtocolAddRootSTLVToBuf [14:08:43]FM_MakeSignedData [14:08:43]FM_MakeSignedData [14:08:43]SAM_PROTO_SignData [14:08:43]wFMCommunicate request_size=4 [14:08:43]MH_SAM_APDU [14:08:43]CAPDU: 80 0D 01 02 [14:08:43]Write to MH i2c: E2 08 00 9C 01 80 0D 01 02 00 00 00 00 16 [14:08:43]Write i2c OK [14:08:43]MH_I2C_Read... [14:08:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:44]Read from MH i2c: E2 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [14:08:44]RAPDU: 90 00 [14:08:44]wFMCommunicate OK [14:08:44]wFMCommunicate request_size=255 [14:08:44]MH_SAM_APDU [14:08: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 EA 54 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 5F 02 00 35 04 06 00 F9 [14:08:44]Write to MH i2c: E2 02 01 9D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 EA 54 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 5F 02 00 35 04 06 00 F9 00 00 18 [14:08:44]Write i2c OK [14:08:44]MH_I2C_Read... [14:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:44]Read from MH i2c: E2 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [14:08:44]RAPDU: 90 00 [14:08:44]wFMCommunicate OK [14:08:44]wFMCommunicate request_size=10 [14:08:44]MH_SAM_APDU [14:08:44]CAPDU: 80 0D 02 02 05 ED 51 79 B0 D2 [14:08:44]Write to MH i2c: E2 0D 00 9E 01 80 0D 02 02 05 00 ED 51 79 B0 D2 00 00 5C [14:08:44]Write i2c OK [14:08:44]MH_I2C_Read... [14:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:44]Read from MH i2c: E2 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [14:08:44]RAPDU: 90 00 [14:08:44]wFMCommunicate OK [14:08:44]wFMCommunicate request_size=4 [14:08:44]MH_SAM_APDU [14:08:44]CAPDU: 80 0D 03 02 [14:08:44]Write to MH i2c: E2 08 00 9F 01 80 0D 03 02 00 00 00 00 1B [14:08:44]Write i2c OK [14:08:44]MH_I2C_Read... [14:08:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:44]Read from MH i2c: E2 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 0B 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 0B 00 9F 01 00 54 9C 14 C1 B4 08 9E 13 90 00 4E [14:08:44]RAPDU: 54 9C 14 C1 B4 08 9E 13 90 00 [14:08:44]wFMCommunicate OK [14:08:44]SAM_PROTO_SignData done [14:08:44]FM_MakeSignedData done [14:08:44]CreateOFDProtocolMessage [14:08:44]wFMCommunicate request_size=4 [14:08:44]MH_SAM_APDU [14:08:44]CAPDU: 80 11 00 00 [14:08:44]Write to MH i2c: E2 08 00 A0 01 80 11 00 00 00 00 00 00 1B [14:08:44]Write i2c OK [14:08:44]MH_I2C_Read... [14:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:44]Read from MH i2c: E2 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 17 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: E2 17 00 A0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 70 [14:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:08:44]wFMCommunicate OK [14:08:44]CreateOFDProtocolMessage done [14:08:44]OFDSenderStorePacket 155548 [14:08:44]StoreOFDPacket docnum=155548 [14:08:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 00 5D 07 01 BB 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 EA 54 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 5F 02 00 35 04 06 00 F9 ED 51 79 B0 D2 54 9C 14 C1 B4 08 9E 13 [14:08:44]CheckFolder [14:08:44]dirname=/storage/ofd_packets [14:08:44]CheckFolder done [14:08:44]ProducePacketName [14:08:44]name=ofd_packets/00155548 [14:08:44]NVStorageSaveData ofd_packets/00155548 [14:08:44]File name is /storage/ofd_packets/00155548 [14:08:44]Write 301 bytes [14:08:44]NVStorageSaveData done [14:08:44]OFDSenderStorePacket done [14:08:44]KKMCreateOFDPacket done [14:08:44]NVStorageSaveData kkm_last_timestamp [14:08:44]File name is /storage/kkm_last_timestamp [14:08:44]Write 4 bytes [14:08:44]NVStorageSaveData done [14:08:44]ExternCall_PrintAddStr [14:08:44]wPrintStart [14:08:44]Write to MH i2c: 01 00 00 A1 01 A2 [14:08:44]Write i2c OK [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: 01 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: 01 07 00 [14:08:44]MH_I2C_Read... [14:08:44]Read from MH i2c: 01 07 00 A1 01 00 00 00 00 00 FF 0F B7 [14:08:44]RasterBufferAndPrint [14:08:44]line Счет N : (1)98351 [14:08:44]line ИНН: 02508201610067 [14:08:44]line Контрольно-Кассовый Чек [14:08:44]line ПРОДАЖА [14:08:44]line ТРК (МРК, ГНК) : 31 [14:08:44]line Товар: 2710124130 [14:08:44]line Аи-92-К-5 [14:08:44]line 4.490 * 66.90 [14:08:44]line = 300.38 [14:08:44]line НДС 12% НСП 1% [14:08:44]line > о реализуемом товаре [14:08:44]line ОКРУГЛЕНИЕ: -0.38 [14:08:44]line ИТОГО: 300.00 [14:08:44]line Внесено: 300.00 [14:08:44]line СДАЧА: 0.00 [14:08:44]line НСП 1% : 2.66 [14:08:44]line НДС 12% : 31.90 [14:08:44]line Наличными: 300.00 [14:08:44]line Безнал.: 0.00 [14:08:44]line Место: АЗС № 143 "Партнер Нефть" [14:08:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:08:44]line СНО: Общий режим [14:08:44]line Чек 173 24.10.2024 14:08 [14:08:44]line Смена: 534 ФФД: 1.0 [14:08:44]line ЗНМ: 0300000096 [14:08:44]line РНМ: 0000000000091693 [14:08:44]line Версия ККМ: 001 [14:08:44]line ФМ: 0000000000871792 [14:08:44]line ФД: 155548 [14:08:44]line ФПД: 274797669494994 [14:08:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140842&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155548&fm=274797669494994&tin=02508201610067®Number=0000000000091693&sum=30000 [14:08:44]OFD Sender: Processing packet 155548 [packets to send 31, broken 30] [14:08:44]ProducePacketName [14:08:44]name=ofd_packets/00155548 [14:08:44]OFD Sender: To server: pG, [14:08:44]CommunicateWithHost lk.salyk.kg:30040 [14:08:44]ConnectInit lk.salyk.kg [14:08:44]written 0, free lines is 4095 [14:08:44]Connected sock=10 [14:08: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 39 32 0F 01 00 00 00 5D 07 01 BB 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 EA 54 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 5F 02 00 35 04 06 00 F9 ED 51 79 B0 D2 54 9C 14 C1 B4 08 9E 13 [14:08: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 39 32 4F 00 00 00 31 82 47 00 DD 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 39 32 10 04 04 00 9C 5F 02 00 F4 03 04 00 63 FA 19 67 B6 04 01 00 00 AB 1A 02 A6 E0 20 97 A1 [14:08:45]CommunicateWithHost err = 0 [14:08:45]CheckOFDResponse [14:08:45]1017 (14) - 77093643461234 [14:08:45]1041 (16) - 0000000000871792 [14:08:45]1040 (4) - 155548 [14:08:45]1012 (4) - 24.10.2024 07:42 [14:08:45]1206 (1) - 0 [14:08:45]OFD Sender: Remove packet 155548 [14:08:45]ProducePacketName [14:08:45]name=ofd_packets/00155548 [14:08:45]NVStorageDeleteData [14:08:45]Write to MH i2c: 01 00 00 CC 01 CD [14:08:45]Write i2c OK [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: 01 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: 01 07 00 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: 01 07 00 CC 01 00 00 00 00 00 DE 0C BE [14:08:45]RasterBufferAndPrint [14:08:45]line [14:08:45]line [14:08:45]line [14:08:45]line [14:08:45]line [14:08:45]written 0, free lines is 3300 [14:08:45]process_action close_receipt done [14:08:45]requested_data is exist [14:08:45]produce_requested_data [14:08:45]requested_item fm.sn is exist - process it [14:08:45]wFMCommunicate request_size=4 [14:08:45]MH_SAM_APDU [14:08:45]CAPDU: 80 11 00 00 [14:08:45]Write to MH i2c: E2 08 00 D3 01 80 11 00 00 00 00 00 00 4E [14:08:45]Write i2c OK [14:08:45]MH_I2C_Read... [14:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:45]Read from MH i2c: E2 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: E2 17 00 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: E2 17 00 D3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A3 [14:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:08:45]wFMCommunicate OK [14:08:45]requested_item fd.num is exist - process it [14:08:45]SAM_PROTO_GetFieldsCounters [14:08:45]wFMCommunicate request_size=4 [14:08:45]MH_SAM_APDU [14:08:45]CAPDU: 80 13 00 00 [14:08:45]Write to MH i2c: E2 08 00 D4 01 80 13 00 00 00 00 00 00 51 [14:08:45]Write i2c OK [14:08:45]MH_I2C_Read... [14:08:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:45]Read from MH i2c: E2 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: E2 62 00 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: E2 62 00 D4 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9C 5F 02 00 0E 04 04 00 16 02 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 93 [14:08: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9C 5F 02 00 0E 04 04 00 16 02 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 [14:08:45]wFMCommunicate OK [14:08:45]SAM_PROTO_GetFieldsCounters done [14:08:45]requested_item shift.num is exist - process it [14:08:45]requested_item shift.opened is exist - process it [14:08:45]req_shift_opened [14:08:45]FM_GetShiftState [14:08:45]SAM_PROTO_GetShiftState [14:08:45]wFMCommunicate request_size=4 [14:08:45]MH_SAM_APDU [14:08:45]CAPDU: 80 13 01 00 [14:08:45]Write to MH i2c: E2 08 00 D5 01 80 13 01 00 00 00 00 00 53 [14:08:45]Write i2c OK [14:08:45]MH_I2C_Read... [14:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:45]Read from MH i2c: E2 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: E2 0E 00 [14:08:45]MH_I2C_Read... [14:08:45]Read from MH i2c: E2 0E 00 D5 01 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 A0 [14:08:45]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:08:45]wFMCommunicate OK [14:08:45]SAM_PROTO_GetShiftState done [14:08:45]FM_GetShiftState done [14:08:45]req_shift_opened done [14:08:45]requested_item shift.open_date is exist - process it [14:08:45]req_shift_open_date [14:08:45]req_shift_open_date done [14:08:45]produce_requested_data done [14:08:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155548,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:08:45]process_action_free close_receipt [14:08:45]json_value_free [14:08:45]json_value_free done [14:08:45]process_json_proto returns [14:08:45]Send response to host [14:08:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155548,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:08:45]free response buf [14:08:45]execute_script done [14:08:45]execute_script returns [14:08:45]free content buf [14:08:45]Sock 8.Close socket [14:08:45]Sock 8.Thread stoped [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]int [14:09:20]Write to MH i2c: 01 00 00 D6 01 D7 [14:09:20]*** FLAG_PRN_KEY set [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: 01 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: 01 07 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: 01 07 00 D6 01 00 08 00 00 00 FF 0F F4 [14:09:20]state=0 [14:09:20]Key pressed [14:09:20]Feed [14:09:20]Write to MH i2c: D8 00 00 D7 01 AF [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: D8 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: D8 01 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: D8 01 00 D7 01 00 B0 [14:09:20]int [14:09:20]Write to MH i2c: 01 00 00 D8 01 D9 [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: 01 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: 01 07 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: 01 07 00 D8 01 00 48 00 00 00 3D 00 65 [14:09:20]state=2 [14:09:20]Key pressed [14:09:20]OFD Sender: No OFD packet to send [14:09:20]int [14:09:20]Write to MH i2c: 01 00 00 D9 01 DA [14:09:20]*** FLAG_PRN_KEY reset [14:09:20]Write i2c OK [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: 01 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: 01 07 00 [14:09:20]MH_I2C_Read... [14:09:20]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [14:09:20]state=2 [14:09:20]Stop feed [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:44]accept exits with 9 [14:09:44]New connection [14:09:44]New thread 3066781028 created [14:09:44]Thread 3066637668 joined [14:09:44]Waiting for new connection... [14:09:44] Sock 9.Parse request [14:09:44]Sock 9.Check first char [14:09:44]Sock 9.First char is OK [14:09:44]request: POST /json_proto HTTP/1.0 [14:09:44]Method: POST [14:09:44]URL: /json_proto [14:09:44]Method is POST - this is cgi request [14:09:44]url: /json_proto [14:09:44]query_string will be loaded in cgi processing [14:09:44]execute_cgi json_proto POST (null) [14:09:44]execute_cgi path=json_proto method=POST [14:09:44]POST find Content-Length [14:09:44]Host: 172.17.63.3:8080 [14:09:44]Content-Length: 678 [14:09:44]Content-Type: application/json [14:09:44] [14:09:44]POST finish read [14:09:44]Found Content-Length = 678 [14:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:44]execute_script... [14:09: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)98353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:44]POST & json_proto [14:09:44]process_json_proto [14:09:44]json parsed OK: [14:09:44]protocol is kg_v1.0 [14:09:44]action value=close_receipt [14:09:44]process_action close_receipt [14:09:44]cmd_close_receipt [14:09:44]MH_GetDate [14:09:44]Write to MH i2c: F0 00 00 DA 01 CA [14:09:44]Write i2c OK [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: F0 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: F0 09 00 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: F0 09 00 DA 01 00 28 55 1A 67 50 D1 6C 64 C2 [14:09:44]GetLastDocTimeStamp 1729778922 [14:09:44]current date 1729778984 [14:09:44]FM_GetShiftState [14:09:44]SAM_PROTO_GetShiftState [14:09:44]wFMCommunicate request_size=4 [14:09:44]MH_SAM_APDU [14:09:44]CAPDU: 80 13 01 00 [14:09:44]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [14:09:44]Write i2c OK [14:09:44]MH_I2C_Read... [14:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:44]Read from MH i2c: E2 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 0E 00 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 A6 [14:09:44]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:09:44]wFMCommunicate OK [14:09:44]SAM_PROTO_GetShiftState done [14:09:44]FM_GetShiftState done [14:09:44]opened in 1729729836 [14:09:44]opened+sec_in_day 1729816236 [14:09:44]quantity*price = 200025 [14:09:44]sum+1 = 200026 [14:09:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 174 24.10.2024 14:09 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155549 ФПД: 176633027818158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140944&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155549&fm=176633027818158&tin=02508201610067®Number=0000000000091693&sum=200000 [14:09:45]StoreToDocumentArchive [14:09:45]shift 534 fd 155549 [14:09:45]save to /storage/0534/doc_00155549 [14:09:45]save last doc name /storage/0534/doc_00155549 to /storage/kkm_last_doc_name [14:09:45]save OK [14:09:45]Clear old archive folders... [14:09:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:09:45]tlvbuf is 01F3A720 [14:09:45]SAM_PROTO_ClearQueue [14:09:45]wFMCommunicate request_size=4 [14:09:45]MH_SAM_APDU [14:09:45]CAPDU: 80 09 00 00 [14:09:45]Write to MH i2c: E2 08 00 E8 01 80 09 00 00 00 00 00 00 5B [14:09:45]Write i2c OK [14:09:45]MH_I2C_Read... [14:09:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:45]Read from MH i2c: E2 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 03 00 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [14:09:45]RAPDU: 90 00 [14:09:45]wFMCommunicate OK [14:09:45]SAM_PROTO_ClearQueue done [14:09:45]KKMCreateOFDPacket [14:09:45]OFDProtocolAddRootSTLVToBuf [14:09:45]FM_MakeSignedData [14:09:45]FM_MakeSignedData [14:09:45]SAM_PROTO_SignData [14:09:45]wFMCommunicate request_size=4 [14:09:45]MH_SAM_APDU [14:09:45]CAPDU: 80 0D 01 02 [14:09:45]Write to MH i2c: E2 08 00 E9 01 80 0D 01 02 00 00 00 00 63 [14:09:45]Write i2c OK [14:09:45]MH_I2C_Read... [14:09:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:45]Read from MH i2c: E2 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 03 00 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [14:09:45]RAPDU: 90 00 [14:09:45]wFMCommunicate OK [14:09:45]wFMCommunicate request_size=255 [14:09:45]MH_SAM_APDU [14:09:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 AE 00 00 00 F4 03 04 00 28 55 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 5F 02 00 35 04 06 00 A0 A5 94 E0 [14:09:45]Write to MH i2c: E2 02 01 EA 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 AE 00 00 00 F4 03 04 00 28 55 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 5F 02 00 35 04 06 00 A0 A5 94 E0 00 00 56 [14:09:45]Write i2c OK [14:09:45]MH_I2C_Read... [14:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:45]Read from MH i2c: E2 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 03 00 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [14:09:45]RAPDU: 90 00 [14:09:45]wFMCommunicate OK [14:09:45]wFMCommunicate request_size=7 [14:09:45]MH_SAM_APDU [14:09:45]CAPDU: 80 0D 02 02 02 F2 AE [14:09:45]Write to MH i2c: E2 0A 00 EB 01 80 0D 02 02 02 00 F2 AE 00 00 0A [14:09:45]Write i2c OK [14:09:45]MH_I2C_Read... [14:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:45]Read from MH i2c: E2 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 03 00 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [14:09:45]RAPDU: 90 00 [14:09:45]wFMCommunicate OK [14:09:45]wFMCommunicate request_size=4 [14:09:45]MH_SAM_APDU [14:09:45]CAPDU: 80 0D 03 02 [14:09:45]Write to MH i2c: E2 08 00 EC 01 80 0D 03 02 00 00 00 00 68 [14:09:45]Write i2c OK [14:09:45]MH_I2C_Read... [14:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:45]Read from MH i2c: E2 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 0B 00 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 0B 00 EC 01 00 BA C7 5B 8A EA 09 D4 06 90 00 9C [14:09:45]RAPDU: BA C7 5B 8A EA 09 D4 06 90 00 [14:09:45]wFMCommunicate OK [14:09:45]SAM_PROTO_SignData done [14:09:45]FM_MakeSignedData done [14:09:45]CreateOFDProtocolMessage [14:09:45]wFMCommunicate request_size=4 [14:09:45]MH_SAM_APDU [14:09:45]CAPDU: 80 11 00 00 [14:09:45]Write to MH i2c: E2 08 00 ED 01 80 11 00 00 00 00 00 00 68 [14:09:45]Write i2c OK [14:09:45]MH_I2C_Read... [14:09:45]OFD Sender: No OFD packet to send [14:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:45]Read from MH i2c: E2 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 17 00 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: E2 17 00 ED 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BD [14:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:09:45]wFMCommunicate OK [14:09:45]CreateOFDProtocolMessage done [14:09:45]OFDSenderStorePacket 155549 [14:09:45]StoreOFDPacket docnum=155549 [14:09:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 C8 A5 04 01 0B 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 28 55 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 5F 02 00 35 04 06 00 A0 A5 94 E0 F2 AE BA C7 5B 8A EA 09 D4 06 [14:09:45]CheckFolder [14:09:45]dirname=/storage/ofd_packets [14:09:45]CheckFolder done [14:09:45]ProducePacketName [14:09:45]name=ofd_packets/00155549 [14:09:45]NVStorageSaveData ofd_packets/00155549 [14:09:45]File name is /storage/ofd_packets/00155549 [14:09:45]Write 298 bytes [14:09:45]NVStorageSaveData done [14:09:45]OFDSenderStorePacket done [14:09:45]KKMCreateOFDPacket done [14:09:45]NVStorageSaveData kkm_last_timestamp [14:09:45]File name is /storage/kkm_last_timestamp [14:09:45]Write 4 bytes [14:09:45]NVStorageSaveData done [14:09:45]ExternCall_PrintAddStr [14:09:45]wPrintStart [14:09:45]Write to MH i2c: 01 00 00 EE 01 EF [14:09:45]Write i2c OK [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: 01 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: 01 07 00 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: 01 07 00 EE 01 00 00 00 00 00 FF 0F 04 [14:09:45]RasterBufferAndPrint [14:09:45]line Счет N : (1)98353 [14:09:45]line ИНН: 02508201610067 [14:09:45]line Контрольно-Кассовый Чек [14:09:45]line ПРОДАЖА [14:09:45]line ТРК (МРК, ГНК) : 32 [14:09:45]line Товар: 2710194210 [14:09:45]line ДТ-К-5 [14:09:45]line 26.250 * 76.20 [14:09:45]line = 2000.25 [14:09:45]line НДС 12% НСП 1% [14:09:45]line > о реализуемом товаре [14:09:45]line ОКРУГЛЕНИЕ: -0.25 [14:09:45]line ИТОГО: 2000.00 [14:09:45]line Внесено: 2000.00 [14:09:45]line СДАЧА: 0.00 [14:09:45]line НСП 1% : 17.70 [14:09:45]line НДС 12% : 212.42 [14:09:45]line Наличными: 2000.00 [14:09:45]line Безнал.: 0.00 [14:09:45]line Место: АЗС № 143 "Партнер Нефть" [14:09:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:09:45]line СНО: Общий режим [14:09:45]line Чек 174 24.10.2024 14:09 [14:09:45]line Смена: 534 ФФД: 1.0 [14:09:45]line ЗНМ: 0300000096 [14:09:45]line РНМ: 0000000000091693 [14:09:45]line Версия ККМ: 001 [14:09:45]line ФМ: 0000000000871792 [14:09:45]line ФД: 155549 [14:09:45]line ФПД: 176633027818158 [14:09:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T140944&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155549&fm=176633027818158&tin=02508201610067®Number=0000000000091693&sum=200000 [14:09:46]OFD Sender: Processing packet 155549 [packets to send 31, broken 30] [14:09:46]ProducePacketName [14:09:46]name=ofd_packets/00155549 [14:09:46]OFD Sender: To server: pG, [14:09:46]CommunicateWithHost lk.salyk.kg:30040 [14:09:46]ConnectInit lk.salyk.kg [14:09:46]written 0, free lines is 4095 [14:09:46]Connected sock=8 [14:09: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 39 32 0C 01 00 00 C8 A5 04 01 0B 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 28 55 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 5F 02 00 35 04 06 00 A0 A5 94 E0 F2 AE BA C7 5B 8A EA 09 D4 06 [14:09: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 39 32 4F 00 00 00 2C 7E 47 00 59 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 39 32 10 04 04 00 9D 5F 02 00 F4 03 04 00 A1 FA 19 67 B6 04 01 00 00 FB 02 43 81 72 92 65 D7 [14:09:46]CommunicateWithHost err = 0 [14:09:46]CheckOFDResponse [14:09:46]1017 (14) - 77093643461234 [14:09:46]1041 (16) - 0000000000871792 [14:09:46]1040 (4) - 155549 [14:09:46]1012 (4) - 24.10.2024 07:43 [14:09:46]1206 (1) - 0 [14:09:46]OFD Sender: Remove packet 155549 [14:09:46]ProducePacketName [14:09:46]name=ofd_packets/00155549 [14:09:46]NVStorageDeleteData [14:09:46]Write to MH i2c: 01 00 00 19 02 1B [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: 01 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: 01 07 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 F1 0C 1F [14:09:46]RasterBufferAndPrint [14:09:46]line [14:09:46]line [14:09:46]line [14:09:46]line [14:09:46]line [14:09:46]written 0, free lines is 3320 [14:09:46]process_action close_receipt done [14:09:46]requested_data is exist [14:09:46]produce_requested_data [14:09:46]requested_item fm.sn is exist - process it [14:09:46]wFMCommunicate request_size=4 [14:09:46]MH_SAM_APDU [14:09:46]CAPDU: 80 11 00 00 [14:09:46]Write to MH i2c: E2 08 00 20 02 80 11 00 00 00 00 00 00 9C [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:46]Read from MH i2c: E2 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 17 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 17 00 20 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F1 [14:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:09:46]wFMCommunicate OK [14:09:46]requested_item fd.num is exist - process it [14:09:46]SAM_PROTO_GetFieldsCounters [14:09:46]wFMCommunicate request_size=4 [14:09:46]MH_SAM_APDU [14:09:46]CAPDU: 80 13 00 00 [14:09:46]Write to MH i2c: E2 08 00 21 02 80 13 00 00 00 00 00 00 9F [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:46]Read from MH i2c: E2 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 62 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 62 00 21 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9D 5F 02 00 0E 04 04 00 16 02 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 E5 [14:09:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9D 5F 02 00 0E 04 04 00 16 02 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 [14:09:46]wFMCommunicate OK [14:09:46]SAM_PROTO_GetFieldsCounters done [14:09:46]requested_item shift.num is exist - process it [14:09:46]requested_item shift.opened is exist - process it [14:09:46]req_shift_opened [14:09:46]FM_GetShiftState [14:09:46]SAM_PROTO_GetShiftState [14:09:46]wFMCommunicate request_size=4 [14:09:46]MH_SAM_APDU [14:09:46]CAPDU: 80 13 01 00 [14:09:46]Write to MH i2c: E2 08 00 22 02 80 13 01 00 00 00 00 00 A1 [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:46]Read from MH i2c: E2 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 0E 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 0E 00 22 02 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 EE [14:09:46]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:09:46]wFMCommunicate OK [14:09:46]SAM_PROTO_GetShiftState done [14:09:46]FM_GetShiftState done [14:09:46]req_shift_opened done [14:09:46]requested_item shift.open_date is exist - process it [14:09:46]req_shift_open_date [14:09:46]req_shift_open_date done [14:09:46]produce_requested_data done [14:09:46]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155549,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:09:46]process_action_free close_receipt [14:09:46]json_value_free [14:09:46]json_value_free done [14:09:46]process_json_proto returns [14:09:46]Send response to host [14:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155549,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:09:46]free response buf [14:09:46]execute_script done [14:09:46]execute_script returns [14:09:46]free content buf [14:09:46]Sock 9.Close socket [14:09:46]Sock 9.Thread stoped [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]accept exits with 10 [14:10:11]New connection [14:10:11]New thread 3066637668 created [14:10:11]Thread 3066781028 joined [14:10:11]Waiting for new connection... [14:10:11] Sock 10.Parse request [14:10:11]Sock 10.Check first char [14:10:11]Sock 10.First char is OK [14:10:11]request: POST /json_proto HTTP/1.0 [14:10:11]Method: POST [14:10:11]URL: /json_proto [14:10:11]Method is POST - this is cgi request [14:10:11]url: /json_proto [14:10:11]query_string will be loaded in cgi processing [14:10:11]execute_cgi json_proto POST (null) [14:10:11]execute_cgi path=json_proto method=POST [14:10:11]POST find Content-Length [14:10:11]Host: 172.17.63.3:8080 [14:10:11]Content-Length: 681 [14:10:11]Content-Type: application/json [14:10:11] [14:10:11]POST finish read [14:10:11]Found Content-Length = 681 [14:10:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:11]execute_script... [14:10: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)98354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:11]POST & json_proto [14:10:11]process_json_proto [14:10:11]json parsed OK: [14:10:11]protocol is kg_v1.0 [14:10:11]action value=close_receipt [14:10:11]process_action close_receipt [14:10:11]cmd_close_receipt [14:10:11]MH_GetDate [14:10:11]Write to MH i2c: F0 00 00 23 02 14 [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: F0 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: F0 09 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: F0 09 00 23 02 00 43 55 1A 67 50 D1 6C 64 27 [14:10:11]GetLastDocTimeStamp 1729778984 [14:10:11]current date 1729779011 [14:10:11]FM_GetShiftState [14:10:11]SAM_PROTO_GetShiftState [14:10:11]wFMCommunicate request_size=4 [14:10:11]MH_SAM_APDU [14:10:11]CAPDU: 80 13 01 00 [14:10:11]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [14:10:11]Write i2c OK [14:10:11]MH_I2C_Read... [14:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:11]Read from MH i2c: E2 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 0E 00 [14:10:11]MH_I2C_Read... [14:10:11]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F0 [14:10:11]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:10:11]wFMCommunicate OK [14:10:11]SAM_PROTO_GetShiftState done [14:10:11]FM_GetShiftState done [14:10:11]opened in 1729729836 [14:10:11]opened+sec_in_day 1729816236 [14:10:11]quantity*price = 100015 [14:10:11]sum+1 = 100017 [14:10:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 175 24.10.2024 14:10 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155550 ФПД: 92293677710941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141011&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155550&fm=92293677710941&tin=02508201610067®Number=0000000000091693&sum=100000 [14:10:12]StoreToDocumentArchive [14:10:12]shift 534 fd 155550 [14:10:12]save to /storage/0534/doc_00155550 [14:10:12]save last doc name /storage/0534/doc_00155550 to /storage/kkm_last_doc_name [14:10:12]save OK [14:10:12]Clear old archive folders... [14:10:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:10:12]tlvbuf is 01F24A40 [14:10:12]SAM_PROTO_ClearQueue [14:10:12]wFMCommunicate request_size=4 [14:10:12]MH_SAM_APDU [14:10:12]CAPDU: 80 09 00 00 [14:10:12]Write to MH i2c: E2 08 00 31 02 80 09 00 00 00 00 00 00 A5 [14:10:12]Write i2c OK [14:10:12]MH_I2C_Read... [14:10:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:12]Read from MH i2c: E2 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 03 00 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [14:10:12]RAPDU: 90 00 [14:10:12]wFMCommunicate OK [14:10:12]SAM_PROTO_ClearQueue done [14:10:12]KKMCreateOFDPacket [14:10:12]OFDProtocolAddRootSTLVToBuf [14:10:12]FM_MakeSignedData [14:10:12]FM_MakeSignedData [14:10:12]SAM_PROTO_SignData [14:10:12]wFMCommunicate request_size=4 [14:10:12]MH_SAM_APDU [14:10:12]CAPDU: 80 0D 01 02 [14:10:12]Write to MH i2c: E2 08 00 32 02 80 0D 01 02 00 00 00 00 AD [14:10:12]Write i2c OK [14:10:12]MH_I2C_Read... [14:10:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:12]Read from MH i2c: E2 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 03 00 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [14:10:12]RAPDU: 90 00 [14:10:12]wFMCommunicate OK [14:10:12]wFMCommunicate request_size=255 [14:10:12]MH_SAM_APDU [14:10: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 43 55 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 5F 02 00 35 04 06 00 53 [14:10:12]Write to MH i2c: E2 02 01 33 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 43 55 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 5F 02 00 35 04 06 00 53 00 00 6D [14:10:12]Write i2c OK [14:10:12]MH_I2C_Read... [14:10:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:12]Read from MH i2c: E2 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 03 00 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [14:10:12]RAPDU: 90 00 [14:10:12]wFMCommunicate OK [14:10:12]wFMCommunicate request_size=10 [14:10:12]MH_SAM_APDU [14:10:12]CAPDU: 80 0D 02 02 05 F0 CB DF FE 5D [14:10:12]Write to MH i2c: E2 0D 00 34 02 80 0D 02 02 05 00 F0 CB DF FE 5D 00 00 AF [14:10:12]Write i2c OK [14:10:12]MH_I2C_Read... [14:10:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:12]Read from MH i2c: E2 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 03 00 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [14:10:12]RAPDU: 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 0D 03 02 [14:10:12]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [14:10:12]Write i2c OK [14:10:12]MH_I2C_Read... [14:10:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:12]Read from MH i2c: E2 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 0B 00 [14:10:12]MH_I2C_Read... [14:10:12]Read from MH i2c: E2 0B 00 35 02 00 E5 B6 5D 3C EF 10 2E 6C 90 00 80 [14:10:12]RAPDU: E5 B6 5D 3C EF 10 2E 6C 90 00 [14:10:12]wFMCommunicate OK [14:10:12]SAM_PROTO_SignData done [14:10:12]FM_MakeSignedData done [14:10:12]CreateOFDProtocolMessage [14:10:12]wFMCommunicate request_size=4 [14:10:12]MH_SAM_APDU [14:10:12]CAPDU: 80 11 00 00 [14:10:12]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [14:10:12]Write i2c OK [14:10:12]MH_I2C_Read... [14:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:13]Read from MH i2c: E2 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 17 00 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 07 [14:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:10:13]wFMCommunicate OK [14:10:13]CreateOFDProtocolMessage done [14:10:13]OFDSenderStorePacket 155550 [14:10:13]StoreOFDPacket docnum=155550 [14:10:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 53 D5 07 01 88 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 43 55 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 5F 02 00 35 04 06 00 53 F0 CB DF FE 5D E5 B6 5D 3C EF 10 2E 6C [14:10:13]CheckFolder [14:10:13]dirname=/storage/ofd_packets [14:10:13]CheckFolder done [14:10:13]ProducePacketName [14:10:13]name=ofd_packets/00155550 [14:10:13]NVStorageSaveData ofd_packets/00155550 [14:10:13]File name is /storage/ofd_packets/00155550 [14:10:13]Write 301 bytes [14:10:13]NVStorageSaveData done [14:10:13]OFDSenderStorePacket done [14:10:13]KKMCreateOFDPacket done [14:10:13]NVStorageSaveData kkm_last_timestamp [14:10:13]File name is /storage/kkm_last_timestamp [14:10:13]Write 4 bytes [14:10:13]NVStorageSaveData done [14:10:13]ExternCall_PrintAddStr [14:10:13]wPrintStart [14:10:13]Write to MH i2c: 01 00 00 37 02 39 [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 37 02 00 00 00 00 00 FF 0F 4E [14:10:13]RasterBufferAndPrint [14:10:13]line Счет N : (1)98354 [14:10:13]line ИНН: 02508201610067 [14:10:13]line Контрольно-Кассовый Чек [14:10:13]line ПРОДАЖА [14:10:13]line ТРК (МРК, ГНК) : 11 [14:10:13]line Товар: 2710124130 [14:10:13]line Аи-92-К-5 [14:10:13]line 14.950 * 66.90 [14:10:13]line = 1000.16 [14:10:13]line НДС 12% НСП 1% [14:10:13]line > о реализуемом товаре [14:10:13]line ОКРУГЛЕНИЕ: -0.16 [14:10:13]line ИТОГО: 1000.00 [14:10:13]line Внесено: 1000.00 [14:10:13]line СДАЧА: 0.00 [14:10:13]line НСП 1% : 8.85 [14:10:13]line НДС 12% : 106.21 [14:10:13]line Наличными: 1000.00 [14:10:13]line Безнал.: 0.00 [14:10:13]line Место: АЗС № 143 "Партнер Нефть" [14:10:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:10:13]line СНО: Общий режим [14:10:13]line Чек 175 24.10.2024 14:10 [14:10:13]line Смена: 534 ФФД: 1.0 [14:10:13]line ЗНМ: 0300000096 [14:10:13]line РНМ: 0000000000091693 [14:10:13]line Версия ККМ: 001 [14:10:13]line ФМ: 0000000000871792 [14:10:13]line ФД: 155550 [14:10:13]line ФПД: 92293677710941 [14:10:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141011&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155550&fm=92293677710941&tin=02508201610067®Number=0000000000091693&sum=100000 [14:10:13]OFD Sender: Processing packet 155550 [packets to send 31, broken 30] [14:10:13]ProducePacketName [14:10:13]name=ofd_packets/00155550 [14:10:13]OFD Sender: To server: pG, [14:10:13]CommunicateWithHost lk.salyk.kg:30040 [14:10:13]ConnectInit lk.salyk.kg [14:10:13]written 0, free lines is 4095 [14:10:13]Connected sock=9 [14:10: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 39 32 0F 01 00 00 53 D5 07 01 88 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 43 55 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 5F 02 00 35 04 06 00 53 F0 CB DF FE 5D E5 B6 5D 3C EF 10 2E 6C [14:10: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 39 32 4F 00 00 00 2B 2A 47 00 AA 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 39 32 10 04 04 00 9E 5F 02 00 F4 03 04 00 BC FA 19 67 B6 04 01 00 00 72 21 60 5B 2B 95 26 72 [14:10:13]CommunicateWithHost err = 0 [14:10:13]CheckOFDResponse [14:10:13]1017 (14) - 77093643461234 [14:10:13]1041 (16) - 0000000000871792 [14:10:13]1040 (4) - 155550 [14:10:13]1012 (4) - 24.10.2024 07:43 [14:10:13]1206 (1) - 0 [14:10:13]OFD Sender: Remove packet 155550 [14:10:13]ProducePacketName [14:10:13]name=ofd_packets/00155550 [14:10:13]NVStorageDeleteData [14:10:13]Write to MH i2c: 01 00 00 62 02 64 [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 62 02 00 00 00 00 00 E4 0C 5B [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 3306 [14:10:13]process_action close_receipt done [14:10:13]requested_data is exist [14:10:13]produce_requested_data [14:10:13]requested_item fm.sn is exist - process it [14:10:13]wFMCommunicate request_size=4 [14:10:13]MH_SAM_APDU [14:10:13]CAPDU: 80 11 00 00 [14:10:13]Write to MH i2c: E2 08 00 69 02 80 11 00 00 00 00 00 00 E5 [14:10:13]Write i2c OK [14:10:13]MH_I2C_Read... [14:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:13]Read from MH i2c: E2 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 17 00 [14:10:13]MH_I2C_Read... [14:10:13]Read from MH i2c: E2 17 00 69 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3A [14:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:10:13]wFMCommunicate OK [14:10:13]requested_item fd.num is exist - process it [14:10:13]SAM_PROTO_GetFieldsCounters [14:10:13]wFMCommunicate request_size=4 [14:10:13]MH_SAM_APDU [14:10:13]CAPDU: 80 13 00 00 [14:10:13]Write to MH i2c: E2 08 00 6A 02 80 13 00 00 00 00 00 00 E8 [14:10:13]Write i2c OK [14:10:13]MH_I2C_Read... [14:10:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:14]Read from MH i2c: E2 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 62 00 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 62 00 6A 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9E 5F 02 00 0E 04 04 00 16 02 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 32 [14:10:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9E 5F 02 00 0E 04 04 00 16 02 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 [14:10:14]wFMCommunicate OK [14:10:14]SAM_PROTO_GetFieldsCounters done [14:10:14]requested_item shift.num is exist - process it [14:10:14]requested_item shift.opened is exist - process it [14:10:14]req_shift_opened [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 6B 02 80 13 01 00 00 00 00 00 EA [14:10:14]Write i2c OK [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 [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 0E 00 [14:10:14]MH_I2C_Read... [14:10:14]Read from MH i2c: E2 0E 00 6B 02 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 37 [14:10:14]RAPDU: 09 00 01 2C 95 19 67 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]req_shift_opened done [14:10:14]requested_item shift.open_date is exist - process it [14:10:14]req_shift_open_date [14:10:14]req_shift_open_date done [14:10:14]produce_requested_data done [14:10:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155550,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:10:14]process_action_free close_receipt [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","data":{"fm.sn":"0000000000871792","fd.num":155550,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [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 10.Close socket [14:10:14]Sock 10.Thread stoped [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:02]accept exits with 8 [14:12:02]New connection [14:12:02]New thread 3066781028 created [14:12:02]Thread 3066637668 joined [14:12:02]Waiting for new connection... [14:12:02] Sock 8.Parse request [14:12:02]Sock 8.Check first char [14:12:02]Sock 8.First char is OK [14:12:02]request: POST /json_proto HTTP/1.0 [14:12:02]Method: POST [14:12:02]URL: /json_proto [14:12:02]Method is POST - this is cgi request [14:12:02]url: /json_proto [14:12:02]query_string will be loaded in cgi processing [14:12:02]execute_cgi json_proto POST (null) [14:12:02]execute_cgi path=json_proto method=POST [14:12:02]POST find Content-Length [14:12:02]Host: 172.17.63.3:8080 [14:12:02]Content-Length: 765 [14:12:02]Content-Type: application/json [14:12:02] [14:12:02]POST finish read [14:12:02]Found Content-Length = 765 [14:12:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:02]execute_script... [14:12: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)98355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:02]POST & json_proto [14:12:02]process_json_proto [14:12:02]json parsed OK: [14:12:02]protocol is kg_v1.0 [14:12:02]action value=close_receipt [14:12:02]process_action close_receipt [14:12:02]cmd_close_receipt [14:12:02]MH_GetDate [14:12:02]Write to MH i2c: F0 00 00 6C 02 5D [14:12:02]Write i2c OK [14:12:02]MH_I2C_Read... [14:12:02]Read from MH i2c: F0 [14:12:02]MH_I2C_Read... [14:12:02]Read from MH i2c: F0 09 00 [14:12:02]MH_I2C_Read... [14:12:02]Read from MH i2c: F0 09 00 6C 02 00 B2 55 1A 67 50 D1 6C 64 DF [14:12:02]GetLastDocTimeStamp 1729779011 [14:12:02]current date 1729779122 [14:12:02]FM_GetShiftState [14:12:02]SAM_PROTO_GetShiftState [14:12:02]wFMCommunicate request_size=4 [14:12:02]MH_SAM_APDU [14:12:02]CAPDU: 80 13 01 00 [14:12:02]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [14:12:02]Write i2c OK [14:12:02]MH_I2C_Read... [14:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:02]Read from MH i2c: E2 [14:12:02]MH_I2C_Read... [14:12:02]Read from MH i2c: E2 0E 00 [14:12:02]MH_I2C_Read... [14:12:02]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 39 [14:12:02]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:12:02]wFMCommunicate OK [14:12:02]SAM_PROTO_GetShiftState done [14:12:02]FM_GetShiftState done [14:12:02]opened in 1729729836 [14:12:02]opened+sec_in_day 1729816236 [14:12:02]quantity*price = 50041 [14:12:02]sum+1 = 50042 [14:12:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 176 24.10.2024 14:12 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155551 ФПД: 56720981484233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141202&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155551&fm=56720981484233&tin=02508201610067®Number=0000000000091693&sum=50041 [14:12:03]StoreToDocumentArchive [14:12:03]shift 534 fd 155551 [14:12:03]save to /storage/0534/doc_00155551 [14:12:03]save last doc name /storage/0534/doc_00155551 to /storage/kkm_last_doc_name [14:12:03]save OK [14:12:03]Clear old archive folders... [14:12:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:03]tlvbuf is 01F3D590 [14:12:03]SAM_PROTO_ClearQueue [14:12:03]wFMCommunicate request_size=4 [14:12:03]MH_SAM_APDU [14:12:03]CAPDU: 80 09 00 00 [14:12:03]Write to MH i2c: E2 08 00 7A 02 80 09 00 00 00 00 00 00 EE [14:12:03]Write i2c OK [14:12:03]MH_I2C_Read... [14:12:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:03]Read from MH i2c: E2 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 03 00 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [14:12:03]RAPDU: 90 00 [14:12:03]wFMCommunicate OK [14:12:03]SAM_PROTO_ClearQueue done [14:12:03]KKMCreateOFDPacket [14:12:03]OFDProtocolAddRootSTLVToBuf [14:12:03]FM_MakeSignedData [14:12:03]FM_MakeSignedData [14:12:03]SAM_PROTO_SignData [14:12:03]wFMCommunicate request_size=4 [14:12:03]MH_SAM_APDU [14:12:03]CAPDU: 80 0D 01 02 [14:12:03]Write to MH i2c: E2 08 00 7B 02 80 0D 01 02 00 00 00 00 F6 [14:12:03]Write i2c OK [14:12:03]MH_I2C_Read... [14:12:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:03]Read from MH i2c: E2 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 03 00 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [14:12:03]RAPDU: 90 00 [14:12:03]wFMCommunicate OK [14:12:03]wFMCommunicate request_size=255 [14:12:03]MH_SAM_APDU [14:12: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 B2 55 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 5F 02 00 35 04 06 00 33 [14:12:03]Write to MH i2c: E2 02 01 7C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 B2 55 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 5F 02 00 35 04 06 00 33 00 00 5F [14:12:03]Write i2c OK [14:12:03]MH_I2C_Read... [14:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:03]Read from MH i2c: E2 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 03 00 [14:12:03]MH_I2C_Read... [14:12:03]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [14:12:03]RAPDU: 90 00 [14:12:03]wFMCommunicate OK [14:12:03]wFMCommunicate request_size=10 [14:12:03]MH_SAM_APDU [14:12:03]CAPDU: 80 0D 02 02 05 96 61 F3 E2 C9 [14:12:03]Write to MH i2c: E2 0D 00 7D 02 80 0D 02 02 05 00 96 61 F3 E2 C9 00 00 98 [14:12:03]Write i2c OK [14:12:03]MH_I2C_Read... [14:12:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:04]Read from MH i2c: E2 [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: E2 03 00 [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [14:12:04]RAPDU: 90 00 [14:12:04]wFMCommunicate OK [14:12:04]wFMCommunicate request_size=4 [14:12:04]MH_SAM_APDU [14:12:04]CAPDU: 80 0D 03 02 [14:12:04]Write to MH i2c: E2 08 00 7E 02 80 0D 03 02 00 00 00 00 FB [14:12:04]Write i2c OK [14:12:04]MH_I2C_Read... [14:12:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:04]Read from MH i2c: E2 [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: E2 0B 00 [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: E2 0B 00 7E 02 00 09 8D 92 60 88 68 D7 A7 90 00 F2 [14:12:04]RAPDU: 09 8D 92 60 88 68 D7 A7 90 00 [14:12:04]wFMCommunicate OK [14:12:04]SAM_PROTO_SignData done [14:12:04]FM_MakeSignedData done [14:12:04]CreateOFDProtocolMessage [14:12:04]wFMCommunicate request_size=4 [14:12:04]MH_SAM_APDU [14:12:04]CAPDU: 80 11 00 00 [14:12:04]Write to MH i2c: E2 08 00 7F 02 80 11 00 00 00 00 00 00 FB [14:12:04]Write i2c OK [14:12:04]MH_I2C_Read... [14:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:04]Read from MH i2c: E2 [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: E2 17 00 [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: E2 17 00 7F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 50 [14:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:12:04]wFMCommunicate OK [14:12:04]CreateOFDProtocolMessage done [14:12:04]OFDSenderStorePacket 155551 [14:12:04]StoreOFDPacket docnum=155551 [14:12:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F4 24 07 01 76 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 B2 55 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 5F 02 00 35 04 06 00 33 96 61 F3 E2 C9 09 8D 92 60 88 68 D7 A7 [14:12:04]CheckFolder [14:12:04]dirname=/storage/ofd_packets [14:12:04]CheckFolder done [14:12:04]ProducePacketName [14:12:04]name=ofd_packets/00155551 [14:12:04]NVStorageSaveData ofd_packets/00155551 [14:12:04]File name is /storage/ofd_packets/00155551 [14:12:04]Write 301 bytes [14:12:04]NVStorageSaveData done [14:12:04]OFDSenderStorePacket done [14:12:04]KKMCreateOFDPacket done [14:12:04]NVStorageSaveData kkm_last_timestamp [14:12:04]File name is /storage/kkm_last_timestamp [14:12:04]Write 4 bytes [14:12:04]NVStorageSaveData done [14:12:04]ExternCall_PrintAddStr [14:12:04]wPrintStart [14:12:04]Write to MH i2c: 01 00 00 80 02 82 [14:12:04]Write i2c OK [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: 01 [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: 01 07 00 [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: 01 07 00 80 02 00 00 00 00 00 FF 0F 97 [14:12:04]RasterBufferAndPrint [14:12:04]line Счет N : (1)98355 [14:12:04]line ИНН: 02508201610067 [14:12:04]line Контрольно-Кассовый Чек [14:12:04]line ПРОДАЖА [14:12:04]line ТРК (МРК, ГНК) : 21 [14:12:04]line Товар: 2710124130 [14:12:04]line Аи-92-К-5 [14:12:04]line 7.480 * 66.90 [14:12:04]line = 500.41 [14:12:04]line НДС 12% НСП 1% [14:12:04]line > о реализуемом товаре [14:12:04]line ИТОГО: 500.41 [14:12:04]line НСП 1% : 4.43 [14:12:04]line НДС 12% : 53.14 [14:12:04]line Наличными: 0.00 [14:12:04]line Безнал.: 500.41 [14:12:04]line Место: АЗС № 143 "Партнер Нефть" [14:12:04]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:12:04]line СНО: Общий режим [14:12:04]line Чек 176 24.10.2024 14:12 [14:12:04]line Смена: 534 ФФД: 1.0 [14:12:04]line ЗНМ: 0300000096 [14:12:04]line РНМ: 0000000000091693 [14:12:04]line Версия ККМ: 001 [14:12:04]line Платежная система: Mbank [14:12:04]line ФМ: 0000000000871792 [14:12:04]line ФД: 155551 [14:12:04]line ФПД: 56720981484233 [14:12:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141202&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155551&fm=56720981484233&tin=02508201610067®Number=0000000000091693&sum=50041 [14:12:04]OFD Sender: Processing packet 155551 [packets to send 31, broken 30] [14:12:04]ProducePacketName [14:12:04]name=ofd_packets/00155551 [14:12:04]OFD Sender: To server: pG, [14:12:04]CommunicateWithHost lk.salyk.kg:30040 [14:12:04]ConnectInit lk.salyk.kg [14:12:04]written 0, free lines is 4095 [14:12:04]Connected sock=10 [14:12: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 39 32 0F 01 00 00 F4 24 07 01 76 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 B2 55 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 5F 02 00 35 04 06 00 33 96 61 F3 E2 C9 09 8D 92 60 88 68 D7 A7 [14:12: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 39 32 4F 00 00 00 0F CB 47 00 27 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 5F 02 00 F4 03 04 00 2B FB 19 67 B6 04 01 00 00 35 55 FE F4 85 4A 98 32 [14:12:04]CommunicateWithHost err = 0 [14:12:04]CheckOFDResponse [14:12:04]1017 (14) - 77093643461234 [14:12:04]1041 (16) - 0000000000871792 [14:12:04]1040 (4) - 155551 [14:12:04]1012 (4) - 24.10.2024 07:45 [14:12:04]1206 (1) - 0 [14:12:04]OFD Sender: Remove packet 155551 [14:12:04]ProducePacketName [14:12:04]name=ofd_packets/00155551 [14:12:04]NVStorageDeleteData [14:12:04]Write to MH i2c: 01 00 00 A9 02 AB [14:12:04]Write i2c OK [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: 01 [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: 01 07 00 [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: 01 07 00 A9 02 00 00 00 00 00 0C 0D CB [14:12:04]RasterBufferAndPrint [14:12:04]line [14:12:04]line [14:12:04]line [14:12:04]line [14:12:04]line [14:12:04]written 0, free lines is 3346 [14:12:04]process_action close_receipt done [14:12:04]requested_data is exist [14:12:04]produce_requested_data [14:12:04]requested_item fm.sn is exist - process it [14:12:04]wFMCommunicate request_size=4 [14:12:04]MH_SAM_APDU [14:12:04]CAPDU: 80 11 00 00 [14:12:04]Write to MH i2c: E2 08 00 B0 02 80 11 00 00 00 00 00 00 2C [14:12:04]Write i2c OK [14:12:04]MH_I2C_Read... [14:12:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:04]Read from MH i2c: E2 [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: E2 17 00 [14:12:04]MH_I2C_Read... [14:12:04]Read from MH i2c: E2 17 00 B0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 81 [14:12:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:12:04]wFMCommunicate OK [14:12:04]requested_item fd.num is exist - process it [14:12:04]SAM_PROTO_GetFieldsCounters [14:12:04]wFMCommunicate request_size=4 [14:12:04]MH_SAM_APDU [14:12:04]CAPDU: 80 13 00 00 [14:12:04]Write to MH i2c: E2 08 00 B1 02 80 13 00 00 00 00 00 00 2F [14:12:04]Write i2c OK [14:12:04]MH_I2C_Read... [14:12:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:05]Read from MH i2c: E2 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 62 00 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 62 00 B1 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9F 5F 02 00 0E 04 04 00 16 02 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 7D [14:12:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9F 5F 02 00 0E 04 04 00 16 02 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 [14:12:05]wFMCommunicate OK [14:12:05]SAM_PROTO_GetFieldsCounters done [14:12:05]requested_item shift.num is exist - process it [14:12:05]requested_item shift.opened is exist - process it [14:12:05]req_shift_opened [14:12:05]FM_GetShiftState [14:12:05]SAM_PROTO_GetShiftState [14:12:05]wFMCommunicate request_size=4 [14:12:05]MH_SAM_APDU [14:12:05]CAPDU: 80 13 01 00 [14:12:05]Write to MH i2c: E2 08 00 B2 02 80 13 01 00 00 00 00 00 31 [14:12:05]Write i2c OK [14:12:05]MH_I2C_Read... [14:12:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:05]Read from MH i2c: E2 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 0E 00 [14:12:05]MH_I2C_Read... [14:12:05]Read from MH i2c: E2 0E 00 B2 02 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 7E [14:12:05]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:12:05]wFMCommunicate OK [14:12:05]SAM_PROTO_GetShiftState done [14:12:05]FM_GetShiftState done [14:12:05]req_shift_opened done [14:12:05]requested_item shift.open_date is exist - process it [14:12:05]req_shift_open_date [14:12:05]req_shift_open_date done [14:12:05]produce_requested_data done [14:12:05]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155551,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:12:05]process_action_free close_receipt [14:12:05]json_value_free [14:12:05]json_value_free done [14:12:05]process_json_proto returns [14:12:05]Send response to host [14:12:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155551,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:12:05]free response buf [14:12:05]execute_script done [14:12:05]execute_script returns [14:12:05]free content buf [14:12:05]Sock 8.Close socket [14:12:05]Sock 8.Thread stoped [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:12:59]accept exits with 9 [14:12:59]New connection [14:12:59]New thread 3066637668 created [14:12:59]Thread 3066781028 joined [14:12:59]Waiting for new connection... [14:12:59] Sock 9.Parse request [14:12:59]Sock 9.Check first char [14:12:59]Sock 9.First char is OK [14:12:59]request: POST /json_proto HTTP/1.0 [14:12:59]Method: POST [14:12:59]URL: /json_proto [14:12:59]Method is POST - this is cgi request [14:12:59]url: /json_proto [14:12:59]query_string will be loaded in cgi processing [14:12:59]execute_cgi json_proto POST (null) [14:12:59]execute_cgi path=json_proto method=POST [14:12:59]POST find Content-Length [14:12:59]Host: 172.17.63.3:8080 [14:12:59]Content-Length: 678 [14:12:59]Content-Type: application/json [14:12:59] [14:12:59]POST finish read [14:12:59]Found Content-Length = 678 [14:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:59]execute_script... [14: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)98356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:59]POST & json_proto [14:12:59]process_json_proto [14:12:59]json parsed OK: [14:12:59]protocol is kg_v1.0 [14:12:59]action value=close_receipt [14:12:59]process_action close_receipt [14:12:59]cmd_close_receipt [14:12:59]MH_GetDate [14:12:59]Write to MH i2c: F0 00 00 B3 02 A4 [14:12:59]Write i2c OK [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: F0 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: F0 09 00 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: F0 09 00 B3 02 00 EB 55 1A 67 50 D1 6C 64 5F [14:12:59]GetLastDocTimeStamp 1729779122 [14:12:59]current date 1729779179 [14:12:59]FM_GetShiftState [14:12:59]SAM_PROTO_GetShiftState [14:12:59]wFMCommunicate request_size=4 [14:12:59]MH_SAM_APDU [14:12:59]CAPDU: 80 13 01 00 [14:12:59]Write to MH i2c: E2 08 00 B4 02 80 13 01 00 00 00 00 00 33 [14:12:59]Write i2c OK [14:12:59]MH_I2C_Read... [14:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:59]Read from MH i2c: E2 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 0E 00 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 0E 00 B4 02 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 80 [14:12:59]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:12:59]wFMCommunicate OK [14:12:59]SAM_PROTO_GetShiftState done [14:12:59]FM_GetShiftState done [14:12:59]opened in 1729729836 [14:12:59]opened+sec_in_day 1729816236 [14:12:59]quantity*price = 170002 [14:12:59]sum+1 = 170003 [14:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.04 НДС 12% : 180.53 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 177 24.10.2024 14:12 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155552 ФПД: 46869694668466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141259&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155552&fm=46869694668466&tin=02508201610067®Number=0000000000091693&sum=170000 [14:13:00]StoreToDocumentArchive [14:13:00]shift 534 fd 155552 [14:13:00]save to /storage/0534/doc_00155552 [14:13:00]save last doc name /storage/0534/doc_00155552 to /storage/kkm_last_doc_name [14:13:00]save OK [14:13:00]Clear old archive folders... [14:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:13:00]tlvbuf is 01F3EED0 [14:13:00]SAM_PROTO_ClearQueue [14:13:00]wFMCommunicate request_size=4 [14:13:00]MH_SAM_APDU [14:13:00]CAPDU: 80 09 00 00 [14:13:00]Write to MH i2c: E2 08 00 C1 02 80 09 00 00 00 00 00 00 35 [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:00]Read from MH i2c: E2 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 03 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [14:13:00]RAPDU: 90 00 [14:13:00]wFMCommunicate OK [14:13:00]SAM_PROTO_ClearQueue done [14:13:00]KKMCreateOFDPacket [14:13:00]OFDProtocolAddRootSTLVToBuf [14:13:00]FM_MakeSignedData [14:13:00]FM_MakeSignedData [14:13:00]SAM_PROTO_SignData [14:13:00]wFMCommunicate request_size=4 [14:13:00]MH_SAM_APDU [14:13:00]CAPDU: 80 0D 01 02 [14:13:00]Write to MH i2c: E2 08 00 C2 02 80 0D 01 02 00 00 00 00 3D [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:00]Read from MH i2c: E2 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 03 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [14:13:00]RAPDU: 90 00 [14:13:00]wFMCommunicate OK [14:13:00]wFMCommunicate request_size=255 [14:13:00]MH_SAM_APDU [14:13:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 EB 55 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 5F 02 00 35 04 06 00 2A A0 B3 80 [14:13:00]Write to MH i2c: E2 02 01 C3 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 EB 55 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 5F 02 00 35 04 06 00 2A A0 B3 80 00 00 35 [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:01]Read from MH i2c: E2 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 03 00 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [14:13:01]RAPDU: 90 00 [14:13:01]wFMCommunicate OK [14:13:01]wFMCommunicate request_size=7 [14:13:01]MH_SAM_APDU [14:13:01]CAPDU: 80 0D 02 02 02 5E B2 [14:13:01]Write to MH i2c: E2 0A 00 C4 02 80 0D 02 02 02 00 5E B2 00 00 54 [14:13:01]Write i2c OK [14:13:01]MH_I2C_Read... [14:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:01]Read from MH i2c: E2 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 03 00 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [14:13:01]RAPDU: 90 00 [14:13:01]wFMCommunicate OK [14:13:01]wFMCommunicate request_size=4 [14:13:01]MH_SAM_APDU [14:13:01]CAPDU: 80 0D 03 02 [14:13:01]Write to MH i2c: E2 08 00 C5 02 80 0D 03 02 00 00 00 00 42 [14:13:01]Write i2c OK [14:13:01]MH_I2C_Read... [14:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:01]Read from MH i2c: E2 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 0B 00 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 0B 00 C5 02 00 D4 99 2E 71 52 65 28 21 90 00 4F [14:13:01]RAPDU: D4 99 2E 71 52 65 28 21 90 00 [14:13:01]wFMCommunicate OK [14:13:01]SAM_PROTO_SignData done [14:13:01]FM_MakeSignedData done [14:13:01]CreateOFDProtocolMessage [14:13:01]wFMCommunicate request_size=4 [14:13:01]MH_SAM_APDU [14:13:01]CAPDU: 80 11 00 00 [14:13:01]Write to MH i2c: E2 08 00 C6 02 80 11 00 00 00 00 00 00 42 [14:13:01]Write i2c OK [14:13:01]MH_I2C_Read... [14:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:01]Read from MH i2c: E2 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 17 00 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: E2 17 00 C6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 97 [14:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:13:01]wFMCommunicate OK [14:13:01]CreateOFDProtocolMessage done [14:13:01]OFDSenderStorePacket 155552 [14:13:01]StoreOFDPacket docnum=155552 [14:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 DA 95 04 01 E5 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 EB 55 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 5F 02 00 35 04 06 00 2A A0 B3 80 5E B2 D4 99 2E 71 52 65 28 21 [14:13:01]CheckFolder [14:13:01]dirname=/storage/ofd_packets [14:13:01]CheckFolder done [14:13:01]ProducePacketName [14:13:01]name=ofd_packets/00155552 [14:13:01]NVStorageSaveData ofd_packets/00155552 [14:13:01]File name is /storage/ofd_packets/00155552 [14:13:01]Write 298 bytes [14:13:01]NVStorageSaveData done [14:13:01]OFDSenderStorePacket done [14:13:01]KKMCreateOFDPacket done [14:13:01]NVStorageSaveData kkm_last_timestamp [14:13:01]File name is /storage/kkm_last_timestamp [14:13:01]Write 4 bytes [14:13:01]NVStorageSaveData done [14:13:01]ExternCall_PrintAddStr [14:13:01]wPrintStart [14:13:01]Write to MH i2c: 01 00 00 C7 02 C9 [14:13:01]Write i2c OK [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: 01 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: 01 07 00 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: 01 07 00 C7 02 00 00 00 00 00 FF 0F DE [14:13:01]RasterBufferAndPrint [14:13:01]line Счет N : (1)98356 [14:13:01]line ИНН: 02508201610067 [14:13:01]line Контрольно-Кассовый Чек [14:13:01]line ПРОДАЖА [14:13:01]line ТРК (МРК, ГНК) : 32 [14:13:01]line Товар: 2710194210 [14:13:01]line ДТ-К-5 [14:13:01]line 22.310 * 76.20 [14:13:01]line = 1700.02 [14:13:01]line НДС 12% НСП 1% [14:13:01]line > о реализуемом товаре [14:13:01]line ОКРУГЛЕНИЕ: -0.02 [14:13:01]line ИТОГО: 1700.00 [14:13:01]line Внесено: 1700.00 [14:13:01]line СДАЧА: 0.00 [14:13:01]line НСП 1% : 15.04 [14:13:01]line НДС 12% : 180.53 [14:13:01]line Наличными: 1700.00 [14:13:01]line Безнал.: 0.00 [14:13:01]line Место: АЗС № 143 "Партнер Нефть" [14:13:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:13:01]line СНО: Общий режим [14:13:01]line Чек 177 24.10.2024 14:12 [14:13:01]line Смена: 534 ФФД: 1.0 [14:13:01]line ЗНМ: 0300000096 [14:13:01]line РНМ: 0000000000091693 [14:13:01]line Версия ККМ: 001 [14:13:01]line ФМ: 0000000000871792 [14:13:01]line ФД: 155552 [14:13:01]line ФПД: 46869694668466 [14:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141259&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155552&fm=46869694668466&tin=02508201610067®Number=0000000000091693&sum=170000 [14:13:01]OFD Sender: Processing packet 155552 [packets to send 31, broken 30] [14:13:01]ProducePacketName [14:13:01]name=ofd_packets/00155552 [14:13:01]OFD Sender: To server: pG, [14:13:01]CommunicateWithHost lk.salyk.kg:30040 [14:13:01]ConnectInit lk.salyk.kg [14:13:01]written 0, free lines is 4095 [14:13:01]Connected sock=10 [14: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 39 32 0C 01 00 00 DA 95 04 01 E5 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 EB 55 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 5F 02 00 35 04 06 00 2A A0 B3 80 5E B2 D4 99 2E 71 52 65 28 21 [14: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 39 32 4F 00 00 00 C2 7E 47 00 DD 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 39 32 10 04 04 00 A0 5F 02 00 F4 03 04 00 64 FB 19 67 B6 04 01 00 00 BE FE 16 AD AE 55 AE D5 [14:13:01]CommunicateWithHost err = 0 [14:13:01]CheckOFDResponse [14:13:01]1017 (14) - 77093643461234 [14:13:01]1041 (16) - 0000000000871792 [14:13:01]1040 (4) - 155552 [14:13:01]1012 (4) - 24.10.2024 07:46 [14:13:01]1206 (1) - 0 [14:13:01]OFD Sender: Remove packet 155552 [14:13:01]ProducePacketName [14:13:01]name=ofd_packets/00155552 [14:13:01]NVStorageDeleteData [14:13:01]Write to MH i2c: 01 00 00 F2 02 F4 [14:13:01]Write i2c OK [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: 01 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: 01 07 00 [14:13:01]MH_I2C_Read... [14:13:01]Read from MH i2c: 01 07 00 F2 02 00 00 00 00 00 E0 0C E7 [14:13:01]RasterBufferAndPrint [14:13:01]line [14:13:01]line [14:13:01]line [14:13:01]line [14:13:01]line [14:13:02]written 0, free lines is 3301 [14:13:02]process_action close_receipt done [14:13:02]requested_data is exist [14:13:02]produce_requested_data [14:13:02]requested_item fm.sn is exist - process it [14:13:02]wFMCommunicate request_size=4 [14:13:02]MH_SAM_APDU [14:13:02]CAPDU: 80 11 00 00 [14:13:02]Write to MH i2c: E2 08 00 F9 02 80 11 00 00 00 00 00 00 75 [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:02]Read from MH i2c: E2 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 17 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 17 00 F9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CA [14:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:13:02]wFMCommunicate OK [14:13:02]requested_item fd.num is exist - process it [14:13:02]SAM_PROTO_GetFieldsCounters [14:13:02]wFMCommunicate request_size=4 [14:13:02]MH_SAM_APDU [14:13:02]CAPDU: 80 13 00 00 [14:13:02]Write to MH i2c: E2 08 00 FA 02 80 13 00 00 00 00 00 00 78 [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:02]Read from MH i2c: E2 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 62 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 62 00 FA 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A0 5F 02 00 0E 04 04 00 16 02 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 CA [14:13: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A0 5F 02 00 0E 04 04 00 16 02 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 [14:13:02]wFMCommunicate OK [14:13:02]SAM_PROTO_GetFieldsCounters done [14:13:02]requested_item shift.num is exist - process it [14:13:02]requested_item shift.opened is exist - process it [14:13:02]req_shift_opened [14:13:02]FM_GetShiftState [14:13:02]SAM_PROTO_GetShiftState [14:13:02]wFMCommunicate request_size=4 [14:13:02]MH_SAM_APDU [14:13:02]CAPDU: 80 13 01 00 [14:13:02]Write to MH i2c: E2 08 00 FB 02 80 13 01 00 00 00 00 00 7A [14:13:02]Write i2c OK [14:13:02]MH_I2C_Read... [14:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:02]Read from MH i2c: E2 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 0E 00 [14:13:02]MH_I2C_Read... [14:13:02]Read from MH i2c: E2 0E 00 FB 02 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 C7 [14:13:02]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:13:02]wFMCommunicate OK [14:13:02]SAM_PROTO_GetShiftState done [14:13:02]FM_GetShiftState done [14:13:02]req_shift_opened done [14:13:02]requested_item shift.open_date is exist - process it [14:13:02]req_shift_open_date [14:13:02]req_shift_open_date done [14:13:02]produce_requested_data done [14:13:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155552,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:13:02]process_action_free close_receipt [14:13:02]json_value_free [14:13:02]json_value_free done [14:13:02]process_json_proto returns [14:13:02]Send response to host [14:13:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155552,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:13:02]free response buf [14:13:02]execute_script done [14:13:02]execute_script returns [14:13:02]free content buf [14:13:02]Sock 9.Close socket [14:13:02]Sock 9.Thread stoped [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:00]accept exits with 8 [14:14:00]New connection [14:14:00]New thread 3066781028 created [14:14:00]Thread 3066637668 joined [14:14:00]Waiting for new connection... [14:14:00] Sock 8.Parse request [14:14:00]Sock 8.Check first char [14:14:00]Sock 8.First char is OK [14:14:00]request: POST /json_proto HTTP/1.0 [14:14:00]Method: POST [14:14:00]URL: /json_proto [14:14:00]Method is POST - this is cgi request [14:14:00]url: /json_proto [14:14:00]query_string will be loaded in cgi processing [14:14:00]execute_cgi json_proto POST (null) [14:14:00]execute_cgi path=json_proto method=POST [14:14:00]POST find Content-Length [14:14:00]Host: 172.17.63.3:8080 [14:14:00]Content-Length: 765 [14:14:00]Content-Type: application/json [14:14:00] [14:14:00]POST finish read [14:14:00]Found Content-Length = 765 [14:14:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:00]execute_script... [14:14:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:00]POST & json_proto [14:14:00]process_json_proto [14:14:00]json parsed OK: [14:14:00]protocol is kg_v1.0 [14:14:00]action value=close_receipt [14:14:00]process_action close_receipt [14:14:00]cmd_close_receipt [14:14:00]MH_GetDate [14:14:00]Write to MH i2c: F0 00 00 FC 02 ED [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: F0 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: F0 09 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: F0 09 00 FC 02 00 29 56 1A 67 50 D1 6C 64 E7 [14:14:00]GetLastDocTimeStamp 1729779179 [14:14:00]current date 1729779241 [14:14:00]FM_GetShiftState [14:14:00]SAM_PROTO_GetShiftState [14:14:00]wFMCommunicate request_size=4 [14:14:00]MH_SAM_APDU [14:14:00]CAPDU: 80 13 01 00 [14:14:00]Write to MH i2c: E2 08 00 FD 02 80 13 01 00 00 00 00 00 7C [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:00]Read from MH i2c: E2 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 0E 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 0E 00 FD 02 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 C9 [14:14:00]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:14:00]wFMCommunicate OK [14:14:00]SAM_PROTO_GetShiftState done [14:14:00]FM_GetShiftState done [14:14:00]opened in 1729729836 [14:14:00]opened+sec_in_day 1729816236 [14:14:00]quantity*price = 30038 [14:14:00]sum+1 = 30039 [14:14:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 178 24.10.2024 14:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155553 ФПД: 256534986249748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141401&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155553&fm=256534986249748&tin=02508201610067®Number=0000000000091693&sum=30038 [14:14:02]StoreToDocumentArchive [14:14:02]shift 534 fd 155553 [14:14:02]save to /storage/0534/doc_00155553 [14:14:02]save last doc name /storage/0534/doc_00155553 to /storage/kkm_last_doc_name [14:14:02]save OK [14:14:02]Clear old archive folders... [14:14:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:02]tlvbuf is 01F3F570 [14:14:02]SAM_PROTO_ClearQueue [14:14:02]wFMCommunicate request_size=4 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 09 00 00 [14:14:02]Write to MH i2c: E2 08 00 0A 03 80 09 00 00 00 00 00 00 7F [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [14:14:02]RAPDU: 90 00 [14:14:02]wFMCommunicate OK [14:14:02]SAM_PROTO_ClearQueue done [14:14:02]KKMCreateOFDPacket [14:14:02]OFDProtocolAddRootSTLVToBuf [14:14:02]FM_MakeSignedData [14:14:02]FM_MakeSignedData [14:14:02]SAM_PROTO_SignData [14:14:02]wFMCommunicate request_size=4 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 0D 01 02 [14:14:02]Write to MH i2c: E2 08 00 0B 03 80 0D 01 02 00 00 00 00 87 [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [14:14:02]RAPDU: 90 00 [14:14:02]wFMCommunicate OK [14:14:02]wFMCommunicate request_size=255 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 29 56 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 5F 02 00 35 04 06 00 E9 [14:14:02]Write to MH i2c: E2 02 01 0C 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 29 56 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 5F 02 00 35 04 06 00 E9 00 00 10 [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [14:14:02]RAPDU: 90 00 [14:14:02]wFMCommunicate OK [14:14:02]wFMCommunicate request_size=10 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 0D 02 02 05 51 34 BA 56 14 [14:14:02]Write to MH i2c: E2 0D 00 0D 03 80 0D 02 02 05 00 51 34 BA 56 14 00 00 3D [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [14:14:02]RAPDU: 90 00 [14:14:02]wFMCommunicate OK [14:14:02]wFMCommunicate request_size=4 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 0D 03 02 [14:14:02]Write to MH i2c: E2 08 00 0E 03 80 0D 03 02 00 00 00 00 8C [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:02]OFD Sender: No OFD packet to send [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 0B 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 0B 00 0E 03 00 A8 80 36 39 A5 96 77 8D 90 00 63 [14:14:02]RAPDU: A8 80 36 39 A5 96 77 8D 90 00 [14:14:02]wFMCommunicate OK [14:14:02]SAM_PROTO_SignData done [14:14:02]FM_MakeSignedData done [14:14:02]CreateOFDProtocolMessage [14:14:02]wFMCommunicate request_size=4 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 11 00 00 [14:14:02]Write to MH i2c: E2 08 00 0F 03 80 11 00 00 00 00 00 00 8C [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 17 00 [14:14:02]MH_I2C_Read... [14:14:02]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 39 32 90 00 E1 [14:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:14:02]wFMCommunicate OK [14:14:02]CreateOFDProtocolMessage done [14:14:02]OFDSenderStorePacket 155553 [14:14:02]StoreOFDPacket docnum=155553 [14:14:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8B 98 07 01 18 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 29 56 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 5F 02 00 35 04 06 00 E9 51 34 BA 56 14 A8 80 36 39 A5 96 77 8D [14:14:02]CheckFolder [14:14:02]dirname=/storage/ofd_packets [14:14:02]CheckFolder done [14:14:02]ProducePacketName [14:14:02]name=ofd_packets/00155553 [14:14:02]NVStorageSaveData ofd_packets/00155553 [14:14:02]File name is /storage/ofd_packets/00155553 [14:14:02]Write 301 bytes [14:14:02]NVStorageSaveData done [14:14:02]OFDSenderStorePacket done [14:14:02]KKMCreateOFDPacket done [14:14:02]NVStorageSaveData kkm_last_timestamp [14:14:02]File name is /storage/kkm_last_timestamp [14:14:02]Write 4 bytes [14:14:02]NVStorageSaveData done [14:14:02]ExternCall_PrintAddStr [14:14:02]wPrintStart [14:14:02]Write to MH i2c: 01 00 00 10 03 13 [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: 01 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: 01 07 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: 01 07 00 10 03 00 00 00 00 00 FF 0F 28 [14:14:02]RasterBufferAndPrint [14:14:02]line Счет N : (1)98358 [14:14:02]line ИНН: 02508201610067 [14:14:02]line Контрольно-Кассовый Чек [14:14:02]line ПРОДАЖА [14:14:02]line ТРК (МРК, ГНК) : 11 [14:14:02]line Товар: 2710124130 [14:14:02]line Аи-92-К-5 [14:14:02]line 4.490 * 66.90 [14:14:02]line = 300.38 [14:14:02]line НДС 12% НСП 1% [14:14:02]line > о реализуемом товаре [14:14:02]line ИТОГО: 300.38 [14:14:02]line НСП 1% : 2.66 [14:14:02]line НДС 12% : 31.90 [14:14:02]line Наличными: 0.00 [14:14:02]line Безнал.: 300.38 [14:14:02]line Место: АЗС № 143 "Партнер Нефть" [14:14:02]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:14:02]line СНО: Общий режим [14:14:02]line Чек 178 24.10.2024 14:14 [14:14:02]line Смена: 534 ФФД: 1.0 [14:14:02]line ЗНМ: 0300000096 [14:14:02]line РНМ: 0000000000091693 [14:14:02]line Версия ККМ: 001 [14:14:02]line Платежная система: Mbank [14:14:02]line ФМ: 0000000000871792 [14:14:02]line ФД: 155553 [14:14:02]line ФПД: 256534986249748 [14:14:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141401&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155553&fm=256534986249748&tin=02508201610067®Number=0000000000091693&sum=30038 [14:14:02]OFD Sender: Processing packet 155553 [packets to send 31, broken 30] [14:14:02]ProducePacketName [14:14:02]name=ofd_packets/00155553 [14:14:02]OFD Sender: To server: pG, [14:14:02]CommunicateWithHost lk.salyk.kg:30040 [14:14:02]ConnectInit lk.salyk.kg [14:14:02]written 0, free lines is 4095 [14:14:02]Connected sock=10 [14:14:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8B 98 07 01 18 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 29 56 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 5F 02 00 35 04 06 00 E9 51 34 BA 56 14 A8 80 36 39 A5 96 77 8D [14:14:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 22 A7 47 00 DA 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 39 32 10 04 04 00 A1 5F 02 00 F4 03 04 00 A1 FB 19 67 B6 04 01 00 00 E8 AC 85 9A 8F 61 36 D8 [14:14:03]CommunicateWithHost err = 0 [14:14:03]CheckOFDResponse [14:14:03]1017 (14) - 77093643461234 [14:14:03]1041 (16) - 0000000000871792 [14:14:03]1040 (4) - 155553 [14:14:03]1012 (4) - 24.10.2024 07:47 [14:14:03]1206 (1) - 0 [14:14:03]OFD Sender: Remove packet 155553 [14:14:03]ProducePacketName [14:14:03]name=ofd_packets/00155553 [14:14:03]NVStorageDeleteData [14:14:03]Write to MH i2c: 01 00 00 39 03 3C [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: 01 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: 01 07 00 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: 01 07 00 39 03 00 00 00 00 00 0A 0D 5A [14:14:03]RasterBufferAndPrint [14:14:03]line [14:14:03]line [14:14:03]line [14:14:03]line [14:14:03]line [14:14:03]written 0, free lines is 3345 [14:14:03]process_action close_receipt done [14:14:03]requested_data is exist [14:14:03]produce_requested_data [14:14:03]requested_item fm.sn is exist - process it [14:14:03]wFMCommunicate request_size=4 [14:14:03]MH_SAM_APDU [14:14:03]CAPDU: 80 11 00 00 [14:14:03]Write to MH i2c: E2 08 00 40 03 80 11 00 00 00 00 00 00 BD [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:03]Read from MH i2c: E2 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: E2 17 00 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: E2 17 00 40 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 12 [14:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:14:03]wFMCommunicate OK [14:14:03]requested_item fd.num is exist - process it [14:14:03]SAM_PROTO_GetFieldsCounters [14:14:03]wFMCommunicate request_size=4 [14:14:03]MH_SAM_APDU [14:14:03]CAPDU: 80 13 00 00 [14:14:03]Write to MH i2c: E2 08 00 41 03 80 13 00 00 00 00 00 00 C0 [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:03]Read from MH i2c: E2 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: E2 62 00 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: E2 62 00 41 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A1 5F 02 00 0E 04 04 00 16 02 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 16 [14:14: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A1 5F 02 00 0E 04 04 00 16 02 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 [14:14:03]wFMCommunicate OK [14:14:03]SAM_PROTO_GetFieldsCounters done [14:14:03]requested_item shift.num is exist - process it [14:14:03]requested_item shift.opened is exist - process it [14:14:03]req_shift_opened [14:14:03]FM_GetShiftState [14:14:03]SAM_PROTO_GetShiftState [14:14:03]wFMCommunicate request_size=4 [14:14:03]MH_SAM_APDU [14:14:03]CAPDU: 80 13 01 00 [14:14:03]Write to MH i2c: E2 08 00 42 03 80 13 01 00 00 00 00 00 C2 [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:03]Read from MH i2c: E2 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: E2 0E 00 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: E2 0E 00 42 03 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 0F [14:14:03]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:14:03]wFMCommunicate OK [14:14:03]SAM_PROTO_GetShiftState done [14:14:03]FM_GetShiftState done [14:14:03]req_shift_opened done [14:14:03]requested_item shift.open_date is exist - process it [14:14:03]req_shift_open_date [14:14:03]req_shift_open_date done [14:14:03]produce_requested_data done [14:14:03]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155553,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:14:03]process_action_free close_receipt [14:14:03]json_value_free [14:14:03]json_value_free done [14:14:03]process_json_proto returns [14:14:03]Send response to host [14:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155553,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:14:03]free response buf [14:14:03]execute_script done [14:14:03]execute_script returns [14:14:03]free content buf [14:14:03]Sock 8.Close socket [14:14:03]Sock 8.Thread stoped [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:11]accept exits with 9 [14:14:11]New connection [14:14:11]New thread 3066637668 created [14:14:11]Thread 3066781028 joined [14:14:11]Waiting for new connection... [14:14:11] Sock 9.Parse request [14:14:11]Sock 9.Check first char [14:14:11]Sock 9.First char is OK [14:14:11]request: POST /json_proto HTTP/1.0 [14:14:11]Method: POST [14:14:11]URL: /json_proto [14:14:11]Method is POST - this is cgi request [14:14:11]url: /json_proto [14:14:11]query_string will be loaded in cgi processing [14:14:11]execute_cgi json_proto POST (null) [14:14:11]execute_cgi path=json_proto method=POST [14:14:11]POST find Content-Length [14:14:11]Host: 172.17.63.3:8080 [14:14:11]Content-Length: 676 [14:14:11]Content-Type: application/json [14:14:11] [14:14:11]POST finish read [14:14:11]Found Content-Length = 676 [14:14:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:11]execute_script... [14:14: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)98357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:11]POST & json_proto [14:14:11]process_json_proto [14:14:11]json parsed OK: [14:14:11]protocol is kg_v1.0 [14:14:11]action value=close_receipt [14:14:11]process_action close_receipt [14:14:11]cmd_close_receipt [14:14:11]MH_GetDate [14:14:11]Write to MH i2c: F0 00 00 43 03 35 [14:14:11]Write i2c OK [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: F0 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: F0 09 00 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: F0 09 00 43 03 00 33 56 1A 67 50 D1 6C 64 39 [14:14:11]GetLastDocTimeStamp 1729779241 [14:14:11]current date 1729779251 [14:14:11]FM_GetShiftState [14:14:11]SAM_PROTO_GetShiftState [14:14:11]wFMCommunicate request_size=4 [14:14:11]MH_SAM_APDU [14:14:11]CAPDU: 80 13 01 00 [14:14:11]Write to MH i2c: E2 08 00 44 03 80 13 01 00 00 00 00 00 C4 [14:14:11]Write i2c OK [14:14:11]MH_I2C_Read... [14:14:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:11]Read from MH i2c: E2 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: E2 0E 00 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: E2 0E 00 44 03 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 11 [14:14:11]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:14:11]wFMCommunicate OK [14:14:11]SAM_PROTO_GetShiftState done [14:14:11]FM_GetShiftState done [14:14:11]opened in 1729729836 [14:14:11]opened+sec_in_day 1729816236 [14:14:11]quantity*price = 20003 [14:14:11]sum+1 = 20004 [14:14:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 179 24.10.2024 14:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155554 ФПД: 224726337321273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141411&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155554&fm=224726337321273&tin=02508201610067®Number=0000000000091693&sum=20000 [14:14:12]StoreToDocumentArchive [14:14:12]shift 534 fd 155554 [14:14:12]save to /storage/0534/doc_00155554 [14:14:12]save last doc name /storage/0534/doc_00155554 to /storage/kkm_last_doc_name [14:14:12]save OK [14:14:12]Clear old archive folders... [14:14:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:12]tlvbuf is 01F282E0 [14:14:12]SAM_PROTO_ClearQueue [14:14:12]wFMCommunicate request_size=4 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 80 09 00 00 [14:14:12]Write to MH i2c: E2 08 00 51 03 80 09 00 00 00 00 00 00 C6 [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 51 03 00 90 00 C8 [14:14:12]RAPDU: 90 00 [14:14:12]wFMCommunicate OK [14:14:12]SAM_PROTO_ClearQueue done [14:14:12]KKMCreateOFDPacket [14:14:12]OFDProtocolAddRootSTLVToBuf [14:14:12]FM_MakeSignedData [14:14:12]FM_MakeSignedData [14:14:12]SAM_PROTO_SignData [14:14:12]wFMCommunicate request_size=4 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 80 0D 01 02 [14:14:12]Write to MH i2c: E2 08 00 52 03 80 0D 01 02 00 00 00 00 CE [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 52 03 00 90 00 C9 [14:14:12]RAPDU: 90 00 [14:14:12]wFMCommunicate OK [14:14:12]wFMCommunicate request_size=255 [14:14:12]MH_SAM_APDU [14:14: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 33 56 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 5F 02 00 35 04 06 00 CC [14:14:12]Write to MH i2c: E2 02 01 53 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 33 56 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 5F 02 00 35 04 06 00 CC 00 00 C8 [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 53 03 00 90 00 CA [14:14:12]RAPDU: 90 00 [14:14:12]wFMCommunicate OK [14:14:12]wFMCommunicate request_size=10 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 80 0D 02 02 05 63 2D 81 F9 39 [14:14:12]Write to MH i2c: E2 0D 00 54 03 80 0D 02 02 05 00 63 2D 81 F9 39 00 00 1E [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 03 00 54 03 00 90 00 CB [14:14:12]RAPDU: 90 00 [14:14:12]wFMCommunicate OK [14:14:12]wFMCommunicate request_size=4 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 80 0D 03 02 [14:14:12]Write to MH i2c: E2 08 00 55 03 80 0D 03 02 00 00 00 00 D3 [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 0B 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 0B 00 55 03 00 AD BF DA BA 6D 18 A9 54 90 00 56 [14:14:12]RAPDU: AD BF DA BA 6D 18 A9 54 90 00 [14:14:12]wFMCommunicate OK [14:14:12]SAM_PROTO_SignData done [14:14:12]FM_MakeSignedData done [14:14:12]CreateOFDProtocolMessage [14:14:12]wFMCommunicate request_size=4 [14:14:12]MH_SAM_APDU [14:14:12]CAPDU: 80 11 00 00 [14:14:12]Write to MH i2c: E2 08 00 56 03 80 11 00 00 00 00 00 00 D3 [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:12]Read from MH i2c: E2 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: E2 17 00 [14:14:12]MH_I2C_Read... [14:14:12]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 39 32 90 00 28 [14:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:14:12]wFMCommunicate OK [14:14:12]CreateOFDProtocolMessage done [14:14:12]OFDSenderStorePacket 155554 [14:14:12]StoreOFDPacket docnum=155554 [14:14:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 32 C9 07 01 11 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 33 56 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 5F 02 00 35 04 06 00 CC 63 2D 81 F9 39 AD BF DA BA 6D 18 A9 54 [14:14:12]CheckFolder [14:14:12]dirname=/storage/ofd_packets [14:14:12]CheckFolder done [14:14:12]ProducePacketName [14:14:12]name=ofd_packets/00155554 [14:14:12]NVStorageSaveData ofd_packets/00155554 [14:14:12]File name is /storage/ofd_packets/00155554 [14:14:12]Write 301 bytes [14:14:12]NVStorageSaveData done [14:14:12]OFDSenderStorePacket done [14:14:12]KKMCreateOFDPacket done [14:14:12]NVStorageSaveData kkm_last_timestamp [14:14:12]File name is /storage/kkm_last_timestamp [14:14:12]Write 4 bytes [14:14:12]NVStorageSaveData done [14:14:12]ExternCall_PrintAddStr [14:14:12]wPrintStart [14:14:12]Write to MH i2c: 01 00 00 57 03 5A [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: 01 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: 01 07 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: 01 07 00 57 03 00 00 00 00 00 FF 0F 6F [14:14:12]RasterBufferAndPrint [14:14:12]line Счет N : (1)98357 [14:14:12]line ИНН: 02508201610067 [14:14:12]line Контрольно-Кассовый Чек [14:14:12]line ПРОДАЖА [14:14:12]line ТРК (МРК, ГНК) : 21 [14:14:12]line Товар: 2710124130 [14:14:12]line Аи-92-К-5 [14:14:12]line 2.990 * 66.90 [14:14:12]line = 200.03 [14:14:12]line НДС 12% НСП 1% [14:14:12]line > о реализуемом товаре [14:14:12]line ОКРУГЛЕНИЕ: -0.03 [14:14:12]line ИТОГО: 200.00 [14:14:12]line Внесено: 200.00 [14:14:12]line СДАЧА: 0.00 [14:14:12]line НСП 1% : 1.77 [14:14:12]line НДС 12% : 21.24 [14:14:12]line Наличными: 200.00 [14:14:12]line Безнал.: 0.00 [14:14:12]line Место: АЗС № 143 "Партнер Нефть" [14:14:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:14:12]line СНО: Общий режим [14:14:12]line Чек 179 24.10.2024 14:14 [14:14:12]line Смена: 534 ФФД: 1.0 [14:14:12]line ЗНМ: 0300000096 [14:14:12]line РНМ: 0000000000091693 [14:14:12]line Версия ККМ: 001 [14:14:12]line ФМ: 0000000000871792 [14:14:12]line ФД: 155554 [14:14:12]line ФПД: 224726337321273 [14:14:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141411&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155554&fm=224726337321273&tin=02508201610067®Number=0000000000091693&sum=20000 [14:14:13]OFD Sender: Processing packet 155554 [packets to send 31, broken 30] [14:14:13]ProducePacketName [14:14:13]name=ofd_packets/00155554 [14:14:13]OFD Sender: To server: pG, [14:14:13]CommunicateWithHost lk.salyk.kg:30040 [14:14:13]ConnectInit lk.salyk.kg [14:14:13]written 0, free lines is 4095 [14:14:13]Connected sock=10 [14:14: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 39 32 0F 01 00 00 32 C9 07 01 11 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 33 56 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 5F 02 00 35 04 06 00 CC 63 2D 81 F9 39 AD BF DA BA 6D 18 A9 54 [14:14: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 39 32 4F 00 00 00 EA DE 47 00 44 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 5F 02 00 F4 03 04 00 AC FB 19 67 B6 04 01 00 00 F9 2C BC 04 01 8C 2C 8D [14:14:13]CommunicateWithHost err = 0 [14:14:13]CheckOFDResponse [14:14:13]1017 (14) - 77093643461234 [14:14:13]1041 (16) - 0000000000871792 [14:14:13]1040 (4) - 155554 [14:14:13]1012 (4) - 24.10.2024 07:47 [14:14:13]1206 (1) - 0 [14:14:13]OFD Sender: Remove packet 155554 [14:14:13]ProducePacketName [14:14:13]name=ofd_packets/00155554 [14:14:13]NVStorageDeleteData [14:14:13]Write to MH i2c: 01 00 00 82 03 85 [14:14:13]Write i2c OK [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: 01 [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: 01 07 00 [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: 01 07 00 82 03 00 00 00 00 00 E0 0C 78 [14:14:13]RasterBufferAndPrint [14:14:13]line [14:14:13]line [14:14:13]line [14:14:13]line [14:14:13]line [14:14:13]written 0, free lines is 3304 [14:14:13]process_action close_receipt done [14:14:13]requested_data is exist [14:14:13]produce_requested_data [14:14:13]requested_item fm.sn is exist - process it [14:14:13]wFMCommunicate request_size=4 [14:14:13]MH_SAM_APDU [14:14:13]CAPDU: 80 11 00 00 [14:14:13]Write to MH i2c: E2 08 00 89 03 80 11 00 00 00 00 00 00 06 [14:14:13]Write i2c OK [14:14:13]MH_I2C_Read... [14:14:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:13]Read from MH i2c: E2 [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: E2 17 00 [14:14:13]MH_I2C_Read... [14:14:13]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 39 32 90 00 5B [14:14:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:14:13]wFMCommunicate OK [14:14:13]requested_item fd.num is exist - process it [14:14:13]SAM_PROTO_GetFieldsCounters [14:14:13]wFMCommunicate request_size=4 [14:14:13]MH_SAM_APDU [14:14:13]CAPDU: 80 13 00 00 [14:14:13]Write to MH i2c: E2 08 00 8A 03 80 13 00 00 00 00 00 00 09 [14:14:13]Write i2c OK [14:14:13]MH_I2C_Read... [14:14:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:13]Read from MH i2c: E2 [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: E2 62 00 [14:14:13]MH_I2C_Read... [14:14:13]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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A2 5F 02 00 0E 04 04 00 16 02 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 63 [14:14:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A2 5F 02 00 0E 04 04 00 16 02 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 [14:14:13]wFMCommunicate OK [14:14:13]SAM_PROTO_GetFieldsCounters done [14:14:13]requested_item shift.num is exist - process it [14:14:13]requested_item shift.opened is exist - process it [14:14:13]req_shift_opened [14:14:13]FM_GetShiftState [14:14:13]SAM_PROTO_GetShiftState [14:14:13]wFMCommunicate request_size=4 [14:14:13]MH_SAM_APDU [14:14:13]CAPDU: 80 13 01 00 [14:14:13]Write to MH i2c: E2 08 00 8B 03 80 13 01 00 00 00 00 00 0B [14:14:13]Write i2c OK [14:14:13]MH_I2C_Read... [14:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:13]Read from MH i2c: E2 [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: E2 0E 00 [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: E2 0E 00 8B 03 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 58 [14:14:13]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:14:13]wFMCommunicate OK [14:14:13]SAM_PROTO_GetShiftState done [14:14:13]FM_GetShiftState done [14:14:13]req_shift_opened done [14:14:13]requested_item shift.open_date is exist - process it [14:14:13]req_shift_open_date [14:14:13]req_shift_open_date done [14:14:13]produce_requested_data done [14:14:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155554,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:14:13]process_action_free close_receipt [14:14:13]json_value_free [14:14:13]json_value_free done [14:14:13]process_json_proto returns [14:14:13]Send response to host [14:14:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155554,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:14:13]free response buf [14:14:13]execute_script done [14:14:13]execute_script returns [14:14:13]free content buf [14:14:13]Sock 9.Close socket [14:14:13]Sock 9.Thread stoped [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:08]int [14:16:08]Write to MH i2c: 01 00 00 8C 03 8F [14:16:08]*** FLAG_PRN_KEY set [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 07 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 07 00 8C 03 00 08 00 00 00 FF 0F AC [14:16:08]state=0 [14:16:08]Key pressed [14:16:08]Feed [14:16:08]Write to MH i2c: D8 00 00 8D 03 67 [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: D8 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: D8 01 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: D8 01 00 8D 03 00 68 [14:16:08]int [14:16:08]Write to MH i2c: 01 00 00 8E 03 91 [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 07 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 07 00 8E 03 00 48 00 00 00 3D 00 1D [14:16:08]state=2 [14:16:08]Key pressed [14:16:08]int [14:16:08]Write to MH i2c: 01 00 00 8F 03 92 [14:16:08]*** FLAG_PRN_KEY reset [14:16:08]Write i2c OK [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 07 00 [14:16:08]MH_I2C_Read... [14:16:08]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 F6 0F 9E [14:16:08]state=2 [14:16:08]Stop feed [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:54]accept exits with 8 [14:16:54]New connection [14:16:54]New thread 3066781028 created [14:16:54]Thread 3066637668 joined [14:16:54]Waiting for new connection... [14:16:54] Sock 8.Parse request [14:16:54]Sock 8.Check first char [14:16:54]Sock 8.First char is OK [14:16:54]request: POST /json_proto HTTP/1.0 [14:16:54]Method: POST [14:16:54]URL: /json_proto [14:16:54]Method is POST - this is cgi request [14:16:54]url: /json_proto [14:16:54]query_string will be loaded in cgi processing [14:16:54]execute_cgi json_proto POST (null) [14:16:54]execute_cgi path=json_proto method=POST [14:16:54]POST find Content-Length [14:16:54]Host: 172.17.63.3:8080 [14:16:54]Content-Length: 799 [14:16:54]Content-Type: application/json [14:16:54] [14:16:54]POST finish read [14:16:54]Found Content-Length = 799 [14:16:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 46.780, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4466732.36", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:54]execute_script... [14:16: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)98359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 46.780, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4466732.36", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:54]POST & json_proto [14:16:54]process_json_proto [14:16:54]json parsed OK: [14:16:54]protocol is kg_v1.0 [14:16:54]action value=close_receipt [14:16:54]process_action close_receipt [14:16:54]cmd_close_receipt [14:16:54]MH_GetDate [14:16:54]Write to MH i2c: F0 00 00 90 03 82 [14:16:54]Write i2c OK [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: F0 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: F0 09 00 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: F0 09 00 90 03 00 D6 56 1A 67 50 D1 6C 64 29 [14:16:54]GetLastDocTimeStamp 1729779251 [14:16:54]current date 1729779414 [14:16:54]FM_GetShiftState [14:16:54]SAM_PROTO_GetShiftState [14:16:54]wFMCommunicate request_size=4 [14:16:54]MH_SAM_APDU [14:16:54]CAPDU: 80 13 01 00 [14:16:54]Write to MH i2c: E2 08 00 91 03 80 13 01 00 00 00 00 00 11 [14:16:54]Write i2c OK [14:16:54]MH_I2C_Read... [14:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:54]Read from MH i2c: E2 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: E2 0E 00 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: E2 0E 00 91 03 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 5E [14:16:54]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:16:54]wFMCommunicate OK [14:16:54]SAM_PROTO_GetShiftState done [14:16:54]FM_GetShiftState done [14:16:54]opened in 1729729836 [14:16:54]opened+sec_in_day 1729816236 [14:16:54]quantity*price = 0 [14:16:54]sum+1 = 1 [14:16:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 180 24.10.2024 14:16 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4466732.36 ФМ: 0000000000871792 ФД: 155555 ФПД: 143701835864185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141654&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155555&fm=143701835864185&tin=02508201610067®Number=0000000000091693&sum=0 [14:16:55]StoreToDocumentArchive [14:16:55]shift 534 fd 155555 [14:16:55]save to /storage/0534/doc_00155555 [14:16:55]save last doc name /storage/0534/doc_00155555 to /storage/kkm_last_doc_name [14:16:55]save OK [14:16:55]Clear old archive folders... [14:16:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:16:55]tlvbuf is 01F3BE00 [14:16:55]SAM_PROTO_ClearQueue [14:16:55]wFMCommunicate request_size=4 [14:16:55]MH_SAM_APDU [14:16:55]CAPDU: 80 09 00 00 [14:16:55]Write to MH i2c: E2 08 00 9E 03 80 09 00 00 00 00 00 00 13 [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:55]Read from MH i2c: E2 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 9E 03 00 90 00 15 [14:16:55]RAPDU: 90 00 [14:16:55]wFMCommunicate OK [14:16:55]SAM_PROTO_ClearQueue done [14:16:55]KKMCreateOFDPacket [14:16:55]OFDProtocolAddRootSTLVToBuf [14:16:55]FM_MakeSignedData [14:16:55]FM_MakeSignedData [14:16:55]SAM_PROTO_SignData [14:16:55]wFMCommunicate request_size=4 [14:16:55]MH_SAM_APDU [14:16:55]CAPDU: 80 0D 01 02 [14:16:55]Write to MH i2c: E2 08 00 9F 03 80 0D 01 02 00 00 00 00 1B [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:55]Read from MH i2c: E2 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 9F 03 00 90 00 16 [14:16:55]RAPDU: 90 00 [14:16:55]wFMCommunicate OK [14:16:55]wFMCommunicate request_size=255 [14:16:55]MH_SAM_APDU [14:16:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC B6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 D6 56 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 5F 02 00 35 04 06 00 82 B2 30 E1 [14:16:55]Write to MH i2c: E2 02 01 A0 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC B6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 D6 56 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 5F 02 00 35 04 06 00 82 B2 30 E1 00 00 B1 [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:56]Read from MH i2c: E2 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 03 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 03 00 A0 03 00 90 00 17 [14:16:56]RAPDU: 90 00 [14:16:56]wFMCommunicate OK [14:16:56]wFMCommunicate request_size=7 [14:16:56]MH_SAM_APDU [14:16:56]CAPDU: 80 0D 02 02 02 58 79 [14:16:56]Write to MH i2c: E2 0A 00 A1 03 80 0D 02 02 02 00 58 79 00 00 F3 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:56]Read from MH i2c: E2 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 03 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [14:16:56]RAPDU: 90 00 [14:16:56]wFMCommunicate OK [14:16:56]wFMCommunicate request_size=4 [14:16:56]MH_SAM_APDU [14:16:56]CAPDU: 80 0D 03 02 [14:16:56]Write to MH i2c: E2 08 00 A2 03 80 0D 03 02 00 00 00 00 20 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:56]Read from MH i2c: E2 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 0B 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 0B 00 A2 03 00 40 EB D6 FA 30 83 F4 A0 90 00 63 [14:16:56]RAPDU: 40 EB D6 FA 30 83 F4 A0 90 00 [14:16:56]wFMCommunicate OK [14:16:56]SAM_PROTO_SignData done [14:16:56]FM_MakeSignedData done [14:16:56]CreateOFDProtocolMessage [14:16:56]wFMCommunicate request_size=4 [14:16:56]MH_SAM_APDU [14:16:56]CAPDU: 80 11 00 00 [14:16:56]Write to MH i2c: E2 08 00 A3 03 80 11 00 00 00 00 00 00 20 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:56]Read from MH i2c: E2 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 17 00 [14:16:56]MH_I2C_Read... [14:16:56]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 39 32 90 00 75 [14:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:16:56]wFMCommunicate OK [14:16:56]CreateOFDProtocolMessage done [14:16:56]OFDSenderStorePacket 155555 [14:16:56]StoreOFDPacket docnum=155555 [14:16:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 98 1B 04 01 5A 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC B6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 D6 56 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 5F 02 00 35 04 06 00 82 B2 30 E1 58 79 40 EB D6 FA 30 83 F4 A0 [14:16:56]CheckFolder [14:16:56]dirname=/storage/ofd_packets [14:16:56]CheckFolder done [14:16:56]ProducePacketName [14:16:56]name=ofd_packets/00155555 [14:16:56]NVStorageSaveData ofd_packets/00155555 [14:16:56]File name is /storage/ofd_packets/00155555 [14:16:56]Write 298 bytes [14:16:56]NVStorageSaveData done [14:16:56]OFDSenderStorePacket done [14:16:56]KKMCreateOFDPacket done [14:16:56]NVStorageSaveData kkm_last_timestamp [14:16:56]File name is /storage/kkm_last_timestamp [14:16:56]Write 4 bytes [14:16:56]NVStorageSaveData done [14:16:56]ExternCall_PrintAddStr [14:16:56]wPrintStart [14:16:56]Write to MH i2c: 01 00 00 A4 03 A7 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 07 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 07 00 A4 03 00 00 00 00 00 FF 0F BC [14:16:56]RasterBufferAndPrint [14:16:56]line Счет N : (1)98359 [14:16:56]line ИНН: 02508201610067 [14:16:56]line Контрольно-Кассовый Чек [14:16:56]line ПРОДАЖА [14:16:56]line ТРК (МРК, ГНК) : 32 [14:16:56]line Товар: 2710194210 [14:16:56]line ДТ-К-5 [14:16:56]line 46.780 * 0.00 [14:16:56]line = 0.00 [14:16:56]line НДС 12% НСП 1% [14:16:56]line > о реализуемом товаре [14:16:56]line ИТОГО: 0.00 [14:16:56]line НСП 1% : 0.00 [14:16:56]line НДС 12% : 0.00 [14:16:56]line Наличными: 0.00 [14:16:56]line Безнал.: 0.00 [14:16:56]line Место: АЗС № 143 "Партнер Нефть" [14:16:56]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:16:56]line СНО: Общий режим [14:16:56]line Чек 180 24.10.2024 14:16 [14:16:56]line Смена: 534 ФФД: 1.0 [14:16:56]line ЗНМ: 0300000096 [14:16:56]line РНМ: 0000000000091693 [14:16:56]line Версия ККМ: 001 [14:16:56]line Талоны: Топливные Талоны [14:16:56]line 4466732.36 [14:16:56]line ФМ: 0000000000871792 [14:16:56]line ФД: 155555 [14:16:56]line ФПД: 143701835864185 [14:16:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141654&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155555&fm=143701835864185&tin=02508201610067®Number=0000000000091693&sum=0 [14:16:56]OFD Sender: Processing packet 155555 [packets to send 31, broken 30] [14:16:56]ProducePacketName [14:16:56]name=ofd_packets/00155555 [14:16:56]OFD Sender: To server: pG, [14:16:56]CommunicateWithHost lk.salyk.kg:30040 [14:16:56]ConnectInit lk.salyk.kg [14:16:56]written 0, free lines is 4095 [14:16:56]Connected sock=10 [14:16: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 39 32 0C 01 00 00 98 1B 04 01 5A 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC B6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 D6 56 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 5F 02 00 35 04 06 00 82 B2 30 E1 58 79 40 EB D6 FA 30 83 F4 A0 [14:16:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 BB DC 47 00 25 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 39 32 10 04 04 00 A3 5F 02 00 F4 03 04 00 4F FC 19 67 B6 04 01 00 00 71 07 A1 FF 6C D2 2F 03 [14:16:56]CommunicateWithHost err = 0 [14:16:56]CheckOFDResponse [14:16:56]1017 (14) - 77093643461234 [14:16:56]1041 (16) - 0000000000871792 [14:16:56]1040 (4) - 155555 [14:16:56]1012 (4) - 24.10.2024 07:50 [14:16:56]1206 (1) - 0 [14:16:56]OFD Sender: Remove packet 155555 [14:16:56]ProducePacketName [14:16:56]name=ofd_packets/00155555 [14:16:56]NVStorageDeleteData [14:16:56]Write to MH i2c: 01 00 00 CE 03 D1 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 07 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 07 00 CE 03 00 00 00 00 00 E6 0C CA [14:16:56]RasterBufferAndPrint [14:16:56]line [14:16:56]line [14:16:56]line [14:16:56]line [14:16:56]line [14:16:56]written 0, free lines is 3309 [14:16:56]process_action close_receipt done [14:16:56]requested_data is exist [14:16:56]produce_requested_data [14:16:56]requested_item fm.sn is exist - process it [14:16:56]wFMCommunicate request_size=4 [14:16:56]MH_SAM_APDU [14:16:56]CAPDU: 80 11 00 00 [14:16:56]Write to MH i2c: E2 08 00 D5 03 80 11 00 00 00 00 00 00 52 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:57]Read from MH i2c: E2 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 17 00 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 17 00 D5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A7 [14:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:16:57]wFMCommunicate OK [14:16:57]requested_item fd.num is exist - process it [14:16:57]SAM_PROTO_GetFieldsCounters [14:16:57]wFMCommunicate request_size=4 [14:16:57]MH_SAM_APDU [14:16:57]CAPDU: 80 13 00 00 [14:16:57]Write to MH i2c: E2 08 00 D6 03 80 13 00 00 00 00 00 00 55 [14:16:57]Write i2c OK [14:16:57]MH_I2C_Read... [14:16:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:57]Read from MH i2c: E2 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 62 00 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 62 00 D6 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A3 5F 02 00 0E 04 04 00 16 02 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 B3 [14: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A3 5F 02 00 0E 04 04 00 16 02 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 [14:16:57]wFMCommunicate OK [14:16:57]SAM_PROTO_GetFieldsCounters done [14:16:57]requested_item shift.num is exist - process it [14:16:57]requested_item shift.opened is exist - process it [14:16:57]req_shift_opened [14:16:57]FM_GetShiftState [14:16:57]SAM_PROTO_GetShiftState [14:16:57]wFMCommunicate request_size=4 [14:16:57]MH_SAM_APDU [14:16:57]CAPDU: 80 13 01 00 [14:16:57]Write to MH i2c: E2 08 00 D7 03 80 13 01 00 00 00 00 00 57 [14:16:57]Write i2c OK [14:16:57]MH_I2C_Read... [14:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:57]Read from MH i2c: E2 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 0E 00 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: E2 0E 00 D7 03 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 A4 [14:16:57]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:16:57]wFMCommunicate OK [14:16:57]SAM_PROTO_GetShiftState done [14:16:57]FM_GetShiftState done [14:16:57]req_shift_opened done [14:16:57]requested_item shift.open_date is exist - process it [14:16:57]req_shift_open_date [14:16:57]req_shift_open_date done [14:16:57]produce_requested_data done [14:16:57]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155555,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:16:57]process_action_free close_receipt [14:16:57]json_value_free [14:16:57]json_value_free done [14:16:57]process_json_proto returns [14:16:57]Send response to host [14:16:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155555,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:16:57]free response buf [14:16:57]execute_script done [14:16:57]execute_script returns [14:16:57]free content buf [14:16:57]Sock 8.Close socket [14:16:57]Sock 8.Thread stoped [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]int [14:17:32]Write to MH i2c: 01 00 00 D8 03 DB [14:17:32]*** FLAG_PRN_KEY set [14:17:32]Write i2c OK [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: 01 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: 01 07 00 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: 01 07 00 D8 03 00 08 00 00 00 FF 0F F8 [14:17:32]state=0 [14:17:32]Key pressed [14:17:32]Feed [14:17:32]Write to MH i2c: D8 00 00 D9 03 B3 [14:17:32]Write i2c OK [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: D8 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: D8 01 00 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: D8 01 00 D9 03 00 B4 [14:17:32]int [14:17:32]Write to MH i2c: 01 00 00 DA 03 DD [14:17:32]Write i2c OK [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: 01 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: 01 07 00 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: 01 07 00 DA 03 00 48 00 00 00 3D 00 69 [14:17:32]state=2 [14:17:32]Key pressed [14:17:32]OFD Sender: No OFD packet to send [14:17:32]int [14:17:32]Write to MH i2c: 01 00 00 DB 03 DE [14:17:32]*** FLAG_PRN_KEY reset [14:17:32]Write i2c OK [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: 01 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: 01 07 00 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: 01 07 00 DB 03 00 00 00 00 00 F6 0F EA [14:17:32]state=2 [14:17:32]Stop feed [14:17:33]accept exits with 9 [14:17:33]New connection [14:17:33]New thread 3066637668 created [14:17:33]Thread 3066781028 joined [14:17:33]Waiting for new connection... [14:17:33] Sock 9.Parse request [14:17:33]Sock 9.Check first char [14:17:33]Sock 9.First char is OK [14:17:33]request: POST /json_proto HTTP/1.0 [14:17:33]Method: POST [14:17:33]URL: /json_proto [14:17:33]Method is POST - this is cgi request [14:17:33]url: /json_proto [14:17:33]query_string will be loaded in cgi processing [14:17:33]execute_cgi json_proto POST (null) [14:17:33]execute_cgi path=json_proto method=POST [14:17:33]POST find Content-Length [14:17:33]Host: 172.17.63.3:8080 [14:17:33]Content-Length: 676 [14:17:33]Content-Type: application/json [14:17:33] [14:17:33]POST finish read [14:17:33]Found Content-Length = 676 [14:17:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.620, "sum" : 175.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 175.00, "total" : 175.00, "payments": [ { "type": 0, "sum" : 175.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:33]execute_script... [14:17: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)98360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.620, "sum" : 175.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 175.00, "total" : 175.00, "payments": [ { "type": 0, "sum" : 175.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:33]POST & json_proto [14:17:33]process_json_proto [14:17:33]json parsed OK: [14:17:33]protocol is kg_v1.0 [14:17:33]action value=close_receipt [14:17:33]process_action close_receipt [14:17:33]cmd_close_receipt [14:17:33]MH_GetDate [14:17:33]Write to MH i2c: F0 00 00 DC 03 CE [14:17:33]Write i2c OK [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: F0 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: F0 09 00 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: F0 09 00 DC 03 00 FD 56 1A 67 50 D1 6C 64 9C [14:17:33]GetLastDocTimeStamp 1729779414 [14:17:33]current date 1729779453 [14:17:33]FM_GetShiftState [14:17:33]SAM_PROTO_GetShiftState [14:17:33]wFMCommunicate request_size=4 [14:17:33]MH_SAM_APDU [14:17:33]CAPDU: 80 13 01 00 [14:17:33]Write to MH i2c: E2 08 00 DD 03 80 13 01 00 00 00 00 00 5D [14:17:33]Write i2c OK [14:17:33]MH_I2C_Read... [14:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:33]Read from MH i2c: E2 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 0E 00 [14:17:33]MH_I2C_Read... [14:17:33]Read from MH i2c: E2 0E 00 DD 03 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AA [14:17:33]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:17:33]wFMCommunicate OK [14:17:33]SAM_PROTO_GetShiftState done [14:17:33]FM_GetShiftState done [14:17:33]opened in 1729729836 [14:17:33]opened+sec_in_day 1729816236 [14:17:33]quantity*price = 17527 [14:17:33]sum+1 = 17529 [14:17:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 175.00 Внесено: 175.00 СДАЧА: 0.00 НСП 1% : 1.55 НДС 12% : 18.61 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 181 24.10.2024 14:17 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155556 ФПД: 194152345071573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141733&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155556&fm=194152345071573&tin=02508201610067®Number=0000000000091693&sum=17500 [14:17:34]StoreToDocumentArchive [14:17:34]shift 534 fd 155556 [14:17:34]save to /storage/0534/doc_00155556 [14:17:34]save last doc name /storage/0534/doc_00155556 to /storage/kkm_last_doc_name [14:17:34]save OK [14:17:34]Clear old archive folders... [14:17:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:34]tlvbuf is 01F3D270 [14:17:34]SAM_PROTO_ClearQueue [14:17:34]wFMCommunicate request_size=4 [14:17:34]MH_SAM_APDU [14:17:34]CAPDU: 80 09 00 00 [14:17:34]Write to MH i2c: E2 08 00 EA 03 80 09 00 00 00 00 00 00 5F [14:17:34]Write i2c OK [14:17:34]MH_I2C_Read... [14:17:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:34]Read from MH i2c: E2 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 03 00 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 03 00 EA 03 00 90 00 61 [14:17:34]RAPDU: 90 00 [14:17:34]wFMCommunicate OK [14:17:34]SAM_PROTO_ClearQueue done [14:17:34]KKMCreateOFDPacket [14:17:34]OFDProtocolAddRootSTLVToBuf [14:17:34]FM_MakeSignedData [14:17:34]FM_MakeSignedData [14:17:34]SAM_PROTO_SignData [14:17:34]wFMCommunicate request_size=4 [14:17:34]MH_SAM_APDU [14:17:34]CAPDU: 80 0D 01 02 [14:17:34]Write to MH i2c: E2 08 00 EB 03 80 0D 01 02 00 00 00 00 67 [14:17:34]Write i2c OK [14:17:34]MH_I2C_Read... [14:17:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:34]Read from MH i2c: E2 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 03 00 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [14:17:34]RAPDU: 90 00 [14:17:34]wFMCommunicate OK [14:17:34]wFMCommunicate request_size=255 [14:17:34]MH_SAM_APDU [14:17: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 3C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 78 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 FD 56 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 5F 02 00 35 04 06 00 B0 [14:17:34]Write to MH i2c: E2 02 01 EC 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 3C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 78 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 FD 56 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 5F 02 00 35 04 06 00 B0 00 00 31 [14:17:34]Write i2c OK [14:17:34]MH_I2C_Read... [14:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:34]Read from MH i2c: E2 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 03 00 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [14:17:34]RAPDU: 90 00 [14:17:34]wFMCommunicate OK [14:17:34]wFMCommunicate request_size=10 [14:17:34]MH_SAM_APDU [14:17:34]CAPDU: 80 0D 02 02 05 94 9D 8F 6F D5 [14:17:34]Write to MH i2c: E2 0D 00 ED 03 80 0D 02 02 05 00 94 9D 8F 6F D5 00 00 78 [14:17:34]Write i2c OK [14:17:34]MH_I2C_Read... [14:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:34]Read from MH i2c: E2 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 03 00 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [14:17:34]RAPDU: 90 00 [14:17:34]wFMCommunicate OK [14:17:34]wFMCommunicate request_size=4 [14:17:34]MH_SAM_APDU [14:17:34]CAPDU: 80 0D 03 02 [14:17:34]Write to MH i2c: E2 08 00 EE 03 80 0D 03 02 00 00 00 00 6C [14:17:34]Write i2c OK [14:17:34]MH_I2C_Read... [14:17:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:34]Read from MH i2c: E2 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 0B 00 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 0B 00 EE 03 00 E8 2E 1D 8D D3 8F 79 2E 90 00 36 [14:17:34]RAPDU: E8 2E 1D 8D D3 8F 79 2E 90 00 [14:17:34]wFMCommunicate OK [14:17:34]SAM_PROTO_SignData done [14:17:34]FM_MakeSignedData done [14:17:34]CreateOFDProtocolMessage [14:17:34]wFMCommunicate request_size=4 [14:17:34]MH_SAM_APDU [14:17:34]CAPDU: 80 11 00 00 [14:17:34]Write to MH i2c: E2 08 00 EF 03 80 11 00 00 00 00 00 00 6C [14:17:34]Write i2c OK [14:17:34]MH_I2C_Read... [14:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:34]Read from MH i2c: E2 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 17 00 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: E2 17 00 EF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C1 [14:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:17:34]wFMCommunicate OK [14:17:34]CreateOFDProtocolMessage done [14:17:34]OFDSenderStorePacket 155556 [14:17:34]StoreOFDPacket docnum=155556 [14:17:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DD D9 07 01 EC 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 78 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 FD 56 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 5F 02 00 35 04 06 00 B0 94 9D 8F 6F D5 E8 2E 1D 8D D3 8F 79 2E [14:17:34]CheckFolder [14:17:34]dirname=/storage/ofd_packets [14:17:34]CheckFolder done [14:17:34]ProducePacketName [14:17:34]name=ofd_packets/00155556 [14:17:34]NVStorageSaveData ofd_packets/00155556 [14:17:34]File name is /storage/ofd_packets/00155556 [14:17:34]Write 301 bytes [14:17:34]NVStorageSaveData done [14:17:34]OFDSenderStorePacket done [14:17:34]KKMCreateOFDPacket done [14:17:34]NVStorageSaveData kkm_last_timestamp [14:17:34]File name is /storage/kkm_last_timestamp [14:17:34]Write 4 bytes [14:17:34]NVStorageSaveData done [14:17:34]ExternCall_PrintAddStr [14:17:34]wPrintStart [14:17:34]Write to MH i2c: 01 00 00 F0 03 F3 [14:17:34]Write i2c OK [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: 01 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: 01 07 00 [14:17:34]MH_I2C_Read... [14:17:34]Read from MH i2c: 01 07 00 F0 03 00 00 00 00 00 FF 0F 08 [14:17:34]RasterBufferAndPrint [14:17:34]line Счет N : (1)98360 [14:17:34]line ИНН: 02508201610067 [14:17:34]line Контрольно-Кассовый Чек [14:17:34]line ПРОДАЖА [14:17:34]line ТРК (МРК, ГНК) : 21 [14:17:34]line Товар: 2710124130 [14:17:34]line Аи-92-К-5 [14:17:34]line 2.620 * 66.90 [14:17:34]line = 175.28 [14:17:34]line НДС 12% НСП 1% [14:17:34]line > о реализуемом товаре [14:17:34]line ОКРУГЛЕНИЕ: -0.28 [14:17:34]line ИТОГО: 175.00 [14:17:34]line Внесено: 175.00 [14:17:34]line СДАЧА: 0.00 [14:17:34]line НСП 1% : 1.55 [14:17:34]line НДС 12% : 18.61 [14:17:34]line Наличными: 175.00 [14:17:34]line Безнал.: 0.00 [14:17:34]line Место: АЗС № 143 "Партнер Нефть" [14:17:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:17:34]line СНО: Общий режим [14:17:34]line Чек 181 24.10.2024 14:17 [14:17:34]line Смена: 534 ФФД: 1.0 [14:17:34]line ЗНМ: 0300000096 [14:17:34]line РНМ: 0000000000091693 [14:17:34]line Версия ККМ: 001 [14:17:34]line ФМ: 0000000000871792 [14:17:34]line ФД: 155556 [14:17:34]line ФПД: 194152345071573 [14:17:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141733&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155556&fm=194152345071573&tin=02508201610067®Number=0000000000091693&sum=17500 [14:17:35]OFD Sender: Processing packet 155556 [packets to send 31, broken 30] [14:17:35]ProducePacketName [14:17:35]name=ofd_packets/00155556 [14:17:35]OFD Sender: To server: pG, [14:17:35]CommunicateWithHost lk.salyk.kg:30040 [14:17:35]ConnectInit lk.salyk.kg [14:17:35]written 0, free lines is 4095 [14:17:35]Connected sock=10 [14:17: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 39 32 0F 01 00 00 DD D9 07 01 EC 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3C 0A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 78 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 FD 56 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 5F 02 00 35 04 06 00 B0 94 9D 8F 6F D5 E8 2E 1D 8D D3 8F 79 2E [14:17: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 39 32 4F 00 00 00 72 02 47 00 0B 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 39 32 10 04 04 00 A4 5F 02 00 F4 03 04 00 76 FC 19 67 B6 04 01 00 00 71 49 2D 4B 50 04 95 CB [14:17:35]CommunicateWithHost err = 0 [14:17:35]CheckOFDResponse [14:17:35]1017 (14) - 77093643461234 [14:17:35]1041 (16) - 0000000000871792 [14:17:35]1040 (4) - 155556 [14:17:35]1012 (4) - 24.10.2024 07:51 [14:17:35]1206 (1) - 0 [14:17:35]OFD Sender: Remove packet 155556 [14:17:35]ProducePacketName [14:17:35]name=ofd_packets/00155556 [14:17:35]NVStorageDeleteData [14:17:35]Write to MH i2c: 01 00 00 1B 04 1F [14:17:35]Write i2c OK [14:17:35]MH_I2C_Read... [14:17:35]Read from MH i2c: 01 [14:17:35]MH_I2C_Read... [14:17:35]Read from MH i2c: 01 07 00 [14:17:35]MH_I2C_Read... [14:17:35]Read from MH i2c: 01 07 00 1B 04 00 00 00 00 00 C9 0C FB [14:17:35]RasterBufferAndPrint [14:17:35]line [14:17:35]line [14:17:35]line [14:17:35]line [14:17:35]line [14:17:35]written 0, free lines is 3283 [14:17:35]process_action close_receipt done [14:17:35]requested_data is exist [14:17:35]produce_requested_data [14:17:35]requested_item fm.sn is exist - process it [14:17:35]wFMCommunicate request_size=4 [14:17:35]MH_SAM_APDU [14:17:35]CAPDU: 80 11 00 00 [14:17:35]Write to MH i2c: E2 08 00 22 04 80 11 00 00 00 00 00 00 A0 [14:17:35]Write i2c OK [14:17:35]MH_I2C_Read... [14:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:35]Read from MH i2c: E2 [14:17:35]MH_I2C_Read... [14:17:35]Read from MH i2c: E2 17 00 [14:17:35]MH_I2C_Read... [14:17:35]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 39 32 90 00 F5 [14:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:17:35]wFMCommunicate OK [14:17:35]requested_item fd.num is exist - process it [14:17:35]SAM_PROTO_GetFieldsCounters [14:17:35]wFMCommunicate request_size=4 [14:17:35]MH_SAM_APDU [14:17:35]CAPDU: 80 13 00 00 [14:17:35]Write to MH i2c: E2 08 00 23 04 80 13 00 00 00 00 00 00 A3 [14:17:35]Write i2c OK [14:17:35]MH_I2C_Read... [14:17:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:35]Read from MH i2c: E2 [14:17:35]MH_I2C_Read... [14:17:35]Read from MH i2c: E2 62 00 [14:17:35]MH_I2C_Read... [14:17:35]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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A4 5F 02 00 0E 04 04 00 16 02 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 05 [14:17: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A4 5F 02 00 0E 04 04 00 16 02 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 [14:17:35]wFMCommunicate OK [14:17:35]SAM_PROTO_GetFieldsCounters done [14:17:35]requested_item shift.num is exist - process it [14:17:35]requested_item shift.opened is exist - process it [14:17:35]req_shift_opened [14:17:35]FM_GetShiftState [14:17:35]SAM_PROTO_GetShiftState [14:17:35]wFMCommunicate request_size=4 [14:17:35]MH_SAM_APDU [14:17:35]CAPDU: 80 13 01 00 [14:17:35]Write to MH i2c: E2 08 00 24 04 80 13 01 00 00 00 00 00 A5 [14:17:35]Write i2c OK [14:17:35]MH_I2C_Read... [14:17:35]Read from MH i2c: E2 [14:17:35]MH_I2C_Read... [14:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:35]Read from MH i2c: E2 0E 00 [14:17:35]MH_I2C_Read... [14:17:35]Read from MH i2c: E2 0E 00 24 04 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F2 [14:17:35]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:17:35]wFMCommunicate OK [14:17:35]SAM_PROTO_GetShiftState done [14:17:35]FM_GetShiftState done [14:17:35]req_shift_opened done [14:17:35]requested_item shift.open_date is exist - process it [14:17:35]req_shift_open_date [14:17:35]req_shift_open_date done [14:17:35]produce_requested_data done [14:17:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155556,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:17:35]process_action_free close_receipt [14:17:35]json_value_free [14:17:35]json_value_free done [14:17:35]process_json_proto returns [14:17:35]Send response to host [14:17:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155556,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:17:35]free response buf [14:17:35]execute_script done [14:17:35]execute_script returns [14:17:35]free content buf [14:17:35]Sock 9.Close socket [14:17:35]Sock 9.Thread stoped [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:50]accept exits with 8 [14:18:50]New connection [14:18:50]New thread 3066781028 created [14:18:50]Thread 3066637668 joined [14:18:50]Waiting for new connection... [14:18:50] Sock 8.Parse request [14:18:50]Sock 8.Check first char [14:18:50]Sock 8.First char is OK [14:18:50]request: POST /json_proto HTTP/1.0 [14:18:50]Method: POST [14:18:50]URL: /json_proto [14:18:50]Method is POST - this is cgi request [14:18:50]url: /json_proto [14:18:50]query_string will be loaded in cgi processing [14:18:50]execute_cgi json_proto POST (null) [14:18:50]execute_cgi path=json_proto method=POST [14:18:50]POST find Content-Length [14:18:50]Host: 172.17.63.3:8080 [14:18:50]Content-Length: 676 [14:18:50]Content-Type: application/json [14:18:50] [14:18:50]POST finish read [14:18:50]Found Content-Length = 676 [14:18:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:50]execute_script... [14:18:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:50]POST & json_proto [14:18:50]process_json_proto [14:18:50]json parsed OK: [14:18:50]protocol is kg_v1.0 [14:18:50]action value=close_receipt [14:18:50]process_action close_receipt [14:18:50]cmd_close_receipt [14:18:50]MH_GetDate [14:18:50]Write to MH i2c: F0 00 00 25 04 18 [14:18:50]Write i2c OK [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: F0 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: F0 09 00 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: F0 09 00 25 04 00 4A 57 1A 67 50 D1 6C 64 34 [14:18:50]GetLastDocTimeStamp 1729779453 [14:18:50]current date 1729779530 [14:18:50]FM_GetShiftState [14:18:50]SAM_PROTO_GetShiftState [14:18:50]wFMCommunicate request_size=4 [14:18:50]MH_SAM_APDU [14:18:50]CAPDU: 80 13 01 00 [14:18:50]Write to MH i2c: E2 08 00 26 04 80 13 01 00 00 00 00 00 A7 [14:18:50]Write i2c OK [14:18:50]MH_I2C_Read... [14:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:50]Read from MH i2c: E2 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 0E 00 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 0E 00 26 04 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F4 [14:18:50]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:18:50]wFMCommunicate OK [14:18:50]SAM_PROTO_GetShiftState done [14:18:50]FM_GetShiftState done [14:18:50]opened in 1729729836 [14:18:50]opened+sec_in_day 1729816236 [14:18:50]quantity*price = 30038 [14:18:50]sum+1 = 30039 [14:18:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 182 24.10.2024 14:18 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155557 ФПД: 56665002429709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141850&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155557&fm=56665002429709&tin=02508201610067®Number=0000000000091693&sum=30000 [14:18:51]StoreToDocumentArchive [14:18:51]shift 534 fd 155557 [14:18:51]save to /storage/0534/doc_00155557 [14:18:51]save last doc name /storage/0534/doc_00155557 to /storage/kkm_last_doc_name [14:18:51]save OK [14:18:51]Clear old archive folders... [14:18:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:51]tlvbuf is 01F31710 [14:18:51]SAM_PROTO_ClearQueue [14:18:51]wFMCommunicate request_size=4 [14:18:51]MH_SAM_APDU [14:18:51]CAPDU: 80 09 00 00 [14:18:51]Write to MH i2c: E2 08 00 33 04 80 09 00 00 00 00 00 00 A9 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 33 04 00 90 00 AB [14:18:51]RAPDU: 90 00 [14:18:51]wFMCommunicate OK [14:18:51]SAM_PROTO_ClearQueue done [14:18:51]KKMCreateOFDPacket [14:18:51]OFDProtocolAddRootSTLVToBuf [14:18:51]FM_MakeSignedData [14:18:51]FM_MakeSignedData [14:18:51]SAM_PROTO_SignData [14:18:51]wFMCommunicate request_size=4 [14:18:51]MH_SAM_APDU [14:18:51]CAPDU: 80 0D 01 02 [14:18:51]Write to MH i2c: E2 08 00 34 04 80 0D 01 02 00 00 00 00 B1 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [14:18:51]RAPDU: 90 00 [14:18:51]wFMCommunicate OK [14:18:51]wFMCommunicate request_size=255 [14:18:51]MH_SAM_APDU [14:18: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 4A 57 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 5F 02 00 35 04 06 00 33 [14:18:51]Write to MH i2c: E2 02 01 35 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 4A 57 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 5F 02 00 35 04 06 00 33 00 00 62 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [14:18:51]RAPDU: 90 00 [14:18:51]wFMCommunicate OK [14:18:51]wFMCommunicate request_size=10 [14:18:51]MH_SAM_APDU [14:18:51]CAPDU: 80 0D 02 02 05 89 59 57 4D 0D [14:18:51]Write to MH i2c: E2 0D 00 36 04 80 0D 02 02 05 00 89 59 57 4D 0D 00 00 51 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [14:18:51]RAPDU: 90 00 [14:18:51]wFMCommunicate OK [14:18:51]wFMCommunicate request_size=4 [14:18:51]MH_SAM_APDU [14:18:51]CAPDU: 80 0D 03 02 [14:18:51]Write to MH i2c: E2 08 00 37 04 80 0D 03 02 00 00 00 00 B6 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 0B 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 0B 00 37 04 00 AE D3 31 80 69 D1 F2 F1 90 00 06 [14:18:51]RAPDU: AE D3 31 80 69 D1 F2 F1 90 00 [14:18:51]wFMCommunicate OK [14:18:51]SAM_PROTO_SignData done [14:18:51]FM_MakeSignedData done [14:18:51]CreateOFDProtocolMessage [14:18:51]wFMCommunicate request_size=4 [14:18:51]MH_SAM_APDU [14:18:51]CAPDU: 80 11 00 00 [14:18:51]Write to MH i2c: E2 08 00 38 04 80 11 00 00 00 00 00 00 B6 [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:51]Read from MH i2c: E2 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: E2 17 00 [14:18:51]MH_I2C_Read... [14:18:51]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 39 32 90 00 0B [14:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:18:51]wFMCommunicate OK [14:18:51]CreateOFDProtocolMessage done [14:18:51]OFDSenderStorePacket 155557 [14:18:51]StoreOFDPacket docnum=155557 [14:18:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 68 C3 07 01 90 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 4A 57 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 5F 02 00 35 04 06 00 33 89 59 57 4D 0D AE D3 31 80 69 D1 F2 F1 [14:18:51]CheckFolder [14:18:51]dirname=/storage/ofd_packets [14:18:51]CheckFolder done [14:18:51]ProducePacketName [14:18:51]name=ofd_packets/00155557 [14:18:51]NVStorageSaveData ofd_packets/00155557 [14:18:51]File name is /storage/ofd_packets/00155557 [14:18:51]Write 301 bytes [14:18:51]NVStorageSaveData done [14:18:51]OFDSenderStorePacket done [14:18:51]KKMCreateOFDPacket done [14:18:51]NVStorageSaveData kkm_last_timestamp [14:18:51]File name is /storage/kkm_last_timestamp [14:18:51]Write 4 bytes [14:18:51]NVStorageSaveData done [14:18:51]ExternCall_PrintAddStr [14:18:51]wPrintStart [14:18:51]Write to MH i2c: 01 00 00 39 04 3D [14:18:51]Write i2c OK [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: 01 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: 01 07 00 [14:18:51]MH_I2C_Read... [14:18:51]Read from MH i2c: 01 07 00 39 04 00 00 00 00 00 FF 0F 52 [14:18:51]RasterBufferAndPrint [14:18:51]line Счет N : (1)98361 [14:18:51]line ИНН: 02508201610067 [14:18:51]line Контрольно-Кассовый Чек [14:18:51]line ПРОДАЖА [14:18:51]line ТРК (МРК, ГНК) : 21 [14:18:51]line Товар: 2710124130 [14:18:51]line Аи-92-К-5 [14:18:51]line 4.490 * 66.90 [14:18:51]line = 300.38 [14:18:51]line НДС 12% НСП 1% [14:18:51]line > о реализуемом товаре [14:18:51]line ОКРУГЛЕНИЕ: -0.38 [14:18:51]line ИТОГО: 300.00 [14:18:51]line Внесено: 300.00 [14:18:51]line СДАЧА: 0.00 [14:18:51]line НСП 1% : 2.66 [14:18:51]line НДС 12% : 31.90 [14:18:51]line Наличными: 300.00 [14:18:51]line Безнал.: 0.00 [14:18:51]line Место: АЗС № 143 "Партнер Нефть" [14:18:51]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:18:51]line СНО: Общий режим [14:18:51]line Чек 182 24.10.2024 14:18 [14:18:51]line Смена: 534 ФФД: 1.0 [14:18:51]line ЗНМ: 0300000096 [14:18:51]line РНМ: 0000000000091693 [14:18:51]line Версия ККМ: 001 [14:18:51]line ФМ: 0000000000871792 [14:18:51]line ФД: 155557 [14:18:51]line ФПД: 56665002429709 [14:18:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141850&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155557&fm=56665002429709&tin=02508201610067®Number=0000000000091693&sum=30000 [14:18:52]OFD Sender: Processing packet 155557 [packets to send 31, broken 30] [14:18:52]ProducePacketName [14:18:52]name=ofd_packets/00155557 [14:18:52]OFD Sender: To server: pG, [14:18:52]CommunicateWithHost lk.salyk.kg:30040 [14:18:52]ConnectInit lk.salyk.kg [14:18:52]written 0, free lines is 4095 [14:18:52]Connected sock=10 [14:18:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 68 C3 07 01 90 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 4A 57 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 5F 02 00 35 04 06 00 33 89 59 57 4D 0D AE D3 31 80 69 D1 F2 F1 [14:18: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 39 32 4F 00 00 00 DB FE 47 00 12 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 5F 02 00 F4 03 04 00 C3 FC 19 67 B6 04 01 00 00 A9 5C 3A 9E 50 EA F1 60 [14:18:52]CommunicateWithHost err = 0 [14:18:52]CheckOFDResponse [14:18:52]1017 (14) - 77093643461234 [14:18:52]1041 (16) - 0000000000871792 [14:18:52]1040 (4) - 155557 [14:18:52]1012 (4) - 24.10.2024 07:52 [14:18:52]1206 (1) - 0 [14:18:52]OFD Sender: Remove packet 155557 [14:18:52]ProducePacketName [14:18:52]name=ofd_packets/00155557 [14:18:52]NVStorageDeleteData [14:18:52]Write to MH i2c: 01 00 00 64 04 68 [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: 01 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: 01 07 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: 01 07 00 64 04 00 00 00 00 00 E0 0C 5B [14:18:52]RasterBufferAndPrint [14:18:52]line [14:18:52]line [14:18:52]line [14:18:52]line [14:18:52]line [14:18:52]written 0, free lines is 3301 [14:18:52]process_action close_receipt done [14:18:52]requested_data is exist [14:18:52]produce_requested_data [14:18:52]requested_item fm.sn is exist - process it [14:18:52]wFMCommunicate request_size=4 [14:18:52]MH_SAM_APDU [14:18:52]CAPDU: 80 11 00 00 [14:18:52]Write to MH i2c: E2 08 00 6B 04 80 11 00 00 00 00 00 00 E9 [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:52]Read from MH i2c: E2 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 17 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 17 00 6B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3E [14:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:18:52]wFMCommunicate OK [14:18:52]requested_item fd.num is exist - process it [14:18:52]SAM_PROTO_GetFieldsCounters [14:18:52]wFMCommunicate request_size=4 [14:18:52]MH_SAM_APDU [14:18:52]CAPDU: 80 13 00 00 [14:18:52]Write to MH i2c: E2 08 00 6C 04 80 13 00 00 00 00 00 00 EC [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:52]Read from MH i2c: E2 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 62 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 62 00 6C 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A5 5F 02 00 0E 04 04 00 16 02 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 52 [14: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A5 5F 02 00 0E 04 04 00 16 02 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 [14:18:52]wFMCommunicate OK [14:18:52]SAM_PROTO_GetFieldsCounters done [14:18:52]requested_item shift.num is exist - process it [14:18:52]requested_item shift.opened is exist - process it [14:18:52]req_shift_opened [14:18:52]FM_GetShiftState [14:18:52]SAM_PROTO_GetShiftState [14:18:52]wFMCommunicate request_size=4 [14:18:52]MH_SAM_APDU [14:18:52]CAPDU: 80 13 01 00 [14:18:52]Write to MH i2c: E2 08 00 6D 04 80 13 01 00 00 00 00 00 EE [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:52]Read from MH i2c: E2 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 0E 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 0E 00 6D 04 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3B [14:18:52]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:18:52]wFMCommunicate OK [14:18:52]SAM_PROTO_GetShiftState done [14:18:52]FM_GetShiftState done [14:18:52]req_shift_opened done [14:18:52]requested_item shift.open_date is exist - process it [14:18:52]req_shift_open_date [14:18:52]req_shift_open_date done [14:18:52]produce_requested_data done [14:18:52]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155557,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:18:52]process_action_free close_receipt [14:18:52]json_value_free [14:18:52]json_value_free done [14:18:52]process_json_proto returns [14:18:52]Send response to host [14:18:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155557,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:18:52]free response buf [14:18:52]execute_script done [14:18:52]execute_script returns [14:18:52]free content buf [14:18:52]Sock 8.Close socket [14:18:52]Sock 8.Thread stoped [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:21]accept exits with 9 [14:19:21]New connection [14:19:21]New thread 3066637668 created [14:19:21]Thread 3066781028 joined [14:19:21]Waiting for new connection... [14:19:21] Sock 9.Parse request [14:19:21]Sock 9.Check first char [14:19:21]Sock 9.First char is OK [14:19:21]request: POST /json_proto HTTP/1.0 [14:19:21]Method: POST [14:19:21]URL: /json_proto [14:19:21]Method is POST - this is cgi request [14:19:21]url: /json_proto [14:19:21]query_string will be loaded in cgi processing [14:19:21]execute_cgi json_proto POST (null) [14:19:21]execute_cgi path=json_proto method=POST [14:19:21]POST find Content-Length [14:19:21]Host: 172.17.63.3:8080 [14:19:21]Content-Length: 795 [14:19:21]Content-Type: application/json [14:19:21] [14:19:21]POST finish read [14:19:21]Found Content-Length = 795 [14:19:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 3.220, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4466736", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:21]execute_script... [14: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)98362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 3.220, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4466736", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:21]POST & json_proto [14:19:21]process_json_proto [14:19:21]json parsed OK: [14:19:21]protocol is kg_v1.0 [14:19:21]action value=close_receipt [14:19:21]process_action close_receipt [14:19:21]cmd_close_receipt [14:19:21]MH_GetDate [14:19:21]Write to MH i2c: F0 00 00 6E 04 61 [14:19:21]Write i2c OK [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: F0 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: F0 09 00 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: F0 09 00 6E 04 00 69 57 1A 67 50 D1 6C 64 9C [14:19:21]GetLastDocTimeStamp 1729779530 [14:19:21]current date 1729779561 [14:19:21]FM_GetShiftState [14:19:21]SAM_PROTO_GetShiftState [14:19:21]wFMCommunicate request_size=4 [14:19:21]MH_SAM_APDU [14:19:21]CAPDU: 80 13 01 00 [14:19:21]Write to MH i2c: E2 08 00 6F 04 80 13 01 00 00 00 00 00 F0 [14:19:21]Write i2c OK [14:19:21]MH_I2C_Read... [14:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:21]Read from MH i2c: E2 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 0E 00 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 0E 00 6F 04 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3D [14:19:21]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:19:21]wFMCommunicate OK [14:19:21]SAM_PROTO_GetShiftState done [14:19:21]FM_GetShiftState done [14:19:21]opened in 1729729836 [14:19:21]opened+sec_in_day 1729816236 [14:19:21]quantity*price = 0 [14:19:21]sum+1 = 1 [14:19:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 183 24.10.2024 14:19 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4466736 ФМ: 0000000000871792 ФД: 155558 ФПД: 280396548246747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141921&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155558&fm=280396548246747&tin=02508201610067®Number=0000000000091693&sum=0 [14:19:22]StoreToDocumentArchive [14:19:22]shift 534 fd 155558 [14:19:22]save to /storage/0534/doc_00155558 [14:19:22]save last doc name /storage/0534/doc_00155558 to /storage/kkm_last_doc_name [14:19:22]save OK [14:19:22]Clear old archive folders... [14:19:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:19:22]tlvbuf is 01F07AA0 [14:19:22]SAM_PROTO_ClearQueue [14:19:22]wFMCommunicate request_size=4 [14:19:22]MH_SAM_APDU [14:19:22]CAPDU: 80 09 00 00 [14:19:22]Write to MH i2c: E2 08 00 7C 04 80 09 00 00 00 00 00 00 F2 [14:19:22]Write i2c OK [14:19:22]MH_I2C_Read... [14:19:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:22]Read from MH i2c: E2 [14:19:22]MH_I2C_Read... [14:19:22]Read from MH i2c: E2 03 00 [14:19:22]MH_I2C_Read... [14:19:22]Read from MH i2c: E2 03 00 7C 04 00 90 00 F4 [14:19:22]RAPDU: 90 00 [14:19:22]wFMCommunicate OK [14:19:22]SAM_PROTO_ClearQueue done [14:19:22]KKMCreateOFDPacket [14:19:22]OFDProtocolAddRootSTLVToBuf [14:19:22]FM_MakeSignedData [14:19:22]FM_MakeSignedData [14:19:22]SAM_PROTO_SignData [14:19:22]wFMCommunicate request_size=4 [14:19:22]MH_SAM_APDU [14:19:22]CAPDU: 80 0D 01 02 [14:19:22]Write to MH i2c: E2 08 00 7D 04 80 0D 01 02 00 00 00 00 FA [14:19:22]Write i2c OK [14:19:22]MH_I2C_Read... [14:19:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:22]Read from MH i2c: E2 [14:19:22]MH_I2C_Read... [14:19:22]Read from MH i2c: E2 03 00 [14:19:22]MH_I2C_Read... [14:19:22]Read from MH i2c: E2 03 00 7D 04 00 90 00 F5 [14:19:22]RAPDU: 90 00 [14:19:22]wFMCommunicate OK [14:19:22]wFMCommunicate request_size=255 [14:19:22]MH_SAM_APDU [14:19:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 0C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 69 57 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 5F 02 00 35 04 06 00 FF 04 E8 A7 [14:19:22]Write to MH i2c: E2 02 01 7E 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 0C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 69 57 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 5F 02 00 35 04 06 00 FF 04 E8 A7 00 00 A5 [14:19:22]Write i2c OK [14:19:22]MH_I2C_Read... [14:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:23]Read from MH i2c: E2 [14:19:23]MH_I2C_Read... [14:19:23]Read from MH i2c: E2 03 00 [14:19:23]MH_I2C_Read... [14:19:23]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [14:19:23]RAPDU: 90 00 [14:19:23]wFMCommunicate OK [14:19:23]wFMCommunicate request_size=7 [14:19:23]MH_SAM_APDU [14:19:23]CAPDU: 80 0D 02 02 02 8C DB [14:19:23]Write to MH i2c: E2 0A 00 7F 04 80 0D 02 02 02 00 8C DB 00 00 68 [14:19:23]Write i2c OK [14:19:23]MH_I2C_Read... [14:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:23]Read from MH i2c: E2 [14:19:23]MH_I2C_Read... [14:19:23]Read from MH i2c: E2 03 00 [14:19:23]MH_I2C_Read... [14:19:23]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [14:19:23]RAPDU: 90 00 [14:19:23]wFMCommunicate OK [14:19:23]wFMCommunicate request_size=4 [14:19:23]MH_SAM_APDU [14:19:23]CAPDU: 80 0D 03 02 [14:19:23]Write to MH i2c: E2 08 00 80 04 80 0D 03 02 00 00 00 00 FF [14:19:23]Write i2c OK [14:19:23]MH_I2C_Read... [14:19:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:23]Read from MH i2c: E2 [14:19:23]MH_I2C_Read... [14:19:23]Read from MH i2c: E2 0B 00 [14:19:23]MH_I2C_Read... [14:19:23]Read from MH i2c: E2 0B 00 80 04 00 95 89 DA 58 3C BA 98 7B 90 00 59 [14:19:23]RAPDU: 95 89 DA 58 3C BA 98 7B 90 00 [14:19:23]wFMCommunicate OK [14:19:23]SAM_PROTO_SignData done [14:19:23]FM_MakeSignedData done [14:19:23]CreateOFDProtocolMessage [14:19:23]wFMCommunicate request_size=4 [14:19:23]MH_SAM_APDU [14:19:23]CAPDU: 80 11 00 00 [14:19:23]Write to MH i2c: E2 08 00 81 04 80 11 00 00 00 00 00 00 FF [14:19:23]Write i2c OK [14:19:23]MH_I2C_Read... [14:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:23]OFD Sender: No OFD packet to send [14:19:23]Read from MH i2c: E2 [14:19:23]MH_I2C_Read... [14:19:23]Read from MH i2c: E2 17 00 [14:19:23]MH_I2C_Read... [14:19:23]Read from MH i2c: E2 17 00 81 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 54 [14:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:19:23]wFMCommunicate OK [14:19:23]CreateOFDProtocolMessage done [14:19:23]OFDSenderStorePacket 155558 [14:19:23]StoreOFDPacket docnum=155558 [14:19:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 41 D3 04 01 11 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 0C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 69 57 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 5F 02 00 35 04 06 00 FF 04 E8 A7 8C DB 95 89 DA 58 3C BA 98 7B [14:19:23]CheckFolder [14:19:23]dirname=/storage/ofd_packets [14:19:23]CheckFolder done [14:19:23]ProducePacketName [14:19:23]name=ofd_packets/00155558 [14:19:23]NVStorageSaveData ofd_packets/00155558 [14:19:23]File name is /storage/ofd_packets/00155558 [14:19:23]Write 298 bytes [14:19:23]NVStorageSaveData done [14:19:23]OFDSenderStorePacket done [14:19:23]KKMCreateOFDPacket done [14:19:23]NVStorageSaveData kkm_last_timestamp [14:19:23]File name is /storage/kkm_last_timestamp [14:19:23]Write 4 bytes [14:19:23]NVStorageSaveData done [14:19:23]ExternCall_PrintAddStr [14:19:23]wPrintStart [14:19:23]Write to MH i2c: 01 00 00 82 04 86 [14:19:23]Write i2c OK [14:19:23]MH_I2C_Read... [14:19:23]Read from MH i2c: 01 [14:19:23]MH_I2C_Read... [14:19:23]Read from MH i2c: 01 07 00 [14:19:23]MH_I2C_Read... [14:19:23]Read from MH i2c: 01 07 00 82 04 00 00 00 00 00 FF 0F 9B [14:19:23]RasterBufferAndPrint [14:19:23]line Счет N : (1)98362 [14:19:23]line ИНН: 02508201610067 [14:19:23]line Контрольно-Кассовый Чек [14:19:23]line ПРОДАЖА [14:19:23]line ТРК (МРК, ГНК) : 32 [14:19:23]line Товар: 2710194210 [14:19:23]line ДТ-К-5 [14:19:23]line 3.220 * 0.00 [14:19:23]line = 0.00 [14:19:23]line НДС 12% НСП 1% [14:19:23]line > о реализуемом товаре [14:19:23]line ИТОГО: 0.00 [14:19:23]line НСП 1% : 0.00 [14:19:23]line НДС 12% : 0.00 [14:19:23]line Наличными: 0.00 [14:19:23]line Безнал.: 0.00 [14:19:23]line Место: АЗС № 143 "Партнер Нефть" [14:19:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:19:23]line СНО: Общий режим [14:19:23]line Чек 183 24.10.2024 14:19 [14:19:23]line Смена: 534 ФФД: 1.0 [14:19:23]line ЗНМ: 0300000096 [14:19:23]line РНМ: 0000000000091693 [14:19:23]line Версия ККМ: 001 [14:19:23]line Талоны: Топливные Талоны [14:19:23]line 4466736 [14:19:23]line ФМ: 0000000000871792 [14:19:23]line ФД: 155558 [14:19:23]line ФПД: 280396548246747 [14:19:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T141921&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155558&fm=280396548246747&tin=02508201610067®Number=0000000000091693&sum=0 [14:19:23]OFD Sender: Processing packet 155558 [packets to send 31, broken 30] [14:19:23]ProducePacketName [14:19:23]name=ofd_packets/00155558 [14:19:23]OFD Sender: To server: pG, [14:19:23]CommunicateWithHost lk.salyk.kg:30040 [14:19:23]ConnectInit lk.salyk.kg [14:19:23]written 0, free lines is 4095 [14:19:23]Connected sock=10 [14: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 39 32 0C 01 00 00 41 D3 04 01 11 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 0C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 69 57 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 5F 02 00 35 04 06 00 FF 04 E8 A7 8C DB 95 89 DA 58 3C BA 98 7B [14:19:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 97 8E 47 00 48 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 5F 02 00 F4 03 04 00 E2 FC 19 67 B6 04 01 00 00 C4 D8 A8 03 1C 57 4D BC [14:19:23]CommunicateWithHost err = 0 [14:19:23]CheckOFDResponse [14:19:23]1017 (14) - 77093643461234 [14:19:23]1041 (16) - 0000000000871792 [14:19:23]1040 (4) - 155558 [14:19:23]1012 (4) - 24.10.2024 07:53 [14:19:23]1206 (1) - 0 [14:19:23]OFD Sender: Remove packet 155558 [14:19:23]ProducePacketName [14:19:23]name=ofd_packets/00155558 [14:19:23]NVStorageDeleteData [14:19:23]Write to MH i2c: 01 00 00 AC 04 B0 [14:19:23]Write i2c OK [14:19:23]MH_I2C_Read... [14:19:23]Read from MH i2c: 01 [14:19:23]MH_I2C_Read... [14:19:23]Read from MH i2c: 01 07 00 [14:19:23]MH_I2C_Read... [14:19:23]Read from MH i2c: 01 07 00 AC 04 00 00 00 00 00 F1 0C B4 [14:19:23]RasterBufferAndPrint [14:19:23]line [14:19:23]line [14:19:23]line [14:19:23]line [14:19:23]line [14:19:23]written 0, free lines is 3319 [14:19:23]process_action close_receipt done [14:19:23]requested_data is exist [14:19:23]produce_requested_data [14:19:23]requested_item fm.sn is exist - process it [14:19:23]wFMCommunicate request_size=4 [14:19:23]MH_SAM_APDU [14:19:23]CAPDU: 80 11 00 00 [14:19:23]Write to MH i2c: E2 08 00 B3 04 80 11 00 00 00 00 00 00 31 [14:19:23]Write i2c OK [14:19:23]MH_I2C_Read... [14:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:24]Read from MH i2c: E2 [14:19:24]MH_I2C_Read... [14:19:24]Read from MH i2c: E2 17 00 [14:19:24]MH_I2C_Read... [14:19:24]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 39 32 90 00 86 [14:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:19:24]wFMCommunicate OK [14:19:24]requested_item fd.num is exist - process it [14:19:24]SAM_PROTO_GetFieldsCounters [14:19:24]wFMCommunicate request_size=4 [14:19:24]MH_SAM_APDU [14:19:24]CAPDU: 80 13 00 00 [14:19:24]Write to MH i2c: E2 08 00 B4 04 80 13 00 00 00 00 00 00 34 [14:19:24]Write i2c OK [14:19:24]MH_I2C_Read... [14:19:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:24]Read from MH i2c: E2 [14:19:24]MH_I2C_Read... [14:19:24]Read from MH i2c: E2 62 00 [14:19:24]MH_I2C_Read... [14:19:24]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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A6 5F 02 00 0E 04 04 00 16 02 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 9E [14:19: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A6 5F 02 00 0E 04 04 00 16 02 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 [14:19:24]wFMCommunicate OK [14:19:24]SAM_PROTO_GetFieldsCounters done [14:19:24]requested_item shift.num is exist - process it [14:19:24]requested_item shift.opened is exist - process it [14:19:24]req_shift_opened [14:19:24]FM_GetShiftState [14:19:24]SAM_PROTO_GetShiftState [14:19:24]wFMCommunicate request_size=4 [14:19:24]MH_SAM_APDU [14:19:24]CAPDU: 80 13 01 00 [14:19:24]Write to MH i2c: E2 08 00 B5 04 80 13 01 00 00 00 00 00 36 [14:19:24]Write i2c OK [14:19:24]MH_I2C_Read... [14:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:24]Read from MH i2c: E2 [14:19:24]MH_I2C_Read... [14:19:24]Read from MH i2c: E2 0E 00 [14:19:24]MH_I2C_Read... [14:19:24]Read from MH i2c: E2 0E 00 B5 04 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 83 [14:19:24]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:19:24]wFMCommunicate OK [14:19:24]SAM_PROTO_GetShiftState done [14:19:24]FM_GetShiftState done [14:19:24]req_shift_opened done [14:19:24]requested_item shift.open_date is exist - process it [14:19:24]req_shift_open_date [14:19:24]req_shift_open_date done [14:19:24]produce_requested_data done [14:19:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155558,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:19:24]process_action_free close_receipt [14:19:24]json_value_free [14:19:24]json_value_free done [14:19:24]process_json_proto returns [14:19:24]Send response to host [14:19:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155558,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:19:24]free response buf [14:19:24]execute_script done [14:19:24]execute_script returns [14:19:24]free content buf [14:19:24]Sock 9.Close socket [14:19:24]Sock 9.Thread stoped [14:19:24]OFD Sender: No OFD packet to send [14:19:25]int [14:19:25]Write to MH i2c: 01 00 00 B6 04 BA [14:19:25]*** FLAG_PRN_KEY set [14:19:25]Write i2c OK [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: 01 [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: 01 07 00 [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: 01 07 00 B6 04 00 08 00 00 00 FF 0F D7 [14:19:25]state=0 [14:19:25]Key pressed [14:19:25]Feed [14:19:25]Write to MH i2c: D8 00 00 B7 04 92 [14:19:25]Write i2c OK [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: D8 [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: D8 01 00 [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: D8 01 00 B7 04 00 93 [14:19:25]int [14:19:25]Write to MH i2c: 01 00 00 B8 04 BC [14:19:25]Write i2c OK [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: 01 [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: 01 07 00 [14:19:25]MH_I2C_Read... [14:19:25]Read from MH i2c: 01 07 00 B8 04 00 48 00 00 00 3C 00 47 [14:19:25]state=2 [14:19:25]Key pressed [14:19:26]int [14:19:26]Write to MH i2c: 01 00 00 B9 04 BD [14:19:26]*** FLAG_PRN_KEY reset [14:19:26]Write i2c OK [14:19:26]MH_I2C_Read... [14:19:26]Read from MH i2c: 01 [14:19:26]MH_I2C_Read... [14:19:26]Read from MH i2c: 01 07 00 [14:19:26]MH_I2C_Read... [14:19:26]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 F7 0F CA [14:19:26]state=2 [14:19:26]Stop feed [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]accept exits with 8 [14:20:54]New connection [14:20:54]New thread 3066781028 created [14:20:54]Thread 3066637668 joined [14:20:54]Waiting for new connection... [14:20:54] Sock 8.Parse request [14:20:54]Sock 8.Check first char [14:20:54]Sock 8.First char is OK [14:20:54]request: POST /json_proto HTTP/1.0 [14:20:54]Method: POST [14:20:54]URL: /json_proto [14:20:54]Method is POST - this is cgi request [14:20:54]url: /json_proto [14:20:54]query_string will be loaded in cgi processing [14:20:54]execute_cgi json_proto POST (null) [14:20:54]execute_cgi path=json_proto method=POST [14:20:54]POST find Content-Length [14:20:54]Host: 172.17.63.3:8080 [14:20:54]Content-Length: 676 [14:20:54]Content-Type: application/json [14:20:54] [14:20:54]POST finish read [14:20:54]Found Content-Length = 676 [14:20:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:54]execute_script... [14:20: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)98363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:54]POST & json_proto [14:20:54]process_json_proto [14:20:54]json parsed OK: [14:20:54]protocol is kg_v1.0 [14:20:54]action value=close_receipt [14:20:54]process_action close_receipt [14:20:54]cmd_close_receipt [14:20:54]MH_GetDate [14:20:54]Write to MH i2c: F0 00 00 BA 04 AD [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: F0 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: F0 09 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: F0 09 00 BA 04 00 C6 57 1A 67 50 D1 6C 64 45 [14:20:54]GetLastDocTimeStamp 1729779561 [14:20:54]current date 1729779654 [14:20:54]FM_GetShiftState [14:20:54]SAM_PROTO_GetShiftState [14:20:54]wFMCommunicate request_size=4 [14:20:54]MH_SAM_APDU [14:20:54]CAPDU: 80 13 01 00 [14:20:54]Write to MH i2c: E2 08 00 BB 04 80 13 01 00 00 00 00 00 3C [14:20:54]Write i2c OK [14:20:54]MH_I2C_Read... [14:20:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:54]Read from MH i2c: E2 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 0E 00 [14:20:54]MH_I2C_Read... [14:20:54]Read from MH i2c: E2 0E 00 BB 04 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 89 [14:20:54]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:20:54]wFMCommunicate OK [14:20:54]SAM_PROTO_GetShiftState done [14:20:54]FM_GetShiftState done [14:20:54]opened in 1729729836 [14:20:54]opened+sec_in_day 1729816236 [14:20:54]quantity*price = 20003 [14:20:54]sum+1 = 20004 [14:20:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 184 24.10.2024 14:20 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155559 ФПД: 95715199512115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142054&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155559&fm=95715199512115&tin=02508201610067®Number=0000000000091693&sum=20000 [14:20:55]StoreToDocumentArchive [14:20:55]shift 534 fd 155559 [14:20:55]save to /storage/0534/doc_00155559 [14:20:55]save last doc name /storage/0534/doc_00155559 to /storage/kkm_last_doc_name [14:20:55]save OK [14:20:55]Clear old archive folders... [14:20:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:55]tlvbuf is 01F29CE0 [14:20:55]SAM_PROTO_ClearQueue [14:20:55]wFMCommunicate request_size=4 [14:20:55]MH_SAM_APDU [14:20:55]CAPDU: 80 09 00 00 [14:20:55]Write to MH i2c: E2 08 00 C8 04 80 09 00 00 00 00 00 00 3E [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:55]Read from MH i2c: E2 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 03 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 03 00 C8 04 00 90 00 40 [14:20:55]RAPDU: 90 00 [14:20:55]wFMCommunicate OK [14:20:55]SAM_PROTO_ClearQueue done [14:20:55]KKMCreateOFDPacket [14:20:55]OFDProtocolAddRootSTLVToBuf [14:20:55]FM_MakeSignedData [14:20:55]FM_MakeSignedData [14:20:55]SAM_PROTO_SignData [14:20:55]wFMCommunicate request_size=4 [14:20:55]MH_SAM_APDU [14:20:55]CAPDU: 80 0D 01 02 [14:20:55]Write to MH i2c: E2 08 00 C9 04 80 0D 01 02 00 00 00 00 46 [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:55]Read from MH i2c: E2 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 03 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [14:20:55]RAPDU: 90 00 [14:20:55]wFMCommunicate OK [14:20:55]wFMCommunicate request_size=255 [14:20:55]MH_SAM_APDU [14:20:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 C6 57 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 5F 02 00 35 04 06 00 57 [14:20:55]Write to MH i2c: E2 02 01 CA 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 C6 57 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 5F 02 00 35 04 06 00 57 00 00 69 [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:55]Read from MH i2c: E2 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 03 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [14:20:55]RAPDU: 90 00 [14:20:55]wFMCommunicate OK [14:20:55]wFMCommunicate request_size=10 [14:20:55]MH_SAM_APDU [14:20:55]CAPDU: 80 0D 02 02 05 0D 6E 77 6E 33 [14:20:55]Write to MH i2c: E2 0D 00 CB 04 80 0D 02 02 05 00 0D 6E 77 6E 33 00 00 E6 [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:55]Read from MH i2c: E2 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 03 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [14:20:55]RAPDU: 90 00 [14:20:55]wFMCommunicate OK [14:20:55]wFMCommunicate request_size=4 [14:20:55]MH_SAM_APDU [14:20:55]CAPDU: 80 0D 03 02 [14:20:55]Write to MH i2c: E2 08 00 CC 04 80 0D 03 02 00 00 00 00 4B [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:55]Read from MH i2c: E2 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 0B 00 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 0B 00 CC 04 00 86 E1 F1 AB DC 22 92 DE 90 00 BD [14:20:55]RAPDU: 86 E1 F1 AB DC 22 92 DE 90 00 [14:20:55]wFMCommunicate OK [14:20:55]SAM_PROTO_SignData done [14:20:55]FM_MakeSignedData done [14:20:55]CreateOFDProtocolMessage [14:20:55]wFMCommunicate request_size=4 [14:20:55]MH_SAM_APDU [14:20:55]CAPDU: 80 11 00 00 [14:20:55]Write to MH i2c: E2 08 00 CD 04 80 11 00 00 00 00 00 00 4B [14:20:55]Write i2c OK [14:20:55]MH_I2C_Read... [14:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:55]Read from MH i2c: E2 [14:20:55]MH_I2C_Read... [14:20:55]Read from MH i2c: E2 17 00 [14:20:55]MH_I2C_Read... [14:20:55]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 39 32 90 00 A0 [14:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:20:55]wFMCommunicate OK [14:20:55]CreateOFDProtocolMessage done [14:20:55]OFDSenderStorePacket 155559 [14:20:55]StoreOFDPacket docnum=155559 [14:20:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 32 11 07 01 8C 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 C6 57 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 5F 02 00 35 04 06 00 57 0D 6E 77 6E 33 86 E1 F1 AB DC 22 92 DE [14:20:55]CheckFolder [14:20:55]dirname=/storage/ofd_packets [14:20:55]CheckFolder done [14:20:55]ProducePacketName [14:20:55]name=ofd_packets/00155559 [14:20:55]NVStorageSaveData ofd_packets/00155559 [14:20:55]File name is /storage/ofd_packets/00155559 [14:20:55]Write 301 bytes [14:20:55]NVStorageSaveData done [14:20:55]OFDSenderStorePacket done [14:20:55]KKMCreateOFDPacket done [14:20:55]NVStorageSaveData kkm_last_timestamp [14:20:55]File name is /storage/kkm_last_timestamp [14:20:56]Write 4 bytes [14:20:56]NVStorageSaveData done [14:20:56]ExternCall_PrintAddStr [14:20:56]wPrintStart [14:20:56]Write to MH i2c: 01 00 00 CE 04 D2 [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: 01 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: 01 07 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: 01 07 00 CE 04 00 00 00 00 00 FF 0F E7 [14:20:56]RasterBufferAndPrint [14:20:56]line Счет N : (1)98363 [14:20:56]line ИНН: 02508201610067 [14:20:56]line Контрольно-Кассовый Чек [14:20:56]line ПРОДАЖА [14:20:56]line ТРК (МРК, ГНК) : 11 [14:20:56]line Товар: 2710124130 [14:20:56]line Аи-92-К-5 [14:20:56]line 2.990 * 66.90 [14:20:56]line = 200.03 [14:20:56]line НДС 12% НСП 1% [14:20:56]line > о реализуемом товаре [14:20:56]line ОКРУГЛЕНИЕ: -0.03 [14:20:56]line ИТОГО: 200.00 [14:20:56]line Внесено: 200.00 [14:20:56]line СДАЧА: 0.00 [14:20:56]line НСП 1% : 1.77 [14:20:56]line НДС 12% : 21.24 [14:20:56]line Наличными: 200.00 [14:20:56]line Безнал.: 0.00 [14:20:56]line Место: АЗС № 143 "Партнер Нефть" [14:20:56]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:20:56]line СНО: Общий режим [14:20:56]line Чек 184 24.10.2024 14:20 [14:20:56]line Смена: 534 ФФД: 1.0 [14:20:56]line ЗНМ: 0300000096 [14:20:56]line РНМ: 0000000000091693 [14:20:56]line Версия ККМ: 001 [14:20:56]line ФМ: 0000000000871792 [14:20:56]line ФД: 155559 [14:20:56]line ФПД: 95715199512115 [14:20:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142054&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155559&fm=95715199512115&tin=02508201610067®Number=0000000000091693&sum=20000 [14:20:56]OFD Sender: Processing packet 155559 [packets to send 31, broken 30] [14:20:56]ProducePacketName [14:20:56]name=ofd_packets/00155559 [14:20:56]OFD Sender: To server: pG, [14:20:56]CommunicateWithHost lk.salyk.kg:30040 [14:20:56]ConnectInit lk.salyk.kg [14:20:56]written 0, free lines is 4095 [14:20:56]Connected sock=10 [14:20: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 39 32 0F 01 00 00 32 11 07 01 8C 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 C6 57 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 5F 02 00 35 04 06 00 57 0D 6E 77 6E 33 86 E1 F1 AB DC 22 92 DE [14:20:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 63 2A 47 00 C5 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 5F 02 00 F4 03 04 00 3F FD 19 67 B6 04 01 00 00 29 6C AF 35 BB A9 E5 CB [14:20:56]CommunicateWithHost err = 0 [14:20:56]CheckOFDResponse [14:20:56]1017 (14) - 77093643461234 [14:20:56]1041 (16) - 0000000000871792 [14:20:56]1040 (4) - 155559 [14:20:56]1012 (4) - 24.10.2024 07:54 [14:20:56]1206 (1) - 0 [14:20:56]OFD Sender: Remove packet 155559 [14:20:56]ProducePacketName [14:20:56]name=ofd_packets/00155559 [14:20:56]NVStorageDeleteData [14:20:56]Write to MH i2c: 01 00 00 F9 04 FD [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: 01 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: 01 07 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: 01 07 00 F9 04 00 00 00 00 00 D4 0C E4 [14:20:56]RasterBufferAndPrint [14:20:56]line [14:20:56]line [14:20:56]line [14:20:56]line [14:20:56]line [14:20:56]written 0, free lines is 3292 [14:20:56]process_action close_receipt done [14:20:56]requested_data is exist [14:20:56]produce_requested_data [14:20:56]requested_item fm.sn is exist - process it [14:20:56]wFMCommunicate request_size=4 [14:20:56]MH_SAM_APDU [14:20:56]CAPDU: 80 11 00 00 [14:20:56]Write to MH i2c: E2 08 00 00 05 80 11 00 00 00 00 00 00 7F [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 [14:20:56]MH_I2C_Read... [14:20:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:56]Read from MH i2c: E2 17 00 [14:20:56]MH_I2C_Read... [14:20:56]Read from MH i2c: E2 17 00 00 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D4 [14:20:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:20:56]wFMCommunicate OK [14:20:56]requested_item fd.num is exist - process it [14:20:56]SAM_PROTO_GetFieldsCounters [14:20:56]wFMCommunicate request_size=4 [14:20:56]MH_SAM_APDU [14:20:56]CAPDU: 80 13 00 00 [14:20:56]Write to MH i2c: E2 08 00 01 05 80 13 00 00 00 00 00 00 82 [14:20:56]Write i2c OK [14:20:56]MH_I2C_Read... [14:20:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:57]Read from MH i2c: E2 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 62 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 62 00 01 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A7 5F 02 00 0E 04 04 00 16 02 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 F0 [14:20: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A7 5F 02 00 0E 04 04 00 16 02 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 [14:20:57]wFMCommunicate OK [14:20:57]SAM_PROTO_GetFieldsCounters done [14:20:57]requested_item shift.num is exist - process it [14:20:57]requested_item shift.opened is exist - process it [14:20:57]req_shift_opened [14:20:57]FM_GetShiftState [14:20:57]SAM_PROTO_GetShiftState [14:20:57]wFMCommunicate request_size=4 [14:20:57]MH_SAM_APDU [14:20:57]CAPDU: 80 13 01 00 [14:20:57]Write to MH i2c: E2 08 00 02 05 80 13 01 00 00 00 00 00 84 [14:20:57]Write i2c OK [14:20:57]MH_I2C_Read... [14:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:57]Read from MH i2c: E2 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 0E 00 [14:20:57]MH_I2C_Read... [14:20:57]Read from MH i2c: E2 0E 00 02 05 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D1 [14:20:57]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:20:57]wFMCommunicate OK [14:20:57]SAM_PROTO_GetShiftState done [14:20:57]FM_GetShiftState done [14:20:57]req_shift_opened done [14:20:57]requested_item shift.open_date is exist - process it [14:20:57]req_shift_open_date [14:20:57]req_shift_open_date done [14:20:57]produce_requested_data done [14:20:57]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155559,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:20:57]process_action_free close_receipt [14:20:57]json_value_free [14:20:57]json_value_free done [14:20:57]process_json_proto returns [14:20:57]Send response to host [14:20:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155559,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:20:57]free response buf [14:20:57]execute_script done [14:20:57]execute_script returns [14:20:57]free content buf [14:20:57]Sock 8.Close socket [14:20:57]Sock 8.Thread stoped [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:22]OFD Sender: No OFD packet to send [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:18]accept exits with 9 [14:25:18]New connection [14:25:18]New thread 3066637668 created [14:25:18]Thread 3066781028 joined [14:25:18]Waiting for new connection... [14:25:18] Sock 9.Parse request [14:25:18]Sock 9.Check first char [14:25:18]Sock 9.First char is OK [14:25:18]request: POST /json_proto HTTP/1.0 [14:25:18]Method: POST [14:25:18]URL: /json_proto [14:25:18]Method is POST - this is cgi request [14:25:18]url: /json_proto [14:25:18]query_string will be loaded in cgi processing [14:25:18]execute_cgi json_proto POST (null) [14:25:18]execute_cgi path=json_proto method=POST [14:25:18]POST find Content-Length [14:25:18]Host: 172.17.63.3:8080 [14:25:18]Content-Length: 676 [14:25:18]Content-Type: application/json [14:25:18] [14:25:18]POST finish read [14:25:18]Found Content-Length = 676 [14:25:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:18]execute_script... [14:25:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:18]POST & json_proto [14:25:18]process_json_proto [14:25:18]json parsed OK: [14:25:18]protocol is kg_v1.0 [14:25:18]action value=close_receipt [14:25:18]process_action close_receipt [14:25:18]cmd_close_receipt [14:25:18]MH_GetDate [14:25:18]Write to MH i2c: F0 00 00 03 05 F7 [14:25:18]Write i2c OK [14:25:18]MH_I2C_Read... [14:25:18]Read from MH i2c: F0 [14:25:18]MH_I2C_Read... [14:25:18]Read from MH i2c: F0 09 00 [14:25:18]MH_I2C_Read... [14:25:18]Read from MH i2c: F0 09 00 03 05 00 CE 58 1A 67 50 D1 6C 64 98 [14:25:18]GetLastDocTimeStamp 1729779654 [14:25:18]current date 1729779918 [14:25:18]FM_GetShiftState [14:25:18]SAM_PROTO_GetShiftState [14:25:18]wFMCommunicate request_size=4 [14:25:18]MH_SAM_APDU [14:25:18]CAPDU: 80 13 01 00 [14:25:18]Write to MH i2c: E2 08 00 04 05 80 13 01 00 00 00 00 00 86 [14:25:18]Write i2c OK [14:25:18]MH_I2C_Read... [14:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:18]Read from MH i2c: E2 [14:25:18]MH_I2C_Read... [14:25:18]Read from MH i2c: E2 0E 00 [14:25:18]MH_I2C_Read... [14:25:18]Read from MH i2c: E2 0E 00 04 05 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D3 [14:25:18]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:25:18]wFMCommunicate OK [14:25:18]SAM_PROTO_GetShiftState done [14:25:18]FM_GetShiftState done [14:25:18]opened in 1729729836 [14:25:18]opened+sec_in_day 1729816236 [14:25:18]quantity*price = 30038 [14:25:18]sum+1 = 30039 [14:25:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 185 24.10.2024 14:25 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155560 ФПД: 248543231455554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142518&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155560&fm=248543231455554&tin=02508201610067®Number=0000000000091693&sum=30000 [14:25:19]StoreToDocumentArchive [14:25:19]shift 534 fd 155560 [14:25:19]save to /storage/0534/doc_00155560 [14:25:19]save last doc name /storage/0534/doc_00155560 to /storage/kkm_last_doc_name [14:25:19]save OK [14:25:19]Clear old archive folders... [14:25:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:25:19]tlvbuf is 01F25050 [14:25:19]SAM_PROTO_ClearQueue [14:25:19]wFMCommunicate request_size=4 [14:25:19]MH_SAM_APDU [14:25:19]CAPDU: 80 09 00 00 [14:25:19]Write to MH i2c: E2 08 00 11 05 80 09 00 00 00 00 00 00 88 [14:25:19]Write i2c OK [14:25:19]MH_I2C_Read... [14:25:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:19]Read from MH i2c: E2 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: E2 03 00 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: E2 03 00 11 05 00 90 00 8A [14:25:19]RAPDU: 90 00 [14:25:19]wFMCommunicate OK [14:25:19]SAM_PROTO_ClearQueue done [14:25:19]KKMCreateOFDPacket [14:25:19]OFDProtocolAddRootSTLVToBuf [14:25:19]FM_MakeSignedData [14:25:19]FM_MakeSignedData [14:25:19]SAM_PROTO_SignData [14:25:19]wFMCommunicate request_size=4 [14:25:19]MH_SAM_APDU [14:25:19]CAPDU: 80 0D 01 02 [14:25:19]Write to MH i2c: E2 08 00 12 05 80 0D 01 02 00 00 00 00 90 [14:25:19]Write i2c OK [14:25:19]MH_I2C_Read... [14:25:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:19]Read from MH i2c: E2 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: E2 03 00 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: E2 03 00 12 05 00 90 00 8B [14:25:19]RAPDU: 90 00 [14:25:19]wFMCommunicate OK [14:25:19]wFMCommunicate request_size=255 [14:25:19]MH_SAM_APDU [14: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 CE 58 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 5F 02 00 35 04 06 00 E2 [14:25:19]Write to MH i2c: E2 02 01 13 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 CE 58 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 5F 02 00 35 04 06 00 E2 00 00 7B [14:25:19]Write i2c OK [14:25:19]MH_I2C_Read... [14:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:19]Read from MH i2c: E2 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: E2 03 00 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [14:25:19]RAPDU: 90 00 [14:25:19]wFMCommunicate OK [14:25:19]wFMCommunicate request_size=10 [14:25:19]MH_SAM_APDU [14:25:19]CAPDU: 80 0D 02 02 05 0C 7B 05 B1 42 [14:25:19]Write to MH i2c: E2 0D 00 14 05 80 0D 02 02 05 00 0C 7B 05 B1 42 00 00 1C [14:25:19]Write i2c OK [14:25:19]MH_I2C_Read... [14:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:19]Read from MH i2c: E2 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: E2 03 00 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [14:25:19]RAPDU: 90 00 [14:25:19]wFMCommunicate OK [14:25:19]wFMCommunicate request_size=4 [14:25:19]MH_SAM_APDU [14:25:19]CAPDU: 80 0D 03 02 [14:25:19]Write to MH i2c: E2 08 00 15 05 80 0D 03 02 00 00 00 00 95 [14:25:19]Write i2c OK [14:25:19]MH_I2C_Read... [14:25:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:19]Read from MH i2c: E2 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: E2 0B 00 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: E2 0B 00 15 05 00 DB 19 FC 90 4A C0 25 9E 90 00 E3 [14:25:19]RAPDU: DB 19 FC 90 4A C0 25 9E 90 00 [14:25:19]wFMCommunicate OK [14:25:19]SAM_PROTO_SignData done [14:25:19]FM_MakeSignedData done [14:25:19]CreateOFDProtocolMessage [14:25:19]wFMCommunicate request_size=4 [14:25:19]MH_SAM_APDU [14:25:19]CAPDU: 80 11 00 00 [14:25:19]Write to MH i2c: E2 08 00 16 05 80 11 00 00 00 00 00 00 95 [14:25:19]Write i2c OK [14:25:19]MH_I2C_Read... [14:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:19]Read from MH i2c: E2 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: E2 17 00 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: E2 17 00 16 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EA [14:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:25:19]wFMCommunicate OK [14:25:19]CreateOFDProtocolMessage done [14:25:19]OFDSenderStorePacket 155560 [14:25:19]StoreOFDPacket docnum=155560 [14:25:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9E 8E 07 01 CC 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 CE 58 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 5F 02 00 35 04 06 00 E2 0C 7B 05 B1 42 DB 19 FC 90 4A C0 25 9E [14:25:19]CheckFolder [14:25:19]dirname=/storage/ofd_packets [14:25:19]CheckFolder done [14:25:19]ProducePacketName [14:25:19]name=ofd_packets/00155560 [14:25:19]NVStorageSaveData ofd_packets/00155560 [14:25:19]File name is /storage/ofd_packets/00155560 [14:25:19]Write 301 bytes [14:25:19]NVStorageSaveData done [14:25:19]OFDSenderStorePacket done [14:25:19]KKMCreateOFDPacket done [14:25:19]NVStorageSaveData kkm_last_timestamp [14:25:19]File name is /storage/kkm_last_timestamp [14:25:19]Write 4 bytes [14:25:19]NVStorageSaveData done [14:25:19]ExternCall_PrintAddStr [14:25:19]wPrintStart [14:25:19]Write to MH i2c: 01 00 00 17 05 1C [14:25:19]Write i2c OK [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: 01 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: 01 07 00 [14:25:19]MH_I2C_Read... [14:25:19]Read from MH i2c: 01 07 00 17 05 00 00 00 00 00 FF 0F 31 [14:25:19]RasterBufferAndPrint [14:25:19]line Счет N : (1)98365 [14:25:19]line ИНН: 02508201610067 [14:25:19]line Контрольно-Кассовый Чек [14:25:19]line ПРОДАЖА [14:25:19]line ТРК (МРК, ГНК) : 11 [14:25:19]line Товар: 2710124130 [14:25:19]line Аи-92-К-5 [14:25:19]line 4.490 * 66.90 [14:25:19]line = 300.38 [14:25:19]line НДС 12% НСП 1% [14:25:19]line > о реализуемом товаре [14:25:19]line ОКРУГЛЕНИЕ: -0.38 [14:25:19]line ИТОГО: 300.00 [14:25:19]line Внесено: 300.00 [14:25:19]line СДАЧА: 0.00 [14:25:19]line НСП 1% : 2.66 [14:25:19]line НДС 12% : 31.90 [14:25:19]line Наличными: 300.00 [14:25:19]line Безнал.: 0.00 [14:25:19]line Место: АЗС № 143 "Партнер Нефть" [14:25:19]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:25:19]line СНО: Общий режим [14:25:19]line Чек 185 24.10.2024 14:25 [14:25:19]line Смена: 534 ФФД: 1.0 [14:25:19]line ЗНМ: 0300000096 [14:25:19]line РНМ: 0000000000091693 [14:25:19]line Версия ККМ: 001 [14:25:19]line ФМ: 0000000000871792 [14:25:19]line ФД: 155560 [14:25:19]line ФПД: 248543231455554 [14:25:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142518&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155560&fm=248543231455554&tin=02508201610067®Number=0000000000091693&sum=30000 [14:25:20]OFD Sender: Processing packet 155560 [packets to send 31, broken 30] [14:25:20]ProducePacketName [14:25:20]name=ofd_packets/00155560 [14:25:20]OFD Sender: To server: pG, [14:25:20]CommunicateWithHost lk.salyk.kg:30040 [14:25:20]ConnectInit lk.salyk.kg [14:25:20]written 0, free lines is 4095 [14:25:20]Connected sock=10 [14:25: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 39 32 0F 01 00 00 9E 8E 07 01 CC 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 CE 58 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 5F 02 00 35 04 06 00 E2 0C 7B 05 B1 42 DB 19 FC 90 4A C0 25 9E [14: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 39 32 4F 00 00 00 2D AD 47 00 3F 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 39 32 10 04 04 00 A8 5F 02 00 F4 03 04 00 47 FE 19 67 B6 04 01 00 00 AA 80 D4 73 EF 0C 2E 0F [14:25:20]CommunicateWithHost err = 0 [14:25:20]CheckOFDResponse [14:25:20]1017 (14) - 77093643461234 [14:25:20]1041 (16) - 0000000000871792 [14:25:20]1040 (4) - 155560 [14:25:20]1012 (4) - 24.10.2024 07:59 [14:25:20]1206 (1) - 0 [14:25:20]OFD Sender: Remove packet 155560 [14:25:20]ProducePacketName [14:25:20]name=ofd_packets/00155560 [14:25:20]NVStorageDeleteData [14:25:20]Write to MH i2c: 01 00 00 42 05 47 [14:25:20]Write i2c OK [14:25:20]MH_I2C_Read... [14:25:20]Read from MH i2c: 01 [14:25:20]MH_I2C_Read... [14:25:20]Read from MH i2c: 01 07 00 [14:25:20]MH_I2C_Read... [14:25:20]Read from MH i2c: 01 07 00 42 05 00 00 00 00 00 D7 0C 31 [14:25:20]RasterBufferAndPrint [14:25:20]line [14:25:20]line [14:25:20]line [14:25:20]line [14:25:20]line [14:25:20]written 0, free lines is 3294 [14:25:20]process_action close_receipt done [14:25:20]requested_data is exist [14:25:20]produce_requested_data [14:25:20]requested_item fm.sn is exist - process it [14:25:20]wFMCommunicate request_size=4 [14:25:20]MH_SAM_APDU [14:25:20]CAPDU: 80 11 00 00 [14:25:20]Write to MH i2c: E2 08 00 49 05 80 11 00 00 00 00 00 00 C8 [14:25:20]Write i2c OK [14:25:20]MH_I2C_Read... [14:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:20]Read from MH i2c: E2 [14:25:20]MH_I2C_Read... [14:25:20]Read from MH i2c: E2 17 00 [14:25:20]MH_I2C_Read... [14:25:20]Read from MH i2c: E2 17 00 49 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1D [14:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:25:20]wFMCommunicate OK [14:25:20]requested_item fd.num is exist - process it [14:25:20]SAM_PROTO_GetFieldsCounters [14:25:20]wFMCommunicate request_size=4 [14:25:20]MH_SAM_APDU [14:25:20]CAPDU: 80 13 00 00 [14:25:20]Write to MH i2c: E2 08 00 4A 05 80 13 00 00 00 00 00 00 CB [14:25:20]Write i2c OK [14:25:20]MH_I2C_Read... [14:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:20]Read from MH i2c: E2 [14:25:20]MH_I2C_Read... [14:25:20]Read from MH i2c: E2 62 00 [14:25:20]MH_I2C_Read... [14:25:20]Read from MH i2c: E2 62 00 4A 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A8 5F 02 00 0E 04 04 00 16 02 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 3D [14:25: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A8 5F 02 00 0E 04 04 00 16 02 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 [14:25:20]wFMCommunicate OK [14:25:20]SAM_PROTO_GetFieldsCounters done [14:25:20]requested_item shift.num is exist - process it [14:25:20]requested_item shift.opened is exist - process it [14:25:20]req_shift_opened [14:25:20]FM_GetShiftState [14:25:20]SAM_PROTO_GetShiftState [14:25:20]wFMCommunicate request_size=4 [14:25:20]MH_SAM_APDU [14:25:20]CAPDU: 80 13 01 00 [14:25:20]Write to MH i2c: E2 08 00 4B 05 80 13 01 00 00 00 00 00 CD [14:25:20]Write i2c OK [14:25:20]MH_I2C_Read... [14:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:21]Read from MH i2c: E2 [14:25:21]MH_I2C_Read... [14:25:21]Read from MH i2c: E2 0E 00 [14:25:21]MH_I2C_Read... [14:25:21]Read from MH i2c: E2 0E 00 4B 05 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1A [14:25:21]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:25:21]wFMCommunicate OK [14:25:21]SAM_PROTO_GetShiftState done [14:25:21]FM_GetShiftState done [14:25:21]req_shift_opened done [14:25:21]requested_item shift.open_date is exist - process it [14:25:21]req_shift_open_date [14:25:21]req_shift_open_date done [14:25:21]produce_requested_data done [14:25:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155560,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:25:21]process_action_free close_receipt [14:25:21]json_value_free [14:25:21]json_value_free done [14:25:21]process_json_proto returns [14:25:21]Send response to host [14:25:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155560,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:25:21]free response buf [14:25:21]execute_script done [14:25:21]execute_script returns [14:25:21]free content buf [14:25:21]Sock 9.Close socket [14:25:21]Sock 9.Thread stoped [14:25:21]OFD Sender: No OFD packet to send [14:25:26]accept exits with 8 [14:25:26]New connection [14:25:26]New thread 3066781028 created [14:25:26]Thread 3066637668 joined [14:25:26]Waiting for new connection... [14:25:26] Sock 8.Parse request [14:25:26]Sock 8.Check first char [14:25:26]Sock 8.First char is OK [14:25:26]request: POST /json_proto HTTP/1.0 [14:25:26]Method: POST [14:25:26]URL: /json_proto [14:25:26]Method is POST - this is cgi request [14:25:26]url: /json_proto [14:25:26]query_string will be loaded in cgi processing [14:25:26]execute_cgi json_proto POST (null) [14:25:26]execute_cgi path=json_proto method=POST [14:25:26]POST find Content-Length [14:25:26]Host: 172.17.63.3:8080 [14:25:26]Content-Length: 681 [14:25:26]Content-Type: application/json [14:25:26] [14:25:26]POST finish read [14:25:26]Found Content-Length = 681 [14:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [14:25:26]execute_script... [14:25:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [14:25:26]POST & json_proto [14:25:26]process_json_proto [14:25:26]json parsed OK: [14:25:26]protocol is kg_v1.0 [14:25:26]action value=close_receipt [14:25:26]process_action close_receipt [14:25:26]cmd_close_receipt [14:25:26]MH_GetDate [14:25:26]Write to MH i2c: F0 00 00 4C 05 40 [14:25:26]Write i2c OK [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: F0 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: F0 09 00 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: F0 09 00 4C 05 00 D6 58 1A 67 50 D1 6C 64 E9 [14:25:26]GetLastDocTimeStamp 1729779918 [14:25:26]current date 1729779926 [14:25:26]FM_GetShiftState [14:25:26]SAM_PROTO_GetShiftState [14:25:26]wFMCommunicate request_size=4 [14:25:26]MH_SAM_APDU [14:25:26]CAPDU: 80 13 01 00 [14:25:26]Write to MH i2c: E2 08 00 4D 05 80 13 01 00 00 00 00 00 CF [14:25:26]Write i2c OK [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 [14:25:26]MH_I2C_Read... [14:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:26]Read from MH i2c: E2 0E 00 [14:25:26]MH_I2C_Read... [14:25:26]Read from MH i2c: E2 0E 00 4D 05 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1C [14:25:26]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:25:26]wFMCommunicate OK [14:25:26]SAM_PROTO_GetShiftState done [14:25:26]FM_GetShiftState done [14:25:26]opened in 1729729836 [14:25:26]opened+sec_in_day 1729816236 [14:25:26]quantity*price = 150056 [14:25:26]sum+1 = 150058 [14:25:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 186 24.10.2024 14:25 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155561 ФПД: 11505545170406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142526&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155561&fm=11505545170406&tin=02508201610067®Number=0000000000091693&sum=150000 [14:25:27]StoreToDocumentArchive [14:25:27]shift 534 fd 155561 [14:25:27]save to /storage/0534/doc_00155561 [14:25:27]save last doc name /storage/0534/doc_00155561 to /storage/kkm_last_doc_name [14:25:27]save OK [14:25:27]Clear old archive folders... [14:25:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:25:27]tlvbuf is 01F48190 [14:25:27]SAM_PROTO_ClearQueue [14:25:27]wFMCommunicate request_size=4 [14:25:27]MH_SAM_APDU [14:25:27]CAPDU: 80 09 00 00 [14:25:27]Write to MH i2c: E2 08 00 5A 05 80 09 00 00 00 00 00 00 D1 [14:25:27]Write i2c OK [14:25:27]MH_I2C_Read... [14:25:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:27]Read from MH i2c: E2 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 03 00 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [14:25:27]RAPDU: 90 00 [14:25:27]wFMCommunicate OK [14:25:27]SAM_PROTO_ClearQueue done [14:25:27]KKMCreateOFDPacket [14:25:27]OFDProtocolAddRootSTLVToBuf [14:25:27]FM_MakeSignedData [14:25:27]FM_MakeSignedData [14:25:27]SAM_PROTO_SignData [14:25:27]wFMCommunicate request_size=4 [14:25:27]MH_SAM_APDU [14:25:27]CAPDU: 80 0D 01 02 [14:25:27]Write to MH i2c: E2 08 00 5B 05 80 0D 01 02 00 00 00 00 D9 [14:25:27]Write i2c OK [14:25:27]MH_I2C_Read... [14:25:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:27]Read from MH i2c: E2 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 03 00 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 03 00 5B 05 00 90 00 D4 [14:25:27]RAPDU: 90 00 [14:25:27]wFMCommunicate OK [14:25:27]wFMCommunicate request_size=255 [14:25:27]MH_SAM_APDU [14:25: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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 D6 58 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 5F 02 00 35 04 06 00 0A [14:25:27]Write to MH i2c: E2 02 01 5C 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 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 D6 58 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 5F 02 00 35 04 06 00 0A 00 00 4B [14:25:27]Write i2c OK [14:25:27]MH_I2C_Read... [14:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:27]Read from MH i2c: E2 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 03 00 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 03 00 5C 05 00 90 00 D5 [14:25:27]RAPDU: 90 00 [14:25:27]wFMCommunicate OK [14:25:27]wFMCommunicate request_size=10 [14:25:27]MH_SAM_APDU [14:25:27]CAPDU: 80 0D 02 02 05 76 D7 EE CD E6 [14:25:27]Write to MH i2c: E2 0D 00 5D 05 80 0D 02 02 05 00 76 D7 EE CD E6 00 00 D4 [14:25:27]Write i2c OK [14:25:27]MH_I2C_Read... [14:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:27]Read from MH i2c: E2 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 03 00 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 03 00 5D 05 00 90 00 D6 [14:25:27]RAPDU: 90 00 [14:25:27]wFMCommunicate OK [14:25:27]wFMCommunicate request_size=4 [14:25:27]MH_SAM_APDU [14:25:27]CAPDU: 80 0D 03 02 [14:25:27]Write to MH i2c: E2 08 00 5E 05 80 0D 03 02 00 00 00 00 DE [14:25:27]Write i2c OK [14:25:27]MH_I2C_Read... [14:25:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:27]Read from MH i2c: E2 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 0B 00 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 0B 00 5E 05 00 D6 59 2F 74 3D 09 9B 3D 90 00 CF [14:25:27]RAPDU: D6 59 2F 74 3D 09 9B 3D 90 00 [14:25:27]wFMCommunicate OK [14:25:27]SAM_PROTO_SignData done [14:25:27]FM_MakeSignedData done [14:25:27]CreateOFDProtocolMessage [14:25:27]wFMCommunicate request_size=4 [14:25:27]MH_SAM_APDU [14:25:27]CAPDU: 80 11 00 00 [14:25:27]Write to MH i2c: E2 08 00 5F 05 80 11 00 00 00 00 00 00 DE [14:25:27]Write i2c OK [14:25:27]MH_I2C_Read... [14:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:27]Read from MH i2c: E2 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 17 00 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: E2 17 00 5F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 33 [14:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:25:27]wFMCommunicate OK [14:25:27]CreateOFDProtocolMessage done [14:25:27]OFDSenderStorePacket 155561 [14:25:27]StoreOFDPacket docnum=155561 [14:25:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 69 BC 07 01 71 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 D6 58 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 5F 02 00 35 04 06 00 0A 76 D7 EE CD E6 D6 59 2F 74 3D 09 9B 3D [14:25:27]CheckFolder [14:25:27]dirname=/storage/ofd_packets [14:25:27]CheckFolder done [14:25:27]ProducePacketName [14:25:27]name=ofd_packets/00155561 [14:25:27]NVStorageSaveData ofd_packets/00155561 [14:25:27]File name is /storage/ofd_packets/00155561 [14:25:27]Write 301 bytes [14:25:27]NVStorageSaveData done [14:25:27]OFDSenderStorePacket done [14:25:27]KKMCreateOFDPacket done [14:25:27]NVStorageSaveData kkm_last_timestamp [14:25:27]File name is /storage/kkm_last_timestamp [14:25:27]Write 4 bytes [14:25:27]NVStorageSaveData done [14:25:27]ExternCall_PrintAddStr [14:25:27]wPrintStart [14:25:27]Write to MH i2c: 01 00 00 60 05 65 [14:25:27]Write i2c OK [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: 01 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: 01 07 00 [14:25:27]MH_I2C_Read... [14:25:27]Read from MH i2c: 01 07 00 60 05 00 00 00 00 00 FF 0F 7A [14:25:27]RasterBufferAndPrint [14:25:27]line Счет N : (1)98364 [14:25:27]line ИНН: 02508201610067 [14:25:27]line Контрольно-Кассовый Чек [14:25:27]line ПРОДАЖА [14:25:27]line ТРК (МРК, ГНК) : 21 [14:25:27]line Товар: 2710124130 [14:25:27]line Аи-92-К-5 [14:25:27]line 22.430 * 66.90 [14:25:27]line = 1500.57 [14:25:27]line НДС 12% НСП 1% [14:25:27]line > о реализуемом товаре [14:25:27]line ОКРУГЛЕНИЕ: -0.57 [14:25:27]line ИТОГО: 1500.00 [14:25:27]line Внесено: 1500.00 [14:25:27]line СДАЧА: 0.00 [14:25:27]line НСП 1% : 13.28 [14:25:27]line НДС 12% : 159.35 [14:25:27]line Наличными: 1500.00 [14:25:27]line Безнал.: 0.00 [14:25:27]line Место: АЗС № 143 "Партнер Нефть" [14:25:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:25:27]line СНО: Общий режим [14:25:27]line Чек 186 24.10.2024 14:25 [14:25:27]line Смена: 534 ФФД: 1.0 [14:25:27]line ЗНМ: 0300000096 [14:25:27]line РНМ: 0000000000091693 [14:25:27]line Версия ККМ: 001 [14:25:27]line ФМ: 0000000000871792 [14:25:27]line ФД: 155561 [14:25:27]line ФПД: 11505545170406 [14:25:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142526&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155561&fm=11505545170406&tin=02508201610067®Number=0000000000091693&sum=150000 [14:25:27]OFD Sender: Processing packet 155561 [packets to send 31, broken 30] [14:25:27]ProducePacketName [14:25:27]name=ofd_packets/00155561 [14:25:27]OFD Sender: To server: pG, [14:25:27]CommunicateWithHost lk.salyk.kg:30040 [14:25:27]ConnectInit lk.salyk.kg [14:25:27]written 0, free lines is 4095 [14:25:27]Connected sock=10 [14:25: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 39 32 0F 01 00 00 69 BC 07 01 71 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 D6 58 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 5F 02 00 35 04 06 00 0A 76 D7 EE CD E6 D6 59 2F 74 3D 09 9B 3D [14:25: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 39 32 4F 00 00 00 09 A1 47 00 21 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 39 32 10 04 04 00 A9 5F 02 00 F4 03 04 00 4E FE 19 67 B6 04 01 00 00 43 19 FC 73 08 25 0D 60 [14:25:28]CommunicateWithHost err = 0 [14:25:28]CheckOFDResponse [14:25:28]1017 (14) - 77093643461234 [14:25:28]1041 (16) - 0000000000871792 [14:25:28]1040 (4) - 155561 [14:25:28]1012 (4) - 24.10.2024 07:59 [14:25:28]1206 (1) - 0 [14:25:28]OFD Sender: Remove packet 155561 [14:25:28]ProducePacketName [14:25:28]name=ofd_packets/00155561 [14:25:28]NVStorageDeleteData [14:25:28]Write to MH i2c: 01 00 00 8B 05 90 [14:25:28]Write i2c OK [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: 01 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: 01 07 00 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: 01 07 00 8B 05 00 00 00 00 00 F4 0C 97 [14:25:28]RasterBufferAndPrint [14:25:28]line [14:25:28]line [14:25:28]line [14:25:28]line [14:25:28]line [14:25:28]written 0, free lines is 3329 [14:25:28]process_action close_receipt done [14:25:28]requested_data is exist [14:25:28]produce_requested_data [14:25:28]requested_item fm.sn is exist - process it [14:25:28]wFMCommunicate request_size=4 [14:25:28]MH_SAM_APDU [14:25:28]CAPDU: 80 11 00 00 [14:25:28]Write to MH i2c: E2 08 00 92 05 80 11 00 00 00 00 00 00 11 [14:25:28]Write i2c OK [14:25:28]MH_I2C_Read... [14:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:28]Read from MH i2c: E2 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: E2 17 00 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: E2 17 00 92 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 66 [14:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:25:28]wFMCommunicate OK [14:25:28]requested_item fd.num is exist - process it [14:25:28]SAM_PROTO_GetFieldsCounters [14:25:28]wFMCommunicate request_size=4 [14:25:28]MH_SAM_APDU [14:25:28]CAPDU: 80 13 00 00 [14:25:28]Write to MH i2c: E2 08 00 93 05 80 13 00 00 00 00 00 00 14 [14:25:28]Write i2c OK [14:25:28]MH_I2C_Read... [14:25:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:28]Read from MH i2c: E2 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: E2 62 00 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: E2 62 00 93 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A9 5F 02 00 0E 04 04 00 16 02 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 8A [14:25: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A9 5F 02 00 0E 04 04 00 16 02 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 [14:25:28]wFMCommunicate OK [14:25:28]SAM_PROTO_GetFieldsCounters done [14:25:28]requested_item shift.num is exist - process it [14:25:28]requested_item shift.opened is exist - process it [14:25:28]req_shift_opened [14:25:28]FM_GetShiftState [14:25:28]SAM_PROTO_GetShiftState [14:25:28]wFMCommunicate request_size=4 [14:25:28]MH_SAM_APDU [14:25:28]CAPDU: 80 13 01 00 [14:25:28]Write to MH i2c: E2 08 00 94 05 80 13 01 00 00 00 00 00 16 [14:25:28]Write i2c OK [14:25:28]MH_I2C_Read... [14:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:28]Read from MH i2c: E2 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: E2 0E 00 [14:25:28]MH_I2C_Read... [14:25:28]Read from MH i2c: E2 0E 00 94 05 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 63 [14:25:28]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:25:28]wFMCommunicate OK [14:25:28]SAM_PROTO_GetShiftState done [14:25:28]FM_GetShiftState done [14:25:28]req_shift_opened done [14:25:28]requested_item shift.open_date is exist - process it [14:25:28]req_shift_open_date [14:25:28]req_shift_open_date done [14:25:28]produce_requested_data done [14:25:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155561,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:25:28]process_action_free close_receipt [14:25:28]json_value_free [14:25:28]json_value_free done [14:25:28]process_json_proto returns [14:25:28]Send response to host [14:25:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155561,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:25:28]free response buf [14:25:28]execute_script done [14:25:28]execute_script returns [14:25:28]free content buf [14:25:28]Sock 8.Close socket [14:25:28]Sock 8.Thread stoped [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:24]accept exits with 9 [14:29:24]New connection [14:29:24]New thread 3066637668 created [14:29:24]Thread 3066781028 joined [14:29:24]Waiting for new connection... [14:29:24] Sock 9.Parse request [14:29:24]Sock 9.Check first char [14:29:24]Sock 9.First char is OK [14:29:24]request: POST /json_proto HTTP/1.0 [14:29:24]Method: POST [14:29:24]URL: /json_proto [14:29:24]Method is POST - this is cgi request [14:29:24]url: /json_proto [14:29:24]query_string will be loaded in cgi processing [14:29:24]execute_cgi json_proto POST (null) [14:29:24]execute_cgi path=json_proto method=POST [14:29:24]POST find Content-Length [14:29:24]Host: 172.17.63.3:8080 [14:29:24]Content-Length: 676 [14:29:24]Content-Type: application/json [14:29:24] [14:29:24]POST finish read [14:29:24]Found Content-Length = 676 [14:29:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:24]execute_script... [14:29: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)98366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:24]POST & json_proto [14:29:24]process_json_proto [14:29:24]json parsed OK: [14:29:24]protocol is kg_v1.0 [14:29:24]action value=close_receipt [14:29:24]process_action close_receipt [14:29:24]cmd_close_receipt [14:29:24]MH_GetDate [14:29:24]Write to MH i2c: F0 00 00 95 05 89 [14:29:24]Write i2c OK [14:29:24]MH_I2C_Read... [14:29:24]Read from MH i2c: F0 [14:29:24]MH_I2C_Read... [14:29:24]Read from MH i2c: F0 09 00 [14:29:24]MH_I2C_Read... [14:29:24]Read from MH i2c: F0 09 00 95 05 00 C4 59 1A 67 50 D1 6C 64 21 [14:29:24]GetLastDocTimeStamp 1729779926 [14:29:24]current date 1729780164 [14:29:24]FM_GetShiftState [14:29:24]SAM_PROTO_GetShiftState [14:29:24]wFMCommunicate request_size=4 [14:29:24]MH_SAM_APDU [14:29:24]CAPDU: 80 13 01 00 [14:29:24]Write to MH i2c: E2 08 00 96 05 80 13 01 00 00 00 00 00 18 [14:29:24]Write i2c OK [14:29:24]MH_I2C_Read... [14:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:24]Read from MH i2c: E2 [14:29:24]MH_I2C_Read... [14:29:24]Read from MH i2c: E2 0E 00 [14:29:24]MH_I2C_Read... [14:29:24]Read from MH i2c: E2 0E 00 96 05 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 65 [14:29:24]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:29:24]wFMCommunicate OK [14:29:24]SAM_PROTO_GetShiftState done [14:29:24]FM_GetShiftState done [14:29:24]opened in 1729729836 [14:29:24]opened+sec_in_day 1729816236 [14:29:24]quantity*price = 60009 [14:29:24]sum+1 = 60010 [14:29:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 187 24.10.2024 14:29 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155562 ФПД: 259649890180086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142924&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155562&fm=259649890180086&tin=02508201610067®Number=0000000000091693&sum=60000 [14:29:25]StoreToDocumentArchive [14:29:25]shift 534 fd 155562 [14:29:25]save to /storage/0534/doc_00155562 [14:29:25]save last doc name /storage/0534/doc_00155562 to /storage/kkm_last_doc_name [14:29:25]save OK [14:29:25]Clear old archive folders... [14:29:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:29:25]tlvbuf is 01F286E0 [14:29:25]SAM_PROTO_ClearQueue [14:29:25]wFMCommunicate request_size=4 [14:29:25]MH_SAM_APDU [14:29:25]CAPDU: 80 09 00 00 [14:29:25]Write to MH i2c: E2 08 00 A3 05 80 09 00 00 00 00 00 00 1A [14:29:25]Write i2c OK [14:29:25]MH_I2C_Read... [14:29:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:25]Read from MH i2c: E2 [14:29:25]MH_I2C_Read... [14:29:25]Read from MH i2c: E2 03 00 [14:29:25]MH_I2C_Read... [14:29:25]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [14:29:25]RAPDU: 90 00 [14:29:25]wFMCommunicate OK [14:29:25]SAM_PROTO_ClearQueue done [14:29:25]KKMCreateOFDPacket [14:29:25]OFDProtocolAddRootSTLVToBuf [14:29:25]FM_MakeSignedData [14:29:25]FM_MakeSignedData [14:29:25]SAM_PROTO_SignData [14:29:25]wFMCommunicate request_size=4 [14:29:25]MH_SAM_APDU [14:29:25]CAPDU: 80 0D 01 02 [14:29:25]Write to MH i2c: E2 08 00 A4 05 80 0D 01 02 00 00 00 00 22 [14:29:25]Write i2c OK [14:29:25]MH_I2C_Read... [14:29:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:25]Read from MH i2c: E2 [14:29:25]MH_I2C_Read... [14:29:25]Read from MH i2c: E2 03 00 [14:29:25]MH_I2C_Read... [14:29:25]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [14:29:25]RAPDU: 90 00 [14:29:25]wFMCommunicate OK [14:29:25]wFMCommunicate request_size=255 [14:29:25]MH_SAM_APDU [14:29: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 C4 59 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 5F 02 00 35 04 06 00 EC [14:29:25]Write to MH i2c: E2 02 01 A5 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 C4 59 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 5F 02 00 35 04 06 00 EC 00 00 FB [14:29:25]Write i2c OK [14:29:25]MH_I2C_Read... [14:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:25]Read from MH i2c: E2 [14:29:25]MH_I2C_Read... [14:29:25]Read from MH i2c: E2 03 00 [14:29:25]MH_I2C_Read... [14:29:25]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [14:29:25]RAPDU: 90 00 [14:29:25]wFMCommunicate OK [14:29:25]wFMCommunicate request_size=10 [14:29:25]MH_SAM_APDU [14:29:25]CAPDU: 80 0D 02 02 05 26 73 78 5B F6 [14:29:25]Write to MH i2c: E2 0D 00 A6 05 80 0D 02 02 05 00 26 73 78 5B F6 00 00 91 [14:29:25]Write i2c OK [14:29:25]MH_I2C_Read... [14:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:25]Read from MH i2c: E2 [14:29:25]MH_I2C_Read... [14:29:25]Read from MH i2c: E2 03 00 [14:29:25]MH_I2C_Read... [14:29:25]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [14:29:25]RAPDU: 90 00 [14:29:25]wFMCommunicate OK [14:29:25]wFMCommunicate request_size=4 [14:29:25]MH_SAM_APDU [14:29:25]CAPDU: 80 0D 03 02 [14:29:25]Write to MH i2c: E2 08 00 A7 05 80 0D 03 02 00 00 00 00 27 [14:29:25]Write i2c OK [14:29:25]MH_I2C_Read... [14:29:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:25]Read from MH i2c: E2 [14:29:25]MH_I2C_Read... [14:29:25]Read from MH i2c: E2 0B 00 [14:29:25]MH_I2C_Read... [14:29:25]Read from MH i2c: E2 0B 00 A7 05 00 7D DF DE 97 CE 25 BE 50 90 00 FA [14:29:25]RAPDU: 7D DF DE 97 CE 25 BE 50 90 00 [14:29:25]wFMCommunicate OK [14:29:25]SAM_PROTO_SignData done [14:29:25]FM_MakeSignedData done [14:29:25]CreateOFDProtocolMessage [14:29:25]wFMCommunicate request_size=4 [14:29:25]MH_SAM_APDU [14:29:25]CAPDU: 80 11 00 00 [14:29:25]Write to MH i2c: E2 08 00 A8 05 80 11 00 00 00 00 00 00 27 [14:29:25]Write i2c OK [14:29:25]MH_I2C_Read... [14:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:25]Read from MH i2c: E2 [14:29:25]MH_I2C_Read... [14:29:25]Read from MH i2c: E2 17 00 [14:29:25]MH_I2C_Read... [14:29:25]Read from MH i2c: E2 17 00 A8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7C [14:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:29:25]wFMCommunicate OK [14:29:25]CreateOFDProtocolMessage done [14:29:25]OFDSenderStorePacket 155562 [14:29:25]StoreOFDPacket docnum=155562 [14:29:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B9 D2 07 01 13 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 C4 59 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 5F 02 00 35 04 06 00 EC 26 73 78 5B F6 7D DF DE 97 CE 25 BE 50 [14:29:25]CheckFolder [14:29:25]dirname=/storage/ofd_packets [14:29:25]CheckFolder done [14:29:25]ProducePacketName [14:29:25]name=ofd_packets/00155562 [14:29:25]NVStorageSaveData ofd_packets/00155562 [14:29:25]File name is /storage/ofd_packets/00155562 [14:29:25]Write 301 bytes [14:29:25]NVStorageSaveData done [14:29:25]OFDSenderStorePacket done [14:29:25]KKMCreateOFDPacket done [14:29:25]NVStorageSaveData kkm_last_timestamp [14:29:25]File name is /storage/kkm_last_timestamp [14:29:25]Write 4 bytes [14:29:25]NVStorageSaveData done [14:29:25]ExternCall_PrintAddStr [14:29:25]wPrintStart [14:29:25]Write to MH i2c: 01 00 00 A9 05 AE [14:29:25]Write i2c OK [14:29:25]MH_I2C_Read... [14:29:25]Read from MH i2c: 01 [14:29:25]MH_I2C_Read... [14:29:25]Read from MH i2c: 01 07 00 [14:29:25]MH_I2C_Read... [14:29:25]Read from MH i2c: 01 07 00 A9 05 00 00 00 00 00 FF 0F C3 [14:29:25]RasterBufferAndPrint [14:29:25]line Счет N : (1)98366 [14:29:25]line ИНН: 02508201610067 [14:29:25]line Контрольно-Кассовый Чек [14:29:25]line ПРОДАЖА [14:29:25]line ТРК (МРК, ГНК) : 21 [14:29:25]line Товар: 2710124130 [14:29:25]line Аи-92-К-5 [14:29:25]line 8.970 * 66.90 [14:29:25]line = 600.09 [14:29:25]line НДС 12% НСП 1% [14:29:25]line > о реализуемом товаре [14:29:25]line ОКРУГЛЕНИЕ: -0.09 [14:29:25]line ИТОГО: 600.00 [14:29:25]line Внесено: 600.00 [14:29:25]line СДАЧА: 0.00 [14:29:25]line НСП 1% : 5.31 [14:29:25]line НДС 12% : 63.73 [14:29:25]line Наличными: 600.00 [14:29:25]line Безнал.: 0.00 [14:29:25]line Место: АЗС № 143 "Партнер Нефть" [14:29:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:29:25]line СНО: Общий режим [14:29:25]line Чек 187 24.10.2024 14:29 [14:29:25]line Смена: 534 ФФД: 1.0 [14:29:25]line ЗНМ: 0300000096 [14:29:25]line РНМ: 0000000000091693 [14:29:25]line Версия ККМ: 001 [14:29:25]line ФМ: 0000000000871792 [14:29:25]line ФД: 155562 [14:29:25]line ФПД: 259649890180086 [14:29:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T142924&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155562&fm=259649890180086&tin=02508201610067®Number=0000000000091693&sum=60000 [14:29:26]OFD Sender: Processing packet 155562 [packets to send 31, broken 30] [14:29:26]ProducePacketName [14:29:26]name=ofd_packets/00155562 [14:29:26]OFD Sender: To server: pG, [14:29:26]CommunicateWithHost lk.salyk.kg:30040 [14:29:26]ConnectInit lk.salyk.kg [14:29:26]written 0, free lines is 4095 [14:29:26]Connected sock=10 [14:29: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 39 32 0F 01 00 00 B9 D2 07 01 13 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 C4 59 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 5F 02 00 35 04 06 00 EC 26 73 78 5B F6 7D DF DE 97 CE 25 BE 50 [14:29: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 39 32 4F 00 00 00 E4 B6 47 00 FB 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 39 32 10 04 04 00 AA 5F 02 00 F4 03 04 00 3D FF 19 67 B6 04 01 00 00 E9 88 F5 52 DE 4A 41 14 [14:29:26]CommunicateWithHost err = 0 [14:29:26]CheckOFDResponse [14:29:26]1017 (14) - 77093643461234 [14:29:26]1041 (16) - 0000000000871792 [14:29:26]1040 (4) - 155562 [14:29:26]1012 (4) - 24.10.2024 08:03 [14:29:26]1206 (1) - 0 [14:29:26]OFD Sender: Remove packet 155562 [14:29:26]ProducePacketName [14:29:26]name=ofd_packets/00155562 [14:29:26]NVStorageDeleteData [14:29:26]Write to MH i2c: 01 00 00 D4 05 D9 [14:29:26]Write i2c OK [14:29:26]MH_I2C_Read... [14:29:26]Read from MH i2c: 01 [14:29:26]MH_I2C_Read... [14:29:26]Read from MH i2c: 01 07 00 [14:29:26]MH_I2C_Read... [14:29:26]Read from MH i2c: 01 07 00 D4 05 00 00 00 00 00 E4 0C D0 [14:29:26]RasterBufferAndPrint [14:29:26]line [14:29:26]line [14:29:26]line [14:29:26]line [14:29:26]line [14:29:26]written 0, free lines is 3306 [14:29:26]process_action close_receipt done [14:29:26]requested_data is exist [14:29:26]produce_requested_data [14:29:26]requested_item fm.sn is exist - process it [14:29:26]wFMCommunicate request_size=4 [14:29:26]MH_SAM_APDU [14:29:26]CAPDU: 80 11 00 00 [14:29:26]Write to MH i2c: E2 08 00 DB 05 80 11 00 00 00 00 00 00 5A [14:29:26]Write i2c OK [14:29:26]MH_I2C_Read... [14:29:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:26]Read from MH i2c: E2 [14:29:26]MH_I2C_Read... [14:29:26]Read from MH i2c: E2 17 00 [14:29:26]MH_I2C_Read... [14:29:26]Read from MH i2c: E2 17 00 DB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AF [14:29:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:29:26]wFMCommunicate OK [14:29:26]requested_item fd.num is exist - process it [14:29:26]SAM_PROTO_GetFieldsCounters [14:29:26]wFMCommunicate request_size=4 [14:29:26]MH_SAM_APDU [14:29:26]CAPDU: 80 13 00 00 [14:29:26]Write to MH i2c: E2 08 00 DC 05 80 13 00 00 00 00 00 00 5D [14:29:26]Write i2c OK [14:29:26]MH_I2C_Read... [14:29:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:26]Read from MH i2c: E2 [14:29:26]MH_I2C_Read... [14:29:26]Read from MH i2c: E2 62 00 [14:29:26]MH_I2C_Read... [14:29:26]Read from MH i2c: E2 62 00 DC 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AA 5F 02 00 0E 04 04 00 16 02 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 D7 [14:29: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AA 5F 02 00 0E 04 04 00 16 02 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 [14:29:26]wFMCommunicate OK [14:29:26]SAM_PROTO_GetFieldsCounters done [14:29:26]requested_item shift.num is exist - process it [14:29:26]requested_item shift.opened is exist - process it [14:29:26]req_shift_opened [14:29:26]FM_GetShiftState [14:29:26]SAM_PROTO_GetShiftState [14:29:26]wFMCommunicate request_size=4 [14:29:26]MH_SAM_APDU [14:29:26]CAPDU: 80 13 01 00 [14:29:26]Write to MH i2c: E2 08 00 DD 05 80 13 01 00 00 00 00 00 5F [14:29:26]Write i2c OK [14:29:26]MH_I2C_Read... [14:29:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:26]Read from MH i2c: E2 [14:29:26]MH_I2C_Read... [14:29:26]Read from MH i2c: E2 0E 00 [14:29:26]MH_I2C_Read... [14:29:26]Read from MH i2c: E2 0E 00 DD 05 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AC [14:29:26]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:29:26]wFMCommunicate OK [14:29:26]SAM_PROTO_GetShiftState done [14:29:26]FM_GetShiftState done [14:29:26]req_shift_opened done [14:29:26]requested_item shift.open_date is exist - process it [14:29:26]req_shift_open_date [14:29:26]req_shift_open_date done [14:29:26]produce_requested_data done [14:29:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155562,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:29:26]process_action_free close_receipt [14:29:26]json_value_free [14:29:26]json_value_free done [14:29:26]process_json_proto returns [14:29:26]Send response to host [14:29:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155562,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:29:26]free response buf [14:29:26]execute_script done [14:29:26]execute_script returns [14:29:26]free content buf [14:29:26]Sock 9.Close socket [14:29:26]Sock 9.Thread stoped [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: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:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:34:59]accept exits with 8 [14:34:59]New connection [14:34:59]New thread 3066781028 created [14:34:59]Thread 3066637668 joined [14:34:59]Waiting for new connection... [14:34:59] Sock 8.Parse request [14:34:59]Sock 8.Check first char [14:34:59]Sock 8.First char is OK [14:34:59]request: POST /json_proto HTTP/1.0 [14:34:59]Method: POST [14:34:59]URL: /json_proto [14:34:59]Method is POST - this is cgi request [14:34:59]url: /json_proto [14:34:59]query_string will be loaded in cgi processing [14:34:59]execute_cgi json_proto POST (null) [14:34:59]execute_cgi path=json_proto method=POST [14:34:59]POST find Content-Length [14:34:59]Host: 172.17.63.3:8080 [14:34:59]Content-Length: 676 [14:34:59]Content-Type: application/json [14:34:59] [14:34:59]POST finish read [14:34:59]Found Content-Length = 676 [14:34:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:59]execute_script... [14:34: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)98367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:59]POST & json_proto [14:34:59]process_json_proto [14:34:59]json parsed OK: [14:34:59]protocol is kg_v1.0 [14:34:59]action value=close_receipt [14:34:59]process_action close_receipt [14:34:59]cmd_close_receipt [14:34:59]MH_GetDate [14:34:59]Write to MH i2c: F0 00 00 DE 05 D2 [14:34:59]Write i2c OK [14:34:59]MH_I2C_Read... [14:34:59]Read from MH i2c: F0 [14:34:59]MH_I2C_Read... [14:34:59]Read from MH i2c: F0 09 00 [14:34:59]MH_I2C_Read... [14:34:59]Read from MH i2c: F0 09 00 DE 05 00 13 5B 1A 67 50 D1 6C 64 BB [14:34:59]GetLastDocTimeStamp 1729780164 [14:34:59]current date 1729780499 [14:34:59]FM_GetShiftState [14:34:59]SAM_PROTO_GetShiftState [14:34:59]wFMCommunicate request_size=4 [14:34:59]MH_SAM_APDU [14:34:59]CAPDU: 80 13 01 00 [14:34:59]Write to MH i2c: E2 08 00 DF 05 80 13 01 00 00 00 00 00 61 [14:34:59]Write i2c OK [14:34:59]MH_I2C_Read... [14:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:59]Read from MH i2c: E2 [14:34:59]MH_I2C_Read... [14:34:59]Read from MH i2c: E2 0E 00 [14:34:59]MH_I2C_Read... [14:34:59]Read from MH i2c: E2 0E 00 DF 05 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AE [14:34:59]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:34:59]wFMCommunicate OK [14:34:59]SAM_PROTO_GetShiftState done [14:34:59]FM_GetShiftState done [14:34:59]opened in 1729729836 [14:34:59]opened+sec_in_day 1729816236 [14:34:59]quantity*price = 20003 [14:34:59]sum+1 = 20004 [14:34:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 188 24.10.2024 14:34 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155563 ФПД: 125902834748838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143459&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155563&fm=125902834748838&tin=02508201610067®Number=0000000000091693&sum=20000 [14:35:00]StoreToDocumentArchive [14:35:00]shift 534 fd 155563 [14:35:00]save to /storage/0534/doc_00155563 [14:35:00]save last doc name /storage/0534/doc_00155563 to /storage/kkm_last_doc_name [14:35:00]save OK [14:35:00]Clear old archive folders... [14:35:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:00]tlvbuf is 01F25C10 [14:35:00]SAM_PROTO_ClearQueue [14:35:00]wFMCommunicate request_size=4 [14:35:00]MH_SAM_APDU [14:35:00]CAPDU: 80 09 00 00 [14:35:00]Write to MH i2c: E2 08 00 EC 05 80 09 00 00 00 00 00 00 63 [14:35:00]Write i2c OK [14:35:00]MH_I2C_Read... [14:35:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:00]Read from MH i2c: E2 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 EC 05 00 90 00 65 [14:35:00]RAPDU: 90 00 [14:35:00]wFMCommunicate OK [14:35:00]SAM_PROTO_ClearQueue done [14:35:00]KKMCreateOFDPacket [14:35:00]OFDProtocolAddRootSTLVToBuf [14:35:00]FM_MakeSignedData [14:35:00]FM_MakeSignedData [14:35:00]SAM_PROTO_SignData [14:35:00]wFMCommunicate request_size=4 [14:35:00]MH_SAM_APDU [14:35:00]CAPDU: 80 0D 01 02 [14:35:00]Write to MH i2c: E2 08 00 ED 05 80 0D 01 02 00 00 00 00 6B [14:35:00]Write i2c OK [14:35:00]MH_I2C_Read... [14:35:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:00]Read from MH i2c: E2 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 [14:35:00]MH_I2C_Read... [14:35:00]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [14:35:00]RAPDU: 90 00 [14:35:00]wFMCommunicate OK [14:35:00]wFMCommunicate request_size=255 [14:35:00]MH_SAM_APDU [14:35: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 13 5B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AB 5F 02 00 35 04 06 00 72 [14:35:00]Write to MH i2c: E2 02 01 EE 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 13 5B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AB 5F 02 00 35 04 06 00 72 00 00 02 [14:35:00]Write i2c OK [14:35:00]MH_I2C_Read... [14:35:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:01]Read from MH i2c: E2 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: E2 03 00 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [14:35:01]RAPDU: 90 00 [14:35:01]wFMCommunicate OK [14:35:01]wFMCommunicate request_size=10 [14:35:01]MH_SAM_APDU [14:35:01]CAPDU: 80 0D 02 02 05 82 09 BD CD A6 [14:35:01]Write to MH i2c: E2 0D 00 EF 05 80 0D 02 02 05 00 82 09 BD CD A6 00 00 33 [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:01]Read from MH i2c: E2 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: E2 03 00 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [14:35:01]RAPDU: 90 00 [14:35:01]wFMCommunicate OK [14:35:01]wFMCommunicate request_size=4 [14:35:01]MH_SAM_APDU [14:35:01]CAPDU: 80 0D 03 02 [14:35:01]Write to MH i2c: E2 08 00 F0 05 80 0D 03 02 00 00 00 00 70 [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:01]Read from MH i2c: E2 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: E2 0B 00 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: E2 0B 00 F0 05 00 89 6F 40 E4 CD D5 63 C4 90 00 56 [14:35:01]RAPDU: 89 6F 40 E4 CD D5 63 C4 90 00 [14:35:01]wFMCommunicate OK [14:35:01]SAM_PROTO_SignData done [14:35:01]FM_MakeSignedData done [14:35:01]CreateOFDProtocolMessage [14:35:01]wFMCommunicate request_size=4 [14:35:01]MH_SAM_APDU [14:35:01]CAPDU: 80 11 00 00 [14:35:01]Write to MH i2c: E2 08 00 F1 05 80 11 00 00 00 00 00 00 70 [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:01]Read from MH i2c: E2 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: E2 17 00 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: E2 17 00 F1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C5 [14:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:35:01]wFMCommunicate OK [14:35:01]CreateOFDProtocolMessage done [14:35:01]OFDSenderStorePacket 155563 [14:35:01]StoreOFDPacket docnum=155563 [14:35:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 91 05 07 01 77 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 13 5B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AB 5F 02 00 35 04 06 00 72 82 09 BD CD A6 89 6F 40 E4 CD D5 63 C4 [14:35:01]CheckFolder [14:35:01]dirname=/storage/ofd_packets [14:35:01]CheckFolder done [14:35:01]ProducePacketName [14:35:01]name=ofd_packets/00155563 [14:35:01]NVStorageSaveData ofd_packets/00155563 [14:35:01]File name is /storage/ofd_packets/00155563 [14:35:01]Write 301 bytes [14:35:01]NVStorageSaveData done [14:35:01]OFDSenderStorePacket done [14:35:01]KKMCreateOFDPacket done [14:35:01]NVStorageSaveData kkm_last_timestamp [14:35:01]File name is /storage/kkm_last_timestamp [14:35:01]Write 4 bytes [14:35:01]NVStorageSaveData done [14:35:01]ExternCall_PrintAddStr [14:35:01]wPrintStart [14:35:01]Write to MH i2c: 01 00 00 F2 05 F7 [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: 01 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: 01 07 00 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: 01 07 00 F2 05 00 00 00 00 00 FF 0F 0C [14:35:01]RasterBufferAndPrint [14:35:01]line Счет N : (1)98367 [14:35:01]line ИНН: 02508201610067 [14:35:01]line Контрольно-Кассовый Чек [14:35:01]line ПРОДАЖА [14:35:01]line ТРК (МРК, ГНК) : 21 [14:35:01]line Товар: 2710124130 [14:35:01]line Аи-92-К-5 [14:35:01]line 2.990 * 66.90 [14:35:01]line = 200.03 [14:35:01]line НДС 12% НСП 1% [14:35:01]line > о реализуемом товаре [14:35:01]line ОКРУГЛЕНИЕ: -0.03 [14:35:01]line ИТОГО: 200.00 [14:35:01]line Внесено: 200.00 [14:35:01]line СДАЧА: 0.00 [14:35:01]line НСП 1% : 1.77 [14:35:01]line НДС 12% : 21.24 [14:35:01]line Наличными: 200.00 [14:35:01]line Безнал.: 0.00 [14:35:01]line Место: АЗС № 143 "Партнер Нефть" [14:35:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:35:01]line СНО: Общий режим [14:35:01]line Чек 188 24.10.2024 14:34 [14:35:01]line Смена: 534 ФФД: 1.0 [14:35:01]line ЗНМ: 0300000096 [14:35:01]line РНМ: 0000000000091693 [14:35:01]line Версия ККМ: 001 [14:35:01]line ФМ: 0000000000871792 [14:35:01]line ФД: 155563 [14:35:01]line ФПД: 125902834748838 [14:35:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143459&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155563&fm=125902834748838&tin=02508201610067®Number=0000000000091693&sum=20000 [14:35:01]OFD Sender: Processing packet 155563 [packets to send 31, broken 30] [14:35:01]ProducePacketName [14:35:01]name=ofd_packets/00155563 [14:35:01]OFD Sender: To server: pG, [14:35:01]CommunicateWithHost lk.salyk.kg:30040 [14:35:01]ConnectInit lk.salyk.kg [14:35:01]written 0, free lines is 4095 [14:35:01]Connected sock=10 [14:35: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 39 32 0F 01 00 00 91 05 07 01 77 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 13 5B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AB 5F 02 00 35 04 06 00 72 82 09 BD CD A6 89 6F 40 E4 CD D5 63 C4 [14:35: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 39 32 4F 00 00 00 E0 F5 47 00 10 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 39 32 10 04 04 00 AB 5F 02 00 F4 03 04 00 8C 00 1A 67 B6 04 01 00 00 B7 8B 1F D1 BE D5 54 E6 [14:35:01]CommunicateWithHost err = 0 [14:35:01]CheckOFDResponse [14:35:01]1017 (14) - 77093643461234 [14:35:01]1041 (16) - 0000000000871792 [14:35:01]1040 (4) - 155563 [14:35:01]1012 (4) - 24.10.2024 08:08 [14:35:01]1206 (1) - 0 [14:35:01]OFD Sender: Remove packet 155563 [14:35:01]ProducePacketName [14:35:01]name=ofd_packets/00155563 [14:35:01]NVStorageDeleteData [14:35:01]Write to MH i2c: 01 00 00 1D 06 23 [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: 01 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: 01 07 00 [14:35:01]MH_I2C_Read... [14:35:01]Read from MH i2c: 01 07 00 1D 06 00 00 00 00 00 D8 0C 0E [14:35:01]RasterBufferAndPrint [14:35:01]line [14:35:01]line [14:35:01]line [14:35:01]line [14:35:01]line [14:35:01]written 0, free lines is 3295 [14:35:01]process_action close_receipt done [14:35:01]requested_data is exist [14:35:01]produce_requested_data [14:35:01]requested_item fm.sn is exist - process it [14:35:01]wFMCommunicate request_size=4 [14:35:01]MH_SAM_APDU [14:35:01]CAPDU: 80 11 00 00 [14:35:01]Write to MH i2c: E2 08 00 24 06 80 11 00 00 00 00 00 00 A4 [14:35:01]Write i2c OK [14:35:01]MH_I2C_Read... [14:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:02]Read from MH i2c: E2 [14:35:02]MH_I2C_Read... [14:35:02]Read from MH i2c: E2 17 00 [14:35:02]MH_I2C_Read... [14:35:02]Read from MH i2c: E2 17 00 24 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F9 [14:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:35:02]wFMCommunicate OK [14:35:02]requested_item fd.num is exist - process it [14:35:02]SAM_PROTO_GetFieldsCounters [14:35:02]wFMCommunicate request_size=4 [14:35:02]MH_SAM_APDU [14:35:02]CAPDU: 80 13 00 00 [14:35:02]Write to MH i2c: E2 08 00 25 06 80 13 00 00 00 00 00 00 A7 [14:35:02]Write i2c OK [14:35:02]MH_I2C_Read... [14:35:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:02]Read from MH i2c: E2 [14:35:02]MH_I2C_Read... [14:35:02]Read from MH i2c: E2 62 00 [14:35:02]MH_I2C_Read... [14:35:02]Read from MH i2c: E2 62 00 25 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AB 5F 02 00 0E 04 04 00 16 02 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 25 [14:35: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AB 5F 02 00 0E 04 04 00 16 02 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 [14:35:02]wFMCommunicate OK [14:35:02]SAM_PROTO_GetFieldsCounters done [14:35:02]requested_item shift.num is exist - process it [14:35:02]requested_item shift.opened is exist - process it [14:35:02]req_shift_opened [14:35:02]FM_GetShiftState [14:35:02]SAM_PROTO_GetShiftState [14:35:02]wFMCommunicate request_size=4 [14:35:02]MH_SAM_APDU [14:35:02]CAPDU: 80 13 01 00 [14:35:02]Write to MH i2c: E2 08 00 26 06 80 13 01 00 00 00 00 00 A9 [14:35:02]Write i2c OK [14:35:02]MH_I2C_Read... [14:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:02]Read from MH i2c: E2 [14:35:02]MH_I2C_Read... [14:35:02]Read from MH i2c: E2 0E 00 [14:35:02]MH_I2C_Read... [14:35:02]Read from MH i2c: E2 0E 00 26 06 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F6 [14:35:02]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:35:02]wFMCommunicate OK [14:35:02]SAM_PROTO_GetShiftState done [14:35:02]FM_GetShiftState done [14:35:02]req_shift_opened done [14:35:02]requested_item shift.open_date is exist - process it [14:35:02]req_shift_open_date [14:35:02]req_shift_open_date done [14:35:02]produce_requested_data done [14:35:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155563,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:35:02]process_action_free close_receipt [14:35:02]json_value_free [14:35:02]json_value_free done [14:35:02]process_json_proto returns [14:35:02]Send response to host [14:35:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155563,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:35:02]free response buf [14:35:02]execute_script done [14:35:02]execute_script returns [14:35:02]free content buf [14:35:02]Sock 8.Close socket [14:35:02]Sock 8.Thread stoped [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [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: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:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:01]accept exits with 9 [14:39:01]New connection [14:39:01]New thread 3066637668 created [14:39:01]Thread 3066781028 joined [14:39:01]Waiting for new connection... [14:39:01] Sock 9.Parse request [14:39:01]Sock 9.Check first char [14:39:01]Sock 9.First char is OK [14:39:01]request: POST /json_proto HTTP/1.0 [14:39:01]Method: POST [14:39:01]URL: /json_proto [14:39:01]Method is POST - this is cgi request [14:39:01]url: /json_proto [14:39:01]query_string will be loaded in cgi processing [14:39:01]execute_cgi json_proto POST (null) [14:39:01]execute_cgi path=json_proto method=POST [14:39:01]POST find Content-Length [14:39:01]Host: 172.17.63.3:8080 [14:39:01]Content-Length: 794 [14:39:01]Content-Type: application/json [14:39:01] [14:39:01]POST finish read [14:39:01]Found Content-Length = 794 [14:39:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 55.010, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A72596", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:01]execute_script... [14:39: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)98368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 55.010, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A72596", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:01]POST & json_proto [14:39:01]process_json_proto [14:39:01]json parsed OK: [14:39:01]protocol is kg_v1.0 [14:39:01]action value=close_receipt [14:39:01]process_action close_receipt [14:39:01]cmd_close_receipt [14:39:01]MH_GetDate [14:39:01]Write to MH i2c: F0 00 00 27 06 1C [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: F0 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: F0 09 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: F0 09 00 27 06 00 06 5C 1A 67 50 D1 6C 64 F9 [14:39:01]GetLastDocTimeStamp 1729780499 [14:39:01]current date 1729780742 [14:39:01]FM_GetShiftState [14:39:01]SAM_PROTO_GetShiftState [14:39:01]wFMCommunicate request_size=4 [14:39:01]MH_SAM_APDU [14:39:01]CAPDU: 80 13 01 00 [14:39:01]Write to MH i2c: E2 08 00 28 06 80 13 01 00 00 00 00 00 AB [14:39:01]Write i2c OK [14:39:01]MH_I2C_Read... [14:39:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:01]Read from MH i2c: E2 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 0E 00 [14:39:01]MH_I2C_Read... [14:39:01]Read from MH i2c: E2 0E 00 28 06 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F8 [14:39:01]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:39:01]wFMCommunicate OK [14:39:01]SAM_PROTO_GetShiftState done [14:39:01]FM_GetShiftState done [14:39:01]opened in 1729729836 [14:39:01]opened+sec_in_day 1729816236 [14:39:01]quantity*price = 0 [14:39:01]sum+1 = 1 [14:39:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 189 24.10.2024 14:39 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 72596 ФМ: 0000000000871792 ФД: 155564 ФПД: 204922775720717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143902&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155564&fm=204922775720717&tin=02508201610067®Number=0000000000091693&sum=0 [14:39:02]StoreToDocumentArchive [14:39:02]shift 534 fd 155564 [14:39:02]save to /storage/0534/doc_00155564 [14:39:02]save last doc name /storage/0534/doc_00155564 to /storage/kkm_last_doc_name [14:39:02]save OK [14:39:02]Clear old archive folders... [14:39:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:39:02]tlvbuf is 01F26B80 [14:39:02]SAM_PROTO_ClearQueue [14:39:02]wFMCommunicate request_size=4 [14:39:02]MH_SAM_APDU [14:39:02]CAPDU: 80 09 00 00 [14:39:02]Write to MH i2c: E2 08 00 35 06 80 09 00 00 00 00 00 00 AD [14:39:02]Write i2c OK [14:39:02]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 35 06 00 90 00 AF [14:39:03]RAPDU: 90 00 [14:39:03]wFMCommunicate OK [14:39:03]SAM_PROTO_ClearQueue done [14:39:03]KKMCreateOFDPacket [14:39:03]OFDProtocolAddRootSTLVToBuf [14:39:03]FM_MakeSignedData [14:39:03]FM_MakeSignedData [14:39:03]SAM_PROTO_SignData [14:39:03]wFMCommunicate request_size=4 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 0D 01 02 [14:39:03]Write to MH i2c: E2 08 00 36 06 80 0D 01 02 00 00 00 00 B5 [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [14:39:03]RAPDU: 90 00 [14:39:03]wFMCommunicate OK [14:39:03]wFMCommunicate request_size=255 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E2 D6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 00 00 00 F4 03 04 00 06 5C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 5F 02 00 35 04 06 00 BA 60 4D 40 [14:39:03]Write to MH i2c: E2 02 01 37 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E2 D6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 00 00 00 F4 03 04 00 06 5C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 5F 02 00 35 04 06 00 BA 60 4D 40 00 00 3B [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [14:39:03]RAPDU: 90 00 [14:39:03]wFMCommunicate OK [14:39:03]wFMCommunicate request_size=7 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 0D 02 02 02 D3 0D [14:39:03]Write to MH i2c: E2 0A 00 38 06 80 0D 02 02 02 00 D3 0D 00 00 9C [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [14:39:03]RAPDU: 90 00 [14:39:03]wFMCommunicate OK [14:39:03]wFMCommunicate request_size=4 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 0D 03 02 [14:39:03]Write to MH i2c: E2 08 00 39 06 80 0D 03 02 00 00 00 00 BA [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 0B 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 0B 00 39 06 00 64 51 43 05 BC E8 C6 00 90 00 22 [14:39:03]RAPDU: 64 51 43 05 BC E8 C6 00 90 00 [14:39:03]wFMCommunicate OK [14:39:03]SAM_PROTO_SignData done [14:39:03]FM_MakeSignedData done [14:39:03]CreateOFDProtocolMessage [14:39:03]wFMCommunicate request_size=4 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 11 00 00 [14:39:03]Write to MH i2c: E2 08 00 3A 06 80 11 00 00 00 00 00 00 BA [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 17 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 17 00 3A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0F [14:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:39:03]wFMCommunicate OK [14:39:03]CreateOFDProtocolMessage done [14:39:03]OFDSenderStorePacket 155564 [14:39:03]StoreOFDPacket docnum=155564 [14:39:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 10 D1 04 01 B0 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E2 D6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 00 00 00 F4 03 04 00 06 5C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 5F 02 00 35 04 06 00 BA 60 4D 40 D3 0D 64 51 43 05 BC E8 C6 00 [14:39:03]CheckFolder [14:39:03]dirname=/storage/ofd_packets [14:39:03]CheckFolder done [14:39:03]ProducePacketName [14:39:03]name=ofd_packets/00155564 [14:39:03]NVStorageSaveData ofd_packets/00155564 [14:39:03]File name is /storage/ofd_packets/00155564 [14:39:03]Write 298 bytes [14:39:03]NVStorageSaveData done [14:39:03]OFDSenderStorePacket done [14:39:03]KKMCreateOFDPacket done [14:39:03]NVStorageSaveData kkm_last_timestamp [14:39:03]File name is /storage/kkm_last_timestamp [14:39:03]Write 4 bytes [14:39:03]NVStorageSaveData done [14:39:03]ExternCall_PrintAddStr [14:39:03]wPrintStart [14:39:03]Write to MH i2c: 01 00 00 3B 06 41 [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: 01 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: 01 07 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: 01 07 00 3B 06 00 00 00 00 00 FF 0F 56 [14:39:03]RasterBufferAndPrint [14:39:03]line Счет N : (1)98368 [14:39:03]line ИНН: 02508201610067 [14:39:03]line Контрольно-Кассовый Чек [14:39:03]line ПРОДАЖА [14:39:03]line ТРК (МРК, ГНК) : 32 [14:39:03]line Товар: 2710194210 [14:39:03]line ДТ-К-5 [14:39:03]line 55.010 * 0.00 [14:39:03]line = 0.00 [14:39:03]line НДС 12% НСП 1% [14:39:03]line > о реализуемом товаре [14:39:03]line ИТОГО: 0.00 [14:39:03]line НСП 1% : 0.00 [14:39:03]line НДС 12% : 0.00 [14:39:03]line Наличными: 0.00 [14:39:03]line Безнал.: 0.00 [14:39:03]line Место: АЗС № 143 "Партнер Нефть" [14:39:03]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:39:03]line СНО: Общий режим [14:39:03]line Чек 189 24.10.2024 14:39 [14:39:03]line Смена: 534 ФФД: 1.0 [14:39:03]line ЗНМ: 0300000096 [14:39:03]line РНМ: 0000000000091693 [14:39:03]line Версия ККМ: 001 [14:39:03]line Талоны: Топливные Талоны [14:39:03]line 72596 [14:39:03]line ФМ: 0000000000871792 [14:39:03]line ФД: 155564 [14:39:03]line ФПД: 204922775720717 [14:39:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T143902&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155564&fm=204922775720717&tin=02508201610067®Number=0000000000091693&sum=0 [14:39:03]OFD Sender: Processing packet 155564 [packets to send 31, broken 30] [14:39:03]ProducePacketName [14:39:03]name=ofd_packets/00155564 [14:39:03]OFD Sender: To server: pG, [14:39:03]CommunicateWithHost lk.salyk.kg:30040 [14:39:03]ConnectInit lk.salyk.kg [14:39:03]written 0, free lines is 4095 [14:39:03]Connected sock=8 [14:39: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 39 32 0C 01 00 00 10 D1 04 01 B0 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E2 D6 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 00 00 00 F4 03 04 00 06 5C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 5F 02 00 35 04 06 00 BA 60 4D 40 D3 0D 64 51 43 05 BC E8 C6 00 [14:39: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 39 32 4F 00 00 00 21 C4 47 00 37 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 5F 02 00 F4 03 04 00 7E 01 1A 67 B6 04 01 00 00 94 12 7C D8 23 E3 6F 81 [14:39:04]CommunicateWithHost err = 0 [14:39:04]CheckOFDResponse [14:39:04]1017 (14) - 77093643461234 [14:39:04]1041 (16) - 0000000000871792 [14:39:04]1040 (4) - 155564 [14:39:04]1012 (4) - 24.10.2024 08:12 [14:39:04]1206 (1) - 0 [14:39:04]OFD Sender: Remove packet 155564 [14:39:04]ProducePacketName [14:39:04]name=ofd_packets/00155564 [14:39:04]NVStorageDeleteData [14:39:04]Write to MH i2c: 01 00 00 65 06 6B [14:39:04]Write i2c OK [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: 01 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: 01 07 00 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: 01 07 00 65 06 00 00 00 00 00 F3 0C 71 [14:39:04]RasterBufferAndPrint [14:39:04]line [14:39:04]line [14:39:04]line [14:39:04]line [14:39:04]line [14:39:04]written 0, free lines is 3320 [14:39:04]process_action close_receipt done [14:39:04]requested_data is exist [14:39:04]produce_requested_data [14:39:04]requested_item fm.sn is exist - process it [14:39:04]wFMCommunicate request_size=4 [14:39:04]MH_SAM_APDU [14:39:04]CAPDU: 80 11 00 00 [14:39:04]Write to MH i2c: E2 08 00 6C 06 80 11 00 00 00 00 00 00 EC [14:39:04]Write i2c OK [14:39:04]MH_I2C_Read... [14:39:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:04]Read from MH i2c: E2 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: E2 17 00 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: E2 17 00 6C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 41 [14:39:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:39:04]wFMCommunicate OK [14:39:04]requested_item fd.num is exist - process it [14:39:04]SAM_PROTO_GetFieldsCounters [14:39:04]wFMCommunicate request_size=4 [14:39:04]MH_SAM_APDU [14:39:04]CAPDU: 80 13 00 00 [14:39:04]Write to MH i2c: E2 08 00 6D 06 80 13 00 00 00 00 00 00 EF [14:39:04]Write i2c OK [14:39:04]MH_I2C_Read... [14:39:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:04]Read from MH i2c: E2 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: E2 62 00 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: E2 62 00 6D 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AC 5F 02 00 0E 04 04 00 16 02 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 71 [14:39: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AC 5F 02 00 0E 04 04 00 16 02 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 [14:39:04]wFMCommunicate OK [14:39:04]SAM_PROTO_GetFieldsCounters done [14:39:04]requested_item shift.num is exist - process it [14:39:04]requested_item shift.opened is exist - process it [14:39:04]req_shift_opened [14:39:04]FM_GetShiftState [14:39:04]SAM_PROTO_GetShiftState [14:39:04]wFMCommunicate request_size=4 [14:39:04]MH_SAM_APDU [14:39:04]CAPDU: 80 13 01 00 [14:39:04]Write to MH i2c: E2 08 00 6E 06 80 13 01 00 00 00 00 00 F1 [14:39:04]Write i2c OK [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: E2 [14:39:04]MH_I2C_Read... [14:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:04]Read from MH i2c: E2 0E 00 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: E2 0E 00 6E 06 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3E [14:39:04]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:39:04]wFMCommunicate OK [14:39:04]SAM_PROTO_GetShiftState done [14:39:04]FM_GetShiftState done [14:39:04]req_shift_opened done [14:39:04]requested_item shift.open_date is exist - process it [14:39:04]req_shift_open_date [14:39:04]req_shift_open_date done [14:39:04]produce_requested_data done [14:39:04]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155564,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:39:04]process_action_free close_receipt [14:39:04]json_value_free [14:39:04]json_value_free done [14:39:04]process_json_proto returns [14:39:04]Send response to host [14:39:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155564,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:39:04]free response buf [14:39:04]execute_script done [14:39:04]execute_script returns [14:39:04]free content buf [14:39:04]Sock 9.Close socket [14:39:04]Sock 9.Thread stoped [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:31]int [14:39:31]Write to MH i2c: 01 00 00 6F 06 75 [14:39:31]*** FLAG_PRN_KEY set [14:39:31]Write i2c OK [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: 01 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: 01 07 00 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: 01 07 00 6F 06 00 08 00 00 00 FF 0F 92 [14:39:31]state=0 [14:39:31]Key pressed [14:39:31]Feed [14:39:31]Write to MH i2c: D8 00 00 70 06 4D [14:39:31]Write i2c OK [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: D8 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: D8 01 00 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: D8 01 00 70 06 00 4E [14:39:31]int [14:39:31]Write to MH i2c: 01 00 00 71 06 77 [14:39:31]Write i2c OK [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: 01 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: 01 07 00 [14:39:31]MH_I2C_Read... [14:39:31]Read from MH i2c: 01 07 00 71 06 00 48 00 00 00 3D 00 03 [14:39:31]state=2 [14:39:31]Key pressed [14:39:32]int [14:39:32]Write to MH i2c: 01 00 00 72 06 78 [14:39:32]*** FLAG_PRN_KEY reset [14:39:32]Write i2c OK [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: 01 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: 01 07 00 [14:39:32]MH_I2C_Read... [14:39:32]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 F7 0F 85 [14:39:32]state=2 [14:39:32]Stop feed [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]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:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:00]accept exits with 10 [14:41:00]New connection [14:41:00]New thread 3066781028 created [14:41:00]Thread 3066637668 joined [14:41:00]Waiting for new connection... [14:41:00] Sock 10.Parse request [14:41:00]Sock 10.Check first char [14:41:00]Sock 10.First char is OK [14:41:00]request: POST /json_proto HTTP/1.0 [14:41:00]Method: POST [14:41:00]URL: /json_proto [14:41:00]Method is POST - this is cgi request [14:41:00]url: /json_proto [14:41:00]query_string will be loaded in cgi processing [14:41:00]execute_cgi json_proto POST (null) [14:41:00]execute_cgi path=json_proto method=POST [14:41:00]POST find Content-Length [14:41:00]Host: 172.17.63.3:8080 [14:41:00]Content-Length: 681 [14:41:00]Content-Type: application/json [14:41:00] [14:41:00]POST finish read [14:41:00]Found Content-Length = 681 [14:41:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:00]execute_script... [14:41: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)98369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:00]POST & json_proto [14:41:00]process_json_proto [14:41:00]json parsed OK: [14:41:00]protocol is kg_v1.0 [14:41:00]action value=close_receipt [14:41:00]process_action close_receipt [14:41:00]cmd_close_receipt [14:41:00]MH_GetDate [14:41:00]Write to MH i2c: F0 00 00 73 06 68 [14:41:00]Write i2c OK [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: F0 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: F0 09 00 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: F0 09 00 73 06 00 7D 5C 1A 67 50 D1 6C 64 BC [14:41:00]GetLastDocTimeStamp 1729780742 [14:41:00]current date 1729780861 [14:41:00]FM_GetShiftState [14:41:00]SAM_PROTO_GetShiftState [14:41:00]wFMCommunicate request_size=4 [14:41:00]MH_SAM_APDU [14:41:00]CAPDU: 80 13 01 00 [14:41:00]Write to MH i2c: E2 08 00 74 06 80 13 01 00 00 00 00 00 F7 [14:41:00]Write i2c OK [14:41:00]MH_I2C_Read... [14:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:00]Read from MH i2c: E2 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 0E 00 [14:41:00]MH_I2C_Read... [14:41:00]Read from MH i2c: E2 0E 00 74 06 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 44 [14:41:00]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:41:00]wFMCommunicate OK [14:41:00]SAM_PROTO_GetShiftState done [14:41:00]FM_GetShiftState done [14:41:00]opened in 1729729836 [14:41:00]opened+sec_in_day 1729816236 [14:41:00]quantity*price = 100015 [14:41:00]sum+1 = 100017 [14:41:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 190 24.10.2024 14:41 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155565 ФПД: 31822539082123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144101&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155565&fm=31822539082123&tin=02508201610067®Number=0000000000091693&sum=100000 [14:41:02]StoreToDocumentArchive [14:41:02]shift 534 fd 155565 [14:41:02]save to /storage/0534/doc_00155565 [14:41:02]save last doc name /storage/0534/doc_00155565 to /storage/kkm_last_doc_name [14:41:02]save OK [14:41:02]Clear old archive folders... [14:41:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:02]tlvbuf is 01F246E0 [14:41:02]SAM_PROTO_ClearQueue [14:41:02]wFMCommunicate request_size=4 [14:41:02]MH_SAM_APDU [14:41:02]CAPDU: 80 09 00 00 [14:41:02]Write to MH i2c: E2 08 00 81 06 80 09 00 00 00 00 00 00 F9 [14:41:02]Write i2c OK [14:41:02]MH_I2C_Read... [14:41:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:02]Read from MH i2c: E2 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 03 00 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 03 00 81 06 00 90 00 FB [14:41:02]RAPDU: 90 00 [14:41:02]wFMCommunicate OK [14:41:02]SAM_PROTO_ClearQueue done [14:41:02]KKMCreateOFDPacket [14:41:02]OFDProtocolAddRootSTLVToBuf [14:41:02]FM_MakeSignedData [14:41:02]FM_MakeSignedData [14:41:02]SAM_PROTO_SignData [14:41:02]wFMCommunicate request_size=4 [14:41:02]MH_SAM_APDU [14:41:02]CAPDU: 80 0D 01 02 [14:41:02]Write to MH i2c: E2 08 00 82 06 80 0D 01 02 00 00 00 00 01 [14:41:02]Write i2c OK [14:41:02]MH_I2C_Read... [14:41:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:02]Read from MH i2c: E2 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 03 00 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [14:41:02]RAPDU: 90 00 [14:41:02]wFMCommunicate OK [14:41:02]wFMCommunicate request_size=255 [14:41:02]MH_SAM_APDU [14:41:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 7D 5C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 5F 02 00 35 04 06 00 1C [14:41:02]Write to MH i2c: E2 02 01 83 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 7D 5C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 5F 02 00 35 04 06 00 1C 00 00 E9 [14:41:02]Write i2c OK [14:41:02]MH_I2C_Read... [14:41:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:02]Read from MH i2c: E2 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 03 00 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [14:41:02]RAPDU: 90 00 [14:41:02]wFMCommunicate OK [14:41:02]wFMCommunicate request_size=10 [14:41:02]MH_SAM_APDU [14:41:02]CAPDU: 80 0D 02 02 05 F1 43 23 49 8B [14:41:02]Write to MH i2c: E2 0D 00 84 06 80 0D 02 02 05 00 F1 43 23 49 8B 00 00 39 [14:41:02]Write i2c OK [14:41:02]MH_I2C_Read... [14:41:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:02]Read from MH i2c: E2 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 03 00 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [14:41:02]RAPDU: 90 00 [14:41:02]wFMCommunicate OK [14:41:02]wFMCommunicate request_size=4 [14:41:02]MH_SAM_APDU [14:41:02]CAPDU: 80 0D 03 02 [14:41:02]Write to MH i2c: E2 08 00 85 06 80 0D 03 02 00 00 00 00 06 [14:41:02]Write i2c OK [14:41:02]MH_I2C_Read... [14:41:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:02]Read from MH i2c: E2 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 0B 00 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 0B 00 85 06 00 7B 82 D1 D3 9A FE 17 64 90 00 BB [14:41:02]RAPDU: 7B 82 D1 D3 9A FE 17 64 90 00 [14:41:02]wFMCommunicate OK [14:41:02]SAM_PROTO_SignData done [14:41:02]FM_MakeSignedData done [14:41:02]CreateOFDProtocolMessage [14:41:02]wFMCommunicate request_size=4 [14:41:02]MH_SAM_APDU [14:41:02]CAPDU: 80 11 00 00 [14:41:02]Write to MH i2c: E2 08 00 86 06 80 11 00 00 00 00 00 00 06 [14:41:02]Write i2c OK [14:41:02]MH_I2C_Read... [14:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:02]Read from MH i2c: E2 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 17 00 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: E2 17 00 86 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5B [14:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:41:02]wFMCommunicate OK [14:41:02]CreateOFDProtocolMessage done [14:41:02]OFDSenderStorePacket 155565 [14:41:02]StoreOFDPacket docnum=155565 [14:41:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C0 AE 07 01 B0 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 7D 5C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 5F 02 00 35 04 06 00 1C F1 43 23 49 8B 7B 82 D1 D3 9A FE 17 64 [14:41:02]CheckFolder [14:41:02]dirname=/storage/ofd_packets [14:41:02]CheckFolder done [14:41:02]ProducePacketName [14:41:02]name=ofd_packets/00155565 [14:41:02]NVStorageSaveData ofd_packets/00155565 [14:41:02]File name is /storage/ofd_packets/00155565 [14:41:02]Write 301 bytes [14:41:02]NVStorageSaveData done [14:41:02]OFDSenderStorePacket done [14:41:02]KKMCreateOFDPacket done [14:41:02]NVStorageSaveData kkm_last_timestamp [14:41:02]File name is /storage/kkm_last_timestamp [14:41:02]Write 4 bytes [14:41:02]NVStorageSaveData done [14:41:02]ExternCall_PrintAddStr [14:41:02]wPrintStart [14:41:02]Write to MH i2c: 01 00 00 87 06 8D [14:41:02]Write i2c OK [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: 01 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: 01 07 00 [14:41:02]MH_I2C_Read... [14:41:02]Read from MH i2c: 01 07 00 87 06 00 00 00 00 00 FF 0F A2 [14:41:02]RasterBufferAndPrint [14:41:02]line Счет N : (1)98369 [14:41:02]line ИНН: 02508201610067 [14:41:02]line Контрольно-Кассовый Чек [14:41:02]line ПРОДАЖА [14:41:02]line ТРК (МРК, ГНК) : 11 [14:41:02]line Товар: 2710124130 [14:41:02]line Аи-92-К-5 [14:41:02]line 14.950 * 66.90 [14:41:02]line = 1000.16 [14:41:02]line НДС 12% НСП 1% [14:41:02]line > о реализуемом товаре [14:41:02]line ОКРУГЛЕНИЕ: -0.16 [14:41:02]line ИТОГО: 1000.00 [14:41:02]line Внесено: 1000.00 [14:41:02]line СДАЧА: 0.00 [14:41:02]line НСП 1% : 8.85 [14:41:02]line НДС 12% : 106.21 [14:41:02]line Наличными: 1000.00 [14:41:02]line Безнал.: 0.00 [14:41:02]line Место: АЗС № 143 "Партнер Нефть" [14:41:02]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:41:02]line СНО: Общий режим [14:41:02]line Чек 190 24.10.2024 14:41 [14:41:02]line Смена: 534 ФФД: 1.0 [14:41:02]line ЗНМ: 0300000096 [14:41:02]line РНМ: 0000000000091693 [14:41:02]line Версия ККМ: 001 [14:41:02]line ФМ: 0000000000871792 [14:41:02]line ФД: 155565 [14:41:02]line ФПД: 31822539082123 [14:41:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144101&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155565&fm=31822539082123&tin=02508201610067®Number=0000000000091693&sum=100000 [14:41:02]OFD Sender: Processing packet 155565 [packets to send 31, broken 30] [14:41:02]ProducePacketName [14:41:02]name=ofd_packets/00155565 [14:41:02]OFD Sender: To server: pG, [14:41:02]CommunicateWithHost lk.salyk.kg:30040 [14:41:02]ConnectInit lk.salyk.kg [14:41:02]written 0, free lines is 4095 [14:41:03]Connected sock=9 [14:41:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C0 AE 07 01 B0 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 7D 5C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 5F 02 00 35 04 06 00 1C F1 43 23 49 8B 7B 82 D1 D3 9A FE 17 64 [14:41:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 98 D7 47 00 ED 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 39 32 10 04 04 00 AD 5F 02 00 F4 03 04 00 F5 01 1A 67 B6 04 01 00 00 9C DA B6 F5 B0 97 48 3E [14:41:03]CommunicateWithHost err = 0 [14:41:03]CheckOFDResponse [14:41:03]1017 (14) - 77093643461234 [14:41:03]1041 (16) - 0000000000871792 [14:41:03]1040 (4) - 155565 [14:41:03]1012 (4) - 24.10.2024 08:14 [14:41:03]1206 (1) - 0 [14:41:03]OFD Sender: Remove packet 155565 [14:41:03]ProducePacketName [14:41:03]name=ofd_packets/00155565 [14:41:03]NVStorageDeleteData [14:41:03]Write to MH i2c: 01 00 00 B2 06 B8 [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: 01 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: 01 07 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: 01 07 00 B2 06 00 00 00 00 00 E4 0C AF [14:41:03]RasterBufferAndPrint [14:41:03]line [14:41:03]line [14:41:03]line [14:41:03]line [14:41:03]line [14:41:03]written 0, free lines is 3306 [14:41:03]process_action close_receipt done [14:41:03]requested_data is exist [14:41:03]produce_requested_data [14:41:03]requested_item fm.sn is exist - process it [14:41:03]wFMCommunicate request_size=4 [14:41:03]MH_SAM_APDU [14:41:03]CAPDU: 80 11 00 00 [14:41:03]Write to MH i2c: E2 08 00 B9 06 80 11 00 00 00 00 00 00 39 [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 17 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 17 00 B9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8E [14:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:41:03]wFMCommunicate OK [14:41:03]requested_item fd.num is exist - process it [14:41:03]SAM_PROTO_GetFieldsCounters [14:41:03]wFMCommunicate request_size=4 [14:41:03]MH_SAM_APDU [14:41:03]CAPDU: 80 13 00 00 [14:41:03]Write to MH i2c: E2 08 00 BA 06 80 13 00 00 00 00 00 00 3C [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 62 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 62 00 BA 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AD 5F 02 00 0E 04 04 00 16 02 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 C2 [14:41: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AD 5F 02 00 0E 04 04 00 16 02 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 [14:41:03]wFMCommunicate OK [14:41:03]SAM_PROTO_GetFieldsCounters done [14:41:03]requested_item shift.num is exist - process it [14:41:03]requested_item shift.opened is exist - process it [14:41:03]req_shift_opened [14:41:03]FM_GetShiftState [14:41:03]SAM_PROTO_GetShiftState [14:41:03]wFMCommunicate request_size=4 [14:41:03]MH_SAM_APDU [14:41:03]CAPDU: 80 13 01 00 [14:41:03]Write to MH i2c: E2 08 00 BB 06 80 13 01 00 00 00 00 00 3E [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:03]Read from MH i2c: E2 0E 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 0E 00 BB 06 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8B [14:41:03]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:41:03]wFMCommunicate OK [14:41:03]SAM_PROTO_GetShiftState done [14:41:03]FM_GetShiftState done [14:41:03]req_shift_opened done [14:41:03]requested_item shift.open_date is exist - process it [14:41:03]req_shift_open_date [14:41:03]req_shift_open_date done [14:41:03]produce_requested_data done [14:41:03]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155565,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:41:03]process_action_free close_receipt [14:41:03]json_value_free [14:41:03]json_value_free done [14:41:03]process_json_proto returns [14:41:03]Send response to host [14:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155565,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:41:03]free response buf [14:41:03]execute_script done [14:41:03]execute_script returns [14:41:03]free content buf [14:41:03]Sock 10.Close socket [14:41:03]Sock 10.Thread stoped [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:35]accept exits with 8 [14:41:35]New connection [14:41:35]New thread 3066637668 created [14:41:35]Thread 3066781028 joined [14:41:35]Waiting for new connection... [14:41:35] Sock 8.Parse request [14:41:35]Sock 8.Check first char [14:41:35]Sock 8.First char is OK [14:41:35]request: POST /json_proto HTTP/1.0 [14:41:35]Method: POST [14:41:35]URL: /json_proto [14:41:35]Method is POST - this is cgi request [14:41:35]url: /json_proto [14:41:35]query_string will be loaded in cgi processing [14:41:35]execute_cgi json_proto POST (null) [14:41:35]execute_cgi path=json_proto method=POST [14:41:35]POST find Content-Length [14:41:35]Host: 172.17.63.3:8080 [14:41:35]Content-Length: 678 [14:41:35]Content-Type: application/json [14:41:35] [14:41:35]POST finish read [14:41:35]Found Content-Length = 678 [14:41:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:35]execute_script... [14:41:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:35]POST & json_proto [14:41:35]process_json_proto [14:41:35]json parsed OK: [14:41:35]protocol is kg_v1.0 [14:41:35]action value=close_receipt [14:41:35]process_action close_receipt [14:41:35]cmd_close_receipt [14:41:35]MH_GetDate [14:41:35]Write to MH i2c: F0 00 00 BC 06 B1 [14:41:35]Write i2c OK [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: F0 [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: F0 09 00 [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: F0 09 00 BC 06 00 9F 5C 1A 67 50 D1 6C 64 27 [14:41:35]GetLastDocTimeStamp 1729780861 [14:41:35]current date 1729780895 [14:41:35]FM_GetShiftState [14:41:35]SAM_PROTO_GetShiftState [14:41:35]wFMCommunicate request_size=4 [14:41:35]MH_SAM_APDU [14:41:35]CAPDU: 80 13 01 00 [14:41:35]Write to MH i2c: E2 08 00 BD 06 80 13 01 00 00 00 00 00 40 [14:41:35]Write i2c OK [14:41:35]MH_I2C_Read... [14:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:35]Read from MH i2c: E2 [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: E2 0E 00 [14:41:35]MH_I2C_Read... [14:41:35]Read from MH i2c: E2 0E 00 BD 06 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8D [14:41:35]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:41:35]wFMCommunicate OK [14:41:35]SAM_PROTO_GetShiftState done [14:41:35]FM_GetShiftState done [14:41:35]opened in 1729729836 [14:41:35]opened+sec_in_day 1729816236 [14:41:35]quantity*price = 100050 [14:41:35]sum+1 = 100052 [14:41:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 191 24.10.2024 14:41 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155566 ФПД: 36685000470634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144135&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155566&fm=36685000470634&tin=02508201610067®Number=0000000000091693&sum=100000 [14:41:36]StoreToDocumentArchive [14:41:36]shift 534 fd 155566 [14:41:36]save to /storage/0534/doc_00155566 [14:41:36]save last doc name /storage/0534/doc_00155566 to /storage/kkm_last_doc_name [14:41:36]save OK [14:41:36]Clear old archive folders... [14:41:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:41:36]tlvbuf is 01F91A20 [14:41:36]SAM_PROTO_ClearQueue [14:41:36]wFMCommunicate request_size=4 [14:41:36]MH_SAM_APDU [14:41:36]CAPDU: 80 09 00 00 [14:41:36]Write to MH i2c: E2 08 00 CA 06 80 09 00 00 00 00 00 00 42 [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:36]Read from MH i2c: E2 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 03 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 03 00 CA 06 00 90 00 44 [14:41:36]RAPDU: 90 00 [14:41:36]wFMCommunicate OK [14:41:36]SAM_PROTO_ClearQueue done [14:41:36]KKMCreateOFDPacket [14:41:36]OFDProtocolAddRootSTLVToBuf [14:41:36]FM_MakeSignedData [14:41:36]FM_MakeSignedData [14:41:36]SAM_PROTO_SignData [14:41:36]wFMCommunicate request_size=4 [14:41:36]MH_SAM_APDU [14:41:36]CAPDU: 80 0D 01 02 [14:41:36]Write to MH i2c: E2 08 00 CB 06 80 0D 01 02 00 00 00 00 4A [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:36]Read from MH i2c: E2 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 03 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 03 00 CB 06 00 90 00 45 [14:41:36]RAPDU: 90 00 [14:41:36]wFMCommunicate OK [14:41:36]wFMCommunicate request_size=255 [14:41:36]MH_SAM_APDU [14:41:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BF 00 00 00 F4 03 04 00 9F 5C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 5F 02 00 35 04 06 00 21 5D 64 6B [14:41:36]Write to MH i2c: E2 02 01 CC 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 BF 00 00 00 F4 03 04 00 9F 5C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 5F 02 00 35 04 06 00 21 5D 64 6B 00 00 83 [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:37]Read from MH i2c: E2 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 03 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 03 00 CC 06 00 90 00 46 [14:41:37]RAPDU: 90 00 [14:41:37]wFMCommunicate OK [14:41:37]wFMCommunicate request_size=7 [14:41:37]MH_SAM_APDU [14:41:37]CAPDU: 80 0D 02 02 02 F0 6A [14:41:37]Write to MH i2c: E2 0A 00 CD 06 80 0D 02 02 02 00 F0 6A 00 00 AB [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:37]Read from MH i2c: E2 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 03 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 03 00 CD 06 00 90 00 47 [14:41:37]RAPDU: 90 00 [14:41:37]wFMCommunicate OK [14:41:37]wFMCommunicate request_size=4 [14:41:37]MH_SAM_APDU [14:41:37]CAPDU: 80 0D 03 02 [14:41:37]Write to MH i2c: E2 08 00 CE 06 80 0D 03 02 00 00 00 00 4F [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:37]Read from MH i2c: E2 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 0B 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 0B 00 CE 06 00 01 65 4C FD A7 3B CC A0 90 00 4D [14:41:37]RAPDU: 01 65 4C FD A7 3B CC A0 90 00 [14:41:37]wFMCommunicate OK [14:41:37]SAM_PROTO_SignData done [14:41:37]FM_MakeSignedData done [14:41:37]CreateOFDProtocolMessage [14:41:37]wFMCommunicate request_size=4 [14:41:37]MH_SAM_APDU [14:41:37]CAPDU: 80 11 00 00 [14:41:37]Write to MH i2c: E2 08 00 CF 06 80 11 00 00 00 00 00 00 4F [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:37]Read from MH i2c: E2 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 17 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: E2 17 00 CF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A4 [14:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:41:37]wFMCommunicate OK [14:41:37]CreateOFDProtocolMessage done [14:41:37]OFDSenderStorePacket 155566 [14:41:37]StoreOFDPacket docnum=155566 [14:41:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 73 87 04 01 C0 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 9F 5C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 5F 02 00 35 04 06 00 21 5D 64 6B F0 6A 01 65 4C FD A7 3B CC A0 [14:41:37]CheckFolder [14:41:37]dirname=/storage/ofd_packets [14:41:37]CheckFolder done [14:41:37]ProducePacketName [14:41:37]name=ofd_packets/00155566 [14:41:37]NVStorageSaveData ofd_packets/00155566 [14:41:37]File name is /storage/ofd_packets/00155566 [14:41:37]Write 298 bytes [14:41:37]NVStorageSaveData done [14:41:37]OFDSenderStorePacket done [14:41:37]KKMCreateOFDPacket done [14:41:37]NVStorageSaveData kkm_last_timestamp [14:41:37]File name is /storage/kkm_last_timestamp [14:41:37]Write 4 bytes [14:41:37]NVStorageSaveData done [14:41:37]ExternCall_PrintAddStr [14:41:37]wPrintStart [14:41:37]Write to MH i2c: 01 00 00 D0 06 D6 [14:41:37]Write i2c OK [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: 01 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: 01 07 00 [14:41:37]MH_I2C_Read... [14:41:37]Read from MH i2c: 01 07 00 D0 06 00 00 00 00 00 FF 0F EB [14:41:37]RasterBufferAndPrint [14:41:37]line Счет N : (1)98370 [14:41:37]line ИНН: 02508201610067 [14:41:37]line Контрольно-Кассовый Чек [14:41:37]line ПРОДАЖА [14:41:37]line ТРК (МРК, ГНК) : 32 [14:41:37]line Товар: 2710194210 [14:41:37]line ДТ-К-5 [14:41:37]line 13.130 * 76.20 [14:41:37]line = 1000.51 [14:41:37]line НДС 12% НСП 1% [14:41:37]line > о реализуемом товаре [14:41:37]line ОКРУГЛЕНИЕ: -0.51 [14:41:37]line ИТОГО: 1000.00 [14:41:37]line Внесено: 1000.00 [14:41:37]line СДАЧА: 0.00 [14:41:37]line НСП 1% : 8.85 [14:41:37]line НДС 12% : 106.25 [14:41:37]line Наличными: 1000.00 [14:41:37]line Безнал.: 0.00 [14:41:37]line Место: АЗС № 143 "Партнер Нефть" [14:41:37]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:41:37]line СНО: Общий режим [14:41:37]line Чек 191 24.10.2024 14:41 [14:41:37]line Смена: 534 ФФД: 1.0 [14:41:37]line ЗНМ: 0300000096 [14:41:37]line РНМ: 0000000000091693 [14:41:37]line Версия ККМ: 001 [14:41:37]line ФМ: 0000000000871792 [14:41:37]line ФД: 155566 [14:41:37]line ФПД: 36685000470634 [14:41:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144135&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155566&fm=36685000470634&tin=02508201610067®Number=0000000000091693&sum=100000 [14:41:37]OFD Sender: Processing packet 155566 [packets to send 31, broken 30] [14:41:37]ProducePacketName [14:41:37]name=ofd_packets/00155566 [14:41:37]OFD Sender: To server: pG, [14:41:37]CommunicateWithHost lk.salyk.kg:30040 [14:41:37]ConnectInit lk.salyk.kg [14:41:37]written 0, free lines is 4095 [14:41:37]Connected sock=10 [14:41:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 73 87 04 01 C0 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 9F 5C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 5F 02 00 35 04 06 00 21 5D 64 6B F0 6A 01 65 4C FD A7 3B CC A0 [14:41:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2B 5E 47 00 5F DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 5F 02 00 F4 03 04 00 18 02 1A 67 B6 04 01 00 00 1B 7C 31 06 30 33 B1 89 [14:41:37]CommunicateWithHost err = 0 [14:41:37]CheckOFDResponse [14:41:37]1017 (14) - 77093643461234 [14:41:37]1041 (16) - 0000000000871792 [14:41:37]1040 (4) - 155566 [14:41:37]1012 (4) - 24.10.2024 08:15 [14:41:37]1206 (1) - 0 [14:41:37]OFD Sender: Remove packet 155566 [14:41:37]ProducePacketName [14:41:37]name=ofd_packets/00155566 [14:41:37]NVStorageDeleteData [14:41:38]Write to MH i2c: 01 00 00 FB 06 01 [14:41:38]Write i2c OK [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: 01 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: 01 07 00 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: 01 07 00 FB 06 00 00 00 00 00 EC 0C 00 [14:41:38]RasterBufferAndPrint [14:41:38]line [14:41:38]line [14:41:38]line [14:41:38]line [14:41:38]line [14:41:38]written 0, free lines is 3314 [14:41:38]process_action close_receipt done [14:41:38]requested_data is exist [14:41:38]produce_requested_data [14:41:38]requested_item fm.sn is exist - process it [14:41:38]wFMCommunicate request_size=4 [14:41:38]MH_SAM_APDU [14:41:38]CAPDU: 80 11 00 00 [14:41:38]Write to MH i2c: E2 08 00 02 07 80 11 00 00 00 00 00 00 83 [14:41:38]Write i2c OK [14:41:38]MH_I2C_Read... [14:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:38]Read from MH i2c: E2 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: E2 17 00 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: E2 17 00 02 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D8 [14:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:41:38]wFMCommunicate OK [14:41:38]requested_item fd.num is exist - process it [14:41:38]SAM_PROTO_GetFieldsCounters [14:41:38]wFMCommunicate request_size=4 [14:41:38]MH_SAM_APDU [14:41:38]CAPDU: 80 13 00 00 [14:41:38]Write to MH i2c: E2 08 00 03 07 80 13 00 00 00 00 00 00 86 [14:41:38]Write i2c OK [14:41:38]MH_I2C_Read... [14:41:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:38]Read from MH i2c: E2 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: E2 62 00 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: E2 62 00 03 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AE 5F 02 00 0E 04 04 00 16 02 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 10 [14:41: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AE 5F 02 00 0E 04 04 00 16 02 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 [14:41:38]wFMCommunicate OK [14:41:38]SAM_PROTO_GetFieldsCounters done [14:41:38]requested_item shift.num is exist - process it [14:41:38]requested_item shift.opened is exist - process it [14:41:38]req_shift_opened [14:41:38]FM_GetShiftState [14:41:38]SAM_PROTO_GetShiftState [14:41:38]wFMCommunicate request_size=4 [14:41:38]MH_SAM_APDU [14:41:38]CAPDU: 80 13 01 00 [14:41:38]Write to MH i2c: E2 08 00 04 07 80 13 01 00 00 00 00 00 88 [14:41:38]Write i2c OK [14:41:38]MH_I2C_Read... [14:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:38]Read from MH i2c: E2 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: E2 0E 00 [14:41:38]MH_I2C_Read... [14:41:38]Read from MH i2c: E2 0E 00 04 07 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D5 [14:41:38]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:41:38]wFMCommunicate OK [14:41:38]SAM_PROTO_GetShiftState done [14:41:38]FM_GetShiftState done [14:41:38]req_shift_opened done [14:41:38]requested_item shift.open_date is exist - process it [14:41:38]req_shift_open_date [14:41:38]req_shift_open_date done [14:41:38]produce_requested_data done [14:41:38]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155566,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:41:38]process_action_free close_receipt [14:41:38]json_value_free [14:41:38]json_value_free done [14:41:38]process_json_proto returns [14:41:38]Send response to host [14:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155566,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:41:38]free response buf [14:41:38]execute_script done [14:41:38]execute_script returns [14:41:38]free content buf [14:41:38]Sock 8.Close socket [14:41:38]Sock 8.Thread stoped [14:41:38]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:10]accept exits with 9 [14:42:10]New connection [14:42:10]New thread 3066781028 created [14:42:10]Thread 3066637668 joined [14:42:10]Waiting for new connection... [14:42:10] Sock 9.Parse request [14:42:10]Sock 9.Check first char [14:42:10]Sock 9.First char is OK [14:42:10]request: POST /json_proto HTTP/1.0 [14:42:10]Method: POST [14:42:10]URL: /json_proto [14:42:10]Method is POST - this is cgi request [14:42:10]url: /json_proto [14:42:10]query_string will be loaded in cgi processing [14:42:10]execute_cgi json_proto POST (null) [14:42:10]execute_cgi path=json_proto method=POST [14:42:10]POST find Content-Length [14:42:10]Host: 172.17.63.3:8080 [14:42:10]Content-Length: 676 [14:42:10]Content-Type: application/json [14:42:10] [14:42:10]POST finish read [14:42:10]Found Content-Length = 676 [14:42:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:10]execute_script... [14: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)98371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:10]POST & json_proto [14:42:10]process_json_proto [14:42:10]json parsed OK: [14:42:10]protocol is kg_v1.0 [14:42:10]action value=close_receipt [14:42:10]process_action close_receipt [14:42:10]cmd_close_receipt [14:42:10]MH_GetDate [14:42:10]Write to MH i2c: F0 00 00 05 07 FB [14:42:10]Write i2c OK [14:42:10]MH_I2C_Read... [14:42:10]Read from MH i2c: F0 [14:42:10]MH_I2C_Read... [14:42:10]Read from MH i2c: F0 09 00 [14:42:10]MH_I2C_Read... [14:42:10]Read from MH i2c: F0 09 00 05 07 00 C2 5C 1A 67 50 D1 6C 64 94 [14:42:10]GetLastDocTimeStamp 1729780895 [14:42:10]current date 1729780930 [14:42:10]FM_GetShiftState [14:42:10]SAM_PROTO_GetShiftState [14:42:10]wFMCommunicate request_size=4 [14:42:10]MH_SAM_APDU [14:42:10]CAPDU: 80 13 01 00 [14:42:10]Write to MH i2c: E2 08 00 06 07 80 13 01 00 00 00 00 00 8A [14:42:10]Write i2c OK [14:42:10]MH_I2C_Read... [14:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:10]Read from MH i2c: E2 [14:42:10]MH_I2C_Read... [14:42:10]Read from MH i2c: E2 0E 00 [14:42:10]MH_I2C_Read... [14:42:10]Read from MH i2c: E2 0E 00 06 07 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D7 [14:42:10]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:42:10]wFMCommunicate OK [14:42:10]SAM_PROTO_GetShiftState done [14:42:10]FM_GetShiftState done [14:42:10]opened in 1729729836 [14:42:10]opened+sec_in_day 1729816236 [14:42:10]quantity*price = 30038 [14:42:10]sum+1 = 30039 [14:42:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 192 24.10.2024 14:42 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155567 ФПД: 86296181692331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144210&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155567&fm=86296181692331&tin=02508201610067®Number=0000000000091693&sum=30000 [14:42:11]StoreToDocumentArchive [14:42:11]shift 534 fd 155567 [14:42:11]save to /storage/0534/doc_00155567 [14:42:11]save last doc name /storage/0534/doc_00155567 to /storage/kkm_last_doc_name [14:42:11]save OK [14:42:11]Clear old archive folders... [14:42:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:11]tlvbuf is 01F575F0 [14:42:11]SAM_PROTO_ClearQueue [14:42:11]wFMCommunicate request_size=4 [14:42:11]MH_SAM_APDU [14:42:11]CAPDU: 80 09 00 00 [14:42:11]Write to MH i2c: E2 08 00 13 07 80 09 00 00 00 00 00 00 8C [14:42:11]Write i2c OK [14:42:11]MH_I2C_Read... [14:42:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:11]Read from MH i2c: E2 [14:42:11]MH_I2C_Read... [14:42:11]Read from MH i2c: E2 03 00 [14:42:11]MH_I2C_Read... [14:42:11]Read from MH i2c: E2 03 00 13 07 00 90 00 8E [14:42:11]RAPDU: 90 00 [14:42:11]wFMCommunicate OK [14:42:11]SAM_PROTO_ClearQueue done [14:42:11]KKMCreateOFDPacket [14:42:11]OFDProtocolAddRootSTLVToBuf [14:42:11]FM_MakeSignedData [14:42:11]FM_MakeSignedData [14:42:11]SAM_PROTO_SignData [14:42:11]wFMCommunicate request_size=4 [14:42:11]MH_SAM_APDU [14:42:11]CAPDU: 80 0D 01 02 [14:42:11]Write to MH i2c: E2 08 00 14 07 80 0D 01 02 00 00 00 00 94 [14:42:11]Write i2c OK [14:42:11]MH_I2C_Read... [14:42:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:11]Read from MH i2c: E2 [14:42:11]MH_I2C_Read... [14:42:11]Read from MH i2c: E2 03 00 [14:42:11]MH_I2C_Read... [14:42:11]Read from MH i2c: E2 03 00 14 07 00 90 00 8F [14:42:11]RAPDU: 90 00 [14:42:11]wFMCommunicate OK [14:42:11]wFMCommunicate request_size=255 [14:42:11]MH_SAM_APDU [14:42: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 C2 5C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 5F 02 00 35 04 06 00 4E [14:42:11]Write to MH i2c: E2 02 01 15 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 C2 5C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 5F 02 00 35 04 06 00 4E 00 00 F1 [14:42:11]Write i2c OK [14:42:11]MH_I2C_Read... [14:42:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:11]Read from MH i2c: E2 [14:42:11]MH_I2C_Read... [14:42:11]Read from MH i2c: E2 03 00 [14:42:11]MH_I2C_Read... [14:42:11]Read from MH i2c: E2 03 00 15 07 00 90 00 90 [14:42:11]RAPDU: 90 00 [14:42:11]wFMCommunicate OK [14:42:11]wFMCommunicate request_size=10 [14:42:11]MH_SAM_APDU [14:42:11]CAPDU: 80 0D 02 02 05 7C 65 41 57 AB [14:42:11]Write to MH i2c: E2 0D 00 16 07 80 0D 02 02 05 00 7C 65 41 57 AB 00 00 C5 [14:42:11]Write i2c OK [14:42:11]MH_I2C_Read... [14:42:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:11]Read from MH i2c: E2 [14:42:11]MH_I2C_Read... [14:42:11]Read from MH i2c: E2 03 00 [14:42:11]MH_I2C_Read... [14:42:11]Read from MH i2c: E2 03 00 16 07 00 90 00 91 [14:42:11]RAPDU: 90 00 [14:42:11]wFMCommunicate OK [14:42:11]wFMCommunicate request_size=4 [14:42:11]MH_SAM_APDU [14:42:11]CAPDU: 80 0D 03 02 [14:42:11]Write to MH i2c: E2 08 00 17 07 80 0D 03 02 00 00 00 00 99 [14:42:11]Write i2c OK [14:42:11]MH_I2C_Read... [14:42:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:12]Read from MH i2c: E2 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: E2 0B 00 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: E2 0B 00 17 07 00 DE 56 79 4D 48 7B 50 07 90 00 AE [14:42:12]RAPDU: DE 56 79 4D 48 7B 50 07 90 00 [14:42:12]wFMCommunicate OK [14:42:12]SAM_PROTO_SignData done [14:42:12]FM_MakeSignedData done [14:42:12]CreateOFDProtocolMessage [14:42:12]wFMCommunicate request_size=4 [14:42:12]MH_SAM_APDU [14:42:12]CAPDU: 80 11 00 00 [14:42:12]Write to MH i2c: E2 08 00 18 07 80 11 00 00 00 00 00 00 99 [14:42:12]Write i2c OK [14:42:12]MH_I2C_Read... [14:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:12]Read from MH i2c: E2 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: E2 17 00 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: E2 17 00 18 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EE [14:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:42:12]wFMCommunicate OK [14:42:12]CreateOFDProtocolMessage done [14:42:12]OFDSenderStorePacket 155567 [14:42:12]StoreOFDPacket docnum=155567 [14:42:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 99 97 07 01 A6 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 C2 5C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 5F 02 00 35 04 06 00 4E 7C 65 41 57 AB DE 56 79 4D 48 7B 50 07 [14:42:12]CheckFolder [14:42:12]dirname=/storage/ofd_packets [14:42:12]CheckFolder done [14:42:12]ProducePacketName [14:42:12]name=ofd_packets/00155567 [14:42:12]NVStorageSaveData ofd_packets/00155567 [14:42:12]File name is /storage/ofd_packets/00155567 [14:42:12]Write 301 bytes [14:42:12]NVStorageSaveData done [14:42:12]OFDSenderStorePacket done [14:42:12]KKMCreateOFDPacket done [14:42:12]NVStorageSaveData kkm_last_timestamp [14:42:12]File name is /storage/kkm_last_timestamp [14:42:12]Write 4 bytes [14:42:12]NVStorageSaveData done [14:42:12]ExternCall_PrintAddStr [14:42:12]wPrintStart [14:42:12]Write to MH i2c: 01 00 00 19 07 20 [14:42:12]Write i2c OK [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: 01 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: 01 07 00 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: 01 07 00 19 07 00 00 00 00 00 FF 0F 35 [14:42:12]RasterBufferAndPrint [14:42:12]line Счет N : (1)98371 [14:42:12]line ИНН: 02508201610067 [14:42:12]line Контрольно-Кассовый Чек [14:42:12]line ПРОДАЖА [14:42:12]line ТРК (МРК, ГНК) : 31 [14:42:12]line Товар: 2710124130 [14:42:12]line Аи-92-К-5 [14:42:12]line 4.490 * 66.90 [14:42:12]line = 300.38 [14:42:12]line НДС 12% НСП 1% [14:42:12]line > о реализуемом товаре [14:42:12]line ОКРУГЛЕНИЕ: -0.38 [14:42:12]line ИТОГО: 300.00 [14:42:12]line Внесено: 300.00 [14:42:12]line СДАЧА: 0.00 [14:42:12]line НСП 1% : 2.66 [14:42:12]line НДС 12% : 31.90 [14:42:12]line Наличными: 300.00 [14:42:12]line Безнал.: 0.00 [14:42:12]line Место: АЗС № 143 "Партнер Нефть" [14:42:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:42:12]line СНО: Общий режим [14:42:12]line Чек 192 24.10.2024 14:42 [14:42:12]line Смена: 534 ФФД: 1.0 [14:42:12]line ЗНМ: 0300000096 [14:42:12]line РНМ: 0000000000091693 [14:42:12]line Версия ККМ: 001 [14:42:12]line ФМ: 0000000000871792 [14:42:12]line ФД: 155567 [14:42:12]line ФПД: 86296181692331 [14:42:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144210&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155567&fm=86296181692331&tin=02508201610067®Number=0000000000091693&sum=30000 [14:42:12]OFD Sender: Processing packet 155567 [packets to send 31, broken 30] [14:42:12]ProducePacketName [14:42:12]name=ofd_packets/00155567 [14:42:12]OFD Sender: To server: pG, [14:42:12]CommunicateWithHost lk.salyk.kg:30040 [14:42:12]ConnectInit lk.salyk.kg [14:42:12]written 0, free lines is 4095 [14:42:12]Connected sock=10 [14:42: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 39 32 0F 01 00 00 99 97 07 01 A6 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 C2 5C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 5F 02 00 35 04 06 00 4E 7C 65 41 57 AB DE 56 79 4D 48 7B 50 07 [14:42: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 39 32 4F 00 00 00 90 07 47 00 44 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 39 32 10 04 04 00 AF 5F 02 00 F4 03 04 00 3B 02 1A 67 B6 04 01 00 00 AD 4C 8C 41 AA E7 93 42 [14:42:12]CommunicateWithHost err = 0 [14:42:12]CheckOFDResponse [14:42:12]1017 (14) - 77093643461234 [14:42:12]1041 (16) - 0000000000871792 [14:42:12]1040 (4) - 155567 [14:42:12]1012 (4) - 24.10.2024 08:15 [14:42:12]1206 (1) - 0 [14:42:12]OFD Sender: Remove packet 155567 [14:42:12]ProducePacketName [14:42:12]name=ofd_packets/00155567 [14:42:12]NVStorageDeleteData [14:42:12]Write to MH i2c: 01 00 00 44 07 4B [14:42:12]Write i2c OK [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: 01 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: 01 07 00 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: 01 07 00 44 07 00 00 00 00 00 F3 0C 51 [14:42:12]RasterBufferAndPrint [14:42:12]line [14:42:12]line [14:42:12]line [14:42:12]line [14:42:12]line [14:42:12]written 0, free lines is 3321 [14:42:12]process_action close_receipt done [14:42:12]requested_data is exist [14:42:12]produce_requested_data [14:42:12]requested_item fm.sn is exist - process it [14:42:12]wFMCommunicate request_size=4 [14:42:12]MH_SAM_APDU [14:42:12]CAPDU: 80 11 00 00 [14:42:12]Write to MH i2c: E2 08 00 4B 07 80 11 00 00 00 00 00 00 CC [14:42:12]Write i2c OK [14:42:12]MH_I2C_Read... [14:42:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:12]Read from MH i2c: E2 [14:42:12]MH_I2C_Read... [14:42:12]Read from MH i2c: E2 17 00 [14:42:12]MH_I2C_Read... [14:42:12]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 39 32 90 00 21 [14:42:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:42:12]wFMCommunicate OK [14:42:12]requested_item fd.num is exist - process it [14:42:12]SAM_PROTO_GetFieldsCounters [14:42:12]wFMCommunicate request_size=4 [14:42:12]MH_SAM_APDU [14:42:12]CAPDU: 80 13 00 00 [14:42:12]Write to MH i2c: E2 08 00 4C 07 80 13 00 00 00 00 00 00 CF [14:42:12]Write i2c OK [14:42:12]MH_I2C_Read... [14:42:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:13]Read from MH i2c: E2 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 62 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 62 00 4C 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AF 5F 02 00 0E 04 04 00 16 02 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 5D [14:42: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AF 5F 02 00 0E 04 04 00 16 02 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 [14:42:13]wFMCommunicate OK [14:42:13]SAM_PROTO_GetFieldsCounters done [14:42:13]requested_item shift.num is exist - process it [14:42:13]requested_item shift.opened is exist - process it [14:42:13]req_shift_opened [14:42:13]FM_GetShiftState [14:42:13]SAM_PROTO_GetShiftState [14:42:13]wFMCommunicate request_size=4 [14:42:13]MH_SAM_APDU [14:42:13]CAPDU: 80 13 01 00 [14:42:13]Write to MH i2c: E2 08 00 4D 07 80 13 01 00 00 00 00 00 D1 [14:42:13]Write i2c OK [14:42:13]MH_I2C_Read... [14:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:13]Read from MH i2c: E2 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 0E 00 [14:42:13]MH_I2C_Read... [14:42:13]Read from MH i2c: E2 0E 00 4D 07 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1E [14:42:13]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:42:13]wFMCommunicate OK [14:42:13]SAM_PROTO_GetShiftState done [14:42:13]FM_GetShiftState done [14:42:13]req_shift_opened done [14:42:13]requested_item shift.open_date is exist - process it [14:42:13]req_shift_open_date [14:42:13]req_shift_open_date done [14:42:13]produce_requested_data done [14:42:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155567,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:42:13]process_action_free close_receipt [14:42:13]json_value_free [14:42:13]json_value_free done [14:42:13]process_json_proto returns [14:42:13]Send response to host [14:42:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155567,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:42:13]free response buf [14:42:13]execute_script done [14:42:13]execute_script returns [14:42:13]free content buf [14:42:13]Sock 9.Close socket [14:42:13]Sock 9.Thread stoped [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:43:58]accept exits with 8 [14:43:58]New connection [14:43:58]New thread 3066637668 created [14:43:58]Thread 3066781028 joined [14:43:58]Waiting for new connection... [14:43:58] Sock 8.Parse request [14:43:58]Sock 8.Check first char [14:43:58]Sock 8.First char is OK [14:43:58]request: POST /json_proto HTTP/1.0 [14:43:58]Method: POST [14:43:58]URL: /json_proto [14:43:58]Method is POST - this is cgi request [14:43:58]url: /json_proto [14:43:58]query_string will be loaded in cgi processing [14:43:58]execute_cgi json_proto POST (null) [14:43:58]execute_cgi path=json_proto method=POST [14:43:58]POST find Content-Length [14:43:58]Host: 172.17.63.3:8080 [14:43:58]Content-Length: 676 [14:43:58]Content-Type: application/json [14:43:58] [14:43:58]POST finish read [14:43:58]Found Content-Length = 676 [14:43:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:58]execute_script... [14: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)98372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:58]POST & json_proto [14:43:58]process_json_proto [14:43:58]json parsed OK: [14:43:58]protocol is kg_v1.0 [14:43:58]action value=close_receipt [14:43:58]process_action close_receipt [14:43:58]cmd_close_receipt [14:43:58]MH_GetDate [14:43:58]Write to MH i2c: F0 00 00 4E 07 44 [14:43:58]Write i2c OK [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: F0 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: F0 09 00 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: F0 09 00 4E 07 00 2E 5D 1A 67 50 D1 6C 64 4A [14:43:58]GetLastDocTimeStamp 1729780930 [14:43:58]current date 1729781038 [14:43:58]FM_GetShiftState [14:43:58]SAM_PROTO_GetShiftState [14:43:58]wFMCommunicate request_size=4 [14:43:58]MH_SAM_APDU [14:43:58]CAPDU: 80 13 01 00 [14:43:58]Write to MH i2c: E2 08 00 4F 07 80 13 01 00 00 00 00 00 D3 [14:43:58]Write i2c OK [14:43:58]MH_I2C_Read... [14:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:58]Read from MH i2c: E2 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: E2 0E 00 [14:43:58]MH_I2C_Read... [14:43:58]Read from MH i2c: E2 0E 00 4F 07 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 20 [14:43:58]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:43:58]wFMCommunicate OK [14:43:58]SAM_PROTO_GetShiftState done [14:43:58]FM_GetShiftState done [14:43:58]opened in 1729729836 [14:43:58]opened+sec_in_day 1729816236 [14:43:58]quantity*price = 50041 [14:43:58]sum+1 = 50042 [14:43:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 193 24.10.2024 14:43 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155568 ФПД: 268471235964363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144358&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155568&fm=268471235964363&tin=02508201610067®Number=0000000000091693&sum=50000 [14:43:59]StoreToDocumentArchive [14:43:59]shift 534 fd 155568 [14:43:59]save to /storage/0534/doc_00155568 [14:43:59]save last doc name /storage/0534/doc_00155568 to /storage/kkm_last_doc_name [14:43:59]save OK [14:43:59]Clear old archive folders... [14:43:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:43:59]tlvbuf is B6F2B2B0 [14:43:59]SAM_PROTO_ClearQueue [14:43:59]wFMCommunicate request_size=4 [14:43:59]MH_SAM_APDU [14:43:59]CAPDU: 80 09 00 00 [14:43:59]Write to MH i2c: E2 08 00 5C 07 80 09 00 00 00 00 00 00 D5 [14:43:59]Write i2c OK [14:43:59]MH_I2C_Read... [14:43:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:59]Read from MH i2c: E2 [14:43:59]MH_I2C_Read... [14:43:59]Read from MH i2c: E2 03 00 [14:43:59]MH_I2C_Read... [14:43:59]Read from MH i2c: E2 03 00 5C 07 00 90 00 D7 [14:43:59]RAPDU: 90 00 [14:43:59]wFMCommunicate OK [14:43:59]SAM_PROTO_ClearQueue done [14:43:59]KKMCreateOFDPacket [14:43:59]OFDProtocolAddRootSTLVToBuf [14:43:59]FM_MakeSignedData [14:43:59]FM_MakeSignedData [14:43:59]SAM_PROTO_SignData [14:43:59]wFMCommunicate request_size=4 [14:43:59]MH_SAM_APDU [14:43:59]CAPDU: 80 0D 01 02 [14:43:59]Write to MH i2c: E2 08 00 5D 07 80 0D 01 02 00 00 00 00 DD [14:43:59]Write i2c OK [14:43:59]MH_I2C_Read... [14:43:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:59]Read from MH i2c: E2 [14:43:59]MH_I2C_Read... [14:43:59]Read from MH i2c: E2 03 00 [14:43:59]MH_I2C_Read... [14:43:59]Read from MH i2c: E2 03 00 5D 07 00 90 00 D8 [14:43:59]RAPDU: 90 00 [14:43:59]wFMCommunicate OK [14:43:59]wFMCommunicate request_size=255 [14:43:59]MH_SAM_APDU [14: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 2E 5D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 5F 02 00 35 04 06 00 F4 [14:43:59]Write to MH i2c: E2 02 01 5E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 2E 5D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 5F 02 00 35 04 06 00 F4 00 00 5B [14:43:59]Write i2c OK [14:43:59]MH_I2C_Read... [14:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:00]Read from MH i2c: E2 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 03 00 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 03 00 5E 07 00 90 00 D9 [14:44:00]RAPDU: 90 00 [14:44:00]wFMCommunicate OK [14:44:00]wFMCommunicate request_size=10 [14:44:00]MH_SAM_APDU [14:44:00]CAPDU: 80 0D 02 02 05 2C 54 A6 ED CB [14:44:00]Write to MH i2c: E2 0D 00 5F 07 80 0D 02 02 05 00 2C 54 A6 ED CB 00 00 C8 [14:44:00]Write i2c OK [14:44:00]MH_I2C_Read... [14:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:00]Read from MH i2c: E2 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 03 00 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 03 00 5F 07 00 90 00 DA [14:44:00]RAPDU: 90 00 [14:44:00]wFMCommunicate OK [14:44:00]wFMCommunicate request_size=4 [14:44:00]MH_SAM_APDU [14:44:00]CAPDU: 80 0D 03 02 [14:44:00]Write to MH i2c: E2 08 00 60 07 80 0D 03 02 00 00 00 00 E2 [14:44:00]Write i2c OK [14:44:00]MH_I2C_Read... [14:44:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:00]Read from MH i2c: E2 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 0B 00 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 0B 00 60 07 00 5F 86 1A 11 75 C3 BA 94 90 00 79 [14:44:00]RAPDU: 5F 86 1A 11 75 C3 BA 94 90 00 [14:44:00]wFMCommunicate OK [14:44:00]SAM_PROTO_SignData done [14:44:00]FM_MakeSignedData done [14:44:00]CreateOFDProtocolMessage [14:44:00]wFMCommunicate request_size=4 [14:44:00]MH_SAM_APDU [14:44:00]CAPDU: 80 11 00 00 [14:44:00]Write to MH i2c: E2 08 00 61 07 80 11 00 00 00 00 00 00 E2 [14:44:00]Write i2c OK [14:44:00]MH_I2C_Read... [14:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:00]Read from MH i2c: E2 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 17 00 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: E2 17 00 61 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 37 [14:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:44:00]wFMCommunicate OK [14:44:00]CreateOFDProtocolMessage done [14:44:00]OFDSenderStorePacket 155568 [14:44:00]StoreOFDPacket docnum=155568 [14:44:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1E E5 07 01 E4 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 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 2E 5D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 5F 02 00 35 04 06 00 F4 2C 54 A6 ED CB 5F 86 1A 11 75 C3 BA 94 [14:44:00]CheckFolder [14:44:00]dirname=/storage/ofd_packets [14:44:00]CheckFolder done [14:44:00]ProducePacketName [14:44:00]name=ofd_packets/00155568 [14:44:00]NVStorageSaveData ofd_packets/00155568 [14:44:00]File name is /storage/ofd_packets/00155568 [14:44:00]Write 301 bytes [14:44:00]NVStorageSaveData done [14:44:00]OFDSenderStorePacket done [14:44:00]KKMCreateOFDPacket done [14:44:00]NVStorageSaveData kkm_last_timestamp [14:44:00]File name is /storage/kkm_last_timestamp [14:44:00]Write 4 bytes [14:44:00]NVStorageSaveData done [14:44:00]ExternCall_PrintAddStr [14:44:00]wPrintStart [14:44:00]Write to MH i2c: 01 00 00 62 07 69 [14:44:00]Write i2c OK [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: 01 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: 01 07 00 [14:44:00]MH_I2C_Read... [14:44:00]Read from MH i2c: 01 07 00 62 07 00 00 00 00 00 FF 0F 7E [14:44:00]RasterBufferAndPrint [14:44:00]line Счет N : (1)98372 [14:44:00]line ИНН: 02508201610067 [14:44:00]line Контрольно-Кассовый Чек [14:44:00]line ПРОДАЖА [14:44:00]line ТРК (МРК, ГНК) : 21 [14:44:00]line Товар: 2710124130 [14:44:00]line Аи-92-К-5 [14:44:00]line 7.480 * 66.90 [14:44:00]line = 500.41 [14:44:00]line НДС 12% НСП 1% [14:44:00]line > о реализуемом товаре [14:44:00]line ОКРУГЛЕНИЕ: -0.41 [14:44:00]line ИТОГО: 500.00 [14:44:00]line Внесено: 500.00 [14:44:00]line СДАЧА: 0.00 [14:44:00]line НСП 1% : 4.43 [14:44:00]line НДС 12% : 53.14 [14:44:00]line Наличными: 500.00 [14:44:00]line Безнал.: 0.00 [14:44:00]line Место: АЗС № 143 "Партнер Нефть" [14:44:00]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:44:00]line СНО: Общий режим [14:44:00]line Чек 193 24.10.2024 14:43 [14:44:00]line Смена: 534 ФФД: 1.0 [14:44:00]line ЗНМ: 0300000096 [14:44:00]line РНМ: 0000000000091693 [14:44:00]line Версия ККМ: 001 [14:44:00]line ФМ: 0000000000871792 [14:44:00]line ФД: 155568 [14:44:00]line ФПД: 268471235964363 [14:44:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144358&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155568&fm=268471235964363&tin=02508201610067®Number=0000000000091693&sum=50000 [14:44:00]OFD Sender: Processing packet 155568 [packets to send 31, broken 30] [14:44:00]ProducePacketName [14:44:00]name=ofd_packets/00155568 [14:44:00]OFD Sender: To server: pG, [14:44:00]CommunicateWithHost lk.salyk.kg:30040 [14:44:00]ConnectInit lk.salyk.kg [14:44:00]written 0, free lines is 4095 [14:44:00]Connected sock=10 [14: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 39 32 0F 01 00 00 1E E5 07 01 E4 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 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 2E 5D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 5F 02 00 35 04 06 00 F4 2C 54 A6 ED CB 5F 86 1A 11 75 C3 BA 94 [14: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 39 32 4F 00 00 00 49 CC 47 00 A5 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 39 32 10 04 04 00 B0 5F 02 00 F4 03 04 00 A7 02 1A 67 B6 04 01 00 00 D4 85 F2 8E B0 D6 96 56 [14:44:00]CommunicateWithHost err = 0 [14:44:00]CheckOFDResponse [14:44:00]1017 (14) - 77093643461234 [14:44:00]1041 (16) - 0000000000871792 [14:44:00]1040 (4) - 155568 [14:44:00]1012 (4) - 24.10.2024 08:17 [14:44:00]1206 (1) - 0 [14:44:00]OFD Sender: Remove packet 155568 [14:44:00]ProducePacketName [14:44:00]name=ofd_packets/00155568 [14:44:00]NVStorageDeleteData [14:44:01]Write to MH i2c: 01 00 00 8D 07 94 [14:44:01]Write i2c OK [14:44:01]MH_I2C_Read... [14:44:01]Read from MH i2c: 01 [14:44:01]MH_I2C_Read... [14:44:01]Read from MH i2c: 01 07 00 [14:44:01]MH_I2C_Read... [14:44:01]Read from MH i2c: 01 07 00 8D 07 00 00 00 00 00 EB 0C 92 [14:44:01]RasterBufferAndPrint [14:44:01]line [14:44:01]line [14:44:01]line [14:44:01]line [14:44:01]line [14:44:01]written 0, free lines is 3313 [14:44:01]process_action close_receipt done [14:44:01]requested_data is exist [14:44:01]produce_requested_data [14:44:01]requested_item fm.sn is exist - process it [14:44:01]wFMCommunicate request_size=4 [14:44:01]MH_SAM_APDU [14:44:01]CAPDU: 80 11 00 00 [14:44:01]Write to MH i2c: E2 08 00 94 07 80 11 00 00 00 00 00 00 15 [14:44:01]Write i2c OK [14:44:01]MH_I2C_Read... [14:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:01]Read from MH i2c: E2 [14:44:01]MH_I2C_Read... [14:44:01]Read from MH i2c: E2 17 00 [14:44:01]MH_I2C_Read... [14:44:01]Read from MH i2c: E2 17 00 94 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6A [14:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:44:01]wFMCommunicate OK [14:44:01]requested_item fd.num is exist - process it [14:44:01]SAM_PROTO_GetFieldsCounters [14:44:01]wFMCommunicate request_size=4 [14:44:01]MH_SAM_APDU [14:44:01]CAPDU: 80 13 00 00 [14:44:01]Write to MH i2c: E2 08 00 95 07 80 13 00 00 00 00 00 00 18 [14:44:01]Write i2c OK [14:44:01]MH_I2C_Read... [14:44:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:01]Read from MH i2c: E2 [14:44:01]MH_I2C_Read... [14:44:01]Read from MH i2c: E2 62 00 [14:44:01]MH_I2C_Read... [14:44:01]Read from MH i2c: E2 62 00 95 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B0 5F 02 00 0E 04 04 00 16 02 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 AA [14:44: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B0 5F 02 00 0E 04 04 00 16 02 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 [14:44:01]wFMCommunicate OK [14:44:01]SAM_PROTO_GetFieldsCounters done [14:44:01]requested_item shift.num is exist - process it [14:44:01]requested_item shift.opened is exist - process it [14:44:01]req_shift_opened [14:44:01]FM_GetShiftState [14:44:01]SAM_PROTO_GetShiftState [14:44:01]wFMCommunicate request_size=4 [14:44:01]MH_SAM_APDU [14:44:01]CAPDU: 80 13 01 00 [14:44:01]Write to MH i2c: E2 08 00 96 07 80 13 01 00 00 00 00 00 1A [14:44:01]Write i2c OK [14:44:01]MH_I2C_Read... [14:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:01]Read from MH i2c: E2 [14:44:01]MH_I2C_Read... [14:44:01]Read from MH i2c: E2 0E 00 [14:44:01]MH_I2C_Read... [14:44:01]Read from MH i2c: E2 0E 00 96 07 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 67 [14:44:01]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:44:01]wFMCommunicate OK [14:44:01]SAM_PROTO_GetShiftState done [14:44:01]FM_GetShiftState done [14:44:01]req_shift_opened done [14:44:01]requested_item shift.open_date is exist - process it [14:44:01]req_shift_open_date [14:44:01]req_shift_open_date done [14:44:01]produce_requested_data done [14:44:01]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155568,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:44:01]process_action_free close_receipt [14:44:01]json_value_free [14:44:01]json_value_free done [14:44:01]process_json_proto returns [14:44:01]Send response to host [14:44:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155568,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:44:01]free response buf [14:44:01]execute_script done [14:44:01]execute_script returns [14:44:01]free content buf [14:44:01]Sock 8.Close socket [14:44:01]Sock 8.Thread stoped [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 3066781028 created [14:44:57]Thread 3066637668 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.63.3:8080 [14:44:57]Content-Length: 799 [14:44:57]Content-Type: application/json [14:44:57] [14:44:57]POST finish read [14:44:57]Found Content-Length = 799 [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)98373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295428.30", "payments": [ { "type": 1, "sum" : 0.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)98373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295428.30", "payments": [ { "type": 1, "sum" : 0.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 97 07 8D [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 97 07 00 69 5D 1A 67 50 D1 6C 64 CE [14:44:57]GetLastDocTimeStamp 1729781038 [14:44:57]current date 1729781097 [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 98 07 80 13 01 00 00 00 00 00 1C [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 98 07 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 69 [14:44:57]RAPDU: 09 00 01 2C 95 19 67 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 1729729836 [14:44:57]opened+sec_in_day 1729816236 [14:44:57]quantity*price = 0 [14:44:57]sum+1 = 1 [14:44:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 194 24.10.2024 14:44 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4295428.30 ФМ: 0000000000871792 ФД: 155569 ФПД: 148247963854583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144457&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155569&fm=148247963854583&tin=02508201610067®Number=0000000000091693&sum=0 [14:44:58]StoreToDocumentArchive [14:44:58]shift 534 fd 155569 [14:44:58]save to /storage/0534/doc_00155569 [14:44:58]save last doc name /storage/0534/doc_00155569 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=248 [14:44:58]tlvbuf is B6E7E140 [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 A5 07 80 09 00 00 00 00 00 00 1E [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 A5 07 00 90 00 20 [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 A6 07 80 0D 01 02 00 00 00 00 26 [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: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 A6 07 00 90 00 21 [14:44:58]RAPDU: 90 00 [14:44:58]wFMCommunicate OK [14:44:58]wFMCommunicate request_size=255 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C2 00 00 00 F4 03 04 00 69 5D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 5F 02 00 35 04 06 00 86 D4 AB 39 [14:44:58]Write to MH i2c: E2 02 01 A7 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C2 00 00 00 F4 03 04 00 69 5D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 5F 02 00 35 04 06 00 86 D4 AB 39 00 00 9E [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]*** iso7816_exchange 80 0D 02 02... 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 A7 07 00 90 00 22 [14:44:58]RAPDU: 90 00 [14:44:58]wFMCommunicate OK [14:44:58]wFMCommunicate request_size=7 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 0D 02 02 02 66 F7 [14:44:58]Write to MH i2c: E2 0A 00 A8 07 80 0D 02 02 02 00 66 F7 00 00 8A [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]*** iso7816_exchange 80 0D 02 02... 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 A8 07 00 90 00 23 [14:44:58]RAPDU: 90 00 [14:44:58]wFMCommunicate OK [14:44:58]wFMCommunicate request_size=4 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 0D 03 02 [14:44:58]Write to MH i2c: E2 08 00 A9 07 80 0D 03 02 00 00 00 00 2B [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:58]Read from MH i2c: E2 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 0B 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 0B 00 A9 07 00 3B 90 1E D0 E1 A6 6F 01 90 00 DC [14:44:58]RAPDU: 3B 90 1E D0 E1 A6 6F 01 90 00 [14:44:58]wFMCommunicate OK [14:44:58]SAM_PROTO_SignData done [14:44:58]FM_MakeSignedData done [14:44:58]CreateOFDProtocolMessage [14:44:58]wFMCommunicate request_size=4 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 11 00 00 [14:44:58]Write to MH i2c: E2 08 00 AA 07 80 11 00 00 00 00 00 00 2B [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:58]Read from MH i2c: E2 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 17 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 17 00 AA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 80 [14:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:44:58]wFMCommunicate OK [14:44:58]CreateOFDProtocolMessage done [14:44:58]OFDSenderStorePacket 155569 [14:44:58]StoreOFDPacket docnum=155569 [14:44:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 6E 7D 04 01 74 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C2 00 00 00 F4 03 04 00 69 5D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 5F 02 00 35 04 06 00 86 D4 AB 39 66 F7 3B 90 1E D0 E1 A6 6F 01 [14:44:58]CheckFolder [14:44:58]dirname=/storage/ofd_packets [14:44:58]CheckFolder done [14:44:58]ProducePacketName [14:44:58]name=ofd_packets/00155569 [14:44:58]NVStorageSaveData ofd_packets/00155569 [14:44:58]File name is /storage/ofd_packets/00155569 [14:44:58]Write 298 bytes [14:44:58]NVStorageSaveData done [14:44:58]OFDSenderStorePacket done [14:44:58]KKMCreateOFDPacket done [14:44:58]NVStorageSaveData kkm_last_timestamp [14:44:58]File name is /storage/kkm_last_timestamp [14:44:58]Write 4 bytes [14:44:58]NVStorageSaveData done [14:44:58]ExternCall_PrintAddStr [14:44:58]wPrintStart [14:44:58]Write to MH i2c: 01 00 00 AB 07 B2 [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: 01 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: 01 07 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: 01 07 00 AB 07 00 00 00 00 00 FF 0F C7 [14:44:58]RasterBufferAndPrint [14:44:58]line Счет N : (1)98373 [14:44:58]line ИНН: 02508201610067 [14:44:58]line Контрольно-Кассовый Чек [14:44:58]line ПРОДАЖА [14:44:58]line ТРК (МРК, ГНК) : 32 [14:44:58]line Товар: 2710194210 [14:44:58]line ДТ-К-5 [14:44:58]line 30.000 * 0.00 [14:44:58]line = 0.00 [14:44:58]line НДС 12% НСП 1% [14:44:58]line > о реализуемом товаре [14:44:58]line ИТОГО: 0.00 [14:44:58]line НСП 1% : 0.00 [14:44:58]line НДС 12% : 0.00 [14:44:58]line Наличными: 0.00 [14:44:58]line Безнал.: 0.00 [14:44:58]line Место: АЗС № 143 "Партнер Нефть" [14:44:58]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:44:58]line СНО: Общий режим [14:44:58]line Чек 194 24.10.2024 14:44 [14:44:58]line Смена: 534 ФФД: 1.0 [14:44:58]line ЗНМ: 0300000096 [14:44:58]line РНМ: 0000000000091693 [14:44:58]line Версия ККМ: 001 [14:44:58]line Талоны: Топливные Талоны [14:44:58]line 4295428.30 [14:44:58]line ФМ: 0000000000871792 [14:44:58]line ФД: 155569 [14:44:58]line ФПД: 148247963854583 [14:44:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144457&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155569&fm=148247963854583&tin=02508201610067®Number=0000000000091693&sum=0 [14:44:59]OFD Sender: Processing packet 155569 [packets to send 31, broken 30] [14:44:59]ProducePacketName [14:44:59]name=ofd_packets/00155569 [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 39 32 0C 01 00 00 6E 7D 04 01 74 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C2 00 00 00 F4 03 04 00 69 5D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 5F 02 00 35 04 06 00 86 D4 AB 39 66 F7 3B 90 1E D0 E1 A6 6F 01 [14:44:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7E 68 47 00 F7 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 5F 02 00 F4 03 04 00 E2 02 1A 67 B6 04 01 00 00 44 17 98 15 39 3C 05 61 [14:44:59]CommunicateWithHost err = 0 [14:44:59]CheckOFDResponse [14:44:59]1017 (14) - 77093643461234 [14:44:59]1041 (16) - 0000000000871792 [14:44:59]1040 (4) - 155569 [14:44:59]1012 (4) - 24.10.2024 08:18 [14:44:59]1206 (1) - 0 [14:44:59]OFD Sender: Remove packet 155569 [14:44:59]ProducePacketName [14:44:59]name=ofd_packets/00155569 [14:44:59]NVStorageDeleteData [14:44:59]Write to MH i2c: 01 00 00 D5 07 DC [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 D5 07 00 00 00 00 00 F5 0C E4 [14:44:59]RasterBufferAndPrint [14:44:59]line [14:44:59]line [14:44:59]line [14:44:59]line [14:44:59]line [14:44:59]written 0, free lines is 3323 [14:44:59]process_action close_receipt done [14:44:59]requested_data is exist [14:44:59]produce_requested_data [14:44:59]requested_item fm.sn is exist - process it [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 DC 07 80 11 00 00 00 00 00 00 5D [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 DC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B2 [14:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:44:59]wFMCommunicate OK [14:44:59]requested_item fd.num is exist - process it [14:44:59]SAM_PROTO_GetFieldsCounters [14:44:59]wFMCommunicate request_size=4 [14:44:59]MH_SAM_APDU [14:44:59]CAPDU: 80 13 00 00 [14:44:59]Write to MH i2c: E2 08 00 DD 07 80 13 00 00 00 00 00 00 60 [14:44:59]Write i2c OK [14:44:59]MH_I2C_Read... [14:44:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:59]Read from MH i2c: E2 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 62 00 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 62 00 DD 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B1 5F 02 00 0E 04 04 00 16 02 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 F6 [14:44: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B1 5F 02 00 0E 04 04 00 16 02 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 [14:44:59]wFMCommunicate OK [14:44:59]SAM_PROTO_GetFieldsCounters done [14:44:59]requested_item shift.num is exist - process it [14:44:59]requested_item shift.opened is exist - process it [14:44:59]req_shift_opened [14:44:59]FM_GetShiftState [14:44:59]SAM_PROTO_GetShiftState [14:44:59]wFMCommunicate request_size=4 [14:44:59]MH_SAM_APDU [14:44:59]CAPDU: 80 13 01 00 [14:44:59]Write to MH i2c: E2 08 00 DE 07 80 13 01 00 00 00 00 00 62 [14:44:59]Write i2c OK [14:44:59]MH_I2C_Read... [14:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:59]Read from MH i2c: E2 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 0E 00 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: E2 0E 00 DE 07 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AF [14:44:59]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:44:59]wFMCommunicate OK [14:44:59]SAM_PROTO_GetShiftState done [14:44:59]FM_GetShiftState done [14:44:59]req_shift_opened done [14:44:59]requested_item shift.open_date is exist - process it [14:44:59]req_shift_open_date [14:44:59]req_shift_open_date done [14:44:59]produce_requested_data done [14:44:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155569,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:44:59]process_action_free close_receipt [14:44:59]json_value_free [14:44:59]json_value_free done [14:44:59]process_json_proto returns [14:44:59]Send response to host [14:44:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155569,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:44:59]free response buf [14:44:59]execute_script done [14:44:59]execute_script returns [14:44:59]free content buf [14:44:59]Sock 9.Close socket [14:44:59]Sock 9.Thread stoped [14:44:59]OFD Sender: No OFD packet to send [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]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:43]accept exits with 8 [14:47:43]New connection [14:47:43]New thread 3066637668 created [14:47:43]Thread 3066781028 joined [14:47:43]Waiting for new connection... [14:47:43] Sock 8.Parse request [14:47:43]Sock 8.Check first char [14:47:43]Sock 8.First char is OK [14:47:43]request: POST /json_proto HTTP/1.0 [14:47:43]Method: POST [14:47:43]URL: /json_proto [14:47:43]Method is POST - this is cgi request [14:47:43]url: /json_proto [14:47:43]query_string will be loaded in cgi processing [14:47:43]execute_cgi json_proto POST (null) [14:47:43]execute_cgi path=json_proto method=POST [14:47:43]POST find Content-Length [14:47:43]Host: 172.17.63.3:8080 [14:47:43]Content-Length: 676 [14:47:43]Content-Type: application/json [14:47:43] [14:47:43]POST finish read [14:47:43]Found Content-Length = 676 [14:47:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:43]execute_script... [14:47: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)98374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:43]POST & json_proto [14:47:43]process_json_proto [14:47:43]json parsed OK: [14:47:43]protocol is kg_v1.0 [14:47:43]action value=close_receipt [14:47:43]process_action close_receipt [14:47:43]cmd_close_receipt [14:47:43]MH_GetDate [14:47:43]Write to MH i2c: F0 00 00 DF 07 D5 [14:47:43]Write i2c OK [14:47:43]MH_I2C_Read... [14:47:43]Read from MH i2c: F0 [14:47:43]MH_I2C_Read... [14:47:43]Read from MH i2c: F0 09 00 [14:47:43]MH_I2C_Read... [14:47:43]Read from MH i2c: F0 09 00 DF 07 00 0F 5E 1A 67 50 D1 6C 64 BD [14:47:43]GetLastDocTimeStamp 1729781097 [14:47:43]current date 1729781263 [14:47:43]FM_GetShiftState [14:47:43]SAM_PROTO_GetShiftState [14:47:43]wFMCommunicate request_size=4 [14:47:43]MH_SAM_APDU [14:47:43]CAPDU: 80 13 01 00 [14:47:43]Write to MH i2c: E2 08 00 E0 07 80 13 01 00 00 00 00 00 64 [14:47:43]Write i2c OK [14:47:43]MH_I2C_Read... [14:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:43]Read from MH i2c: E2 [14:47:43]MH_I2C_Read... [14:47:43]Read from MH i2c: E2 0E 00 [14:47:43]MH_I2C_Read... [14:47:43]Read from MH i2c: E2 0E 00 E0 07 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 B1 [14:47:43]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:47:43]wFMCommunicate OK [14:47:43]SAM_PROTO_GetShiftState done [14:47:43]FM_GetShiftState done [14:47:43]opened in 1729729836 [14:47:43]opened+sec_in_day 1729816236 [14:47:43]quantity*price = 60009 [14:47:43]sum+1 = 60010 [14:47:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 195 24.10.2024 14:47 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155570 ФПД: 225870425359079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144743&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155570&fm=225870425359079&tin=02508201610067®Number=0000000000091693&sum=60000 [14:47:44]StoreToDocumentArchive [14:47:44]shift 534 fd 155570 [14:47:44]save to /storage/0534/doc_00155570 [14:47:44]save last doc name /storage/0534/doc_00155570 to /storage/kkm_last_doc_name [14:47:44]save OK [14:47:44]Clear old archive folders... [14:47:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:44]tlvbuf is 01F53320 [14:47:44]SAM_PROTO_ClearQueue [14:47:44]wFMCommunicate request_size=4 [14:47:44]MH_SAM_APDU [14:47:44]CAPDU: 80 09 00 00 [14:47:44]Write to MH i2c: E2 08 00 ED 07 80 09 00 00 00 00 00 00 66 [14:47:44]Write i2c OK [14:47:44]MH_I2C_Read... [14:47:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:44]Read from MH i2c: E2 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: E2 03 00 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: E2 03 00 ED 07 00 90 00 68 [14:47:44]RAPDU: 90 00 [14:47:44]wFMCommunicate OK [14:47:44]SAM_PROTO_ClearQueue done [14:47:44]KKMCreateOFDPacket [14:47:44]OFDProtocolAddRootSTLVToBuf [14:47:44]FM_MakeSignedData [14:47:44]FM_MakeSignedData [14:47:44]SAM_PROTO_SignData [14:47:44]wFMCommunicate request_size=4 [14:47:44]MH_SAM_APDU [14:47:44]CAPDU: 80 0D 01 02 [14:47:44]Write to MH i2c: E2 08 00 EE 07 80 0D 01 02 00 00 00 00 6E [14:47:44]Write i2c OK [14:47:44]MH_I2C_Read... [14:47:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:44]Read from MH i2c: E2 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: E2 03 00 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: E2 03 00 EE 07 00 90 00 69 [14:47:44]RAPDU: 90 00 [14:47:44]wFMCommunicate OK [14:47:44]wFMCommunicate request_size=255 [14:47:44]MH_SAM_APDU [14:47: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 0F 5E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 5F 02 00 35 04 06 00 CD [14:47:44]Write to MH i2c: E2 02 01 EF 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 0F 5E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 5F 02 00 35 04 06 00 CD 00 00 88 [14:47:44]Write i2c OK [14:47:44]MH_I2C_Read... [14:47:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:44]Read from MH i2c: E2 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: E2 03 00 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: E2 03 00 EF 07 00 90 00 6A [14:47:44]RAPDU: 90 00 [14:47:44]wFMCommunicate OK [14:47:44]wFMCommunicate request_size=10 [14:47:44]MH_SAM_APDU [14:47:44]CAPDU: 80 0D 02 02 05 6D 8E 78 02 E7 [14:47:44]Write to MH i2c: E2 0D 00 F0 07 80 0D 02 02 05 00 6D 8E 78 02 E7 00 00 D7 [14:47:44]Write i2c OK [14:47:44]MH_I2C_Read... [14:47:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:44]Read from MH i2c: E2 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: E2 03 00 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: E2 03 00 F0 07 00 90 00 6B [14:47:44]RAPDU: 90 00 [14:47:44]wFMCommunicate OK [14:47:44]wFMCommunicate request_size=4 [14:47:44]MH_SAM_APDU [14:47:44]CAPDU: 80 0D 03 02 [14:47:44]Write to MH i2c: E2 08 00 F1 07 80 0D 03 02 00 00 00 00 73 [14:47:44]Write i2c OK [14:47:44]MH_I2C_Read... [14:47:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:44]Read from MH i2c: E2 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: E2 0B 00 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: E2 0B 00 F1 07 00 C0 62 CB A2 6E AD 6D AD 90 00 38 [14:47:44]RAPDU: C0 62 CB A2 6E AD 6D AD 90 00 [14:47:44]wFMCommunicate OK [14:47:44]SAM_PROTO_SignData done [14:47:44]FM_MakeSignedData done [14:47:44]CreateOFDProtocolMessage [14:47:44]wFMCommunicate request_size=4 [14:47:44]MH_SAM_APDU [14:47:44]CAPDU: 80 11 00 00 [14:47:44]Write to MH i2c: E2 08 00 F2 07 80 11 00 00 00 00 00 00 73 [14:47:44]Write i2c OK [14:47:44]MH_I2C_Read... [14:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:44]Read from MH i2c: E2 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: E2 17 00 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: E2 17 00 F2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C8 [14:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:47:44]wFMCommunicate OK [14:47:44]CreateOFDProtocolMessage done [14:47:44]OFDSenderStorePacket 155570 [14:47:44]StoreOFDPacket docnum=155570 [14:47:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F3 FE 07 01 37 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 0F 5E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 5F 02 00 35 04 06 00 CD 6D 8E 78 02 E7 C0 62 CB A2 6E AD 6D AD [14:47:44]CheckFolder [14:47:44]dirname=/storage/ofd_packets [14:47:44]CheckFolder done [14:47:44]ProducePacketName [14:47:44]name=ofd_packets/00155570 [14:47:44]NVStorageSaveData ofd_packets/00155570 [14:47:44]File name is /storage/ofd_packets/00155570 [14:47:44]Write 301 bytes [14:47:44]NVStorageSaveData done [14:47:44]OFDSenderStorePacket done [14:47:44]KKMCreateOFDPacket done [14:47:44]NVStorageSaveData kkm_last_timestamp [14:47:44]File name is /storage/kkm_last_timestamp [14:47:44]Write 4 bytes [14:47:44]NVStorageSaveData done [14:47:44]ExternCall_PrintAddStr [14:47:44]wPrintStart [14:47:44]Write to MH i2c: 01 00 00 F3 07 FA [14:47:44]Write i2c OK [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: 01 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: 01 07 00 [14:47:44]MH_I2C_Read... [14:47:44]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 FF 0F 0F [14:47:44]RasterBufferAndPrint [14:47:44]line Счет N : (1)98374 [14:47:44]line ИНН: 02508201610067 [14:47:44]line Контрольно-Кассовый Чек [14:47:44]line ПРОДАЖА [14:47:44]line ТРК (МРК, ГНК) : 21 [14:47:44]line Товар: 2710124130 [14:47:44]line Аи-92-К-5 [14:47:44]line 8.970 * 66.90 [14:47:44]line = 600.09 [14:47:44]line НДС 12% НСП 1% [14:47:44]line > о реализуемом товаре [14:47:44]line ОКРУГЛЕНИЕ: -0.09 [14:47:44]line ИТОГО: 600.00 [14:47:44]line Внесено: 600.00 [14:47:44]line СДАЧА: 0.00 [14:47:44]line НСП 1% : 5.31 [14:47:44]line НДС 12% : 63.73 [14:47:44]line Наличными: 600.00 [14:47:44]line Безнал.: 0.00 [14:47:44]line Место: АЗС № 143 "Партнер Нефть" [14:47:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:47:44]line СНО: Общий режим [14:47:44]line Чек 195 24.10.2024 14:47 [14:47:44]line Смена: 534 ФФД: 1.0 [14:47:44]line ЗНМ: 0300000096 [14:47:44]line РНМ: 0000000000091693 [14:47:44]line Версия ККМ: 001 [14:47:44]line ФМ: 0000000000871792 [14:47:44]line ФД: 155570 [14:47:44]line ФПД: 225870425359079 [14:47:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144743&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155570&fm=225870425359079&tin=02508201610067®Number=0000000000091693&sum=60000 [14:47:45]OFD Sender: Processing packet 155570 [packets to send 31, broken 30] [14:47:45]ProducePacketName [14:47:45]name=ofd_packets/00155570 [14:47:45]OFD Sender: To server: pG, [14:47:45]CommunicateWithHost lk.salyk.kg:30040 [14:47:45]ConnectInit lk.salyk.kg [14:47:45]written 0, free lines is 4095 [14:47:45]Connected sock=10 [14:47: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 39 32 0F 01 00 00 F3 FE 07 01 37 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 0F 5E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 5F 02 00 35 04 06 00 CD 6D 8E 78 02 E7 C0 62 CB A2 6E AD 6D AD [14:47: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 39 32 4F 00 00 00 E5 A0 47 00 77 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 5F 02 00 F4 03 04 00 88 03 1A 67 B6 04 01 00 00 ED F6 C7 2A F4 64 51 D4 [14:47:45]CommunicateWithHost err = 0 [14:47:45]CheckOFDResponse [14:47:45]1017 (14) - 77093643461234 [14:47:45]1041 (16) - 0000000000871792 [14:47:45]1040 (4) - 155570 [14:47:45]1012 (4) - 24.10.2024 08:21 [14:47:45]1206 (1) - 0 [14:47:45]OFD Sender: Remove packet 155570 [14:47:45]ProducePacketName [14:47:45]name=ofd_packets/00155570 [14:47:45]NVStorageDeleteData [14:47:45]Write to MH i2c: 01 00 00 1E 08 26 [14:47:45]Write i2c OK [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: 01 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: 01 07 00 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: 01 07 00 1E 08 00 00 00 00 00 F1 0C 2A [14:47:45]RasterBufferAndPrint [14:47:45]line [14:47:45]line [14:47:45]line [14:47:45]line [14:47:45]line [14:47:45]written 0, free lines is 3319 [14:47:45]process_action close_receipt done [14:47:45]requested_data is exist [14:47:45]produce_requested_data [14:47:45]requested_item fm.sn is exist - process it [14:47:45]wFMCommunicate request_size=4 [14:47:45]MH_SAM_APDU [14:47:45]CAPDU: 80 11 00 00 [14:47:45]Write to MH i2c: E2 08 00 25 08 80 11 00 00 00 00 00 00 A7 [14:47:45]Write i2c OK [14:47:45]MH_I2C_Read... [14:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:45]Read from MH i2c: E2 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: E2 17 00 [14:47:45]MH_I2C_Read... [14:47:45]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 39 32 90 00 FC [14:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:47:45]wFMCommunicate OK [14:47:45]requested_item fd.num is exist - process it [14:47:45]SAM_PROTO_GetFieldsCounters [14:47:45]wFMCommunicate request_size=4 [14:47:45]MH_SAM_APDU [14:47:45]CAPDU: 80 13 00 00 [14:47:45]Write to MH i2c: E2 08 00 26 08 80 13 00 00 00 00 00 00 AA [14:47:45]Write i2c OK [14:47:45]MH_I2C_Read... [14:47:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:45]Read from MH i2c: E2 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: E2 62 00 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: E2 62 00 26 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B2 5F 02 00 0E 04 04 00 16 02 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 44 [14:47: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B2 5F 02 00 0E 04 04 00 16 02 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 [14:47:45]wFMCommunicate OK [14:47:45]SAM_PROTO_GetFieldsCounters done [14:47:45]requested_item shift.num is exist - process it [14:47:45]requested_item shift.opened is exist - process it [14:47:45]req_shift_opened [14:47:45]FM_GetShiftState [14:47:45]SAM_PROTO_GetShiftState [14:47:45]wFMCommunicate request_size=4 [14:47:45]MH_SAM_APDU [14:47:45]CAPDU: 80 13 01 00 [14:47:45]Write to MH i2c: E2 08 00 27 08 80 13 01 00 00 00 00 00 AC [14:47:45]Write i2c OK [14:47:45]MH_I2C_Read... [14:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:45]Read from MH i2c: E2 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: E2 0E 00 [14:47:45]MH_I2C_Read... [14:47:45]Read from MH i2c: E2 0E 00 27 08 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F9 [14:47:45]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:47:45]wFMCommunicate OK [14:47:45]SAM_PROTO_GetShiftState done [14:47:45]FM_GetShiftState done [14:47:45]req_shift_opened done [14:47:45]requested_item shift.open_date is exist - process it [14:47:45]req_shift_open_date [14:47:45]req_shift_open_date done [14:47:45]produce_requested_data done [14:47:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155570,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:47:45]process_action_free close_receipt [14:47:45]json_value_free [14:47:45]json_value_free done [14:47:45]process_json_proto returns [14:47:45]Send response to host [14:47:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155570,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:47:45]free response buf [14:47:45]execute_script done [14:47:45]execute_script returns [14:47:45]free content buf [14:47:45]Sock 8.Close socket [14:47:45]Sock 8.Thread stoped [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]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:29]accept exits with 9 [14:48:29]New connection [14:48:29]New thread 3066781028 created [14:48:29]Thread 3066637668 joined [14:48:29]Waiting for new connection... [14:48:29] Sock 9.Parse request [14:48:29]Sock 9.Check first char [14:48:29]Sock 9.First char is OK [14:48:29]request: POST /json_proto HTTP/1.0 [14:48:29]Method: POST [14:48:29]URL: /json_proto [14:48:29]Method is POST - this is cgi request [14:48:29]url: /json_proto [14:48:29]query_string will be loaded in cgi processing [14:48:29]execute_cgi json_proto POST (null) [14:48:29]execute_cgi path=json_proto method=POST [14:48:29]POST find Content-Length [14:48:29]Host: 172.17.63.3:8080 [14:48:29]Content-Length: 681 [14:48:29]Content-Type: application/json [14:48:29] [14:48:29]POST finish read [14:48:29]Found Content-Length = 681 [14:48:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:29]execute_script... [14:48: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)98375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:29]POST & json_proto [14:48:29]process_json_proto [14:48:29]json parsed OK: [14:48:29]protocol is kg_v1.0 [14:48:29]action value=close_receipt [14:48:29]process_action close_receipt [14:48:29]cmd_close_receipt [14:48:29]MH_GetDate [14:48:29]Write to MH i2c: F0 00 00 28 08 1F [14:48:29]Write i2c OK [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: F0 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: F0 09 00 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: F0 09 00 28 08 00 3D 5E 1A 67 50 D1 6C 64 35 [14:48:29]GetLastDocTimeStamp 1729781263 [14:48:29]current date 1729781309 [14:48:29]FM_GetShiftState [14:48:29]SAM_PROTO_GetShiftState [14:48:29]wFMCommunicate request_size=4 [14:48:29]MH_SAM_APDU [14:48:29]CAPDU: 80 13 01 00 [14:48:29]Write to MH i2c: E2 08 00 29 08 80 13 01 00 00 00 00 00 AE [14:48:29]Write i2c OK [14:48:29]MH_I2C_Read... [14:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:29]Read from MH i2c: E2 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: E2 0E 00 [14:48:29]MH_I2C_Read... [14:48:29]Read from MH i2c: E2 0E 00 29 08 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 FB [14:48:29]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:48:29]wFMCommunicate OK [14:48:29]SAM_PROTO_GetShiftState done [14:48:29]FM_GetShiftState done [14:48:29]opened in 1729729836 [14:48:29]opened+sec_in_day 1729816236 [14:48:29]quantity*price = 100015 [14:48:29]sum+1 = 100017 [14:48:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 196 24.10.2024 14:48 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155571 ФПД: 264966575349140 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144830&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155571&fm=264966575349140&tin=02508201610067®Number=0000000000091693&sum=100000 [14:48:30]StoreToDocumentArchive [14:48:30]shift 534 fd 155571 [14:48:30]save to /storage/0534/doc_00155571 [14:48:30]save last doc name /storage/0534/doc_00155571 to /storage/kkm_last_doc_name [14:48:30]save OK [14:48:30]Clear old archive folders... [14:48:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:30]tlvbuf is B6E97580 [14:48:30]SAM_PROTO_ClearQueue [14:48:30]wFMCommunicate request_size=4 [14:48:30]MH_SAM_APDU [14:48:30]CAPDU: 80 09 00 00 [14:48:30]Write to MH i2c: E2 08 00 36 08 80 09 00 00 00 00 00 00 B0 [14:48:30]Write i2c OK [14:48:30]MH_I2C_Read... [14:48:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:30]Read from MH i2c: E2 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 03 00 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 03 00 36 08 00 90 00 B2 [14:48:30]RAPDU: 90 00 [14:48:30]wFMCommunicate OK [14:48:30]SAM_PROTO_ClearQueue done [14:48:30]KKMCreateOFDPacket [14:48:30]OFDProtocolAddRootSTLVToBuf [14:48:30]FM_MakeSignedData [14:48:30]FM_MakeSignedData [14:48:30]SAM_PROTO_SignData [14:48:30]wFMCommunicate request_size=4 [14:48:30]MH_SAM_APDU [14:48:30]CAPDU: 80 0D 01 02 [14:48:30]Write to MH i2c: E2 08 00 37 08 80 0D 01 02 00 00 00 00 B8 [14:48:30]Write i2c OK [14:48:30]MH_I2C_Read... [14:48:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:30]Read from MH i2c: E2 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 03 00 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 03 00 37 08 00 90 00 B3 [14:48:30]RAPDU: 90 00 [14:48:30]wFMCommunicate OK [14:48:30]wFMCommunicate request_size=255 [14:48:30]MH_SAM_APDU [14: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 3E 5E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 5F 02 00 35 04 06 00 F0 [14:48:30]Write to MH i2c: E2 02 01 38 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 3E 5E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 5F 02 00 35 04 06 00 F0 00 00 43 [14:48:30]Write i2c OK [14:48:30]MH_I2C_Read... [14:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:30]Read from MH i2c: E2 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 03 00 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 03 00 38 08 00 90 00 B4 [14:48:30]RAPDU: 90 00 [14:48:30]wFMCommunicate OK [14:48:30]wFMCommunicate request_size=10 [14:48:30]MH_SAM_APDU [14:48:30]CAPDU: 80 0D 02 02 05 FC 56 99 DD 94 [14:48:30]Write to MH i2c: E2 0D 00 39 08 80 0D 02 02 05 00 FC 56 99 DD 94 00 00 21 [14:48:30]Write i2c OK [14:48:30]MH_I2C_Read... [14:48:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:30]Read from MH i2c: E2 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 03 00 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 03 00 39 08 00 90 00 B5 [14:48:30]RAPDU: 90 00 [14:48:30]wFMCommunicate OK [14:48:30]wFMCommunicate request_size=4 [14:48:30]MH_SAM_APDU [14:48:30]CAPDU: 80 0D 03 02 [14:48:30]Write to MH i2c: E2 08 00 3A 08 80 0D 03 02 00 00 00 00 BD [14:48:30]Write i2c OK [14:48:30]MH_I2C_Read... [14:48:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:30]Read from MH i2c: E2 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 0B 00 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 0B 00 3A 08 00 7E 11 1F 57 AE F7 F3 5D 90 00 B8 [14:48:30]RAPDU: 7E 11 1F 57 AE F7 F3 5D 90 00 [14:48:30]wFMCommunicate OK [14:48:30]SAM_PROTO_SignData done [14:48:30]FM_MakeSignedData done [14:48:30]CreateOFDProtocolMessage [14:48:30]wFMCommunicate request_size=4 [14:48:30]MH_SAM_APDU [14:48:30]CAPDU: 80 11 00 00 [14:48:30]Write to MH i2c: E2 08 00 3B 08 80 11 00 00 00 00 00 00 BD [14:48:30]Write i2c OK [14:48:30]MH_I2C_Read... [14:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:30]Read from MH i2c: E2 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 17 00 [14:48:30]MH_I2C_Read... [14:48:30]Read from MH i2c: E2 17 00 3B 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 12 [14:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:48:30]wFMCommunicate OK [14:48:30]CreateOFDProtocolMessage done [14:48:30]OFDSenderStorePacket 155571 [14:48:30]StoreOFDPacket docnum=155571 [14:48:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F4 93 07 01 EE 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 3E 5E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 5F 02 00 35 04 06 00 F0 FC 56 99 DD 94 7E 11 1F 57 AE F7 F3 5D [14:48:30]CheckFolder [14:48:30]dirname=/storage/ofd_packets [14:48:30]CheckFolder done [14:48:30]ProducePacketName [14:48:30]name=ofd_packets/00155571 [14:48:30]NVStorageSaveData ofd_packets/00155571 [14:48:30]File name is /storage/ofd_packets/00155571 [14:48:30]Write 301 bytes [14:48:30]NVStorageSaveData done [14:48:30]OFDSenderStorePacket done [14:48:30]KKMCreateOFDPacket done [14:48:30]NVStorageSaveData kkm_last_timestamp [14:48:30]File name is /storage/kkm_last_timestamp [14:48:30]Write 4 bytes [14:48:30]NVStorageSaveData done [14:48:30]ExternCall_PrintAddStr [14:48:30]wPrintStart [14:48:30]Write to MH i2c: 01 00 00 3C 08 44 [14:48:30]Write i2c OK [14:48:30]MH_I2C_Read... [14:48:31]Read from MH i2c: 01 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: 01 07 00 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: 01 07 00 3C 08 00 00 00 00 00 FF 0F 59 [14:48:31]RasterBufferAndPrint [14:48:31]line Счет N : (1)98375 [14:48:31]line ИНН: 02508201610067 [14:48:31]line Контрольно-Кассовый Чек [14:48:31]line ПРОДАЖА [14:48:31]line ТРК (МРК, ГНК) : 11 [14:48:31]line Товар: 2710124130 [14:48:31]line Аи-92-К-5 [14:48:31]line 14.950 * 66.90 [14:48:31]line = 1000.16 [14:48:31]line НДС 12% НСП 1% [14:48:31]line > о реализуемом товаре [14:48:31]line ОКРУГЛЕНИЕ: -0.16 [14:48:31]line ИТОГО: 1000.00 [14:48:31]line Внесено: 1000.00 [14:48:31]line СДАЧА: 0.00 [14:48:31]line НСП 1% : 8.85 [14:48:31]line НДС 12% : 106.21 [14:48:31]line Наличными: 1000.00 [14:48:31]line Безнал.: 0.00 [14:48:31]line Место: АЗС № 143 "Партнер Нефть" [14:48:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:48:31]line СНО: Общий режим [14:48:31]line Чек 196 24.10.2024 14:48 [14:48:31]line Смена: 534 ФФД: 1.0 [14:48:31]line ЗНМ: 0300000096 [14:48:31]line РНМ: 0000000000091693 [14:48:31]line Версия ККМ: 001 [14:48:31]line ФМ: 0000000000871792 [14:48:31]line ФД: 155571 [14:48:31]line ФПД: 264966575349140 [14:48:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T144830&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155571&fm=264966575349140&tin=02508201610067®Number=0000000000091693&sum=100000 [14:48:31]OFD Sender: Processing packet 155571 [packets to send 31, broken 30] [14:48:31]ProducePacketName [14:48:31]name=ofd_packets/00155571 [14:48:31]OFD Sender: To server: pG, [14:48:31]CommunicateWithHost lk.salyk.kg:30040 [14:48:31]ConnectInit lk.salyk.kg [14:48:31]written 0, free lines is 4095 [14:48:31]Connected sock=10 [14:48: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 39 32 0F 01 00 00 F4 93 07 01 EE 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 3E 5E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 5F 02 00 35 04 06 00 F0 FC 56 99 DD 94 7E 11 1F 57 AE F7 F3 5D [14: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 39 32 4F 00 00 00 40 E8 47 00 FC 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 39 32 10 04 04 00 B3 5F 02 00 F4 03 04 00 B6 03 1A 67 B6 04 01 00 00 49 F2 0D 12 B8 F7 97 F0 [14:48:31]CommunicateWithHost err = 0 [14:48:31]CheckOFDResponse [14:48:31]1017 (14) - 77093643461234 [14:48:31]1041 (16) - 0000000000871792 [14:48:31]1040 (4) - 155571 [14:48:31]1012 (4) - 24.10.2024 08:22 [14:48:31]1206 (1) - 0 [14:48:31]OFD Sender: Remove packet 155571 [14:48:31]ProducePacketName [14:48:31]name=ofd_packets/00155571 [14:48:31]NVStorageDeleteData [14:48:31]Write to MH i2c: 01 00 00 67 08 6F [14:48:31]Write i2c OK [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: 01 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: 01 07 00 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: 01 07 00 67 08 00 00 00 00 00 F4 0C 76 [14:48:31]RasterBufferAndPrint [14:48:31]line [14:48:31]line [14:48:31]line [14:48:31]line [14:48:31]line [14:48:31]written 0, free lines is 3323 [14:48:31]process_action close_receipt done [14:48:31]requested_data is exist [14:48:31]produce_requested_data [14:48:31]requested_item fm.sn is exist - process it [14:48:31]wFMCommunicate request_size=4 [14:48:31]MH_SAM_APDU [14:48:31]CAPDU: 80 11 00 00 [14:48:31]Write to MH i2c: E2 08 00 6E 08 80 11 00 00 00 00 00 00 F0 [14:48:31]Write i2c OK [14:48:31]MH_I2C_Read... [14:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:31]Read from MH i2c: E2 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: E2 17 00 [14:48:31]MH_I2C_Read... [14:48:31]Read from MH i2c: E2 17 00 6E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 45 [14:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:48:31]wFMCommunicate OK [14:48:31]requested_item fd.num is exist - process it [14:48:31]SAM_PROTO_GetFieldsCounters [14:48:31]wFMCommunicate request_size=4 [14:48:31]MH_SAM_APDU [14:48:31]CAPDU: 80 13 00 00 [14:48:31]Write to MH i2c: E2 08 00 6F 08 80 13 00 00 00 00 00 00 F3 [14:48:31]Write i2c OK [14:48:31]MH_I2C_Read... [14:48:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:32]Read from MH i2c: E2 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: E2 62 00 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: E2 62 00 6F 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B3 5F 02 00 0E 04 04 00 16 02 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 91 [14: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B3 5F 02 00 0E 04 04 00 16 02 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 [14:48:32]wFMCommunicate OK [14:48:32]SAM_PROTO_GetFieldsCounters done [14:48:32]requested_item shift.num is exist - process it [14:48:32]requested_item shift.opened is exist - process it [14:48:32]req_shift_opened [14:48:32]FM_GetShiftState [14:48:32]SAM_PROTO_GetShiftState [14:48:32]wFMCommunicate request_size=4 [14:48:32]MH_SAM_APDU [14:48:32]CAPDU: 80 13 01 00 [14:48:32]Write to MH i2c: E2 08 00 70 08 80 13 01 00 00 00 00 00 F5 [14:48:32]Write i2c OK [14:48:32]MH_I2C_Read... [14:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:32]Read from MH i2c: E2 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: E2 0E 00 [14:48:32]MH_I2C_Read... [14:48:32]Read from MH i2c: E2 0E 00 70 08 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 42 [14:48:32]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:48:32]wFMCommunicate OK [14:48:32]SAM_PROTO_GetShiftState done [14:48:32]FM_GetShiftState done [14:48:32]req_shift_opened done [14:48:32]requested_item shift.open_date is exist - process it [14:48:32]req_shift_open_date [14:48:32]req_shift_open_date done [14:48:32]produce_requested_data done [14:48:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155571,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:48:32]process_action_free close_receipt [14:48:32]json_value_free [14:48:32]json_value_free done [14:48:32]process_json_proto returns [14:48:32]Send response to host [14:48:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155571,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:48:32]free response buf [14:48:32]execute_script done [14:48:32]execute_script returns [14:48:32]free content buf [14:48:32]Sock 9.Close socket [14:48:32]Sock 9.Thread stoped [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:18]accept exits with 8 [14:51:18]New connection [14:51:18]New thread 3066637668 created [14:51:18]Thread 3066781028 joined [14:51:18]Waiting for new connection... [14:51:18] Sock 8.Parse request [14:51:18]Sock 8.Check first char [14:51:18]Sock 8.First char is OK [14:51:18]request: POST /json_proto HTTP/1.0 [14:51:18]Method: POST [14:51:18]URL: /json_proto [14:51:18]Method is POST - this is cgi request [14:51:18]url: /json_proto [14:51:18]query_string will be loaded in cgi processing [14:51:18]execute_cgi json_proto POST (null) [14:51:18]execute_cgi path=json_proto method=POST [14:51:18]POST find Content-Length [14:51:18]Host: 172.17.63.3:8080 [14:51:18]Content-Length: 681 [14:51:18]Content-Type: application/json [14:51:18] [14:51:18]POST finish read [14:51:18]Found Content-Length = 681 [14:51:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:18]execute_script... [14:51:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:18]POST & json_proto [14:51:18]process_json_proto [14:51:18]json parsed OK: [14:51:18]protocol is kg_v1.0 [14:51:18]action value=close_receipt [14:51:18]process_action close_receipt [14:51:18]cmd_close_receipt [14:51:18]MH_GetDate [14:51:18]Write to MH i2c: F0 00 00 71 08 68 [14:51:18]Write i2c OK [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: F0 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: F0 09 00 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: F0 09 00 71 08 00 E7 5E 1A 67 50 D1 6C 64 28 [14:51:18]GetLastDocTimeStamp 1729781310 [14:51:18]current date 1729781479 [14:51:18]FM_GetShiftState [14:51:18]SAM_PROTO_GetShiftState [14:51:18]wFMCommunicate request_size=4 [14:51:18]MH_SAM_APDU [14:51:18]CAPDU: 80 13 01 00 [14:51:18]Write to MH i2c: E2 08 00 72 08 80 13 01 00 00 00 00 00 F7 [14:51:18]Write i2c OK [14:51:18]MH_I2C_Read... [14:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:18]Read from MH i2c: E2 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 0E 00 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 0E 00 72 08 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 44 [14:51:18]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:51:18]wFMCommunicate OK [14:51:18]SAM_PROTO_GetShiftState done [14:51:18]FM_GetShiftState done [14:51:18]opened in 1729729836 [14:51:18]opened+sec_in_day 1729816236 [14:51:18]quantity*price = 100015 [14:51:18]sum+1 = 100017 [14:51:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 197 24.10.2024 14:51 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155572 ФПД: 178283723596717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145119&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155572&fm=178283723596717&tin=02508201610067®Number=0000000000091693&sum=100000 [14:51:19]StoreToDocumentArchive [14:51:19]shift 534 fd 155572 [14:51:19]save to /storage/0534/doc_00155572 [14:51:19]save last doc name /storage/0534/doc_00155572 to /storage/kkm_last_doc_name [14:51:19]save OK [14:51:19]Clear old archive folders... [14:51:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:51:19]tlvbuf is 01F566F0 [14:51:19]SAM_PROTO_ClearQueue [14:51:19]wFMCommunicate request_size=4 [14:51:19]MH_SAM_APDU [14:51:19]CAPDU: 80 09 00 00 [14:51:19]Write to MH i2c: E2 08 00 7F 08 80 09 00 00 00 00 00 00 F9 [14:51:19]Write i2c OK [14:51:19]MH_I2C_Read... [14:51:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:19]Read from MH i2c: E2 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: E2 03 00 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: E2 03 00 7F 08 00 90 00 FB [14:51:19]RAPDU: 90 00 [14:51:19]wFMCommunicate OK [14:51:19]SAM_PROTO_ClearQueue done [14:51:19]KKMCreateOFDPacket [14:51:19]OFDProtocolAddRootSTLVToBuf [14:51:19]FM_MakeSignedData [14:51:19]FM_MakeSignedData [14:51:19]SAM_PROTO_SignData [14:51:19]wFMCommunicate request_size=4 [14:51:19]MH_SAM_APDU [14:51:19]CAPDU: 80 0D 01 02 [14:51:19]Write to MH i2c: E2 08 00 80 08 80 0D 01 02 00 00 00 00 01 [14:51:19]Write i2c OK [14:51:19]MH_I2C_Read... [14:51:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:19]Read from MH i2c: E2 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: E2 03 00 [14:51:19]MH_I2C_Read... [14:51:19]Read from MH i2c: E2 03 00 80 08 00 90 00 FC [14:51:19]RAPDU: 90 00 [14:51:19]wFMCommunicate OK [14:51:19]wFMCommunicate request_size=255 [14:51:19]MH_SAM_APDU [14:51: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 E7 5E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 5F 02 00 35 04 06 00 A2 [14:51:19]Write to MH i2c: E2 02 01 81 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 E7 5E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 5F 02 00 35 04 06 00 A2 00 00 E9 [14:51:19]Write i2c OK [14:51:19]MH_I2C_Read... [14:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:20]Read from MH i2c: E2 [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: E2 03 00 [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: E2 03 00 81 08 00 90 00 FD [14:51:20]RAPDU: 90 00 [14:51:20]wFMCommunicate OK [14:51:20]wFMCommunicate request_size=10 [14:51:20]MH_SAM_APDU [14:51:20]CAPDU: 80 0D 02 02 05 25 EA 03 A3 AD [14:51:20]Write to MH i2c: E2 0D 00 82 08 80 0D 02 02 05 00 25 EA 03 A3 AD 00 00 70 [14:51:20]Write i2c OK [14:51:20]MH_I2C_Read... [14:51:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:20]Read from MH i2c: E2 [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: E2 03 00 [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: E2 03 00 82 08 00 90 00 FE [14:51:20]RAPDU: 90 00 [14:51:20]wFMCommunicate OK [14:51:20]wFMCommunicate request_size=4 [14:51:20]MH_SAM_APDU [14:51:20]CAPDU: 80 0D 03 02 [14:51:20]Write to MH i2c: E2 08 00 83 08 80 0D 03 02 00 00 00 00 06 [14:51:20]Write i2c OK [14:51:20]MH_I2C_Read... [14:51:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:20]Read from MH i2c: E2 [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: E2 0B 00 [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: E2 0B 00 83 08 00 EC 26 88 7F 72 31 68 DF 90 00 0A [14:51:20]RAPDU: EC 26 88 7F 72 31 68 DF 90 00 [14:51:20]wFMCommunicate OK [14:51:20]SAM_PROTO_SignData done [14:51:20]FM_MakeSignedData done [14:51:20]CreateOFDProtocolMessage [14:51:20]wFMCommunicate request_size=4 [14:51:20]MH_SAM_APDU [14:51:20]CAPDU: 80 11 00 00 [14:51:20]Write to MH i2c: E2 08 00 84 08 80 11 00 00 00 00 00 00 06 [14:51:20]Write i2c OK [14:51:20]MH_I2C_Read... [14:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:20]Read from MH i2c: E2 [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: E2 17 00 [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: E2 17 00 84 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5B [14:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:51:20]wFMCommunicate OK [14:51:20]CreateOFDProtocolMessage done [14:51:20]OFDSenderStorePacket 155572 [14:51:20]StoreOFDPacket docnum=155572 [14:51:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 26 00 07 01 D9 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 E7 5E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 5F 02 00 35 04 06 00 A2 25 EA 03 A3 AD EC 26 88 7F 72 31 68 DF [14:51:20]CheckFolder [14:51:20]dirname=/storage/ofd_packets [14:51:20]CheckFolder done [14:51:20]ProducePacketName [14:51:20]name=ofd_packets/00155572 [14:51:20]NVStorageSaveData ofd_packets/00155572 [14:51:20]File name is /storage/ofd_packets/00155572 [14:51:20]Write 301 bytes [14:51:20]NVStorageSaveData done [14:51:20]OFDSenderStorePacket done [14:51:20]KKMCreateOFDPacket done [14:51:20]NVStorageSaveData kkm_last_timestamp [14:51:20]File name is /storage/kkm_last_timestamp [14:51:20]Write 4 bytes [14:51:20]NVStorageSaveData done [14:51:20]ExternCall_PrintAddStr [14:51:20]wPrintStart [14:51:20]Write to MH i2c: 01 00 00 85 08 8D [14:51:20]Write i2c OK [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: 01 [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: 01 07 00 [14:51:20]MH_I2C_Read... [14:51:20]Read from MH i2c: 01 07 00 85 08 00 00 00 00 00 FF 0F A2 [14:51:20]RasterBufferAndPrint [14:51:20]line Счет N : (1)98376 [14:51:20]line ИНН: 02508201610067 [14:51:20]line Контрольно-Кассовый Чек [14:51:20]line ПРОДАЖА [14:51:20]line ТРК (МРК, ГНК) : 21 [14:51:20]line Товар: 2710124130 [14:51:20]line Аи-92-К-5 [14:51:20]line 14.950 * 66.90 [14:51:20]line = 1000.16 [14:51:20]line НДС 12% НСП 1% [14:51:20]line > о реализуемом товаре [14:51:20]line ОКРУГЛЕНИЕ: -0.16 [14:51:20]line ИТОГО: 1000.00 [14:51:20]line Внесено: 1000.00 [14:51:20]line СДАЧА: 0.00 [14:51:20]line НСП 1% : 8.85 [14:51:20]line НДС 12% : 106.21 [14:51:20]line Наличными: 1000.00 [14:51:20]line Безнал.: 0.00 [14:51:20]line Место: АЗС № 143 "Партнер Нефть" [14:51:20]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:51:20]line СНО: Общий режим [14:51:20]line Чек 197 24.10.2024 14:51 [14:51:20]line Смена: 534 ФФД: 1.0 [14:51:20]line ЗНМ: 0300000096 [14:51:20]line РНМ: 0000000000091693 [14:51:20]line Версия ККМ: 001 [14:51:20]line ФМ: 0000000000871792 [14:51:20]line ФД: 155572 [14:51:20]line ФПД: 178283723596717 [14:51:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145119&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155572&fm=178283723596717&tin=02508201610067®Number=0000000000091693&sum=100000 [14:51:20]OFD Sender: Processing packet 155572 [packets to send 31, broken 30] [14:51:20]ProducePacketName [14:51:20]name=ofd_packets/00155572 [14:51:20]OFD Sender: To server: pG, [14:51:20]CommunicateWithHost lk.salyk.kg:30040 [14:51:20]ConnectInit lk.salyk.kg [14:51:20]written 0, free lines is 4095 [14:51:20]Connected sock=10 [14:51:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 26 00 07 01 D9 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 E7 5E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 5F 02 00 35 04 06 00 A2 25 EA 03 A3 AD EC 26 88 7F 72 31 68 DF [14:51: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 39 32 4F 00 00 00 68 14 47 00 AF 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 39 32 10 04 04 00 B4 5F 02 00 F4 03 04 00 5F 04 1A 67 B6 04 01 00 00 44 F0 59 98 75 D9 58 67 [14:51:21]CommunicateWithHost err = 0 [14:51:21]CheckOFDResponse [14:51:21]1017 (14) - 77093643461234 [14:51:21]1041 (16) - 0000000000871792 [14:51:21]1040 (4) - 155572 [14:51:21]1012 (4) - 24.10.2024 08:25 [14:51:21]1206 (1) - 0 [14:51:21]OFD Sender: Remove packet 155572 [14:51:21]ProducePacketName [14:51:21]name=ofd_packets/00155572 [14:51:21]NVStorageDeleteData [14:51:21]Write to MH i2c: 01 00 00 B0 08 B8 [14:51:21]Write i2c OK [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: 01 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: 01 07 00 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: 01 07 00 B0 08 00 00 00 00 00 F8 0C C3 [14:51:21]RasterBufferAndPrint [14:51:21]line [14:51:21]line [14:51:21]line [14:51:21]line [14:51:21]line [14:51:21]written 0, free lines is 3326 [14:51:21]process_action close_receipt done [14:51:21]requested_data is exist [14:51:21]produce_requested_data [14:51:21]requested_item fm.sn is exist - process it [14:51:21]wFMCommunicate request_size=4 [14:51:21]MH_SAM_APDU [14:51:21]CAPDU: 80 11 00 00 [14:51:21]Write to MH i2c: E2 08 00 B7 08 80 11 00 00 00 00 00 00 39 [14:51:21]Write i2c OK [14:51:21]MH_I2C_Read... [14:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:21]Read from MH i2c: E2 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 17 00 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 17 00 B7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8E [14:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:51:21]wFMCommunicate OK [14:51:21]requested_item fd.num is exist - process it [14:51:21]SAM_PROTO_GetFieldsCounters [14:51:21]wFMCommunicate request_size=4 [14:51:21]MH_SAM_APDU [14:51:21]CAPDU: 80 13 00 00 [14:51:21]Write to MH i2c: E2 08 00 B8 08 80 13 00 00 00 00 00 00 3C [14:51:21]Write i2c OK [14:51:21]MH_I2C_Read... [14:51:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:21]Read from MH i2c: E2 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 62 00 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 62 00 B8 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B4 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [14:51:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B4 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:21]wFMCommunicate OK [14:51:21]SAM_PROTO_GetFieldsCounters done [14:51:21]requested_item shift.num is exist - process it [14:51:21]requested_item shift.opened is exist - process it [14:51:21]req_shift_opened [14:51:21]FM_GetShiftState [14:51:21]SAM_PROTO_GetShiftState [14:51:21]wFMCommunicate request_size=4 [14:51:21]MH_SAM_APDU [14:51:21]CAPDU: 80 13 01 00 [14:51:21]Write to MH i2c: E2 08 00 B9 08 80 13 01 00 00 00 00 00 3E [14:51:21]Write i2c OK [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 [14:51:21]MH_I2C_Read... [14:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:21]Read from MH i2c: E2 0E 00 [14:51:21]MH_I2C_Read... [14:51:21]Read from MH i2c: E2 0E 00 B9 08 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8B [14:51:21]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:51:21]wFMCommunicate OK [14:51:21]SAM_PROTO_GetShiftState done [14:51:21]FM_GetShiftState done [14:51:21]req_shift_opened done [14:51:21]requested_item shift.open_date is exist - process it [14:51:21]req_shift_open_date [14:51:21]req_shift_open_date done [14:51:21]produce_requested_data done [14:51:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155572,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:51:21]process_action_free close_receipt [14:51:21]json_value_free [14:51:21]json_value_free done [14:51:21]process_json_proto returns [14:51:21]Send response to host [14:51:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155572,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:51:21]free response buf [14:51:21]execute_script done [14:51:21]execute_script returns [14:51:21]free content buf [14:51:21]Sock 8.Close socket [14:51:21]Sock 8.Thread stoped [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:32]accept exits with 9 [14:53:32]New connection [14:53:32]New thread 3066781028 created [14:53:32]Thread 3066637668 joined [14:53:32]Waiting for new connection... [14:53:32] Sock 9.Parse request [14:53:32]Sock 9.Check first char [14:53:32]Sock 9.First char is OK [14:53:32]request: POST /json_proto HTTP/1.0 [14:53:32]Method: POST [14:53:32]URL: /json_proto [14:53:32]Method is POST - this is cgi request [14:53:32]url: /json_proto [14:53:32]query_string will be loaded in cgi processing [14:53:32]execute_cgi json_proto POST (null) [14:53:32]execute_cgi path=json_proto method=POST [14:53:32]POST find Content-Length [14:53:32]Host: 172.17.63.3:8080 [14:53:32]Content-Length: 676 [14:53:32]Content-Type: application/json [14:53:32] [14:53:32]POST finish read [14:53:32]Found Content-Length = 676 [14:53:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:32]execute_script... [14:53:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:32]POST & json_proto [14:53:32]process_json_proto [14:53:32]json parsed OK: [14:53:32]protocol is kg_v1.0 [14:53:32]action value=close_receipt [14:53:32]process_action close_receipt [14:53:32]cmd_close_receipt [14:53:32]MH_GetDate [14:53:32]Write to MH i2c: F0 00 00 BA 08 B1 [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: F0 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: F0 09 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: F0 09 00 BA 08 00 6C 5F 1A 67 50 D1 6C 64 F7 [14:53:32]GetLastDocTimeStamp 1729781479 [14:53:32]current date 1729781612 [14:53:32]FM_GetShiftState [14:53:32]SAM_PROTO_GetShiftState [14:53:32]wFMCommunicate request_size=4 [14:53:32]MH_SAM_APDU [14:53:32]CAPDU: 80 13 01 00 [14:53:32]Write to MH i2c: E2 08 00 BB 08 80 13 01 00 00 00 00 00 40 [14:53:32]Write i2c OK [14:53:32]MH_I2C_Read... [14:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:32]Read from MH i2c: E2 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 0E 00 [14:53:32]MH_I2C_Read... [14:53:32]Read from MH i2c: E2 0E 00 BB 08 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8D [14:53:32]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:53:32]wFMCommunicate OK [14:53:32]SAM_PROTO_GetShiftState done [14:53:32]FM_GetShiftState done [14:53:32]opened in 1729729836 [14:53:32]opened+sec_in_day 1729816236 [14:53:32]quantity*price = 60009 [14:53:32]sum+1 = 60010 [14:53:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 198 24.10.2024 14:53 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155573 ФПД: 120042370238773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145332&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155573&fm=120042370238773&tin=02508201610067®Number=0000000000091693&sum=60000 [14:53:33]StoreToDocumentArchive [14:53:33]shift 534 fd 155573 [14:53:33]save to /storage/0534/doc_00155573 [14:53:33]save last doc name /storage/0534/doc_00155573 to /storage/kkm_last_doc_name [14:53:33]save OK [14:53:33]Clear old archive folders... [14:53:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:33]tlvbuf is 01F21350 [14:53:33]SAM_PROTO_ClearQueue [14:53:33]wFMCommunicate request_size=4 [14:53:33]MH_SAM_APDU [14:53:33]CAPDU: 80 09 00 00 [14:53:33]Write to MH i2c: E2 08 00 C8 08 80 09 00 00 00 00 00 00 42 [14:53:33]Write i2c OK [14:53:33]MH_I2C_Read... [14:53:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:33]Read from MH i2c: E2 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: E2 03 00 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: E2 03 00 C8 08 00 90 00 44 [14:53:33]RAPDU: 90 00 [14:53:33]wFMCommunicate OK [14:53:33]SAM_PROTO_ClearQueue done [14:53:33]KKMCreateOFDPacket [14:53:33]OFDProtocolAddRootSTLVToBuf [14:53:33]FM_MakeSignedData [14:53:33]FM_MakeSignedData [14:53:33]SAM_PROTO_SignData [14:53:33]wFMCommunicate request_size=4 [14:53:33]MH_SAM_APDU [14:53:33]CAPDU: 80 0D 01 02 [14:53:33]Write to MH i2c: E2 08 00 C9 08 80 0D 01 02 00 00 00 00 4A [14:53:33]Write i2c OK [14:53:33]MH_I2C_Read... [14:53:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:33]Read from MH i2c: E2 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: E2 03 00 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: E2 03 00 C9 08 00 90 00 45 [14:53:33]RAPDU: 90 00 [14:53:33]wFMCommunicate OK [14:53:33]wFMCommunicate request_size=255 [14:53:33]MH_SAM_APDU [14:53:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 6C 5F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 5F 02 00 35 04 06 00 6D [14:53:33]Write to MH i2c: E2 02 01 CA 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 6C 5F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 5F 02 00 35 04 06 00 6D 00 00 68 [14:53:33]Write i2c OK [14:53:33]MH_I2C_Read... [14:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:33]Read from MH i2c: E2 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: E2 03 00 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: E2 03 00 CA 08 00 90 00 46 [14:53:33]RAPDU: 90 00 [14:53:33]wFMCommunicate OK [14:53:33]wFMCommunicate request_size=10 [14:53:33]MH_SAM_APDU [14:53:33]CAPDU: 80 0D 02 02 05 2D 8A D6 09 35 [14:53:33]Write to MH i2c: E2 0D 00 CB 08 80 0D 02 02 05 00 2D 8A D6 09 35 00 00 22 [14:53:33]Write i2c OK [14:53:33]MH_I2C_Read... [14:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:33]Read from MH i2c: E2 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: E2 03 00 [14:53:33]MH_I2C_Read... [14:53:33]Read from MH i2c: E2 03 00 CB 08 00 90 00 47 [14:53:33]RAPDU: 90 00 [14:53:33]wFMCommunicate OK [14:53:33]wFMCommunicate request_size=4 [14:53:33]MH_SAM_APDU [14:53:33]CAPDU: 80 0D 03 02 [14:53:33]Write to MH i2c: E2 08 00 CC 08 80 0D 03 02 00 00 00 00 4F [14:53:33]Write i2c OK [14:53:33]MH_I2C_Read... [14:53:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:34]Read from MH i2c: E2 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: E2 0B 00 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: E2 0B 00 CC 08 00 51 D6 3E 85 7D 32 D0 50 90 00 09 [14:53:34]RAPDU: 51 D6 3E 85 7D 32 D0 50 90 00 [14:53:34]wFMCommunicate OK [14:53:34]SAM_PROTO_SignData done [14:53:34]FM_MakeSignedData done [14:53:34]CreateOFDProtocolMessage [14:53:34]wFMCommunicate request_size=4 [14:53:34]MH_SAM_APDU [14:53:34]CAPDU: 80 11 00 00 [14:53:34]Write to MH i2c: E2 08 00 CD 08 80 11 00 00 00 00 00 00 4F [14:53:34]Write i2c OK [14:53:34]MH_I2C_Read... [14:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:34]Read from MH i2c: E2 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: E2 17 00 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: E2 17 00 CD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A4 [14:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:53:34]wFMCommunicate OK [14:53:34]CreateOFDProtocolMessage done [14:53:34]OFDSenderStorePacket 155573 [14:53:34]StoreOFDPacket docnum=155573 [14:53:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C0 D0 07 01 6B 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 6C 5F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 5F 02 00 35 04 06 00 6D 2D 8A D6 09 35 51 D6 3E 85 7D 32 D0 50 [14:53:34]CheckFolder [14:53:34]dirname=/storage/ofd_packets [14:53:34]CheckFolder done [14:53:34]ProducePacketName [14:53:34]name=ofd_packets/00155573 [14:53:34]NVStorageSaveData ofd_packets/00155573 [14:53:34]File name is /storage/ofd_packets/00155573 [14:53:34]Write 301 bytes [14:53:34]NVStorageSaveData done [14:53:34]OFDSenderStorePacket done [14:53:34]KKMCreateOFDPacket done [14:53:34]NVStorageSaveData kkm_last_timestamp [14:53:34]File name is /storage/kkm_last_timestamp [14:53:34]Write 4 bytes [14:53:34]NVStorageSaveData done [14:53:34]ExternCall_PrintAddStr [14:53:34]wPrintStart [14:53:34]Write to MH i2c: 01 00 00 CE 08 D6 [14:53:34]Write i2c OK [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: 01 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: 01 07 00 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: 01 07 00 CE 08 00 00 00 00 00 FF 0F EB [14:53:34]RasterBufferAndPrint [14:53:34]line Счет N : (1)98377 [14:53:34]line ИНН: 02508201610067 [14:53:34]line Контрольно-Кассовый Чек [14:53:34]line ПРОДАЖА [14:53:34]line ТРК (МРК, ГНК) : 21 [14:53:34]line Товар: 2710124130 [14:53:34]line Аи-92-К-5 [14:53:34]line 8.970 * 66.90 [14:53:34]line = 600.09 [14:53:34]line НДС 12% НСП 1% [14:53:34]line > о реализуемом товаре [14:53:34]line ОКРУГЛЕНИЕ: -0.09 [14:53:34]line ИТОГО: 600.00 [14:53:34]line Внесено: 600.00 [14:53:34]line СДАЧА: 0.00 [14:53:34]line НСП 1% : 5.31 [14:53:34]line НДС 12% : 63.73 [14:53:34]line Наличными: 600.00 [14:53:34]line Безнал.: 0.00 [14:53:34]line Место: АЗС № 143 "Партнер Нефть" [14:53:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:53:34]line СНО: Общий режим [14:53:34]line Чек 198 24.10.2024 14:53 [14:53:34]line Смена: 534 ФФД: 1.0 [14:53:34]line ЗНМ: 0300000096 [14:53:34]line РНМ: 0000000000091693 [14:53:34]line Версия ККМ: 001 [14:53:34]line ФМ: 0000000000871792 [14:53:34]line ФД: 155573 [14:53:34]line ФПД: 120042370238773 [14:53:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145332&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155573&fm=120042370238773&tin=02508201610067®Number=0000000000091693&sum=60000 [14:53:34]OFD Sender: Processing packet 155573 [packets to send 31, broken 30] [14:53:34]ProducePacketName [14:53:34]name=ofd_packets/00155573 [14:53:34]OFD Sender: To server: pG, [14:53:34]CommunicateWithHost lk.salyk.kg:30040 [14:53:34]ConnectInit lk.salyk.kg [14:53:34]written 0, free lines is 4095 [14:53:34]Connected sock=10 [14:53:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C0 D0 07 01 6B 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 6C 5F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 5F 02 00 35 04 06 00 6D 2D 8A D6 09 35 51 D6 3E 85 7D 32 D0 50 [14:53:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 83 2E 47 00 58 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 39 32 10 04 04 00 B5 5F 02 00 F4 03 04 00 E5 04 1A 67 B6 04 01 00 00 98 76 0D 6F 88 CB 1D BE [14:53:34]CommunicateWithHost err = 0 [14:53:34]CheckOFDResponse [14:53:34]1017 (14) - 77093643461234 [14:53:34]1041 (16) - 0000000000871792 [14:53:34]1040 (4) - 155573 [14:53:34]1012 (4) - 24.10.2024 08:27 [14:53:34]1206 (1) - 0 [14:53:34]OFD Sender: Remove packet 155573 [14:53:34]ProducePacketName [14:53:34]name=ofd_packets/00155573 [14:53:34]NVStorageDeleteData [14:53:34]Write to MH i2c: 01 00 00 F9 08 01 [14:53:34]Write i2c OK [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: 01 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: 01 07 00 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: 01 07 00 F9 08 00 00 00 00 00 E5 0C F9 [14:53:34]RasterBufferAndPrint [14:53:34]line [14:53:34]line [14:53:34]line [14:53:34]line [14:53:34]line [14:53:34]written 0, free lines is 3307 [14:53:34]process_action close_receipt done [14:53:34]requested_data is exist [14:53:34]produce_requested_data [14:53:34]requested_item fm.sn is exist - process it [14:53:34]wFMCommunicate request_size=4 [14:53:34]MH_SAM_APDU [14:53:34]CAPDU: 80 11 00 00 [14:53:34]Write to MH i2c: E2 08 00 00 09 80 11 00 00 00 00 00 00 83 [14:53:34]Write i2c OK [14:53:34]MH_I2C_Read... [14:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:34]Read from MH i2c: E2 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: E2 17 00 [14:53:34]MH_I2C_Read... [14:53:34]Read from MH i2c: E2 17 00 00 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D8 [14:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:53:34]wFMCommunicate OK [14:53:34]requested_item fd.num is exist - process it [14:53:34]SAM_PROTO_GetFieldsCounters [14:53:34]wFMCommunicate request_size=4 [14:53:34]MH_SAM_APDU [14:53:34]CAPDU: 80 13 00 00 [14:53:34]Write to MH i2c: E2 08 00 01 09 80 13 00 00 00 00 00 00 86 [14:53:34]Write i2c OK [14:53:34]MH_I2C_Read... [14:53:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:35]Read from MH i2c: E2 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 62 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 62 00 01 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B5 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [14:53: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B5 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:35]wFMCommunicate OK [14:53:35]SAM_PROTO_GetFieldsCounters done [14:53:35]requested_item shift.num is exist - process it [14:53:35]requested_item shift.opened is exist - process it [14:53:35]req_shift_opened [14:53:35]FM_GetShiftState [14:53:35]SAM_PROTO_GetShiftState [14:53:35]wFMCommunicate request_size=4 [14:53:35]MH_SAM_APDU [14:53:35]CAPDU: 80 13 01 00 [14:53:35]Write to MH i2c: E2 08 00 02 09 80 13 01 00 00 00 00 00 88 [14:53:35]Write i2c OK [14:53:35]MH_I2C_Read... [14:53:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:35]Read from MH i2c: E2 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 0E 00 [14:53:35]MH_I2C_Read... [14:53:35]Read from MH i2c: E2 0E 00 02 09 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D5 [14:53:35]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:53:35]wFMCommunicate OK [14:53:35]SAM_PROTO_GetShiftState done [14:53:35]FM_GetShiftState done [14:53:35]req_shift_opened done [14:53:35]requested_item shift.open_date is exist - process it [14:53:35]req_shift_open_date [14:53:35]req_shift_open_date done [14:53:35]produce_requested_data done [14:53:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155573,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:53:35]process_action_free close_receipt [14:53:35]json_value_free [14:53:35]json_value_free done [14:53:35]process_json_proto returns [14:53:35]Send response to host [14:53:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155573,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:53:35]free response buf [14:53:35]execute_script done [14:53:35]execute_script returns [14:53:35]free content buf [14:53:35]Sock 9.Close socket [14:53:35]Sock 9.Thread stoped [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:55:56]accept exits with 8 [14:55:56]New connection [14:55:56]New thread 3066637668 created [14:55:56]Thread 3066781028 joined [14:55:56]Waiting for new connection... [14:55:56] Sock 8.Parse request [14:55:56]Sock 8.Check first char [14:55:56]Sock 8.First char is OK [14:55:56]request: POST /json_proto HTTP/1.0 [14:55:56]Method: POST [14:55:56]URL: /json_proto [14:55:56]Method is POST - this is cgi request [14:55:56]url: /json_proto [14:55:56]query_string will be loaded in cgi processing [14:55:56]execute_cgi json_proto POST (null) [14:55:56]execute_cgi path=json_proto method=POST [14:55:56]POST find Content-Length [14:55:56]Host: 172.17.63.3:8080 [14:55:56]Content-Length: 676 [14:55:56]Content-Type: application/json [14:55:56] [14:55:56]POST finish read [14:55:56]Found Content-Length = 676 [14:55:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:56]execute_script... [14: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)98378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:56]POST & json_proto [14:55:56]process_json_proto [14:55:56]json parsed OK: [14:55:56]protocol is kg_v1.0 [14:55:56]action value=close_receipt [14:55:56]process_action close_receipt [14:55:56]cmd_close_receipt [14:55:56]MH_GetDate [14:55:56]Write to MH i2c: F0 00 00 03 09 FB [14:55:56]Write i2c OK [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: F0 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: F0 09 00 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: F0 09 00 03 09 00 FC 5F 1A 67 50 D1 6C 64 D1 [14:55:56]GetLastDocTimeStamp 1729781612 [14:55:56]current date 1729781756 [14:55:56]FM_GetShiftState [14:55:56]SAM_PROTO_GetShiftState [14:55:56]wFMCommunicate request_size=4 [14:55:56]MH_SAM_APDU [14:55:56]CAPDU: 80 13 01 00 [14:55:56]Write to MH i2c: E2 08 00 04 09 80 13 01 00 00 00 00 00 8A [14:55:56]Write i2c OK [14:55:56]MH_I2C_Read... [14:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:56]Read from MH i2c: E2 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 0E 00 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 0E 00 04 09 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D7 [14:55:56]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:55:56]wFMCommunicate OK [14:55:56]SAM_PROTO_GetShiftState done [14:55:56]FM_GetShiftState done [14:55:56]opened in 1729729836 [14:55:56]opened+sec_in_day 1729816236 [14:55:56]quantity*price = 50041 [14:55:56]sum+1 = 50042 [14:55:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 199 24.10.2024 14:55 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155574 ФПД: 173235937636033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145556&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155574&fm=173235937636033&tin=02508201610067®Number=0000000000091693&sum=50000 [14:55:57]StoreToDocumentArchive [14:55:57]shift 534 fd 155574 [14:55:57]save to /storage/0534/doc_00155574 [14:55:57]save last doc name /storage/0534/doc_00155574 to /storage/kkm_last_doc_name [14:55:57]save OK [14:55:57]Clear old archive folders... [14:55:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:57]tlvbuf is 01F51920 [14:55:57]SAM_PROTO_ClearQueue [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 09 00 00 [14:55:57]Write to MH i2c: E2 08 00 11 09 80 09 00 00 00 00 00 00 8C [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 11 09 00 90 00 8E [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]SAM_PROTO_ClearQueue done [14:55:57]KKMCreateOFDPacket [14:55:57]OFDProtocolAddRootSTLVToBuf [14:55:57]FM_MakeSignedData [14:55:57]FM_MakeSignedData [14:55:57]SAM_PROTO_SignData [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 0D 01 02 [14:55:57]Write to MH i2c: E2 08 00 12 09 80 0D 01 02 00 00 00 00 94 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 12 09 00 90 00 8F [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]wFMCommunicate request_size=255 [14:55:57]MH_SAM_APDU [14: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 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 FC 5F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 5F 02 00 35 04 06 00 9D [14:55:57]Write to MH i2c: E2 02 01 13 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 FC 5F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 5F 02 00 35 04 06 00 9D 00 00 97 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 13 09 00 90 00 90 [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]wFMCommunicate request_size=10 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 0D 02 02 05 8E A2 86 6E C1 [14:55:57]Write to MH i2c: E2 0D 00 14 09 80 0D 02 02 05 00 8E A2 86 6E C1 00 00 86 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 03 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 03 00 14 09 00 90 00 91 [14:55:58]RAPDU: 90 00 [14:55:58]wFMCommunicate OK [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 0D 03 02 [14:55:58]Write to MH i2c: E2 08 00 15 09 80 0D 03 02 00 00 00 00 99 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 0B 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 0B 00 15 09 00 45 7A E7 E8 4C C2 82 21 90 00 D9 [14:55:58]RAPDU: 45 7A E7 E8 4C C2 82 21 90 00 [14:55:58]wFMCommunicate OK [14:55:58]SAM_PROTO_SignData done [14:55:58]FM_MakeSignedData done [14:55:58]CreateOFDProtocolMessage [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 11 00 00 [14:55:58]Write to MH i2c: E2 08 00 16 09 80 11 00 00 00 00 00 00 99 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 17 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 17 00 16 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EE [14:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:55:58]wFMCommunicate OK [14:55:58]CreateOFDProtocolMessage done [14:55:58]OFDSenderStorePacket 155574 [14:55:58]StoreOFDPacket docnum=155574 [14:55:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F9 B9 07 01 EE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 FC 5F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 5F 02 00 35 04 06 00 9D 8E A2 86 6E C1 45 7A E7 E8 4C C2 82 21 [14:55:58]CheckFolder [14:55:58]dirname=/storage/ofd_packets [14:55:58]CheckFolder done [14:55:58]ProducePacketName [14:55:58]name=ofd_packets/00155574 [14:55:58]NVStorageSaveData ofd_packets/00155574 [14:55:58]File name is /storage/ofd_packets/00155574 [14:55:58]Write 301 bytes [14:55:58]NVStorageSaveData done [14:55:58]OFDSenderStorePacket done [14:55:58]KKMCreateOFDPacket done [14:55:58]NVStorageSaveData kkm_last_timestamp [14:55:58]File name is /storage/kkm_last_timestamp [14:55:58]Write 4 bytes [14:55:58]NVStorageSaveData done [14:55:58]ExternCall_PrintAddStr [14:55:58]wPrintStart [14:55:58]Write to MH i2c: 01 00 00 17 09 20 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 17 09 00 00 00 00 00 FF 0F 35 [14:55:58]RasterBufferAndPrint [14:55:58]line Счет N : (1)98378 [14:55:58]line ИНН: 02508201610067 [14:55:58]line Контрольно-Кассовый Чек [14:55:58]line ПРОДАЖА [14:55:58]line ТРК (МРК, ГНК) : 11 [14:55:58]line Товар: 2710124130 [14:55:58]line Аи-92-К-5 [14:55:58]line 7.480 * 66.90 [14:55:58]line = 500.41 [14:55:58]line НДС 12% НСП 1% [14:55:58]line > о реализуемом товаре [14:55:58]line ОКРУГЛЕНИЕ: -0.41 [14:55:58]line ИТОГО: 500.00 [14:55:58]line Внесено: 500.00 [14:55:58]line СДАЧА: 0.00 [14:55:58]line НСП 1% : 4.43 [14:55:58]line НДС 12% : 53.14 [14:55:58]line Наличными: 500.00 [14:55:58]line Безнал.: 0.00 [14:55:58]line Место: АЗС № 143 "Партнер Нефть" [14:55:58]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:55:58]line СНО: Общий режим [14:55:58]line Чек 199 24.10.2024 14:55 [14:55:58]line Смена: 534 ФФД: 1.0 [14:55:58]line ЗНМ: 0300000096 [14:55:58]line РНМ: 0000000000091693 [14:55:58]line Версия ККМ: 001 [14:55:58]line ФМ: 0000000000871792 [14:55:58]line ФД: 155574 [14:55:58]line ФПД: 173235937636033 [14:55:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145556&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155574&fm=173235937636033&tin=02508201610067®Number=0000000000091693&sum=50000 [14:55:58]OFD Sender: Processing packet 155574 [packets to send 31, broken 30] [14:55:58]ProducePacketName [14:55:58]name=ofd_packets/00155574 [14:55:58]OFD Sender: To server: pG, [14:55:58]CommunicateWithHost lk.salyk.kg:30040 [14:55:58]ConnectInit lk.salyk.kg [14:55:58]written 0, free lines is 4095 [14:55:58]Connected sock=11 [14: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 39 32 0F 01 00 00 F9 B9 07 01 EE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 FC 5F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 5F 02 00 35 04 06 00 9D 8E A2 86 6E C1 45 7A E7 E8 4C C2 82 21 [14:55: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 39 32 4F 00 00 00 13 09 47 00 10 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 39 32 10 04 04 00 B6 5F 02 00 F4 03 04 00 75 05 1A 67 B6 04 01 00 00 6C 58 FB 61 A0 85 77 E9 [14:55:58]CommunicateWithHost err = 0 [14:55:58]CheckOFDResponse [14:55:58]1017 (14) - 77093643461234 [14:55:58]1041 (16) - 0000000000871792 [14:55:58]1040 (4) - 155574 [14:55:58]1012 (4) - 24.10.2024 08:29 [14:55:58]1206 (1) - 0 [14:55:58]OFD Sender: Remove packet 155574 [14:55:58]ProducePacketName [14:55:58]name=ofd_packets/00155574 [14:55:58]NVStorageDeleteData [14:55:58]Write to MH i2c: 01 00 00 42 09 4B [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 42 09 00 00 00 00 00 DC 0C 3A [14:55:58]RasterBufferAndPrint [14:55:58]line [14:55:58]line [14:55:58]line [14:55:58]line [14:55:58]line [14:55:58]written 0, free lines is 3298 [14:55:58]process_action close_receipt done [14:55:58]requested_data is exist [14:55:58]produce_requested_data [14:55:58]requested_item fm.sn is exist - process it [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 11 00 00 [14:55:58]Write to MH i2c: E2 08 00 49 09 80 11 00 00 00 00 00 00 CC [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:59]Read from MH i2c: E2 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 17 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 17 00 49 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 21 [14:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:55:59]wFMCommunicate OK [14:55:59]requested_item fd.num is exist - process it [14:55:59]SAM_PROTO_GetFieldsCounters [14:55:59]wFMCommunicate request_size=4 [14:55:59]MH_SAM_APDU [14:55:59]CAPDU: 80 13 00 00 [14:55:59]Write to MH i2c: E2 08 00 4A 09 80 13 00 00 00 00 00 00 CF [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:59]Read from MH i2c: E2 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 62 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 62 00 4A 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B6 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [14:55: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B6 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:59]wFMCommunicate OK [14:55:59]SAM_PROTO_GetFieldsCounters done [14:55:59]requested_item shift.num is exist - process it [14:55:59]requested_item shift.opened is exist - process it [14:55:59]req_shift_opened [14:55:59]FM_GetShiftState [14:55:59]SAM_PROTO_GetShiftState [14:55:59]wFMCommunicate request_size=4 [14:55:59]MH_SAM_APDU [14:55:59]CAPDU: 80 13 01 00 [14:55:59]Write to MH i2c: E2 08 00 4B 09 80 13 01 00 00 00 00 00 D1 [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:59]Read from MH i2c: E2 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 0E 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 0E 00 4B 09 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1E [14:55:59]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:55:59]wFMCommunicate OK [14:55:59]SAM_PROTO_GetShiftState done [14:55:59]FM_GetShiftState done [14:55:59]req_shift_opened done [14:55:59]requested_item shift.open_date is exist - process it [14:55:59]req_shift_open_date [14:55:59]req_shift_open_date done [14:55:59]produce_requested_data done [14:55:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155574,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:55:59]process_action_free close_receipt [14:55:59]json_value_free [14:55:59]json_value_free done [14:55:59]process_json_proto returns [14:55:59]Send response to host [14:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155574,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:55:59]free response buf [14:55:59]execute_script done [14:55:59]execute_script returns [14:55:59]free content buf [14:55:59]Sock 8.Close socket [14:55:59]Sock 8.Thread stoped [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:11]accept exits with 9 [14:58:11]New connection [14:58:11]New thread 3066781028 created [14:58:11]Thread 3066637668 joined [14:58:11]Waiting for new connection... [14:58:11] Sock 9.Parse request [14:58:11]Sock 9.Check first char [14:58:11]Sock 9.First char is OK [14:58:11]request: POST /json_proto HTTP/1.0 [14:58:11]Method: POST [14:58:11]URL: /json_proto [14:58:11]Method is POST - this is cgi request [14:58:11]url: /json_proto [14:58:11]query_string will be loaded in cgi processing [14:58:11]execute_cgi json_proto POST (null) [14:58:11]execute_cgi path=json_proto method=POST [14:58:11]POST find Content-Length [14:58:11]Host: 172.17.63.3:8080 [14:58:11]Content-Length: 676 [14:58:11]Content-Type: application/json [14:58:11] [14:58:11]POST finish read [14:58:11]Found Content-Length = 676 [14:58:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "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" ] } } [14:58:11]execute_script... [14:58: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)98379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "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" ] } } [14:58:11]POST & json_proto [14:58:11]process_json_proto [14:58:11]json parsed OK: [14:58:11]protocol is kg_v1.0 [14:58:11]action value=close_receipt [14:58:11]process_action close_receipt [14:58:11]cmd_close_receipt [14:58:11]MH_GetDate [14:58:11]Write to MH i2c: F0 00 00 4C 09 44 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: F0 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: F0 09 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: F0 09 00 4C 09 00 83 60 1A 67 50 D1 6C 64 A2 [14:58:11]GetLastDocTimeStamp 1729781756 [14:58:11]current date 1729781891 [14:58:11]FM_GetShiftState [14:58:11]SAM_PROTO_GetShiftState [14:58:11]wFMCommunicate request_size=4 [14:58:11]MH_SAM_APDU [14:58:11]CAPDU: 80 13 01 00 [14:58:11]Write to MH i2c: E2 08 00 4D 09 80 13 01 00 00 00 00 00 D3 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:11]Read from MH i2c: E2 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 0E 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 0E 00 4D 09 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 20 [14:58:11]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:58:11]wFMCommunicate OK [14:58:11]SAM_PROTO_GetShiftState done [14:58:11]FM_GetShiftState done [14:58:11]opened in 1729729836 [14:58:11]opened+sec_in_day 1729816236 [14:58:11]quantity*price = 15052 [14:58:11]sum+1 = 15054 [14:58:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 200 24.10.2024 14:58 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155575 ФПД: 76655509180443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145811&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155575&fm=76655509180443&tin=02508201610067®Number=0000000000091693&sum=15000 [14:58:12]StoreToDocumentArchive [14:58:12]shift 534 fd 155575 [14:58:12]save to /storage/0534/doc_00155575 [14:58:12]save last doc name /storage/0534/doc_00155575 to /storage/kkm_last_doc_name [14:58:12]save OK [14:58:12]Clear old archive folders... [14:58:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:12]tlvbuf is 01F52F70 [14:58:12]SAM_PROTO_ClearQueue [14:58:12]wFMCommunicate request_size=4 [14:58:12]MH_SAM_APDU [14:58:12]CAPDU: 80 09 00 00 [14:58:12]Write to MH i2c: E2 08 00 5A 09 80 09 00 00 00 00 00 00 D5 [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:12]Read from MH i2c: E2 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 03 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 03 00 5A 09 00 90 00 D7 [14:58:12]RAPDU: 90 00 [14:58:12]wFMCommunicate OK [14:58:12]SAM_PROTO_ClearQueue done [14:58:12]KKMCreateOFDPacket [14:58:12]OFDProtocolAddRootSTLVToBuf [14:58:12]FM_MakeSignedData [14:58:12]FM_MakeSignedData [14:58:12]SAM_PROTO_SignData [14:58:12]wFMCommunicate request_size=4 [14:58:12]MH_SAM_APDU [14:58:12]CAPDU: 80 0D 01 02 [14:58:12]Write to MH i2c: E2 08 00 5B 09 80 0D 01 02 00 00 00 00 DD [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:12]Read from MH i2c: E2 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 03 00 [14:58:12]MH_I2C_Read... [14:58:12]Read from MH i2c: E2 03 00 5B 09 00 90 00 D8 [14:58:12]RAPDU: 90 00 [14:58:12]wFMCommunicate OK [14:58:12]wFMCommunicate request_size=255 [14:58:12]MH_SAM_APDU [14:58:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 C8 00 00 00 F4 03 04 00 83 60 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 5F 02 00 35 04 06 00 45 [14:58:12]Write to MH i2c: E2 02 01 5C 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 C8 00 00 00 F4 03 04 00 83 60 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 5F 02 00 35 04 06 00 45 00 00 0F [14:58:12]Write i2c OK [14:58:12]MH_I2C_Read... [14:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:13]Read from MH i2c: E2 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 03 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 03 00 5C 09 00 90 00 D9 [14:58:13]RAPDU: 90 00 [14:58:13]wFMCommunicate OK [14:58:13]wFMCommunicate request_size=10 [14:58:13]MH_SAM_APDU [14:58:13]CAPDU: 80 0D 02 02 05 B7 C0 65 10 1B [14:58:13]Write to MH i2c: E2 0D 00 5D 09 80 0D 02 02 05 00 B7 C0 65 10 1B 00 00 F1 [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:13]Read from MH i2c: E2 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 03 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 03 00 5D 09 00 90 00 DA [14:58:13]RAPDU: 90 00 [14:58:13]wFMCommunicate OK [14:58:13]wFMCommunicate request_size=4 [14:58:13]MH_SAM_APDU [14:58:13]CAPDU: 80 0D 03 02 [14:58:13]Write to MH i2c: E2 08 00 5E 09 80 0D 03 02 00 00 00 00 E2 [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:13]Read from MH i2c: E2 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 0B 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 0B 00 5E 09 00 18 49 11 FF E3 3F D5 E9 90 00 34 [14:58:13]RAPDU: 18 49 11 FF E3 3F D5 E9 90 00 [14:58:13]wFMCommunicate OK [14:58:13]SAM_PROTO_SignData done [14:58:13]FM_MakeSignedData done [14:58:13]CreateOFDProtocolMessage [14:58:13]wFMCommunicate request_size=4 [14:58:13]MH_SAM_APDU [14:58:13]CAPDU: 80 11 00 00 [14:58:13]Write to MH i2c: E2 08 00 5F 09 80 11 00 00 00 00 00 00 E2 [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:13]Read from MH i2c: E2 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 17 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: E2 17 00 5F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 37 [14:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:58:13]wFMCommunicate OK [14:58:13]CreateOFDProtocolMessage done [14:58:13]OFDSenderStorePacket 155575 [14:58:13]StoreOFDPacket docnum=155575 [14:58:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 53 D9 07 01 5B CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 C8 00 00 00 F4 03 04 00 83 60 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 5F 02 00 35 04 06 00 45 B7 C0 65 10 1B 18 49 11 FF E3 3F D5 E9 [14:58:13]CheckFolder [14:58:13]dirname=/storage/ofd_packets [14:58:13]CheckFolder done [14:58:13]ProducePacketName [14:58:13]name=ofd_packets/00155575 [14:58:13]NVStorageSaveData ofd_packets/00155575 [14:58:13]File name is /storage/ofd_packets/00155575 [14:58:13]Write 301 bytes [14:58:13]NVStorageSaveData done [14:58:13]OFDSenderStorePacket done [14:58:13]KKMCreateOFDPacket done [14:58:13]NVStorageSaveData kkm_last_timestamp [14:58:13]File name is /storage/kkm_last_timestamp [14:58:13]Write 4 bytes [14:58:13]NVStorageSaveData done [14:58:13]ExternCall_PrintAddStr [14:58:13]wPrintStart [14:58:13]Write to MH i2c: 01 00 00 60 09 69 [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: 01 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: 01 07 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: 01 07 00 60 09 00 00 00 00 00 FF 0F 7E [14:58:13]RasterBufferAndPrint [14:58:13]line Счет N : (1)98379 [14:58:13]line ИНН: 02508201610067 [14:58:13]line Контрольно-Кассовый Чек [14:58:13]line ПРОДАЖА [14:58:13]line ТРК (МРК, ГНК) : 31 [14:58:13]line Товар: 2710124130 [14:58:13]line Аи-92-К-5 [14:58:13]line 2.250 * 66.90 [14:58:13]line = 150.53 [14:58:13]line НДС 12% НСП 1% [14:58:13]line > о реализуемом товаре [14:58:13]line ОКРУГЛЕНИЕ: -0.53 [14:58:13]line ИТОГО: 150.00 [14:58:13]line Внесено: 150.00 [14:58:13]line СДАЧА: 0.00 [14:58:13]line НСП 1% : 1.33 [14:58:13]line НДС 12% : 15.98 [14:58:13]line Наличными: 150.00 [14:58:13]line Безнал.: 0.00 [14:58:13]line Место: АЗС № 143 "Партнер Нефть" [14:58:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:58:13]line СНО: Общий режим [14:58:13]line Чек 200 24.10.2024 14:58 [14:58:13]line Смена: 534 ФФД: 1.0 [14:58:13]line ЗНМ: 0300000096 [14:58:13]line РНМ: 0000000000091693 [14:58:13]line Версия ККМ: 001 [14:58:13]line ФМ: 0000000000871792 [14:58:13]line ФД: 155575 [14:58:13]line ФПД: 76655509180443 [14:58:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145811&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155575&fm=76655509180443&tin=02508201610067®Number=0000000000091693&sum=15000 [14:58:13]OFD Sender: Processing packet 155575 [packets to send 31, broken 30] [14:58:13]ProducePacketName [14:58:13]name=ofd_packets/00155575 [14:58:13]OFD Sender: To server: pG, [14:58:13]CommunicateWithHost lk.salyk.kg:30040 [14:58:13]ConnectInit lk.salyk.kg [14:58:13]written 0, free lines is 4095 [14:58:13]Connected sock=8 [14:58:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 53 D9 07 01 5B CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 C8 00 00 00 F4 03 04 00 83 60 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 5F 02 00 35 04 06 00 45 B7 C0 65 10 1B 18 49 11 FF E3 3F D5 E9 [14:58:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 16 9A 47 00 4A 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 39 32 10 04 04 00 B7 5F 02 00 F4 03 04 00 FC 05 1A 67 B6 04 01 00 00 1A C6 77 E7 0B 26 C2 BE [14:58:13]CommunicateWithHost err = 0 [14:58:13]CheckOFDResponse [14:58:13]1017 (14) - 77093643461234 [14:58:13]1041 (16) - 0000000000871792 [14:58:13]1040 (4) - 155575 [14:58:13]1012 (4) - 24.10.2024 08:31 [14:58:13]1206 (1) - 0 [14:58:13]OFD Sender: Remove packet 155575 [14:58:13]ProducePacketName [14:58:13]name=ofd_packets/00155575 [14:58:13]NVStorageDeleteData [14:58:13]Write to MH i2c: 01 00 00 8B 09 94 [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: 01 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: 01 07 00 [14:58:13]MH_I2C_Read... [14:58:13]Read from MH i2c: 01 07 00 8B 09 00 00 00 00 00 E6 0C 8D [14:58:13]RasterBufferAndPrint [14:58:13]line [14:58:13]line [14:58:13]line [14:58:13]line [14:58:13]line [14:58:13]written 0, free lines is 3308 [14:58:13]process_action close_receipt done [14:58:13]requested_data is exist [14:58:13]produce_requested_data [14:58:13]requested_item fm.sn is exist - process it [14:58:13]wFMCommunicate request_size=4 [14:58:13]MH_SAM_APDU [14:58:13]CAPDU: 80 11 00 00 [14:58:13]Write to MH i2c: E2 08 00 92 09 80 11 00 00 00 00 00 00 15 [14:58:13]Write i2c OK [14:58:13]MH_I2C_Read... [14:58:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:14]Read from MH i2c: E2 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 17 00 [14:58:14]MH_I2C_Read... [14:58:14]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 39 32 90 00 6A [14:58:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:58:14]wFMCommunicate OK [14:58:14]requested_item fd.num is exist - process it [14:58:14]SAM_PROTO_GetFieldsCounters [14:58:14]wFMCommunicate request_size=4 [14:58:14]MH_SAM_APDU [14:58:14]CAPDU: 80 13 00 00 [14:58:14]Write to MH i2c: E2 08 00 93 09 80 13 00 00 00 00 00 00 18 [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:14]Read from MH i2c: E2 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 62 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 62 00 93 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B7 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [14:58: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B7 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:14]wFMCommunicate OK [14:58:14]SAM_PROTO_GetFieldsCounters done [14:58:14]requested_item shift.num is exist - process it [14:58:14]requested_item shift.opened is exist - process it [14:58:14]req_shift_opened [14:58:14]FM_GetShiftState [14:58:14]SAM_PROTO_GetShiftState [14:58:14]wFMCommunicate request_size=4 [14:58:14]MH_SAM_APDU [14:58:14]CAPDU: 80 13 01 00 [14:58:14]Write to MH i2c: E2 08 00 94 09 80 13 01 00 00 00 00 00 1A [14:58:14]Write i2c OK [14:58:14]MH_I2C_Read... [14:58:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:14]Read from MH i2c: E2 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 0E 00 [14:58:14]MH_I2C_Read... [14:58:14]Read from MH i2c: E2 0E 00 94 09 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 67 [14:58:14]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:58:14]wFMCommunicate OK [14:58:14]SAM_PROTO_GetShiftState done [14:58:14]FM_GetShiftState done [14:58:14]req_shift_opened done [14:58:14]requested_item shift.open_date is exist - process it [14:58:14]req_shift_open_date [14:58:14]req_shift_open_date done [14:58:14]produce_requested_data done [14:58:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155575,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:58:14]process_action_free close_receipt [14:58:14]json_value_free [14:58:14]json_value_free done [14:58:14]process_json_proto returns [14:58:14]Send response to host [14:58:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155575,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:58:14]free response buf [14:58:14]execute_script done [14:58:14]execute_script returns [14:58:14]free content buf [14:58:14]Sock 9.Close socket [14:58:14]Sock 9.Thread stoped [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]accept exits with 10 [14:59:54]New connection [14:59:54]New thread 3066637668 created [14:59:54]Thread 3066781028 joined [14:59:54]Waiting for new connection... [14:59:54] Sock 10.Parse request [14:59:54]Sock 10.Check first char [14:59:54]Sock 10.First char is OK [14:59:54]request: POST /json_proto HTTP/1.0 [14:59:54]Method: POST [14:59:54]URL: /json_proto [14:59:54]Method is POST - this is cgi request [14:59:54]url: /json_proto [14:59:54]query_string will be loaded in cgi processing [14:59:54]execute_cgi json_proto POST (null) [14:59:54]execute_cgi path=json_proto method=POST [14:59:54]POST find Content-Length [14:59:54]Host: 172.17.63.3:8080 [14:59:54]Content-Length: 678 [14:59:54]Content-Type: application/json [14:59:54] [14:59:54]POST finish read [14:59:54]Found Content-Length = 678 [14:59:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:54]execute_script... [14:59:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:54]POST & json_proto [14:59:54]process_json_proto [14:59:54]json parsed OK: [14:59:54]protocol is kg_v1.0 [14:59:54]action value=close_receipt [14:59:54]process_action close_receipt [14:59:54]cmd_close_receipt [14:59:54]MH_GetDate [14:59:54]Write to MH i2c: F0 00 00 95 09 8D [14:59:54]Write i2c OK [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: F0 [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: F0 09 00 [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: F0 09 00 95 09 00 EA 60 1A 67 50 D1 6C 64 52 [14:59:54]GetLastDocTimeStamp 1729781891 [14:59:54]current date 1729781994 [14:59:54]FM_GetShiftState [14:59:54]SAM_PROTO_GetShiftState [14:59:54]wFMCommunicate request_size=4 [14:59:54]MH_SAM_APDU [14:59:54]CAPDU: 80 13 01 00 [14:59:54]Write to MH i2c: E2 08 00 96 09 80 13 01 00 00 00 00 00 1C [14:59:54]Write i2c OK [14:59:54]MH_I2C_Read... [14:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:54]Read from MH i2c: E2 [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: E2 0E 00 [14:59:54]MH_I2C_Read... [14:59:54]Read from MH i2c: E2 0E 00 96 09 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 69 [14:59:54]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:59:54]wFMCommunicate OK [14:59:54]SAM_PROTO_GetShiftState done [14:59:54]FM_GetShiftState done [14:59:54]opened in 1729729836 [14:59:54]opened+sec_in_day 1729816236 [14:59:54]quantity*price = 100050 [14:59:54]sum+1 = 100052 [14:59:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 201 24.10.2024 14:59 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155576 ФПД: 9906099457973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145954&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155576&fm=9906099457973&tin=02508201610067®Number=0000000000091693&sum=100000 [14:59:55]StoreToDocumentArchive [14:59:55]shift 534 fd 155576 [14:59:55]save to /storage/0534/doc_00155576 [14:59:55]save last doc name /storage/0534/doc_00155576 to /storage/kkm_last_doc_name [14:59:55]save OK [14:59:55]Clear old archive folders... [14:59:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:59:55]tlvbuf is 01F6A640 [14:59:55]SAM_PROTO_ClearQueue [14:59:55]wFMCommunicate request_size=4 [14:59:55]MH_SAM_APDU [14:59:55]CAPDU: 80 09 00 00 [14:59:55]Write to MH i2c: E2 08 00 A3 09 80 09 00 00 00 00 00 00 1E [14:59:55]Write i2c OK [14:59:55]MH_I2C_Read... [14:59:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:55]Read from MH i2c: E2 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 03 00 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 03 00 A3 09 00 90 00 20 [14:59:55]RAPDU: 90 00 [14:59:55]wFMCommunicate OK [14:59:55]SAM_PROTO_ClearQueue done [14:59:55]KKMCreateOFDPacket [14:59:55]OFDProtocolAddRootSTLVToBuf [14:59:55]FM_MakeSignedData [14:59:55]FM_MakeSignedData [14:59:55]SAM_PROTO_SignData [14:59:55]wFMCommunicate request_size=4 [14:59:55]MH_SAM_APDU [14:59:55]CAPDU: 80 0D 01 02 [14:59:55]Write to MH i2c: E2 08 00 A4 09 80 0D 01 02 00 00 00 00 26 [14:59:55]Write i2c OK [14:59:55]MH_I2C_Read... [14:59:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:55]Read from MH i2c: E2 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 03 00 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 03 00 A4 09 00 90 00 21 [14:59:55]RAPDU: 90 00 [14:59:55]wFMCommunicate OK [14:59:55]wFMCommunicate request_size=255 [14:59:55]MH_SAM_APDU [14:59:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 EA 60 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 5F 02 00 35 04 06 00 09 02 71 8A [14:59:55]Write to MH i2c: E2 02 01 A5 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C9 00 00 00 F4 03 04 00 EA 60 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 5F 02 00 35 04 06 00 09 02 71 8A 00 00 7B [14:59:55]Write i2c OK [14:59:55]MH_I2C_Read... [14:59:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:55]Read from MH i2c: E2 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 03 00 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 03 00 A5 09 00 90 00 22 [14:59:55]RAPDU: 90 00 [14:59:55]wFMCommunicate OK [14:59:55]wFMCommunicate request_size=7 [14:59:55]MH_SAM_APDU [14:59:55]CAPDU: 80 0D 02 02 02 0F B5 [14:59:55]Write to MH i2c: E2 0A 00 A6 09 80 0D 02 02 02 00 0F B5 00 00 F1 [14:59:55]Write i2c OK [14:59:55]MH_I2C_Read... [14:59:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:55]Read from MH i2c: E2 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 03 00 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 03 00 A6 09 00 90 00 23 [14:59:55]RAPDU: 90 00 [14:59:55]wFMCommunicate OK [14:59:55]wFMCommunicate request_size=4 [14:59:55]MH_SAM_APDU [14:59:55]CAPDU: 80 0D 03 02 [14:59:55]Write to MH i2c: E2 08 00 A7 09 80 0D 03 02 00 00 00 00 2B [14:59:55]Write i2c OK [14:59:55]MH_I2C_Read... [14:59:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:55]Read from MH i2c: E2 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 0B 00 [14:59:55]MH_I2C_Read... [14:59:55]Read from MH i2c: E2 0B 00 A7 09 00 2D 24 B4 03 48 17 0E 7E 90 00 1F [14:59:55]RAPDU: 2D 24 B4 03 48 17 0E 7E 90 00 [14:59:55]wFMCommunicate OK [14:59:55]SAM_PROTO_SignData done [14:59:55]FM_MakeSignedData done [14:59:55]CreateOFDProtocolMessage [14:59:55]wFMCommunicate request_size=4 [14:59:55]MH_SAM_APDU [14:59:55]CAPDU: 80 11 00 00 [14:59:55]Write to MH i2c: E2 08 00 A8 09 80 11 00 00 00 00 00 00 2B [14:59:55]Write i2c OK [14:59:55]MH_I2C_Read... [14:59:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:56]Read from MH i2c: E2 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: E2 17 00 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: E2 17 00 A8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 80 [14:59:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:59:56]wFMCommunicate OK [14:59:56]CreateOFDProtocolMessage done [14:59:56]OFDSenderStorePacket 155576 [14:59:56]StoreOFDPacket docnum=155576 [14:59:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 27 25 04 01 A9 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 EA 60 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 5F 02 00 35 04 06 00 09 02 71 8A 0F B5 2D 24 B4 03 48 17 0E 7E [14:59:56]CheckFolder [14:59:56]dirname=/storage/ofd_packets [14:59:56]CheckFolder done [14:59:56]ProducePacketName [14:59:56]name=ofd_packets/00155576 [14:59:56]NVStorageSaveData ofd_packets/00155576 [14:59:56]File name is /storage/ofd_packets/00155576 [14:59:56]Write 298 bytes [14:59:56]NVStorageSaveData done [14:59:56]OFDSenderStorePacket done [14:59:56]KKMCreateOFDPacket done [14:59:56]NVStorageSaveData kkm_last_timestamp [14:59:56]File name is /storage/kkm_last_timestamp [14:59:56]Write 4 bytes [14:59:56]NVStorageSaveData done [14:59:56]ExternCall_PrintAddStr [14:59:56]wPrintStart [14:59:56]Write to MH i2c: 01 00 00 A9 09 B2 [14:59:56]Write i2c OK [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: 01 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: 01 07 00 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: 01 07 00 A9 09 00 00 00 00 00 FF 0F C7 [14:59:56]RasterBufferAndPrint [14:59:56]line Счет N : (1)98380 [14:59:56]line ИНН: 02508201610067 [14:59:56]line Контрольно-Кассовый Чек [14:59:56]line ПРОДАЖА [14:59:56]line ТРК (МРК, ГНК) : 32 [14:59:56]line Товар: 2710194210 [14:59:56]line ДТ-К-5 [14:59:56]line 13.130 * 76.20 [14:59:56]line = 1000.51 [14:59:56]line НДС 12% НСП 1% [14:59:56]line > о реализуемом товаре [14:59:56]line ОКРУГЛЕНИЕ: -0.51 [14:59:56]line ИТОГО: 1000.00 [14:59:56]line Внесено: 1000.00 [14:59:56]line СДАЧА: 0.00 [14:59:56]line НСП 1% : 8.85 [14:59:56]line НДС 12% : 106.25 [14:59:56]line Наличными: 1000.00 [14:59:56]line Безнал.: 0.00 [14:59:56]line Место: АЗС № 143 "Партнер Нефть" [14:59:56]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:59:56]line СНО: Общий режим [14:59:56]line Чек 201 24.10.2024 14:59 [14:59:56]line Смена: 534 ФФД: 1.0 [14:59:56]line ЗНМ: 0300000096 [14:59:56]line РНМ: 0000000000091693 [14:59:56]line Версия ККМ: 001 [14:59:56]line ФМ: 0000000000871792 [14:59:56]line ФД: 155576 [14:59:56]line ФПД: 9906099457973 [14:59:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T145954&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155576&fm=9906099457973&tin=02508201610067®Number=0000000000091693&sum=100000 [14:59:56]OFD Sender: Processing packet 155576 [packets to send 31, broken 30] [14:59:56]ProducePacketName [14:59:56]name=ofd_packets/00155576 [14:59:56]OFD Sender: To server: pG, [14:59:56]CommunicateWithHost lk.salyk.kg:30040 [14:59:56]ConnectInit lk.salyk.kg [14:59:56]written 0, free lines is 4095 [14:59:56]Connected sock=9 [14:59:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 27 25 04 01 A9 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 EA 60 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 5F 02 00 35 04 06 00 09 02 71 8A 0F B5 2D 24 B4 03 48 17 0E 7E [14:59:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0A B5 47 00 EE 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 39 32 10 04 04 00 B8 5F 02 00 F4 03 04 00 63 06 1A 67 B6 04 01 00 00 E0 BD 1E 59 D9 CE 1E 24 [14:59:56]CommunicateWithHost err = 0 [14:59:56]CheckOFDResponse [14:59:56]1017 (14) - 77093643461234 [14:59:56]1041 (16) - 0000000000871792 [14:59:56]1040 (4) - 155576 [14:59:56]1012 (4) - 24.10.2024 08:33 [14:59:56]1206 (1) - 0 [14:59:56]OFD Sender: Remove packet 155576 [14:59:56]ProducePacketName [14:59:56]name=ofd_packets/00155576 [14:59:56]NVStorageDeleteData [14:59:56]Write to MH i2c: 01 00 00 D4 09 DD [14:59:56]Write i2c OK [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: 01 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: 01 07 00 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: 01 07 00 D4 09 00 00 00 00 00 EA 0C DA [14:59:56]RasterBufferAndPrint [14:59:56]line [14:59:56]line [14:59:56]line [14:59:56]line [14:59:56]line [14:59:56]written 0, free lines is 3312 [14:59:56]process_action close_receipt done [14:59:56]requested_data is exist [14:59:56]produce_requested_data [14:59:56]requested_item fm.sn is exist - process it [14:59:56]wFMCommunicate request_size=4 [14:59:56]MH_SAM_APDU [14:59:56]CAPDU: 80 11 00 00 [14:59:56]Write to MH i2c: E2 08 00 DB 09 80 11 00 00 00 00 00 00 5E [14:59:56]Write i2c OK [14:59:56]MH_I2C_Read... [14:59:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:56]Read from MH i2c: E2 [14:59:56]MH_I2C_Read... [14:59:56]Read from MH i2c: E2 17 00 [14:59:56]MH_I2C_Read... [14:59:56]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 39 32 90 00 B3 [14:59:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:59:56]wFMCommunicate OK [14:59:56]requested_item fd.num is exist - process it [14:59:56]SAM_PROTO_GetFieldsCounters [14:59:56]wFMCommunicate request_size=4 [14:59:56]MH_SAM_APDU [14:59:56]CAPDU: 80 13 00 00 [14:59:56]Write to MH i2c: E2 08 00 DC 09 80 13 00 00 00 00 00 00 61 [14:59:56]Write i2c OK [14:59:56]MH_I2C_Read... [14:59:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:57]Read from MH i2c: E2 [14:59:57]MH_I2C_Read... [14:59:57]Read from MH i2c: E2 62 00 [14:59:57]MH_I2C_Read... [14:59:57]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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B8 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [14:59: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B8 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:57]wFMCommunicate OK [14:59:57]SAM_PROTO_GetFieldsCounters done [14:59:57]requested_item shift.num is exist - process it [14:59:57]requested_item shift.opened is exist - process it [14:59:57]req_shift_opened [14:59:57]FM_GetShiftState [14:59:57]SAM_PROTO_GetShiftState [14:59:57]wFMCommunicate request_size=4 [14:59:57]MH_SAM_APDU [14:59:57]CAPDU: 80 13 01 00 [14:59:57]Write to MH i2c: E2 08 00 DD 09 80 13 01 00 00 00 00 00 63 [14:59:57]Write i2c OK [14:59:57]MH_I2C_Read... [14:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:57]Read from MH i2c: E2 [14:59:57]MH_I2C_Read... [14:59:57]Read from MH i2c: E2 0E 00 [14:59:57]MH_I2C_Read... [14:59:57]Read from MH i2c: E2 0E 00 DD 09 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 B0 [14:59:57]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [14:59:57]wFMCommunicate OK [14:59:57]SAM_PROTO_GetShiftState done [14:59:57]FM_GetShiftState done [14:59:57]req_shift_opened done [14:59:57]requested_item shift.open_date is exist - process it [14:59:57]req_shift_open_date [14:59:57]req_shift_open_date done [14:59:57]produce_requested_data done [14:59:57]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155576,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [14:59:57]process_action_free close_receipt [14:59:57]json_value_free [14:59:57]json_value_free done [14:59:57]process_json_proto returns [14:59:57]Send response to host [14:59:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155576,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [14:59:57]free response buf [14:59:57]execute_script done [14:59:57]execute_script returns [14:59:57]free content buf [14:59:57]Sock 10.Close socket [14:59:57]Sock 10.Thread stoped [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:08:59]int [15:08:59]Write to MH i2c: 01 00 00 DE 09 E7 [15:08:59]*** FLAG_PRN_KEY set [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: 01 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: 01 07 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: 01 07 00 DE 09 00 08 00 00 00 FF 0F 04 [15:08:59]state=0 [15:08:59]Key pressed [15:08:59]Feed [15:08:59]Write to MH i2c: D8 00 00 DF 09 BF [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: D8 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: D8 01 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: D8 01 00 DF 09 00 C0 [15:08:59]int [15:08:59]Write to MH i2c: 01 00 00 E0 09 E9 [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: 01 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: 01 07 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: 01 07 00 E0 09 00 48 00 00 00 3D 00 75 [15:08:59]state=2 [15:08:59]Key pressed [15:09:00]int [15:09:00]Write to MH i2c: 01 00 00 E1 09 EA [15:09:00]*** FLAG_PRN_KEY reset [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: 01 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: 01 07 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: 01 07 00 E1 09 00 00 00 00 00 F6 0F F6 [15:09:00]state=2 [15:09:00]Stop feed [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [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 8 [15:10:24]New connection [15:10:24]New thread 3066781028 created [15:10:24]Thread 3066637668 joined [15:10:24]Waiting for new connection... [15:10:24] Sock 8.Parse request [15:10:24]Sock 8.Check first char [15:10:24]Sock 8.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.63.3:8080 [15:10:24]Content-Length: 768 [15:10:24]Content-Type: application/json [15:10:24] [15:10:24]POST finish read [15:10:24]Found Content-Length = 768 [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)98381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)98381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 E2 09 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 E2 09 00 61 63 1A 67 50 D1 6C 64 19 [15:10:24]GetLastDocTimeStamp 1729781994 [15:10:24]current date 1729782625 [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 E3 09 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 E3 09 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 B6 [15:10:24]RAPDU: 09 00 01 2C 95 19 67 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 1729729836 [15:10:24]opened+sec_in_day 1729816236 [15:10:24]quantity*price = 100015 [15:10:24]sum+1 = 100017 [15:10:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 202 24.10.2024 15:10 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155577 ФПД: 134980784975697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T151025&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155577&fm=134980784975697&tin=02508201610067®Number=0000000000091693&sum=100016 [15:10:26]StoreToDocumentArchive [15:10:26]shift 534 fd 155577 [15:10:26]save to /storage/0534/doc_00155577 [15:10:26]save last doc name /storage/0534/doc_00155577 to /storage/kkm_last_doc_name [15:10:26]save OK [15:10:26]Clear old archive folders... [15:10:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:26]tlvbuf is 01F6BF20 [15:10:26]SAM_PROTO_ClearQueue [15:10:26]wFMCommunicate request_size=4 [15:10:26]MH_SAM_APDU [15:10:26]CAPDU: 80 09 00 00 [15:10:26]Write to MH i2c: E2 08 00 F0 09 80 09 00 00 00 00 00 00 6B [15:10:26]Write i2c OK [15:10:26]MH_I2C_Read... [15:10:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:26]Read from MH i2c: E2 [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: E2 03 00 [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: E2 03 00 F0 09 00 90 00 6D [15:10:26]RAPDU: 90 00 [15:10:26]wFMCommunicate OK [15:10:26]SAM_PROTO_ClearQueue done [15:10:26]KKMCreateOFDPacket [15:10:26]OFDProtocolAddRootSTLVToBuf [15:10:26]FM_MakeSignedData [15:10:26]FM_MakeSignedData [15:10:26]SAM_PROTO_SignData [15:10:26]wFMCommunicate request_size=4 [15:10:26]MH_SAM_APDU [15:10:26]CAPDU: 80 0D 01 02 [15:10:26]Write to MH i2c: E2 08 00 F1 09 80 0D 01 02 00 00 00 00 73 [15:10:26]Write i2c OK [15:10:26]MH_I2C_Read... [15:10:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:26]Read from MH i2c: E2 [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: E2 03 00 [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: E2 03 00 F1 09 00 90 00 6E [15:10:26]RAPDU: 90 00 [15:10:26]wFMCommunicate OK [15:10:26]wFMCommunicate request_size=255 [15:10:26]MH_SAM_APDU [15:10:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 61 63 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 5F 02 00 35 04 06 00 7A [15:10:26]Write to MH i2c: E2 02 01 F2 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 61 63 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 5F 02 00 35 04 06 00 7A 00 00 DC [15:10:26]Write i2c OK [15:10:26]MH_I2C_Read... [15:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:26]Read from MH i2c: E2 [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: E2 03 00 [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: E2 03 00 F2 09 00 90 00 6F [15:10:26]RAPDU: 90 00 [15:10:26]wFMCommunicate OK [15:10:26]wFMCommunicate request_size=10 [15:10:26]MH_SAM_APDU [15:10:26]CAPDU: 80 0D 02 02 05 C3 A9 BD 6F 51 [15:10:26]Write to MH i2c: E2 0D 00 F3 09 80 0D 02 02 05 00 C3 A9 BD 6F 51 00 00 69 [15:10:26]Write i2c OK [15:10:26]MH_I2C_Read... [15:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:26]Read from MH i2c: E2 [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: E2 03 00 [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: E2 03 00 F3 09 00 90 00 70 [15:10:26]RAPDU: 90 00 [15:10:26]wFMCommunicate OK [15:10:26]wFMCommunicate request_size=4 [15:10:26]MH_SAM_APDU [15:10:26]CAPDU: 80 0D 03 02 [15:10:26]Write to MH i2c: E2 08 00 F4 09 80 0D 03 02 00 00 00 00 78 [15:10:26]Write i2c OK [15:10:26]MH_I2C_Read... [15:10:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:26]Read from MH i2c: E2 [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: E2 0B 00 [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: E2 0B 00 F4 09 00 D7 7F 1F 68 9A AA A6 E3 90 00 23 [15:10:26]RAPDU: D7 7F 1F 68 9A AA A6 E3 90 00 [15:10:26]wFMCommunicate OK [15:10:26]SAM_PROTO_SignData done [15:10:26]FM_MakeSignedData done [15:10:26]CreateOFDProtocolMessage [15:10:26]wFMCommunicate request_size=4 [15:10:26]MH_SAM_APDU [15:10:26]CAPDU: 80 11 00 00 [15:10:26]Write to MH i2c: E2 08 00 F5 09 80 11 00 00 00 00 00 00 78 [15:10:26]Write i2c OK [15:10:26]MH_I2C_Read... [15:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:26]Read from MH i2c: E2 [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: E2 17 00 [15:10:26]MH_I2C_Read... [15:10:26]Read from MH i2c: E2 17 00 F5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CD [15:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:10:26]wFMCommunicate OK [15:10:26]CreateOFDProtocolMessage done [15:10:26]OFDSenderStorePacket 155577 [15:10:26]StoreOFDPacket docnum=155577 [15:10:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D1 34 07 01 DF 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 61 63 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 5F 02 00 35 04 06 00 7A C3 A9 BD 6F 51 D7 7F 1F 68 9A AA A6 E3 [15:10:26]CheckFolder [15:10:26]dirname=/storage/ofd_packets [15:10:26]CheckFolder done [15:10:26]ProducePacketName [15:10:26]name=ofd_packets/00155577 [15:10:26]NVStorageSaveData ofd_packets/00155577 [15:10:26]File name is /storage/ofd_packets/00155577 [15:10:26]Write 301 bytes [15:10:26]NVStorageSaveData done [15:10:26]OFDSenderStorePacket done [15:10:26]KKMCreateOFDPacket done [15:10:26]NVStorageSaveData kkm_last_timestamp [15:10:26]File name is /storage/kkm_last_timestamp [15:10:26]Write 4 bytes [15:10:26]NVStorageSaveData done [15:10:26]ExternCall_PrintAddStr [15:10:26]wPrintStart [15:10:26]Write to MH i2c: 01 00 00 F6 09 FF [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 F6 09 00 00 00 00 00 FF 0F 14 [15:10:26]RasterBufferAndPrint [15:10:26]line Счет N : (1)98381 [15:10:26]line ИНН: 02508201610067 [15:10:26]line Контрольно-Кассовый Чек [15:10:26]line ПРОДАЖА [15:10:26]line ТРК (МРК, ГНК) : 31 [15:10:26]line Товар: 2710124130 [15:10:26]line Аи-92-К-5 [15:10:26]line 14.950 * 66.90 [15:10:26]line = 1000.16 [15:10:26]line НДС 12% НСП 1% [15:10:26]line > о реализуемом товаре [15:10:26]line ИТОГО: 1000.16 [15:10:26]line НСП 1% : 8.85 [15:10:26]line НДС 12% : 106.21 [15:10:26]line Наличными: 0.00 [15:10:26]line Безнал.: 1000.16 [15:10:26]line Место: АЗС № 143 "Партнер Нефть" [15:10:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:10:26]line СНО: Общий режим [15:10:26]line Чек 202 24.10.2024 15:10 [15:10:26]line Смена: 534 ФФД: 1.0 [15:10:26]line ЗНМ: 0300000096 [15:10:26]line РНМ: 0000000000091693 [15:10:26]line Версия ККМ: 001 [15:10:26]line Платежная система: Mbank [15:10:26]line ФМ: 0000000000871792 [15:10:26]line ФД: 155577 [15:10:26]line ФПД: 134980784975697 [15:10:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T151025&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155577&fm=134980784975697&tin=02508201610067®Number=0000000000091693&sum=100016 [15:10:26]written 0, free lines is 4095 [15:10:26]OFD Sender: Processing packet 155577 [packets to send 31, broken 30] [15:10:26]ProducePacketName [15:10:26]name=ofd_packets/00155577 [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:27]Connected sock=10 [15:10: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 39 32 0F 01 00 00 D1 34 07 01 DF 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 61 63 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 5F 02 00 35 04 06 00 7A C3 A9 BD 6F 51 D7 7F 1F 68 9A AA A6 E3 [15:10:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D7 01 47 00 B0 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 5F 02 00 F4 03 04 00 DA 08 1A 67 B6 04 01 00 00 1C 0F 84 19 D6 AF F1 BA [15:10:27]CommunicateWithHost err = 0 [15:10:27]CheckOFDResponse [15:10:27]1017 (14) - 77093643461234 [15:10:27]1041 (16) - 0000000000871792 [15:10:27]1040 (4) - 155577 [15:10:27]1012 (4) - 24.10.2024 08:44 [15:10:27]1206 (1) - 0 [15:10:27]OFD Sender: Remove packet 155577 [15:10:27]ProducePacketName [15:10:27]name=ofd_packets/00155577 [15:10:27]NVStorageDeleteData [15:10:27]Write to MH i2c: 01 00 00 1F 0A 29 [15:10:27]Write i2c OK [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: 01 [15:10:27]MH_I2C_Read... [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 1F 0A 00 00 00 00 00 11 0D 4E [15:10:27]RasterBufferAndPrint [15:10:27]line [15:10:27]line [15:10:27]line [15:10:27]line [15:10:27]line [15:10:27]written 0, free lines is 3351 [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 26 0A 80 11 00 00 00 00 00 00 AA [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 26 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FF [15:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 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 27 0A 80 13 00 00 00 00 00 00 AD [15:10:27]Write i2c OK [15:10:27]MH_I2C_Read... [15:10:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:27]Read from MH i2c: E2 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: E2 62 00 [15:10:27]MH_I2C_Read... [15:10:27]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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B9 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [15: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B9 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:27]wFMCommunicate OK [15:10:27]SAM_PROTO_GetFieldsCounters done [15:10:27]requested_item shift.num is exist - process it [15:10:27]requested_item shift.opened is exist - process it [15:10:27]req_shift_opened [15:10:27]FM_GetShiftState [15:10:27]SAM_PROTO_GetShiftState [15:10:27]wFMCommunicate request_size=4 [15:10:27]MH_SAM_APDU [15:10:27]CAPDU: 80 13 01 00 [15:10:27]Write to MH i2c: E2 08 00 28 0A 80 13 01 00 00 00 00 00 AF [15:10:27]Write i2c OK [15:10:27]MH_I2C_Read... [15:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:27]Read from MH i2c: E2 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: E2 0E 00 [15:10:27]MH_I2C_Read... [15:10:27]Read from MH i2c: E2 0E 00 28 0A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 FC [15:10:27]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:10:27]wFMCommunicate OK [15:10:27]SAM_PROTO_GetShiftState done [15:10:27]FM_GetShiftState done [15:10:27]req_shift_opened done [15:10:27]requested_item shift.open_date is exist - process it [15:10:27]req_shift_open_date [15:10:27]req_shift_open_date done [15:10:27]produce_requested_data done [15:10:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155577,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:10:27]process_action_free close_receipt [15:10:27]json_value_free [15:10:27]json_value_free done [15:10:27]process_json_proto returns [15:10:27]Send response to host [15:10:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155577,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:10:27]free response buf [15:10:27]execute_script done [15:10:27]execute_script returns [15:10:27]free content buf [15:10:27]Sock 8.Close socket [15:10:27]Sock 8.Thread stoped [15:10:27]OFD Sender: No OFD packet to send [15:10:30]int [15:10:30]Write to MH i2c: 01 00 00 29 0A 33 [15:10:30]*** FLAG_PRN_KEY set [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: 01 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: 01 07 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: 01 07 00 29 0A 00 08 00 00 00 FF 0F 50 [15:10:30]state=0 [15:10:30]Key pressed [15:10:30]Feed [15:10:30]Write to MH i2c: D8 00 00 2A 0A 0B [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: D8 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: D8 01 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: D8 01 00 2A 0A 00 0C [15:10:30]int [15:10:30]Write to MH i2c: 01 00 00 2B 0A 35 [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: 01 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: 01 07 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: 01 07 00 2B 0A 00 48 00 00 00 3C 00 C0 [15:10:30]state=2 [15:10:30]Key pressed [15:10:30]int [15:10:30]Write to MH i2c: 01 00 00 2C 0A 36 [15:10:30]*** FLAG_PRN_KEY reset [15:10:30]Write i2c OK [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: 01 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: 01 07 00 [15:10:30]MH_I2C_Read... [15:10:30]Read from MH i2c: 01 07 00 2C 0A 00 00 00 00 00 F7 0F 43 [15:10:30]state=2 [15:10:30]Stop feed [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:21]accept exits with 9 [15:11:21]New connection [15:11:21]New thread 3066637668 created [15:11:21]Thread 3066781028 joined [15:11:21]Waiting for new connection... [15:11:21] Sock 9.Parse request [15:11:21]Sock 9.Check first char [15:11:21]Sock 9.First char is OK [15:11:21]request: POST /json_proto HTTP/1.0 [15:11:21]Method: POST [15:11:21]URL: /json_proto [15:11:21]Method is POST - this is cgi request [15:11:21]url: /json_proto [15:11:21]query_string will be loaded in cgi processing [15:11:21]execute_cgi json_proto POST (null) [15:11:21]execute_cgi path=json_proto method=POST [15:11:21]POST find Content-Length [15:11:21]Host: 172.17.63.3:8080 [15:11:21]Content-Length: 1200 [15:11:21]Content-Type: application/json [15:11:21] [15:11:21]POST finish read [15:11:21]Found Content-Length = 1200 [15:11:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 143\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0443\u0440\u0430\u043D\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)98382\u000A24.10.2024 14:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:21]execute_script... [15:11:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 143\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0443\u0440\u0430\u043D\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)98382\u000A24.10.2024 14:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:21]POST & json_proto [15:11:21]process_json_proto [15:11:21]json parsed OK: [15:11:21]protocol is kg_v1.0 [15:11:21]action value=print_text [15:11:21]process_action print_text [15:11:21]cmd_print_text [15:11:21]ExternCall_PrintAddStr [15:11:21]wPrintStart [15:11:21]Write to MH i2c: 01 00 00 2D 0A 37 [15:11:21]Write i2c OK [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: 01 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: 01 07 00 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: 01 07 00 2D 0A 00 00 00 00 00 FF 0F 4C [15:11:21]RasterBufferAndPrint [15:11:21]line *****ТОВАРНЫЙ ЧЕК***** [15:11:21]line АЗС 143 [15:11:21]line Партнер нефть [15:11:21]line 02508201610067 [15:11:21]line Кассир : Куранбаева Н. [15:11:21]line Счет N : (1)98382 [15:11:21]line 24.10.2024 14:40 [15:11:21]line ПРОДАЖА [15:11:21]line ТРК (МРК, ГНК): 11 [15:11:21]line Вид ГСМ : 2710124130 [15:11:21]line Аи-92-К-5 [15:11:21]line 10.000 x 66.90 [15:11:21]line ИТОГ: 669.00 [15:11:21]line Тип оплаты: Технологический отпуск: [15:11:21]line ______________________ [15:11:21]line (подпись) [15:11:21]written 0, free lines is 4095 [15:11:21]Write to MH i2c: 01 00 00 40 0A 4A [15:11:21]Write i2c OK [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: 01 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: 01 07 00 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: 01 07 00 40 0A 00 00 00 00 00 2E 0E 8D [15:11:21]RasterBufferAndPrint [15:11:21]line [15:11:21]line [15:11:21]line [15:11:21]line [15:11:21]line [15:11:21]written 0, free lines is 3631 [15:11:21]process_action print_text done [15:11:21]requested_data is exist [15:11:21]produce_requested_data [15:11:21]requested_item fm.sn is exist - process it [15:11:21]wFMCommunicate request_size=4 [15:11:21]MH_SAM_APDU [15:11:21]CAPDU: 80 11 00 00 [15:11:21]Write to MH i2c: E2 08 00 47 0A 80 11 00 00 00 00 00 00 CB [15:11:21]Write i2c OK [15:11:21]MH_I2C_Read... [15:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:21]Read from MH i2c: E2 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 17 00 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 17 00 47 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 20 [15:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:11:21]wFMCommunicate OK [15:11:21]requested_item fd.num is exist - process it [15:11:21]SAM_PROTO_GetFieldsCounters [15:11:21]wFMCommunicate request_size=4 [15:11:21]MH_SAM_APDU [15:11:21]CAPDU: 80 13 00 00 [15:11:21]Write to MH i2c: E2 08 00 48 0A 80 13 00 00 00 00 00 00 CE [15:11:21]Write i2c OK [15:11:21]MH_I2C_Read... [15:11:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:21]Read from MH i2c: E2 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 62 00 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 62 00 48 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B9 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [15:11: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B9 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:21]wFMCommunicate OK [15:11:21]SAM_PROTO_GetFieldsCounters done [15:11:21]requested_item shift.num is exist - process it [15:11:21]requested_item shift.opened is exist - process it [15:11:21]req_shift_opened [15:11:21]FM_GetShiftState [15:11:21]SAM_PROTO_GetShiftState [15:11:21]wFMCommunicate request_size=4 [15:11:21]MH_SAM_APDU [15:11:21]CAPDU: 80 13 01 00 [15:11:21]Write to MH i2c: E2 08 00 49 0A 80 13 01 00 00 00 00 00 D0 [15:11:21]Write i2c OK [15:11:21]MH_I2C_Read... [15:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:21]Read from MH i2c: E2 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 0E 00 [15:11:21]MH_I2C_Read... [15:11:21]Read from MH i2c: E2 0E 00 49 0A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1D [15:11:21]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:11:21]wFMCommunicate OK [15:11:21]SAM_PROTO_GetShiftState done [15:11:21]FM_GetShiftState done [15:11:21]req_shift_opened done [15:11:21]requested_item shift.open_date is exist - process it [15:11:21]req_shift_open_date [15:11:21]req_shift_open_date done [15:11:21]produce_requested_data done [15:11:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155577,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:11:21]process_action_free print_text [15:11:21]json_value_free [15:11:21]json_value_free done [15:11:21]process_json_proto returns [15:11:21]Send response to host [15:11:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155577,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:11:21]free response buf [15:11:21]execute_script done [15:11:21]execute_script returns [15:11:21]free content buf [15:11:21]Sock 9.Close socket [15:11:21]Sock 9.Thread stoped [15:11:22]OFD Sender: No OFD packet to send [15:11:27]OFD Sender: No OFD packet to send [15:11:32]OFD Sender: No OFD packet to send [15:11:37]OFD Sender: No OFD packet to send [15:11:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:11:59]accept exits with 8 [15:11:59]New connection [15:11:59]New thread 3066781028 created [15:11:59]Thread 3066637668 joined [15:11:59]Waiting for new connection... [15:11:59] Sock 8.Parse request [15:11:59]Sock 8.Check first char [15:11:59]Sock 8.First char is OK [15:11:59]request: POST /json_proto HTTP/1.0 [15:11:59]Method: POST [15:11:59]URL: /json_proto [15:11:59]Method is POST - this is cgi request [15:11:59]url: /json_proto [15:11:59]query_string will be loaded in cgi processing [15:11:59]execute_cgi json_proto POST (null) [15:11:59]execute_cgi path=json_proto method=POST [15:11:59]POST find Content-Length [15:11:59]Host: 172.17.63.3:8080 [15:11:59]Content-Length: 1200 [15:11:59]Content-Type: application/json [15:11:59] [15:11:59]POST finish read [15:11:59]Found Content-Length = 1200 [15:11:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 143\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0443\u0440\u0430\u043D\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)98383\u000A24.10.2024 14:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:59]execute_script... [15:11:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 143\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u041A\u0443\u0440\u0430\u043D\u0431\u0430\u0435\u0432\u0430 \u041D. \u000A\u0421\u0447\u0435\u0442 N : (1)98383\u000A24.10.2024 14:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:59]POST & json_proto [15:11:59]process_json_proto [15:11:59]json parsed OK: [15:11:59]protocol is kg_v1.0 [15:11:59]action value=print_text [15:11:59]process_action print_text [15:11:59]cmd_print_text [15:11:59]ExternCall_PrintAddStr [15:11:59]wPrintStart [15:11:59]Write to MH i2c: 01 00 00 4A 0A 54 [15:11:59]Write i2c OK [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: 01 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: 01 07 00 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: 01 07 00 4A 0A 00 00 00 00 00 FF 0F 69 [15:11:59]RasterBufferAndPrint [15:11:59]line *****ТОВАРНЫЙ ЧЕК***** [15:11:59]line АЗС 143 [15:11:59]line Партнер нефть [15:11:59]line 02508201610067 [15:11:59]line Кассир : Куранбаева Н. [15:11:59]line Счет N : (1)98383 [15:11:59]line 24.10.2024 14:41 [15:11:59]line ПРОДАЖА [15:11:59]line ТРК (МРК, ГНК): 21 [15:11:59]line Вид ГСМ : 2710124130 [15:11:59]line Аи-92-К-5 [15:11:59]line 10.000 x 66.90 [15:11:59]line ИТОГ: 669.00 [15:11:59]line Тип оплаты: Технологический отпуск: [15:11:59]line ______________________ [15:11:59]line (подпись) [15:11:59]written 0, free lines is 4095 [15:11:59]Write to MH i2c: 01 00 00 5D 0A 67 [15:11:59]Write i2c OK [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: 01 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: 01 07 00 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: 01 07 00 5D 0A 00 00 00 00 00 2E 0E AA [15:11:59]RasterBufferAndPrint [15:11:59]line [15:11:59]line [15:11:59]line [15:11:59]line [15:11:59]line [15:11:59]written 0, free lines is 3632 [15:11:59]process_action print_text done [15:11:59]requested_data is exist [15:11:59]produce_requested_data [15:11:59]requested_item fm.sn is exist - process it [15:11:59]wFMCommunicate request_size=4 [15:11:59]MH_SAM_APDU [15:11:59]CAPDU: 80 11 00 00 [15:11:59]Write to MH i2c: E2 08 00 64 0A 80 11 00 00 00 00 00 00 E8 [15:11:59]Write i2c OK [15:11:59]MH_I2C_Read... [15:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:59]Read from MH i2c: E2 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: E2 17 00 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: E2 17 00 64 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3D [15:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:11:59]wFMCommunicate OK [15:11:59]requested_item fd.num is exist - process it [15:11:59]SAM_PROTO_GetFieldsCounters [15:11:59]wFMCommunicate request_size=4 [15:11:59]MH_SAM_APDU [15:11:59]CAPDU: 80 13 00 00 [15:11:59]Write to MH i2c: E2 08 00 65 0A 80 13 00 00 00 00 00 00 EB [15:11:59]Write i2c OK [15:11:59]MH_I2C_Read... [15:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:59]Read from MH i2c: E2 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: E2 62 00 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: E2 62 00 65 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B9 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [15:11: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B9 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:59]wFMCommunicate OK [15:11:59]SAM_PROTO_GetFieldsCounters done [15:11:59]requested_item shift.num is exist - process it [15:11:59]requested_item shift.opened is exist - process it [15:11:59]req_shift_opened [15:11:59]FM_GetShiftState [15:11:59]SAM_PROTO_GetShiftState [15:11:59]wFMCommunicate request_size=4 [15:11:59]MH_SAM_APDU [15:11:59]CAPDU: 80 13 01 00 [15:11:59]Write to MH i2c: E2 08 00 66 0A 80 13 01 00 00 00 00 00 ED [15:11:59]Write i2c OK [15:11:59]MH_I2C_Read... [15:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:59]Read from MH i2c: E2 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: E2 0E 00 [15:11:59]MH_I2C_Read... [15:11:59]Read from MH i2c: E2 0E 00 66 0A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3A [15:11:59]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:11:59]wFMCommunicate OK [15:11:59]SAM_PROTO_GetShiftState done [15:11:59]FM_GetShiftState done [15:11:59]req_shift_opened done [15:11:59]requested_item shift.open_date is exist - process it [15:11:59]req_shift_open_date [15:11:59]req_shift_open_date done [15:11:59]produce_requested_data done [15:11:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155577,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:11:59]process_action_free print_text [15:11:59]json_value_free [15:11:59]json_value_free done [15:11:59]process_json_proto returns [15:11:59]Send response to host [15:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155577,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:11:59]free response buf [15:11:59]execute_script done [15:11:59]execute_script returns [15:11:59]free content buf [15:11:59]Sock 8.Close socket [15:11:59]Sock 8.Thread stoped [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:00]int [15:16:00]Write to MH i2c: 01 00 00 67 0A 71 [15:16:00]*** FLAG_PRN_KEY set [15:16:00]Write i2c OK [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: 01 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: 01 07 00 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: 01 07 00 67 0A 00 08 00 00 00 FF 0F 8E [15:16:00]state=0 [15:16:00]Key pressed [15:16:00]Feed [15:16:00]Write to MH i2c: D8 00 00 68 0A 49 [15:16:00]Write i2c OK [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: D8 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: D8 01 00 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: D8 01 00 68 0A 00 4A [15:16:00]int [15:16:00]Write to MH i2c: 01 00 00 69 0A 73 [15:16:00]Write i2c OK [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: 01 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: 01 07 00 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: 01 07 00 69 0A 00 48 00 00 00 3D 00 FF [15:16:00]state=2 [15:16:00]Key pressed [15:16:00]int [15:16:00]Write to MH i2c: 01 00 00 6A 0A 74 [15:16:00]*** FLAG_PRN_KEY reset [15:16:00]Write i2c OK [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: 01 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: 01 07 00 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: 01 07 00 6A 0A 00 00 00 00 00 F6 0F 80 [15:16:00]state=2 [15:16:00]Stop feed [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]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:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:15]accept exits with 9 [15:18:15]New connection [15:18:15]New thread 3066637668 created [15:18:15]Thread 3066781028 joined [15:18:15]Waiting for new connection... [15:18:15] Sock 9.Parse request [15:18:15]Sock 9.Check first char [15:18:15]Sock 9.First char is OK [15:18:15]request: POST /json_proto HTTP/1.0 [15:18:15]Method: POST [15:18:15]URL: /json_proto [15:18:15]Method is POST - this is cgi request [15:18:15]url: /json_proto [15:18:15]query_string will be loaded in cgi processing [15:18:15]execute_cgi json_proto POST (null) [15:18:15]execute_cgi path=json_proto method=POST [15:18:15]POST find Content-Length [15:18:15]Host: 172.17.63.3:8080 [15:18:15]Content-Length: 676 [15:18:15]Content-Type: application/json [15:18:15] [15:18:15]POST finish read [15:18:15]Found Content-Length = 676 [15:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:15]execute_script... [15:18: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)98384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:15]POST & json_proto [15:18:15]process_json_proto [15:18:15]json parsed OK: [15:18:15]protocol is kg_v1.0 [15:18:15]action value=close_receipt [15:18:15]process_action close_receipt [15:18:15]cmd_close_receipt [15:18:15]MH_GetDate [15:18:15]Write to MH i2c: F0 00 00 6B 0A 64 [15:18:15]Write i2c OK [15:18:15]MH_I2C_Read... [15:18:15]Read from MH i2c: F0 [15:18:15]MH_I2C_Read... [15:18:15]Read from MH i2c: F0 09 00 [15:18:15]MH_I2C_Read... [15:18:15]Read from MH i2c: F0 09 00 6B 0A 00 37 65 1A 67 50 D1 6C 64 7B [15:18:15]GetLastDocTimeStamp 1729782625 [15:18:15]current date 1729783095 [15:18:15]FM_GetShiftState [15:18:15]SAM_PROTO_GetShiftState [15:18:15]wFMCommunicate request_size=4 [15:18:15]MH_SAM_APDU [15:18:15]CAPDU: 80 13 01 00 [15:18:15]Write to MH i2c: E2 08 00 6C 0A 80 13 01 00 00 00 00 00 F3 [15:18:15]Write i2c OK [15:18:15]MH_I2C_Read... [15:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:15]Read from MH i2c: E2 [15:18:15]MH_I2C_Read... [15:18:15]Read from MH i2c: E2 0E 00 [15:18:15]MH_I2C_Read... [15:18:15]Read from MH i2c: E2 0E 00 6C 0A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 40 [15:18:15]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:18:15]wFMCommunicate OK [15:18:15]SAM_PROTO_GetShiftState done [15:18:15]FM_GetShiftState done [15:18:15]opened in 1729729836 [15:18:15]opened+sec_in_day 1729816236 [15:18:15]quantity*price = 50041 [15:18:15]sum+1 = 50042 [15:18:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 203 24.10.2024 15:18 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155578 ФПД: 197354281699077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T151816&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155578&fm=197354281699077&tin=02508201610067®Number=0000000000091693&sum=50000 [15:18:16]StoreToDocumentArchive [15:18:16]shift 534 fd 155578 [15:18:16]save to /storage/0534/doc_00155578 [15:18:16]save last doc name /storage/0534/doc_00155578 to /storage/kkm_last_doc_name [15:18:16]save OK [15:18:16]Clear old archive folders... [15:18:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:18:16]tlvbuf is 01F91580 [15:18:16]SAM_PROTO_ClearQueue [15:18:16]wFMCommunicate request_size=4 [15:18:16]MH_SAM_APDU [15:18:16]CAPDU: 80 09 00 00 [15:18:16]Write to MH i2c: E2 08 00 79 0A 80 09 00 00 00 00 00 00 F5 [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:16]Read from MH i2c: E2 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 03 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 03 00 79 0A 00 90 00 F7 [15:18:16]RAPDU: 90 00 [15:18:16]wFMCommunicate OK [15:18:16]SAM_PROTO_ClearQueue done [15:18:16]KKMCreateOFDPacket [15:18:16]OFDProtocolAddRootSTLVToBuf [15:18:16]FM_MakeSignedData [15:18:16]FM_MakeSignedData [15:18:16]SAM_PROTO_SignData [15:18:16]wFMCommunicate request_size=4 [15:18:16]MH_SAM_APDU [15:18:16]CAPDU: 80 0D 01 02 [15:18:16]Write to MH i2c: E2 08 00 7A 0A 80 0D 01 02 00 00 00 00 FD [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:16]Read from MH i2c: E2 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 03 00 [15:18:16]MH_I2C_Read... [15:18:16]Read from MH i2c: E2 03 00 7A 0A 00 90 00 F8 [15:18:16]RAPDU: 90 00 [15:18:16]wFMCommunicate OK [15:18:16]wFMCommunicate request_size=255 [15:18:16]MH_SAM_APDU [15:18: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 38 65 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 5F 02 00 35 04 06 00 B3 [15:18:16]Write to MH i2c: E2 02 01 7B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 38 65 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 5F 02 00 35 04 06 00 B3 00 00 60 [15:18:16]Write i2c OK [15:18:16]MH_I2C_Read... [15:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:17]Read from MH i2c: E2 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 03 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 03 00 7B 0A 00 90 00 F9 [15:18:17]RAPDU: 90 00 [15:18:17]wFMCommunicate OK [15:18:17]wFMCommunicate request_size=10 [15:18:17]MH_SAM_APDU [15:18:17]CAPDU: 80 0D 02 02 05 7E 1F DB 07 05 [15:18:17]Write to MH i2c: E2 0D 00 7C 0A 80 0D 02 02 05 00 7E 1F DB 07 05 00 00 8E [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:17]Read from MH i2c: E2 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 03 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 03 00 7C 0A 00 90 00 FA [15:18:17]RAPDU: 90 00 [15:18:17]wFMCommunicate OK [15:18:17]wFMCommunicate request_size=4 [15:18:17]MH_SAM_APDU [15:18:17]CAPDU: 80 0D 03 02 [15:18:17]Write to MH i2c: E2 08 00 7D 0A 80 0D 03 02 00 00 00 00 02 [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:17]Read from MH i2c: E2 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 0B 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 0B 00 7D 0A 00 A8 29 B5 B8 14 AC E0 EF 90 00 D0 [15:18:17]RAPDU: A8 29 B5 B8 14 AC E0 EF 90 00 [15:18:17]wFMCommunicate OK [15:18:17]SAM_PROTO_SignData done [15:18:17]FM_MakeSignedData done [15:18:17]CreateOFDProtocolMessage [15:18:17]wFMCommunicate request_size=4 [15:18:17]MH_SAM_APDU [15:18:17]CAPDU: 80 11 00 00 [15:18:17]Write to MH i2c: E2 08 00 7E 0A 80 11 00 00 00 00 00 00 02 [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:17]Read from MH i2c: E2 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 17 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 17 00 7E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 57 [15:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:18:17]wFMCommunicate OK [15:18:17]CreateOFDProtocolMessage done [15:18:17]OFDSenderStorePacket 155578 [15:18:17]StoreOFDPacket docnum=155578 [15:18:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 30 FD 07 01 80 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 38 65 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 5F 02 00 35 04 06 00 B3 7E 1F DB 07 05 A8 29 B5 B8 14 AC E0 EF [15:18:17]CheckFolder [15:18:17]dirname=/storage/ofd_packets [15:18:17]CheckFolder done [15:18:17]ProducePacketName [15:18:17]name=ofd_packets/00155578 [15:18:17]NVStorageSaveData ofd_packets/00155578 [15:18:17]File name is /storage/ofd_packets/00155578 [15:18:17]Write 301 bytes [15:18:17]NVStorageSaveData done [15:18:17]OFDSenderStorePacket done [15:18:17]KKMCreateOFDPacket done [15:18:17]NVStorageSaveData kkm_last_timestamp [15:18:17]File name is /storage/kkm_last_timestamp [15:18:17]Write 4 bytes [15:18:17]NVStorageSaveData done [15:18:17]ExternCall_PrintAddStr [15:18:17]wPrintStart [15:18:17]Write to MH i2c: 01 00 00 7F 0A 89 [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: 01 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: 01 07 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: 01 07 00 7F 0A 00 00 00 00 00 FF 0F 9E [15:18:17]RasterBufferAndPrint [15:18:17]line Счет N : (1)98384 [15:18:17]line ИНН: 02508201610067 [15:18:17]line Контрольно-Кассовый Чек [15:18:17]line ПРОДАЖА [15:18:17]line ТРК (МРК, ГНК) : 31 [15:18:17]line Товар: 2710124130 [15:18:17]line Аи-92-К-5 [15:18:17]line 7.480 * 66.90 [15:18:17]line = 500.41 [15:18:17]line НДС 12% НСП 1% [15:18:17]line > о реализуемом товаре [15:18:17]line ОКРУГЛЕНИЕ: -0.41 [15:18:17]line ИТОГО: 500.00 [15:18:17]line Внесено: 500.00 [15:18:17]line СДАЧА: 0.00 [15:18:17]line НСП 1% : 4.43 [15:18:17]line НДС 12% : 53.14 [15:18:17]line Наличными: 500.00 [15:18:17]line Безнал.: 0.00 [15:18:17]line Место: АЗС № 143 "Партнер Нефть" [15:18:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:18:17]line СНО: Общий режим [15:18:17]line Чек 203 24.10.2024 15:18 [15:18:17]line Смена: 534 ФФД: 1.0 [15:18:17]line ЗНМ: 0300000096 [15:18:17]line РНМ: 0000000000091693 [15:18:17]line Версия ККМ: 001 [15:18:17]line ФМ: 0000000000871792 [15:18:17]line ФД: 155578 [15:18:17]line ФПД: 197354281699077 [15:18:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T151816&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155578&fm=197354281699077&tin=02508201610067®Number=0000000000091693&sum=50000 [15:18:17]written 0, free lines is 4095 [15:18:17]OFD Sender: Processing packet 155578 [packets to send 31, broken 30] [15:18:17]ProducePacketName [15:18:17]name=ofd_packets/00155578 [15:18:17]OFD Sender: To server: pG, [15:18:17]CommunicateWithHost lk.salyk.kg:30040 [15:18:17]ConnectInit lk.salyk.kg [15:18:17]Connected sock=8 [15:18: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 39 32 0F 01 00 00 30 FD 07 01 80 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 38 65 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 5F 02 00 35 04 06 00 B3 7E 1F DB 07 05 A8 29 B5 B8 14 AC E0 EF [15:18: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 39 32 4F 00 00 00 BB 01 47 00 F9 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 39 32 10 04 04 00 BA 5F 02 00 F4 03 04 00 B0 0A 1A 67 B6 04 01 00 00 F4 32 C5 F3 D5 9A 9C F9 [15:18:17]CommunicateWithHost err = 0 [15:18:17]CheckOFDResponse [15:18:17]1017 (14) - 77093643461234 [15:18:17]1041 (16) - 0000000000871792 [15:18:17]1040 (4) - 155578 [15:18:17]1012 (4) - 24.10.2024 08:52 [15:18:17]1206 (1) - 0 [15:18:17]OFD Sender: Remove packet 155578 [15:18:17]ProducePacketName [15:18:17]name=ofd_packets/00155578 [15:18:17]NVStorageDeleteData [15:18:17]Write to MH i2c: 01 00 00 AA 0A B4 [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: 01 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: 01 07 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: 01 07 00 AA 0A 00 00 00 00 00 EE 0C B5 [15:18:17]RasterBufferAndPrint [15:18:17]line [15:18:17]line [15:18:17]line [15:18:17]line [15:18:17]line [15:18:17]written 0, free lines is 3316 [15:18:17]process_action close_receipt done [15:18:17]requested_data is exist [15:18:17]produce_requested_data [15:18:17]requested_item fm.sn is exist - process it [15:18:17]wFMCommunicate request_size=4 [15:18:17]MH_SAM_APDU [15:18:17]CAPDU: 80 11 00 00 [15:18:17]Write to MH i2c: E2 08 00 B1 0A 80 11 00 00 00 00 00 00 35 [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:17]Read from MH i2c: E2 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 17 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 17 00 B1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8A [15:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:18:17]wFMCommunicate OK [15:18:17]requested_item fd.num is exist - process it [15:18:17]SAM_PROTO_GetFieldsCounters [15:18:17]wFMCommunicate request_size=4 [15:18:17]MH_SAM_APDU [15:18:17]CAPDU: 80 13 00 00 [15:18:17]Write to MH i2c: E2 08 00 B2 0A 80 13 00 00 00 00 00 00 38 [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:17]Read from MH i2c: E2 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 62 00 [15:18:17]MH_I2C_Read... [15:18:17]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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BA 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [15:18: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BA 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:17]wFMCommunicate OK [15:18:17]SAM_PROTO_GetFieldsCounters done [15:18:17]requested_item shift.num is exist - process it [15:18:17]requested_item shift.opened is exist - process it [15:18:17]req_shift_opened [15:18:17]FM_GetShiftState [15:18:17]SAM_PROTO_GetShiftState [15:18:17]wFMCommunicate request_size=4 [15:18:17]MH_SAM_APDU [15:18:17]CAPDU: 80 13 01 00 [15:18:17]Write to MH i2c: E2 08 00 B3 0A 80 13 01 00 00 00 00 00 3A [15:18:17]Write i2c OK [15:18:17]MH_I2C_Read... [15:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:17]Read from MH i2c: E2 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 0E 00 [15:18:17]MH_I2C_Read... [15:18:17]Read from MH i2c: E2 0E 00 B3 0A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 87 [15:18:17]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:18:17]wFMCommunicate OK [15:18:17]SAM_PROTO_GetShiftState done [15:18:17]FM_GetShiftState done [15:18:17]req_shift_opened done [15:18:17]requested_item shift.open_date is exist - process it [15:18:17]req_shift_open_date [15:18:17]req_shift_open_date done [15:18:17]produce_requested_data done [15:18:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155578,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:18:17]process_action_free close_receipt [15:18:17]json_value_free [15:18:17]json_value_free done [15:18:17]process_json_proto returns [15:18:17]Send response to host [15:18:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155578,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:18:17]free response buf [15:18:17]execute_script done [15:18:17]execute_script returns [15:18:17]free content buf [15:18:17]Sock 9.Close socket [15:18:17]Sock 9.Thread stoped [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:07]accept exits with 10 [15:21:07]New connection [15:21:07]New thread 3066781028 created [15:21:07]Thread 3066637668 joined [15:21:07]Waiting for new connection... [15:21:07] Sock 10.Parse request [15:21:07]Sock 10.Check first char [15:21:07]Sock 10.First char is OK [15:21:07]request: POST /json_proto HTTP/1.0 [15:21:07]Method: POST [15:21:07]URL: /json_proto [15:21:07]Method is POST - this is cgi request [15:21:07]url: /json_proto [15:21:07]query_string will be loaded in cgi processing [15:21:07]execute_cgi json_proto POST (null) [15:21:07]execute_cgi path=json_proto method=POST [15:21:07]POST find Content-Length [15:21:07]Host: 172.17.63.3:8080 [15:21:07]Content-Length: 681 [15:21:07]Content-Type: application/json [15:21:07] [15:21:07]POST finish read [15:21:07]Found Content-Length = 681 [15:21:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:07]execute_script... [15: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)98385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:07]POST & json_proto [15:21:07]process_json_proto [15:21:07]json parsed OK: [15:21:07]protocol is kg_v1.0 [15:21:07]action value=close_receipt [15:21:07]process_action close_receipt [15:21:07]cmd_close_receipt [15:21:07]MH_GetDate [15:21:07]Write to MH i2c: F0 00 00 B4 0A AD [15:21:07]Write i2c OK [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: F0 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: F0 09 00 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: F0 09 00 B4 0A 00 E4 65 1A 67 50 D1 6C 64 71 [15:21:07]GetLastDocTimeStamp 1729783096 [15:21:07]current date 1729783268 [15:21:07]FM_GetShiftState [15:21:07]SAM_PROTO_GetShiftState [15:21:07]wFMCommunicate request_size=4 [15:21:07]MH_SAM_APDU [15:21:07]CAPDU: 80 13 01 00 [15:21:07]Write to MH i2c: E2 08 00 B5 0A 80 13 01 00 00 00 00 00 3C [15:21:07]Write i2c OK [15:21:07]MH_I2C_Read... [15:21:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:07]Read from MH i2c: E2 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: E2 0E 00 [15:21:07]MH_I2C_Read... [15:21:07]Read from MH i2c: E2 0E 00 B5 0A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 89 [15:21:07]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:21:07]wFMCommunicate OK [15:21:07]SAM_PROTO_GetShiftState done [15:21:07]FM_GetShiftState done [15:21:07]opened in 1729729836 [15:21:07]opened+sec_in_day 1729816236 [15:21:07]quantity*price = 100015 [15:21:07]sum+1 = 100017 [15:21:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 204 24.10.2024 15:21 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155579 ФПД: 41635366284746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152108&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155579&fm=41635366284746&tin=02508201610067®Number=0000000000091693&sum=100000 [15:21:09]StoreToDocumentArchive [15:21:09]shift 534 fd 155579 [15:21:09]save to /storage/0534/doc_00155579 [15:21:09]save last doc name /storage/0534/doc_00155579 to /storage/kkm_last_doc_name [15:21:09]save OK [15:21:09]Clear old archive folders... [15:21:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:09]tlvbuf is 01F6A720 [15:21:09]SAM_PROTO_ClearQueue [15:21:09]wFMCommunicate request_size=4 [15:21:09]MH_SAM_APDU [15:21:09]CAPDU: 80 09 00 00 [15:21:09]Write to MH i2c: E2 08 00 C2 0A 80 09 00 00 00 00 00 00 3E [15:21:09]Write i2c OK [15:21:09]MH_I2C_Read... [15:21:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:09]Read from MH i2c: E2 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: E2 03 00 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: E2 03 00 C2 0A 00 90 00 40 [15:21:09]RAPDU: 90 00 [15:21:09]wFMCommunicate OK [15:21:09]SAM_PROTO_ClearQueue done [15:21:09]KKMCreateOFDPacket [15:21:09]OFDProtocolAddRootSTLVToBuf [15:21:09]FM_MakeSignedData [15:21:09]FM_MakeSignedData [15:21:09]SAM_PROTO_SignData [15:21:09]wFMCommunicate request_size=4 [15:21:09]MH_SAM_APDU [15:21:09]CAPDU: 80 0D 01 02 [15:21:09]Write to MH i2c: E2 08 00 C3 0A 80 0D 01 02 00 00 00 00 46 [15:21:09]Write i2c OK [15:21:09]MH_I2C_Read... [15:21:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:09]Read from MH i2c: E2 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: E2 03 00 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: E2 03 00 C3 0A 00 90 00 41 [15:21:09]RAPDU: 90 00 [15:21:09]wFMCommunicate OK [15:21:09]wFMCommunicate request_size=255 [15:21:09]MH_SAM_APDU [15:21: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 E4 65 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 5F 02 00 35 04 06 00 25 [15:21:09]Write to MH i2c: E2 02 01 C4 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 E4 65 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 5F 02 00 35 04 06 00 25 00 00 C3 [15:21:09]Write i2c OK [15:21:09]MH_I2C_Read... [15:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:09]Read from MH i2c: E2 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: E2 03 00 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: E2 03 00 C4 0A 00 90 00 42 [15:21:09]RAPDU: 90 00 [15:21:09]wFMCommunicate OK [15:21:09]wFMCommunicate request_size=10 [15:21:09]MH_SAM_APDU [15:21:09]CAPDU: 80 0D 02 02 05 DD FD 37 AD CA [15:21:09]Write to MH i2c: E2 0D 00 C5 0A 80 0D 02 02 05 00 DD FD 37 AD CA 00 00 DB [15:21:09]Write i2c OK [15:21:09]MH_I2C_Read... [15:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:09]Read from MH i2c: E2 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: E2 03 00 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: E2 03 00 C5 0A 00 90 00 43 [15:21:09]RAPDU: 90 00 [15:21:09]wFMCommunicate OK [15:21:09]wFMCommunicate request_size=4 [15:21:09]MH_SAM_APDU [15:21:09]CAPDU: 80 0D 03 02 [15:21:09]Write to MH i2c: E2 08 00 C6 0A 80 0D 03 02 00 00 00 00 4B [15:21:09]Write i2c OK [15:21:09]MH_I2C_Read... [15:21:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:09]Read from MH i2c: E2 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: E2 0B 00 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: E2 0B 00 C6 0A 00 A8 60 08 E0 0C FB 52 EF 90 00 84 [15:21:09]RAPDU: A8 60 08 E0 0C FB 52 EF 90 00 [15:21:09]wFMCommunicate OK [15:21:09]SAM_PROTO_SignData done [15:21:09]FM_MakeSignedData done [15:21:09]CreateOFDProtocolMessage [15:21:09]wFMCommunicate request_size=4 [15:21:09]MH_SAM_APDU [15:21:09]CAPDU: 80 11 00 00 [15:21:09]Write to MH i2c: E2 08 00 C7 0A 80 11 00 00 00 00 00 00 4B [15:21:09]Write i2c OK [15:21:09]MH_I2C_Read... [15:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:09]Read from MH i2c: E2 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: E2 17 00 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: E2 17 00 C7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A0 [15:21:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:21:09]wFMCommunicate OK [15:21:09]CreateOFDProtocolMessage done [15:21:09]OFDSenderStorePacket 155579 [15:21:09]StoreOFDPacket docnum=155579 [15:21:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0D 2D 07 01 69 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 E4 65 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 5F 02 00 35 04 06 00 25 DD FD 37 AD CA A8 60 08 E0 0C FB 52 EF [15:21:09]CheckFolder [15:21:09]dirname=/storage/ofd_packets [15:21:09]CheckFolder done [15:21:09]ProducePacketName [15:21:09]name=ofd_packets/00155579 [15:21:09]NVStorageSaveData ofd_packets/00155579 [15:21:09]File name is /storage/ofd_packets/00155579 [15:21:09]Write 301 bytes [15:21:09]NVStorageSaveData done [15:21:09]OFDSenderStorePacket done [15:21:09]KKMCreateOFDPacket done [15:21:09]NVStorageSaveData kkm_last_timestamp [15:21:09]File name is /storage/kkm_last_timestamp [15:21:09]Write 4 bytes [15:21:09]NVStorageSaveData done [15:21:09]OFD Sender: Processing packet 155579 [packets to send 31, broken 30] [15:21:09]ProducePacketName [15:21:09]name=ofd_packets/00155579 [15:21:09]OFD Sender: To server: pG, [15:21:09]CommunicateWithHost lk.salyk.kg:30040 [15:21:09]ConnectInit lk.salyk.kg [15:21:09]ExternCall_PrintAddStr [15:21:09]wPrintStart [15:21:09]Write to MH i2c: 01 00 00 C8 0A D2 [15:21:09]Write i2c OK [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: 01 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: 01 07 00 [15:21:09]MH_I2C_Read... [15:21:09]Read from MH i2c: 01 07 00 C8 0A 00 00 00 00 00 FF 0F E7 [15:21:09]RasterBufferAndPrint [15:21:09]line Счет N : (1)98385 [15:21:09]line ИНН: 02508201610067 [15:21:09]line Контрольно-Кассовый Чек [15:21:09]line ПРОДАЖА [15:21:09]line ТРК (МРК, ГНК) : 31 [15:21:09]line Товар: 2710124130 [15:21:09]line Аи-92-К-5 [15:21:09]line 14.950 * 66.90 [15:21:09]line = 1000.16 [15:21:09]line НДС 12% НСП 1% [15:21:09]line > о реализуемом товаре [15:21:09]line ОКРУГЛЕНИЕ: -0.16 [15:21:09]line ИТОГО: 1000.00 [15:21:09]line Внесено: 1000.00 [15:21:09]line СДАЧА: 0.00 [15:21:09]line НСП 1% : 8.85 [15:21:09]line НДС 12% : 106.21 [15:21:09]line Наличными: 1000.00 [15:21:09]line Безнал.: 0.00 [15:21:09]line Место: АЗС № 143 "Партнер Нефть" [15:21:09]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:21:09]line СНО: Общий режим [15:21:09]line Чек 204 24.10.2024 15:21 [15:21:09]line Смена: 534 ФФД: 1.0 [15:21:09]line ЗНМ: 0300000096 [15:21:09]line РНМ: 0000000000091693 [15:21:09]line Версия ККМ: 001 [15:21:09]line ФМ: 0000000000871792 [15:21:09]line ФД: 155579 [15:21:09]line ФПД: 41635366284746 [15:21:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152108&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155579&fm=41635366284746&tin=02508201610067®Number=0000000000091693&sum=100000 [15:21:09]Connected sock=11 [15: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 39 32 0F 01 00 00 0D 2D 07 01 69 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 E4 65 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 5F 02 00 35 04 06 00 25 DD FD 37 AD CA A8 60 08 E0 0C FB 52 EF [15:21:09]written 0, free lines is 4095 [15:21: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 39 32 4F 00 00 00 A2 81 47 00 70 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 39 32 10 04 04 00 BB 5F 02 00 F4 03 04 00 5C 0B 1A 67 B6 04 01 00 00 25 00 6E CB B6 A2 82 1F [15:21:10]CommunicateWithHost err = 0 [15:21:10]CheckOFDResponse [15:21:10]1017 (14) - 77093643461234 [15:21:10]1041 (16) - 0000000000871792 [15:21:10]1040 (4) - 155579 [15:21:10]1012 (4) - 24.10.2024 08:54 [15:21:10]1206 (1) - 0 [15:21:10]OFD Sender: Remove packet 155579 [15:21:10]ProducePacketName [15:21:10]name=ofd_packets/00155579 [15:21:10]NVStorageDeleteData [15:21:10]Write to MH i2c: 01 00 00 F3 0A FD [15:21:10]Write i2c OK [15:21:10]MH_I2C_Read... [15:21:10]Read from MH i2c: 01 [15:21:10]MH_I2C_Read... [15:21:10]Read from MH i2c: 01 07 00 [15:21:10]MH_I2C_Read... [15:21:10]Read from MH i2c: 01 07 00 F3 0A 00 00 00 00 00 E5 0C F5 [15:21:10]RasterBufferAndPrint [15:21:10]line [15:21:10]line [15:21:10]line [15:21:10]line [15:21:10]line [15:21:10]written 0, free lines is 3310 [15:21:10]process_action close_receipt done [15:21:10]requested_data is exist [15:21:10]produce_requested_data [15:21:10]requested_item fm.sn is exist - process it [15:21:10]wFMCommunicate request_size=4 [15:21:10]MH_SAM_APDU [15:21:10]CAPDU: 80 11 00 00 [15:21:10]Write to MH i2c: E2 08 00 FA 0A 80 11 00 00 00 00 00 00 7E [15:21:10]Write i2c OK [15:21:10]MH_I2C_Read... [15:21:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:10]Read from MH i2c: E2 [15:21:10]MH_I2C_Read... [15:21:10]Read from MH i2c: E2 17 00 [15:21:10]MH_I2C_Read... [15:21:10]Read from MH i2c: E2 17 00 FA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D3 [15:21:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:21:10]wFMCommunicate OK [15:21:10]requested_item fd.num is exist - process it [15:21:10]SAM_PROTO_GetFieldsCounters [15:21:10]wFMCommunicate request_size=4 [15:21:10]MH_SAM_APDU [15:21:10]CAPDU: 80 13 00 00 [15:21:10]Write to MH i2c: E2 08 00 FB 0A 80 13 00 00 00 00 00 00 81 [15:21:10]Write i2c OK [15:21:10]MH_I2C_Read... [15:21:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:10]OFD Sender: No OFD packet to send [15:21:10]Read from MH i2c: E2 [15:21:10]MH_I2C_Read... [15:21:10]Read from MH i2c: E2 62 00 [15:21:10]MH_I2C_Read... [15:21:10]Read from MH i2c: E2 62 00 FB 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BB 5F 02 00 0E 04 04 00 16 02 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 3F [15:21: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BB 5F 02 00 0E 04 04 00 16 02 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 [15:21:10]wFMCommunicate OK [15:21:10]SAM_PROTO_GetFieldsCounters done [15:21:10]requested_item shift.num is exist - process it [15:21:10]requested_item shift.opened is exist - process it [15:21:10]req_shift_opened [15:21:10]FM_GetShiftState [15:21:10]SAM_PROTO_GetShiftState [15:21:10]wFMCommunicate request_size=4 [15:21:10]MH_SAM_APDU [15:21:10]CAPDU: 80 13 01 00 [15:21:10]Write to MH i2c: E2 08 00 FC 0A 80 13 01 00 00 00 00 00 83 [15:21:10]Write i2c OK [15:21:10]MH_I2C_Read... [15:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:10]Read from MH i2c: E2 [15:21:10]MH_I2C_Read... [15:21:10]Read from MH i2c: E2 0E 00 [15:21:10]MH_I2C_Read... [15:21:10]Read from MH i2c: E2 0E 00 FC 0A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D0 [15:21:10]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:21:10]wFMCommunicate OK [15:21:10]SAM_PROTO_GetShiftState done [15:21:10]FM_GetShiftState done [15:21:10]req_shift_opened done [15:21:10]requested_item shift.open_date is exist - process it [15:21:10]req_shift_open_date [15:21:10]req_shift_open_date done [15:21:10]produce_requested_data done [15:21:10]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155579,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:21:10]process_action_free close_receipt [15:21:10]json_value_free [15:21:10]json_value_free done [15:21:10]process_json_proto returns [15:21:10]Send response to host [15:21:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155579,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:21:10]free response buf [15:21:10]execute_script done [15:21:10]execute_script returns [15:21:10]free content buf [15:21:10]Sock 10.Close socket [15:21:10]Sock 10.Thread stoped [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:54]accept exits with 8 [15:21:54]New connection [15:21:54]New thread 3066637668 created [15:21:54]Thread 3066781028 joined [15:21:54]Waiting for new connection... [15:21:54] Sock 8.Parse request [15:21:54]Sock 8.Check first char [15:21:54]Sock 8.First char is OK [15:21:54]request: POST /json_proto HTTP/1.0 [15:21:54]Method: POST [15:21:54]URL: /json_proto [15:21:54]Method is POST - this is cgi request [15:21:54]url: /json_proto [15:21:54]query_string will be loaded in cgi processing [15:21:54]execute_cgi json_proto POST (null) [15:21:54]execute_cgi path=json_proto method=POST [15:21:54]POST find Content-Length [15:21:54]Host: 172.17.63.3:8080 [15:21:54]Content-Length: 768 [15:21:54]Content-Type: application/json [15:21:54] [15:21:54]POST finish read [15:21:54]Found Content-Length = 768 [15:21:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 18.690, "sum" : 1250.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: Mbank", "payments": [ { "type": 1, "sum" : 1250.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:54]execute_script... [15:21: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)98386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 18.690, "sum" : 1250.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: Mbank", "payments": [ { "type": 1, "sum" : 1250.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:54]POST & json_proto [15:21:54]process_json_proto [15:21:54]json parsed OK: [15:21:54]protocol is kg_v1.0 [15:21:54]action value=close_receipt [15:21:54]process_action close_receipt [15:21:54]cmd_close_receipt [15:21:54]MH_GetDate [15:21:54]Write to MH i2c: F0 00 00 FD 0A F6 [15:21:54]Write i2c OK [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: F0 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: F0 09 00 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: F0 09 00 FD 0A 00 13 66 1A 67 50 D1 6C 64 EA [15:21:54]GetLastDocTimeStamp 1729783268 [15:21:54]current date 1729783315 [15:21:54]FM_GetShiftState [15:21:54]SAM_PROTO_GetShiftState [15:21:54]wFMCommunicate request_size=4 [15:21:54]MH_SAM_APDU [15:21:54]CAPDU: 80 13 01 00 [15:21:54]Write to MH i2c: E2 08 00 FE 0A 80 13 01 00 00 00 00 00 85 [15:21:54]Write i2c OK [15:21:54]MH_I2C_Read... [15:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:54]Read from MH i2c: E2 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 0E 00 [15:21:54]MH_I2C_Read... [15:21:54]Read from MH i2c: E2 0E 00 FE 0A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D2 [15:21:54]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:21:54]wFMCommunicate OK [15:21:54]SAM_PROTO_GetShiftState done [15:21:54]FM_GetShiftState done [15:21:54]opened in 1729729836 [15:21:54]opened+sec_in_day 1729816236 [15:21:54]quantity*price = 125036 [15:21:54]sum+1 = 125037 [15:21:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1250.36 НСП 1% : 11.06 НДС 12% : 132.78 Наличными: 0.00 Безнал.: 1250.36 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 205 24.10.2024 15:21 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155580 ФПД: 208223352950180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152155&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155580&fm=208223352950180&tin=02508201610067®Number=0000000000091693&sum=125036 [15:21:55]StoreToDocumentArchive [15:21:55]shift 534 fd 155580 [15:21:55]save to /storage/0534/doc_00155580 [15:21:55]save last doc name /storage/0534/doc_00155580 to /storage/kkm_last_doc_name [15:21:55]save OK [15:21:55]Clear old archive folders... [15:21:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:55]tlvbuf is 01F60CA0 [15:21:55]SAM_PROTO_ClearQueue [15:21:55]wFMCommunicate request_size=4 [15:21:55]MH_SAM_APDU [15:21:55]CAPDU: 80 09 00 00 [15:21:55]Write to MH i2c: E2 08 00 0B 0B 80 09 00 00 00 00 00 00 88 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:55]Read from MH i2c: E2 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 0B 0B 00 90 00 8A [15:21:55]RAPDU: 90 00 [15:21:55]wFMCommunicate OK [15:21:55]SAM_PROTO_ClearQueue done [15:21:55]KKMCreateOFDPacket [15:21:55]OFDProtocolAddRootSTLVToBuf [15:21:55]FM_MakeSignedData [15:21:55]FM_MakeSignedData [15:21:55]SAM_PROTO_SignData [15:21:55]wFMCommunicate request_size=4 [15:21:55]MH_SAM_APDU [15:21:55]CAPDU: 80 0D 01 02 [15:21:55]Write to MH i2c: E2 08 00 0C 0B 80 0D 01 02 00 00 00 00 90 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:55]Read from MH i2c: E2 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 [15:21:55]MH_I2C_Read... [15:21:55]Read from MH i2c: E2 03 00 0C 0B 00 90 00 8B [15:21:55]RAPDU: 90 00 [15:21:55]wFMCommunicate OK [15:21:55]wFMCommunicate request_size=255 [15:21:55]MH_SAM_APDU [15:21:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 49 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 33 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C E8 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 13 66 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 5F 02 00 35 04 06 00 BD [15:21:55]Write to MH i2c: E2 02 01 0D 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 02 49 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 33 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C E8 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 13 66 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 5F 02 00 35 04 06 00 BD 00 00 45 [15:21:55]Write i2c OK [15:21:55]MH_I2C_Read... [15:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:56]Read from MH i2c: E2 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 03 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 03 00 0D 0B 00 90 00 8C [15:21:56]RAPDU: 90 00 [15:21:56]wFMCommunicate OK [15:21:56]wFMCommunicate request_size=10 [15:21:56]MH_SAM_APDU [15:21:56]CAPDU: 80 0D 02 02 05 60 C6 FC 8D A4 [15:21:56]Write to MH i2c: E2 0D 00 0E 0B 80 0D 02 02 05 00 60 C6 FC 8D A4 00 00 F0 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:56]Read from MH i2c: E2 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 03 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 03 00 0E 0B 00 90 00 8D [15:21:56]RAPDU: 90 00 [15:21:56]wFMCommunicate OK [15:21:56]wFMCommunicate request_size=4 [15:21:56]MH_SAM_APDU [15:21:56]CAPDU: 80 0D 03 02 [15:21:56]Write to MH i2c: E2 08 00 0F 0B 80 0D 03 02 00 00 00 00 95 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:56]Read from MH i2c: E2 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 0B 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 0B 00 0F 0B 00 00 7A 31 EA 6A 7F 39 17 90 00 64 [15:21:56]RAPDU: 00 7A 31 EA 6A 7F 39 17 90 00 [15:21:56]wFMCommunicate OK [15:21:56]SAM_PROTO_SignData done [15:21:56]FM_MakeSignedData done [15:21:56]CreateOFDProtocolMessage [15:21:56]wFMCommunicate request_size=4 [15:21:56]MH_SAM_APDU [15:21:56]CAPDU: 80 11 00 00 [15:21:56]Write to MH i2c: E2 08 00 10 0B 80 11 00 00 00 00 00 00 95 [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:56]Read from MH i2c: E2 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 17 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: E2 17 00 10 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EA [15:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:21:56]wFMCommunicate OK [15:21:56]CreateOFDProtocolMessage done [15:21:56]OFDSenderStorePacket 155580 [15:21:56]StoreOFDPacket docnum=155580 [15:21:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EA FF 07 01 FF 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 02 49 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 33 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C E8 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 13 66 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 5F 02 00 35 04 06 00 BD 60 C6 FC 8D A4 00 7A 31 EA 6A 7F 39 17 [15:21:56]CheckFolder [15:21:56]dirname=/storage/ofd_packets [15:21:56]CheckFolder done [15:21:56]ProducePacketName [15:21:56]name=ofd_packets/00155580 [15:21:56]NVStorageSaveData ofd_packets/00155580 [15:21:56]File name is /storage/ofd_packets/00155580 [15:21:56]Write 301 bytes [15:21:56]NVStorageSaveData done [15:21:56]OFDSenderStorePacket done [15:21:56]KKMCreateOFDPacket done [15:21:56]NVStorageSaveData kkm_last_timestamp [15:21:56]File name is /storage/kkm_last_timestamp [15:21:56]Write 4 bytes [15:21:56]NVStorageSaveData done [15:21:56]ExternCall_PrintAddStr [15:21:56]wPrintStart [15:21:56]Write to MH i2c: 01 00 00 11 0B 1C [15:21:56]Write i2c OK [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: 01 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: 01 07 00 [15:21:56]MH_I2C_Read... [15:21:56]Read from MH i2c: 01 07 00 11 0B 00 00 00 00 00 FF 0F 31 [15:21:56]RasterBufferAndPrint [15:21:56]line Счет N : (1)98386 [15:21:56]line ИНН: 02508201610067 [15:21:56]line Контрольно-Кассовый Чек [15:21:56]line ПРОДАЖА [15:21:56]line ТРК (МРК, ГНК) : 21 [15:21:56]line Товар: 2710124130 [15:21:56]line Аи-92-К-5 [15:21:56]line 18.690 * 66.90 [15:21:56]line = 1250.36 [15:21:56]line НДС 12% НСП 1% [15:21:56]line > о реализуемом товаре [15:21:56]line ИТОГО: 1250.36 [15:21:56]line НСП 1% : 11.06 [15:21:56]line НДС 12% : 132.78 [15:21:56]line Наличными: 0.00 [15:21:56]line Безнал.: 1250.36 [15:21:56]line Место: АЗС № 143 "Партнер Нефть" [15:21:56]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:21:56]line СНО: Общий режим [15:21:56]line Чек 205 24.10.2024 15:21 [15:21:56]line Смена: 534 ФФД: 1.0 [15:21:56]line ЗНМ: 0300000096 [15:21:56]line РНМ: 0000000000091693 [15:21:56]line Версия ККМ: 001 [15:21:56]line Платежная система: Mbank [15:21:56]line ФМ: 0000000000871792 [15:21:56]line ФД: 155580 [15:21:56]line ФПД: 208223352950180 [15:21:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152155&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155580&fm=208223352950180&tin=02508201610067®Number=0000000000091693&sum=125036 [15:21:56]OFD Sender: Processing packet 155580 [packets to send 31, broken 30] [15:21:56]ProducePacketName [15:21:56]name=ofd_packets/00155580 [15:21:56]OFD Sender: To server: pG, [15:21:56]CommunicateWithHost lk.salyk.kg:30040 [15:21:56]ConnectInit lk.salyk.kg [15:21:56]written 0, free lines is 4095 [15:21:56]Connected sock=10 [15:21: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 39 32 0F 01 00 00 EA FF 07 01 FF 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 02 49 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 33 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C E8 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 13 66 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 5F 02 00 35 04 06 00 BD 60 C6 FC 8D A4 00 7A 31 EA 6A 7F 39 17 [15:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7E 92 47 00 BD 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 5F 02 00 F4 03 04 00 8B 0B 1A 67 B6 04 01 00 00 B2 2B 81 84 63 DB FB 7A [15:21:56]CommunicateWithHost err = 0 [15:21:56]CheckOFDResponse [15:21:56]1017 (14) - 77093643461234 [15:21:56]1041 (16) - 0000000000871792 [15:21:56]1040 (4) - 155580 [15:21:56]1012 (4) - 24.10.2024 08:55 [15:21:56]1206 (1) - 0 [15:21:56]OFD Sender: Remove packet 155580 [15:21:56]ProducePacketName [15:21:56]name=ofd_packets/00155580 [15:21:56]NVStorageDeleteData [15:21:57]Write to MH i2c: 01 00 00 3A 0B 45 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: 01 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: 01 07 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: 01 07 00 3A 0B 00 00 00 00 00 12 0D 6B [15:21:57]RasterBufferAndPrint [15:21:57]line [15:21:57]line [15:21:57]line [15:21:57]line [15:21:57]line [15:21:57]written 0, free lines is 3353 [15:21:57]process_action close_receipt done [15:21:57]requested_data is exist [15:21:57]produce_requested_data [15:21:57]requested_item fm.sn is exist - process it [15:21:57]wFMCommunicate request_size=4 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 11 00 00 [15:21:57]Write to MH i2c: E2 08 00 41 0B 80 11 00 00 00 00 00 00 C6 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 17 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 17 00 41 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1B [15:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:21:57]wFMCommunicate OK [15:21:57]requested_item fd.num is exist - process it [15:21:57]SAM_PROTO_GetFieldsCounters [15:21:57]wFMCommunicate request_size=4 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 13 00 00 [15:21:57]Write to MH i2c: E2 08 00 42 0B 80 13 00 00 00 00 00 00 C9 [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 62 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 62 00 42 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BC 5F 02 00 0E 04 04 00 16 02 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 8B [15:21: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BC 5F 02 00 0E 04 04 00 16 02 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 [15:21:57]wFMCommunicate OK [15:21:57]SAM_PROTO_GetFieldsCounters done [15:21:57]requested_item shift.num is exist - process it [15:21:57]requested_item shift.opened is exist - process it [15:21:57]req_shift_opened [15:21:57]FM_GetShiftState [15:21:57]SAM_PROTO_GetShiftState [15:21:57]wFMCommunicate request_size=4 [15:21:57]MH_SAM_APDU [15:21:57]CAPDU: 80 13 01 00 [15:21:57]Write to MH i2c: E2 08 00 43 0B 80 13 01 00 00 00 00 00 CB [15:21:57]Write i2c OK [15:21:57]MH_I2C_Read... [15:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:57]Read from MH i2c: E2 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 0E 00 [15:21:57]MH_I2C_Read... [15:21:57]Read from MH i2c: E2 0E 00 43 0B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 18 [15:21:57]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:21:57]wFMCommunicate OK [15:21:57]SAM_PROTO_GetShiftState done [15:21:57]FM_GetShiftState done [15:21:57]req_shift_opened done [15:21:57]requested_item shift.open_date is exist - process it [15:21:57]req_shift_open_date [15:21:57]req_shift_open_date done [15:21:57]produce_requested_data done [15:21:57]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155580,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:21:57]process_action_free close_receipt [15:21:57]json_value_free [15:21:57]json_value_free done [15:21:57]process_json_proto returns [15:21:57]Send response to host [15:21:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155580,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:21:57]free response buf [15:21:57]execute_script done [15:21:57]execute_script returns [15:21:57]free content buf [15:21:57]Sock 8.Close socket [15:21:57]Sock 8.Thread stoped [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:32]OFD Sender: No OFD packet to send [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:12]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:27]OFD Sender: No OFD packet to send [15:24:32]OFD Sender: No OFD packet to send [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:05]accept exits with 9 [15:25:05]New connection [15:25:05]New thread 3066781028 created [15:25:05]Thread 3066637668 joined [15:25:05]Waiting for new connection... [15:25:05] Sock 9.Parse request [15:25:05]Sock 9.Check first char [15:25:05]Sock 9.First char is OK [15:25:05]request: POST /json_proto HTTP/1.0 [15:25:05]Method: POST [15:25:05]URL: /json_proto [15:25:05]Method is POST - this is cgi request [15:25:05]url: /json_proto [15:25:05]query_string will be loaded in cgi processing [15:25:05]execute_cgi json_proto POST (null) [15:25:05]execute_cgi path=json_proto method=POST [15:25:05]POST find Content-Length [15:25:05]Host: 172.17.63.3:8080 [15:25:05]Content-Length: 676 [15:25:05]Content-Type: application/json [15:25:05] [15:25:05]POST finish read [15:25:05]Found Content-Length = 676 [15:25:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:05]execute_script... [15:25:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:05]POST & json_proto [15:25:05]process_json_proto [15:25:05]json parsed OK: [15:25:05]protocol is kg_v1.0 [15:25:05]action value=close_receipt [15:25:05]process_action close_receipt [15:25:05]cmd_close_receipt [15:25:05]MH_GetDate [15:25:05]Write to MH i2c: F0 00 00 44 0B 3E [15:25:05]Write i2c OK [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: F0 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: F0 09 00 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: F0 09 00 44 0B 00 D1 66 1A 67 50 D1 6C 64 F0 [15:25:05]GetLastDocTimeStamp 1729783315 [15:25:05]current date 1729783505 [15:25:05]FM_GetShiftState [15:25:05]SAM_PROTO_GetShiftState [15:25:05]wFMCommunicate request_size=4 [15:25:05]MH_SAM_APDU [15:25:05]CAPDU: 80 13 01 00 [15:25:05]Write to MH i2c: E2 08 00 45 0B 80 13 01 00 00 00 00 00 CD [15:25:05]Write i2c OK [15:25:05]MH_I2C_Read... [15:25:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:05]Read from MH i2c: E2 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: E2 0E 00 [15:25:05]MH_I2C_Read... [15:25:05]Read from MH i2c: E2 0E 00 45 0B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1A [15:25:05]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:25:05]wFMCommunicate OK [15:25:05]SAM_PROTO_GetShiftState done [15:25:05]FM_GetShiftState done [15:25:05]opened in 1729729836 [15:25:05]opened+sec_in_day 1729816236 [15:25:05]quantity*price = 50041 [15:25:05]sum+1 = 50042 [15:25:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 206 24.10.2024 15:25 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155581 ФПД: 124587617018427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152505&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155581&fm=124587617018427&tin=02508201610067®Number=0000000000091693&sum=50000 [15:25:06]StoreToDocumentArchive [15:25:06]shift 534 fd 155581 [15:25:06]save to /storage/0534/doc_00155581 [15:25:06]save last doc name /storage/0534/doc_00155581 to /storage/kkm_last_doc_name [15:25:06]save OK [15:25:06]Clear old archive folders... [15:25:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:06]tlvbuf is B6F2EBF0 [15:25:06]SAM_PROTO_ClearQueue [15:25:06]wFMCommunicate request_size=4 [15:25:06]MH_SAM_APDU [15:25:06]CAPDU: 80 09 00 00 [15:25:06]Write to MH i2c: E2 08 00 52 0B 80 09 00 00 00 00 00 00 CF [15:25:06]Write i2c OK [15:25:06]MH_I2C_Read... [15:25:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:06]Read from MH i2c: E2 [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: E2 03 00 [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: E2 03 00 52 0B 00 90 00 D1 [15:25:06]RAPDU: 90 00 [15:25:06]wFMCommunicate OK [15:25:06]SAM_PROTO_ClearQueue done [15:25:06]KKMCreateOFDPacket [15:25:06]OFDProtocolAddRootSTLVToBuf [15:25:06]FM_MakeSignedData [15:25:06]FM_MakeSignedData [15:25:06]SAM_PROTO_SignData [15:25:06]wFMCommunicate request_size=4 [15:25:06]MH_SAM_APDU [15:25:06]CAPDU: 80 0D 01 02 [15:25:06]Write to MH i2c: E2 08 00 53 0B 80 0D 01 02 00 00 00 00 D7 [15:25:06]Write i2c OK [15:25:06]MH_I2C_Read... [15:25:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:06]Read from MH i2c: E2 [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: E2 03 00 [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: E2 03 00 53 0B 00 90 00 D2 [15:25:06]RAPDU: 90 00 [15:25:06]wFMCommunicate OK [15:25:06]wFMCommunicate request_size=255 [15:25:06]MH_SAM_APDU [15:25:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 D1 66 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 5F 02 00 35 04 06 00 71 [15:25:06]Write to MH i2c: E2 02 01 54 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 D1 66 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 5F 02 00 35 04 06 00 71 00 00 98 [15:25:06]Write i2c OK [15:25:06]MH_I2C_Read... [15:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:06]Read from MH i2c: E2 [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: E2 03 00 [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: E2 03 00 54 0B 00 90 00 D3 [15:25:06]RAPDU: 90 00 [15:25:06]wFMCommunicate OK [15:25:06]wFMCommunicate request_size=10 [15:25:06]MH_SAM_APDU [15:25:06]CAPDU: 80 0D 02 02 05 4F D0 A7 E2 3B [15:25:06]Write to MH i2c: E2 0D 00 55 0B 80 0D 02 02 05 00 4F D0 A7 E2 3B 00 00 C7 [15:25:06]Write i2c OK [15:25:06]MH_I2C_Read... [15:25:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:06]Read from MH i2c: E2 [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: E2 03 00 [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: E2 03 00 55 0B 00 90 00 D4 [15:25:06]RAPDU: 90 00 [15:25:06]wFMCommunicate OK [15:25:06]wFMCommunicate request_size=4 [15:25:06]MH_SAM_APDU [15:25:06]CAPDU: 80 0D 03 02 [15:25:06]Write to MH i2c: E2 08 00 56 0B 80 0D 03 02 00 00 00 00 DC [15:25:06]Write i2c OK [15:25:06]MH_I2C_Read... [15:25:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:07]Read from MH i2c: E2 [15:25:07]MH_I2C_Read... [15:25:07]Read from MH i2c: E2 0B 00 [15:25:07]MH_I2C_Read... [15:25:07]Read from MH i2c: E2 0B 00 56 0B 00 5F 33 6A 02 A8 7F 96 F8 90 00 90 [15:25:07]RAPDU: 5F 33 6A 02 A8 7F 96 F8 90 00 [15:25:07]wFMCommunicate OK [15:25:07]SAM_PROTO_SignData done [15:25:07]FM_MakeSignedData done [15:25:07]CreateOFDProtocolMessage [15:25:07]wFMCommunicate request_size=4 [15:25:07]MH_SAM_APDU [15:25:07]CAPDU: 80 11 00 00 [15:25:07]Write to MH i2c: E2 08 00 57 0B 80 11 00 00 00 00 00 00 DC [15:25:07]Write i2c OK [15:25:07]MH_I2C_Read... [15:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:07]Read from MH i2c: E2 [15:25:07]MH_I2C_Read... [15:25:07]Read from MH i2c: E2 17 00 [15:25:07]MH_I2C_Read... [15:25:07]Read from MH i2c: E2 17 00 57 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 31 [15:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:25:07]wFMCommunicate OK [15:25:07]CreateOFDProtocolMessage done [15:25:07]OFDSenderStorePacket 155581 [15:25:07]StoreOFDPacket docnum=155581 [15:25:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 35 3E 07 01 A8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 D1 66 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 5F 02 00 35 04 06 00 71 4F D0 A7 E2 3B 5F 33 6A 02 A8 7F 96 F8 [15:25:07]CheckFolder [15:25:07]dirname=/storage/ofd_packets [15:25:07]CheckFolder done [15:25:07]ProducePacketName [15:25:07]name=ofd_packets/00155581 [15:25:07]NVStorageSaveData ofd_packets/00155581 [15:25:07]File name is /storage/ofd_packets/00155581 [15:25:07]Write 301 bytes [15:25:07]NVStorageSaveData done [15:25:07]OFDSenderStorePacket done [15:25:07]KKMCreateOFDPacket done [15:25:07]NVStorageSaveData kkm_last_timestamp [15:25:07]File name is /storage/kkm_last_timestamp [15:25:07]Write 4 bytes [15:25:07]NVStorageSaveData done [15:25:07]ExternCall_PrintAddStr [15:25:07]wPrintStart [15:25:07]Write to MH i2c: 01 00 00 58 0B 63 [15:25:07]Write i2c OK [15:25:07]MH_I2C_Read... [15:25:07]Read from MH i2c: 01 [15:25:07]MH_I2C_Read... [15:25:07]Read from MH i2c: 01 07 00 [15:25:07]MH_I2C_Read... [15:25:07]Read from MH i2c: 01 07 00 58 0B 00 00 00 00 00 FF 0F 78 [15:25:07]RasterBufferAndPrint [15:25:07]line Счет N : (1)98387 [15:25:07]line ИНН: 02508201610067 [15:25:07]line Контрольно-Кассовый Чек [15:25:07]line ПРОДАЖА [15:25:07]line ТРК (МРК, ГНК) : 31 [15:25:07]line Товар: 2710124130 [15:25:07]line Аи-92-К-5 [15:25:07]line 7.480 * 66.90 [15:25:07]line = 500.41 [15:25:07]line НДС 12% НСП 1% [15:25:07]line > о реализуемом товаре [15:25:07]line ОКРУГЛЕНИЕ: -0.41 [15:25:07]line ИТОГО: 500.00 [15:25:07]line Внесено: 500.00 [15:25:07]line СДАЧА: 0.00 [15:25:07]line НСП 1% : 4.43 [15:25:07]line НДС 12% : 53.14 [15:25:07]line Наличными: 500.00 [15:25:07]line Безнал.: 0.00 [15:25:07]line Место: АЗС № 143 "Партнер Нефть" [15:25:07]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:25:07]line СНО: Общий режим [15:25:07]line Чек 206 24.10.2024 15:25 [15:25:07]line Смена: 534 ФФД: 1.0 [15:25:07]line ЗНМ: 0300000096 [15:25:07]line РНМ: 0000000000091693 [15:25:07]line Версия ККМ: 001 [15:25:07]line ФМ: 0000000000871792 [15:25:07]line ФД: 155581 [15:25:07]line ФПД: 124587617018427 [15:25:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152505&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155581&fm=124587617018427&tin=02508201610067®Number=0000000000091693&sum=50000 [15:25:07]OFD Sender: Processing packet 155581 [packets to send 31, broken 30] [15:25:07]ProducePacketName [15:25:07]name=ofd_packets/00155581 [15:25:07]OFD Sender: To server: pG, [15:25:07]CommunicateWithHost lk.salyk.kg:30040 [15:25:07]ConnectInit lk.salyk.kg [15:25:07]written 0, free lines is 4095 [15:25:07]Connected sock=10 [15:25: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 39 32 0F 01 00 00 35 3E 07 01 A8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 D1 66 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 5F 02 00 35 04 06 00 71 4F D0 A7 E2 3B 5F 33 6A 02 A8 7F 96 F8 [15:25:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 71 B0 47 00 67 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 39 32 10 04 04 00 BD 5F 02 00 F4 03 04 00 4A 0C 1A 67 B6 04 01 00 00 74 45 DF F9 AC 0C 90 78 [15:25:07]CommunicateWithHost err = 0 [15:25:07]CheckOFDResponse [15:25:07]1017 (14) - 77093643461234 [15:25:07]1041 (16) - 0000000000871792 [15:25:07]1040 (4) - 155581 [15:25:07]1012 (4) - 24.10.2024 08:58 [15:25:07]1206 (1) - 0 [15:25:07]OFD Sender: Remove packet 155581 [15:25:07]ProducePacketName [15:25:07]name=ofd_packets/00155581 [15:25:07]NVStorageDeleteData [15:25:07]Write to MH i2c: 01 00 00 83 0B 8E [15:25:07]Write i2c OK [15:25:07]MH_I2C_Read... [15:25:07]Read from MH i2c: 01 [15:25:07]MH_I2C_Read... [15:25:07]Read from MH i2c: 01 07 00 [15:25:07]MH_I2C_Read... [15:25:07]Read from MH i2c: 01 07 00 83 0B 00 00 00 00 00 E6 0C 87 [15:25:07]RasterBufferAndPrint [15:25:07]line [15:25:07]line [15:25:07]line [15:25:07]line [15:25:07]line [15:25:07]written 0, free lines is 3308 [15:25:07]process_action close_receipt done [15:25:07]requested_data is exist [15:25:07]produce_requested_data [15:25:07]requested_item fm.sn is exist - process it [15:25:07]wFMCommunicate request_size=4 [15:25:07]MH_SAM_APDU [15:25:07]CAPDU: 80 11 00 00 [15:25:07]Write to MH i2c: E2 08 00 8A 0B 80 11 00 00 00 00 00 00 0F [15:25:07]Write i2c OK [15:25:07]MH_I2C_Read... [15:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:07]Read from MH i2c: E2 [15:25:07]MH_I2C_Read... [15:25:07]Read from MH i2c: E2 17 00 [15:25:07]MH_I2C_Read... [15:25:07]Read from MH i2c: E2 17 00 8A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 64 [15:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:25:07]wFMCommunicate OK [15:25:07]requested_item fd.num is exist - process it [15:25:07]SAM_PROTO_GetFieldsCounters [15:25:07]wFMCommunicate request_size=4 [15:25:07]MH_SAM_APDU [15:25:07]CAPDU: 80 13 00 00 [15:25:07]Write to MH i2c: E2 08 00 8B 0B 80 13 00 00 00 00 00 00 12 [15:25:07]Write i2c OK [15:25:07]MH_I2C_Read... [15:25:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:08]Read from MH i2c: E2 [15:25:08]MH_I2C_Read... [15:25:08]Read from MH i2c: E2 62 00 [15:25:08]MH_I2C_Read... [15:25:08]Read from MH i2c: E2 62 00 8B 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BD 5F 02 00 0E 04 04 00 16 02 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 D8 [15:25: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BD 5F 02 00 0E 04 04 00 16 02 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 [15:25:08]wFMCommunicate OK [15:25:08]SAM_PROTO_GetFieldsCounters done [15:25:08]requested_item shift.num is exist - process it [15:25:08]requested_item shift.opened is exist - process it [15:25:08]req_shift_opened [15:25:08]FM_GetShiftState [15:25:08]SAM_PROTO_GetShiftState [15:25:08]wFMCommunicate request_size=4 [15:25:08]MH_SAM_APDU [15:25:08]CAPDU: 80 13 01 00 [15:25:08]Write to MH i2c: E2 08 00 8C 0B 80 13 01 00 00 00 00 00 14 [15:25:08]Write i2c OK [15:25:08]MH_I2C_Read... [15:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:08]Read from MH i2c: E2 [15:25:08]MH_I2C_Read... [15:25:08]Read from MH i2c: E2 0E 00 [15:25:08]MH_I2C_Read... [15:25:08]Read from MH i2c: E2 0E 00 8C 0B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 61 [15:25:08]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:25:08]wFMCommunicate OK [15:25:08]SAM_PROTO_GetShiftState done [15:25:08]FM_GetShiftState done [15:25:08]req_shift_opened done [15:25:08]requested_item shift.open_date is exist - process it [15:25:08]req_shift_open_date [15:25:08]req_shift_open_date done [15:25:08]produce_requested_data done [15:25:08]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155581,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:25:08]process_action_free close_receipt [15:25:08]json_value_free [15:25:08]json_value_free done [15:25:08]process_json_proto returns [15:25:08]Send response to host [15:25:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155581,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:25:08]free response buf [15:25:08]execute_script done [15:25:08]execute_script returns [15:25:08]free content buf [15:25:08]Sock 9.Close socket [15:25:08]Sock 9.Thread stoped [15:25:08]OFD Sender: No OFD packet to send [15:25:13]OFD Sender: No OFD packet to send [15:25:18]OFD Sender: No OFD packet to send [15:25:23]OFD Sender: No OFD packet to send [15:25:28]OFD Sender: No OFD packet to send [15:25:33]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:28]OFD Sender: No OFD packet to send [15:26:33]OFD Sender: No OFD packet to send [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]accept exits with 8 [15:27:18]New connection [15:27:18]New thread 3066637668 created [15:27:18]Thread 3066781028 joined [15:27:18]Waiting for new connection... [15:27:18] Sock 8.Parse request [15:27:18]Sock 8.Check first char [15:27:18]Sock 8.First char is OK [15:27:18]request: POST /json_proto HTTP/1.0 [15:27:18]Method: POST [15:27:18]URL: /json_proto [15:27:18]Method is POST - this is cgi request [15:27:18]url: /json_proto [15:27:18]query_string will be loaded in cgi processing [15:27:18]execute_cgi json_proto POST (null) [15:27:18]execute_cgi path=json_proto method=POST [15:27:18]POST find Content-Length [15:27:18]Host: 172.17.63.3:8080 [15:27:18]Content-Length: 673 [15:27:18]Content-Type: application/json [15:27:18] [15:27:18]POST finish read [15:27:18]Found Content-Length = 673 [15:27:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\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:27:18]execute_script... [15:27: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)98388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\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:27:18]POST & json_proto [15:27:18]process_json_proto [15:27:18]json parsed OK: [15:27:18]protocol is kg_v1.0 [15:27:18]action value=close_receipt [15:27:18]process_action close_receipt [15:27:18]cmd_close_receipt [15:27:18]MH_GetDate [15:27:18]Write to MH i2c: F0 00 00 8D 0B 87 [15:27:18]Write i2c OK [15:27:18]MH_I2C_Read... [15:27:18]Read from MH i2c: F0 [15:27:18]MH_I2C_Read... [15:27:18]Read from MH i2c: F0 09 00 [15:27:18]MH_I2C_Read... [15:27:18]Read from MH i2c: F0 09 00 8D 0B 00 56 67 1A 67 50 D1 6C 64 BF [15:27:18]GetLastDocTimeStamp 1729783505 [15:27:18]current date 1729783638 [15:27:18]FM_GetShiftState [15:27:18]SAM_PROTO_GetShiftState [15:27:18]wFMCommunicate request_size=4 [15:27:18]MH_SAM_APDU [15:27:18]CAPDU: 80 13 01 00 [15:27:18]Write to MH i2c: E2 08 00 8E 0B 80 13 01 00 00 00 00 00 16 [15:27:18]Write i2c OK [15:27:18]MH_I2C_Read... [15:27:18]OFD Sender: No OFD packet to send [15:27:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:18]Read from MH i2c: E2 [15:27:18]MH_I2C_Read... [15:27:18]Read from MH i2c: E2 0E 00 [15:27:18]MH_I2C_Read... [15:27:18]Read from MH i2c: E2 0E 00 8E 0B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 63 [15:27:18]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:27:18]wFMCommunicate OK [15:27:18]SAM_PROTO_GetShiftState done [15:27:18]FM_GetShiftState done [15:27:18]opened in 1729729836 [15:27:18]opened+sec_in_day 1729816236 [15:27:18]quantity*price = 40005 [15:27:18]sum+1 = 40006 [15:27:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 207 24.10.2024 15:27 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155582 ФПД: 225964656468430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152718&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155582&fm=225964656468430&tin=02508201610067®Number=0000000000091693&sum=40000 [15:27:19]StoreToDocumentArchive [15:27:19]shift 534 fd 155582 [15:27:19]save to /storage/0534/doc_00155582 [15:27:19]save last doc name /storage/0534/doc_00155582 to /storage/kkm_last_doc_name [15:27:19]save OK [15:27:19]Clear old archive folders... [15:27:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:27:19]tlvbuf is 01F599F0 [15:27:19]SAM_PROTO_ClearQueue [15:27:19]wFMCommunicate request_size=4 [15:27:19]MH_SAM_APDU [15:27:19]CAPDU: 80 09 00 00 [15:27:19]Write to MH i2c: E2 08 00 9B 0B 80 09 00 00 00 00 00 00 18 [15:27:19]Write i2c OK [15:27:19]MH_I2C_Read... [15:27:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:19]Read from MH i2c: E2 [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: E2 03 00 [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: E2 03 00 9B 0B 00 90 00 1A [15:27:19]RAPDU: 90 00 [15:27:19]wFMCommunicate OK [15:27:19]SAM_PROTO_ClearQueue done [15:27:19]KKMCreateOFDPacket [15:27:19]OFDProtocolAddRootSTLVToBuf [15:27:19]FM_MakeSignedData [15:27:19]FM_MakeSignedData [15:27:19]SAM_PROTO_SignData [15:27:19]wFMCommunicate request_size=4 [15:27:19]MH_SAM_APDU [15:27:19]CAPDU: 80 0D 01 02 [15:27:19]Write to MH i2c: E2 08 00 9C 0B 80 0D 01 02 00 00 00 00 20 [15:27:19]Write i2c OK [15:27:19]MH_I2C_Read... [15:27:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:19]Read from MH i2c: E2 [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: E2 03 00 [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: E2 03 00 9C 0B 00 90 00 1B [15:27:19]RAPDU: 90 00 [15:27:19]wFMCommunicate OK [15:27:19]wFMCommunicate request_size=255 [15:27:19]MH_SAM_APDU [15:27:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CF 00 00 00 F4 03 04 00 56 67 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 5F 02 00 35 04 06 00 CD 83 7F 14 [15:27:19]Write to MH i2c: E2 02 01 9D 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CF 00 00 00 F4 03 04 00 56 67 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 5F 02 00 35 04 06 00 CD 83 7F 14 00 00 C4 [15:27:19]Write i2c OK [15:27:19]MH_I2C_Read... [15:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:19]Read from MH i2c: E2 [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: E2 03 00 [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: E2 03 00 9D 0B 00 90 00 1C [15:27:19]RAPDU: 90 00 [15:27:19]wFMCommunicate OK [15:27:19]wFMCommunicate request_size=7 [15:27:19]MH_SAM_APDU [15:27:19]CAPDU: 80 0D 02 02 02 A1 CE [15:27:19]Write to MH i2c: E2 0A 00 9E 0B 80 0D 02 02 02 00 A1 CE 00 00 96 [15:27:19]Write i2c OK [15:27:19]MH_I2C_Read... [15:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:19]Read from MH i2c: E2 [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: E2 03 00 [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: E2 03 00 9E 0B 00 90 00 1D [15:27:19]RAPDU: 90 00 [15:27:19]wFMCommunicate OK [15:27:19]wFMCommunicate request_size=4 [15:27:19]MH_SAM_APDU [15:27:19]CAPDU: 80 0D 03 02 [15:27:19]Write to MH i2c: E2 08 00 9F 0B 80 0D 03 02 00 00 00 00 25 [15:27:19]Write i2c OK [15:27:19]MH_I2C_Read... [15:27:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:19]Read from MH i2c: E2 [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: E2 0B 00 [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: E2 0B 00 9F 0B 00 FB 25 6F 15 0A 4D 4D 8D 90 00 FB [15:27:19]RAPDU: FB 25 6F 15 0A 4D 4D 8D 90 00 [15:27:19]wFMCommunicate OK [15:27:19]SAM_PROTO_SignData done [15:27:19]FM_MakeSignedData done [15:27:19]CreateOFDProtocolMessage [15:27:19]wFMCommunicate request_size=4 [15:27:19]MH_SAM_APDU [15:27:19]CAPDU: 80 11 00 00 [15:27:19]Write to MH i2c: E2 08 00 A0 0B 80 11 00 00 00 00 00 00 25 [15:27:19]Write i2c OK [15:27:19]MH_I2C_Read... [15:27:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:19]Read from MH i2c: E2 [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: E2 17 00 [15:27:19]MH_I2C_Read... [15:27:19]Read from MH i2c: E2 17 00 A0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7A [15:27:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:27:19]wFMCommunicate OK [15:27:19]CreateOFDProtocolMessage done [15:27:19]OFDSenderStorePacket 155582 [15:27:19]StoreOFDPacket docnum=155582 [15:27:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 0B C3 04 01 36 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CF 00 00 00 F4 03 04 00 56 67 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 5F 02 00 35 04 06 00 CD 83 7F 14 A1 CE FB 25 6F 15 0A 4D 4D 8D [15:27:19]CheckFolder [15:27:19]dirname=/storage/ofd_packets [15:27:19]CheckFolder done [15:27:19]ProducePacketName [15:27:19]name=ofd_packets/00155582 [15:27:19]NVStorageSaveData ofd_packets/00155582 [15:27:19]File name is /storage/ofd_packets/00155582 [15:27:19]Write 298 bytes [15:27:19]NVStorageSaveData done [15:27:19]OFDSenderStorePacket done [15:27:19]KKMCreateOFDPacket done [15:27:19]NVStorageSaveData kkm_last_timestamp [15:27:19]File name is /storage/kkm_last_timestamp [15:27:19]Write 4 bytes [15:27:19]NVStorageSaveData done [15:27:19]ExternCall_PrintAddStr [15:27:19]wPrintStart [15:27:19]Write to MH i2c: 01 00 00 A1 0B AC [15:27:20]Write i2c OK [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: 01 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: 01 07 00 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: 01 07 00 A1 0B 00 00 00 00 00 FF 0F C1 [15:27:20]RasterBufferAndPrint [15:27:20]line Счет N : (1)98388 [15:27:20]line ИНН: 02508201610067 [15:27:20]line Контрольно-Кассовый Чек [15:27:20]line ПРОДАЖА [15:27:20]line ТРК (МРК, ГНК) : 32 [15:27:20]line Товар: 2710194210 [15:27:20]line ДТ-К-5 [15:27:20]line 5.250 * 76.20 [15:27:20]line = 400.05 [15:27:20]line НДС 12% НСП 1% [15:27:20]line > о реализуемом товаре [15:27:20]line ОКРУГЛЕНИЕ: -0.05 [15:27:20]line ИТОГО: 400.00 [15:27:20]line Внесено: 400.00 [15:27:20]line СДАЧА: 0.00 [15:27:20]line НСП 1% : 3.54 [15:27:20]line НДС 12% : 42.48 [15:27:20]line Наличными: 400.00 [15:27:20]line Безнал.: 0.00 [15:27:20]line Место: АЗС № 143 "Партнер Нефть" [15:27:20]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:27:20]line СНО: Общий режим [15:27:20]line Чек 207 24.10.2024 15:27 [15:27:20]line Смена: 534 ФФД: 1.0 [15:27:20]line ЗНМ: 0300000096 [15:27:20]line РНМ: 0000000000091693 [15:27:20]line Версия ККМ: 001 [15:27:20]line ФМ: 0000000000871792 [15:27:20]line ФД: 155582 [15:27:20]line ФПД: 225964656468430 [15:27:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152718&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155582&fm=225964656468430&tin=02508201610067®Number=0000000000091693&sum=40000 [15:27:20]OFD Sender: Processing packet 155582 [packets to send 31, broken 30] [15:27:20]ProducePacketName [15:27:20]name=ofd_packets/00155582 [15:27:20]OFD Sender: To server: pG, [15:27:20]CommunicateWithHost lk.salyk.kg:30040 [15:27:20]ConnectInit lk.salyk.kg [15:27:20]written 0, free lines is 4095 [15:27:20]Connected sock=10 [15:27: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 39 32 0C 01 00 00 0B C3 04 01 36 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CF 00 00 00 F4 03 04 00 56 67 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 5F 02 00 35 04 06 00 CD 83 7F 14 A1 CE FB 25 6F 15 0A 4D 4D 8D [15:27: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 39 32 4F 00 00 00 45 AA 47 00 04 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 39 32 10 04 04 00 BE 5F 02 00 F4 03 04 00 CF 0C 1A 67 B6 04 01 00 00 F6 81 28 80 C7 F3 44 7B [15:27:20]CommunicateWithHost err = 0 [15:27:20]CheckOFDResponse [15:27:20]1017 (14) - 77093643461234 [15:27:20]1041 (16) - 0000000000871792 [15:27:20]1040 (4) - 155582 [15:27:20]1012 (4) - 24.10.2024 09:01 [15:27:20]1206 (1) - 0 [15:27:20]OFD Sender: Remove packet 155582 [15:27:20]ProducePacketName [15:27:20]name=ofd_packets/00155582 [15:27:20]NVStorageDeleteData [15:27:20]Write to MH i2c: 01 00 00 CC 0B D7 [15:27:20]Write i2c OK [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: 01 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: 01 07 00 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: 01 07 00 CC 0B 00 00 00 00 00 D4 0C BE [15:27:20]RasterBufferAndPrint [15:27:20]line [15:27:20]line [15:27:20]line [15:27:20]line [15:27:20]line [15:27:20]written 0, free lines is 3292 [15:27:20]process_action close_receipt done [15:27:20]requested_data is exist [15:27:20]produce_requested_data [15:27:20]requested_item fm.sn is exist - process it [15:27:20]wFMCommunicate request_size=4 [15:27:20]MH_SAM_APDU [15:27:20]CAPDU: 80 11 00 00 [15:27:20]Write to MH i2c: E2 08 00 D3 0B 80 11 00 00 00 00 00 00 58 [15:27:20]Write i2c OK [15:27:20]MH_I2C_Read... [15:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:20]Read from MH i2c: E2 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 17 00 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 17 00 D3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AD [15:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:27:20]wFMCommunicate OK [15:27:20]requested_item fd.num is exist - process it [15:27:20]SAM_PROTO_GetFieldsCounters [15:27:20]wFMCommunicate request_size=4 [15:27:20]MH_SAM_APDU [15:27:20]CAPDU: 80 13 00 00 [15:27:20]Write to MH i2c: E2 08 00 D4 0B 80 13 00 00 00 00 00 00 5B [15:27:20]Write i2c OK [15:27:20]MH_I2C_Read... [15:27:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:20]Read from MH i2c: E2 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 62 00 [15:27:20]MH_I2C_Read... [15:27:20]Read from MH i2c: E2 62 00 D4 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BE 5F 02 00 0E 04 04 00 16 02 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 25 [15:27:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BE 5F 02 00 0E 04 04 00 16 02 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 [15:27:20]wFMCommunicate OK [15:27:20]SAM_PROTO_GetFieldsCounters done [15:27:20]requested_item shift.num is exist - process it [15:27:20]requested_item shift.opened is exist - process it [15:27:20]req_shift_opened [15:27:20]FM_GetShiftState [15:27:20]SAM_PROTO_GetShiftState [15:27:20]wFMCommunicate request_size=4 [15:27:20]MH_SAM_APDU [15:27:20]CAPDU: 80 13 01 00 [15:27:21]Write to MH i2c: E2 08 00 D5 0B 80 13 01 00 00 00 00 00 5D [15:27:21]Write i2c OK [15:27:21]MH_I2C_Read... [15:27:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:21]Read from MH i2c: E2 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: E2 0E 00 [15:27:21]MH_I2C_Read... [15:27:21]Read from MH i2c: E2 0E 00 D5 0B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AA [15:27:21]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:27:21]wFMCommunicate OK [15:27:21]SAM_PROTO_GetShiftState done [15:27:21]FM_GetShiftState done [15:27:21]req_shift_opened done [15:27:21]requested_item shift.open_date is exist - process it [15:27:21]req_shift_open_date [15:27:21]req_shift_open_date done [15:27:21]produce_requested_data done [15:27:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155582,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:27:21]process_action_free close_receipt [15:27:21]json_value_free [15:27:21]json_value_free done [15:27:21]process_json_proto returns [15:27:21]Send response to host [15:27:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155582,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:27:21]free response buf [15:27:21]execute_script done [15:27:21]execute_script returns [15:27:21]free content buf [15:27:21]Sock 8.Close socket [15:27:21]Sock 8.Thread stoped [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:40]accept exits with 9 [15:28:40]New connection [15:28:40]New thread 3066781028 created [15:28:40]Thread 3066637668 joined [15:28:40]Waiting for new connection... [15:28:40] Sock 9.Parse request [15:28:40]Sock 9.Check first char [15:28:40]Sock 9.First char is OK [15:28:40]request: POST /json_proto HTTP/1.0 [15:28:40]Method: POST [15:28:40]URL: /json_proto [15:28:40]Method is POST - this is cgi request [15:28:40]url: /json_proto [15:28:40]query_string will be loaded in cgi processing [15:28:40]execute_cgi json_proto POST (null) [15:28:40]execute_cgi path=json_proto method=POST [15:28:40]POST find Content-Length [15:28:40]Host: 172.17.63.3:8080 [15:28:40]Content-Length: 678 [15:28:40]Content-Type: application/json [15:28:40] [15:28:40]POST finish read [15:28:40]Found Content-Length = 678 [15:28:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:40]execute_script... [15:28: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)98389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:40]POST & json_proto [15:28:40]process_json_proto [15:28:40]json parsed OK: [15:28:40]protocol is kg_v1.0 [15:28:40]action value=close_receipt [15:28:40]process_action close_receipt [15:28:40]cmd_close_receipt [15:28:40]MH_GetDate [15:28:40]Write to MH i2c: F0 00 00 D6 0B D0 [15:28:40]Write i2c OK [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: F0 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: F0 09 00 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: F0 09 00 D6 0B 00 A8 67 1A 67 50 D1 6C 64 5A [15:28:40]GetLastDocTimeStamp 1729783638 [15:28:40]current date 1729783720 [15:28:40]FM_GetShiftState [15:28:40]SAM_PROTO_GetShiftState [15:28:40]wFMCommunicate request_size=4 [15:28:40]MH_SAM_APDU [15:28:40]CAPDU: 80 13 01 00 [15:28:40]Write to MH i2c: E2 08 00 D7 0B 80 13 01 00 00 00 00 00 5F [15:28:40]Write i2c OK [15:28:40]MH_I2C_Read... [15:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:40]Read from MH i2c: E2 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: E2 0E 00 [15:28:40]MH_I2C_Read... [15:28:40]Read from MH i2c: E2 0E 00 D7 0B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AC [15:28:40]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:28:40]wFMCommunicate OK [15:28:40]SAM_PROTO_GetShiftState done [15:28:40]FM_GetShiftState done [15:28:40]opened in 1729729836 [15:28:40]opened+sec_in_day 1729816236 [15:28:40]quantity*price = 100050 [15:28:40]sum+1 = 100052 [15:28: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 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 208 24.10.2024 15:28 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155583 ФПД: 245279734043990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152840&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155583&fm=245279734043990&tin=02508201610067®Number=0000000000091693&sum=100000 [15:28:41]StoreToDocumentArchive [15:28:41]shift 534 fd 155583 [15:28:41]save to /storage/0534/doc_00155583 [15:28:41]save last doc name /storage/0534/doc_00155583 to /storage/kkm_last_doc_name [15:28:41]save OK [15:28:41]Clear old archive folders... [15:28:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:28:41]tlvbuf is 01F91200 [15:28:41]SAM_PROTO_ClearQueue [15:28:41]wFMCommunicate request_size=4 [15:28:41]MH_SAM_APDU [15:28:41]CAPDU: 80 09 00 00 [15:28:41]Write to MH i2c: E2 08 00 E4 0B 80 09 00 00 00 00 00 00 61 [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:41]Read from MH i2c: E2 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 03 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 03 00 E4 0B 00 90 00 63 [15:28:41]RAPDU: 90 00 [15:28:41]wFMCommunicate OK [15:28:41]SAM_PROTO_ClearQueue done [15:28:41]KKMCreateOFDPacket [15:28:41]OFDProtocolAddRootSTLVToBuf [15:28:41]FM_MakeSignedData [15:28:41]FM_MakeSignedData [15:28:41]SAM_PROTO_SignData [15:28:41]wFMCommunicate request_size=4 [15:28:41]MH_SAM_APDU [15:28:41]CAPDU: 80 0D 01 02 [15:28:41]Write to MH i2c: E2 08 00 E5 0B 80 0D 01 02 00 00 00 00 69 [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:41]Read from MH i2c: E2 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 03 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 03 00 E5 0B 00 90 00 64 [15:28:41]RAPDU: 90 00 [15:28:41]wFMCommunicate OK [15:28:41]wFMCommunicate request_size=255 [15:28:41]MH_SAM_APDU [15:28:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 D0 00 00 00 F4 03 04 00 A8 67 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 5F 02 00 35 04 06 00 DF 14 A3 6B [15:28:41]Write to MH i2c: E2 02 01 E6 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 A8 67 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 5F 02 00 35 04 06 00 DF 14 A3 6B 00 00 8C [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:41]Read from MH i2c: E2 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 03 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 03 00 E6 0B 00 90 00 65 [15:28:41]RAPDU: 90 00 [15:28:41]wFMCommunicate OK [15:28:41]wFMCommunicate request_size=7 [15:28:41]MH_SAM_APDU [15:28:41]CAPDU: 80 0D 02 02 02 15 56 [15:28:41]Write to MH i2c: E2 0A 00 E7 0B 80 0D 02 02 02 00 15 56 00 00 DB [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:41]Read from MH i2c: E2 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 03 00 [15:28:41]MH_I2C_Read... [15:28:41]Read from MH i2c: E2 03 00 E7 0B 00 90 00 66 [15:28:41]RAPDU: 90 00 [15:28:41]wFMCommunicate OK [15:28:41]wFMCommunicate request_size=4 [15:28:41]MH_SAM_APDU [15:28:41]CAPDU: 80 0D 03 02 [15:28:41]Write to MH i2c: E2 08 00 E8 0B 80 0D 03 02 00 00 00 00 6E [15:28:41]Write i2c OK [15:28:41]MH_I2C_Read... [15:28:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:42]Read from MH i2c: E2 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: E2 0B 00 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: E2 0B 00 E8 0B 00 6C A3 83 10 55 90 5C 0B 90 00 5D [15:28:42]RAPDU: 6C A3 83 10 55 90 5C 0B 90 00 [15:28:42]wFMCommunicate OK [15:28:42]SAM_PROTO_SignData done [15:28:42]FM_MakeSignedData done [15:28:42]CreateOFDProtocolMessage [15:28:42]wFMCommunicate request_size=4 [15:28:42]MH_SAM_APDU [15:28:42]CAPDU: 80 11 00 00 [15:28:42]Write to MH i2c: E2 08 00 E9 0B 80 11 00 00 00 00 00 00 6E [15:28:42]Write i2c OK [15:28:42]MH_I2C_Read... [15:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:42]Read from MH i2c: E2 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: E2 17 00 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: E2 17 00 E9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C3 [15:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:28:42]wFMCommunicate OK [15:28:42]CreateOFDProtocolMessage done [15:28:42]OFDSenderStorePacket 155583 [15:28:42]StoreOFDPacket docnum=155583 [15:28:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 4D 97 04 01 C2 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 A8 67 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 5F 02 00 35 04 06 00 DF 14 A3 6B 15 56 6C A3 83 10 55 90 5C 0B [15:28:42]CheckFolder [15:28:42]dirname=/storage/ofd_packets [15:28:42]CheckFolder done [15:28:42]ProducePacketName [15:28:42]name=ofd_packets/00155583 [15:28:42]NVStorageSaveData ofd_packets/00155583 [15:28:42]File name is /storage/ofd_packets/00155583 [15:28:42]Write 298 bytes [15:28:42]NVStorageSaveData done [15:28:42]OFDSenderStorePacket done [15:28:42]KKMCreateOFDPacket done [15:28:42]NVStorageSaveData kkm_last_timestamp [15:28:42]File name is /storage/kkm_last_timestamp [15:28:42]Write 4 bytes [15:28:42]NVStorageSaveData done [15:28:42]ExternCall_PrintAddStr [15:28:42]wPrintStart [15:28:42]Write to MH i2c: 01 00 00 EA 0B F5 [15:28:42]Write i2c OK [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: 01 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: 01 07 00 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: 01 07 00 EA 0B 00 00 00 00 00 FF 0F 0A [15:28:42]RasterBufferAndPrint [15:28:42]line Счет N : (1)98389 [15:28:42]line ИНН: 02508201610067 [15:28:42]line Контрольно-Кассовый Чек [15:28:42]line ПРОДАЖА [15:28:42]line ТРК (МРК, ГНК) : 32 [15:28:42]line Товар: 2710194210 [15:28:42]line ДТ-К-5 [15:28:42]line 13.130 * 76.20 [15:28:42]line = 1000.51 [15:28:42]line НДС 12% НСП 1% [15:28:42]line > о реализуемом товаре [15:28:42]line ОКРУГЛЕНИЕ: -0.51 [15:28:42]line ИТОГО: 1000.00 [15:28:42]line Внесено: 1000.00 [15:28:42]line СДАЧА: 0.00 [15:28:42]line НСП 1% : 8.85 [15:28:42]line НДС 12% : 106.25 [15:28:42]line Наличными: 1000.00 [15:28:42]line Безнал.: 0.00 [15:28:42]line Место: АЗС № 143 "Партнер Нефть" [15:28:42]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:28:42]line СНО: Общий режим [15:28:42]line Чек 208 24.10.2024 15:28 [15:28:42]line Смена: 534 ФФД: 1.0 [15:28:42]line ЗНМ: 0300000096 [15:28:42]line РНМ: 0000000000091693 [15:28:42]line Версия ККМ: 001 [15:28:42]line ФМ: 0000000000871792 [15:28:42]line ФД: 155583 [15:28:42]line ФПД: 245279734043990 [15:28:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152840&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155583&fm=245279734043990&tin=02508201610067®Number=0000000000091693&sum=100000 [15:28:42]OFD Sender: Processing packet 155583 [packets to send 31, broken 30] [15:28:42]ProducePacketName [15:28:42]name=ofd_packets/00155583 [15:28:42]OFD Sender: To server: pG, [15:28:42]CommunicateWithHost lk.salyk.kg:30040 [15:28:42]ConnectInit lk.salyk.kg [15:28:42]written 0, free lines is 4095 [15:28:42]Connected sock=10 [15:28: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 39 32 0C 01 00 00 4D 97 04 01 C2 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 A8 67 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 5F 02 00 35 04 06 00 DF 14 A3 6B 15 56 6C A3 83 10 55 90 5C 0B [15:28: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 39 32 4F 00 00 00 15 6C 47 00 9C 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 39 32 10 04 04 00 BF 5F 02 00 F4 03 04 00 21 0D 1A 67 B6 04 01 00 00 96 02 92 4C 43 F6 0B FC [15:28:42]CommunicateWithHost err = 0 [15:28:42]CheckOFDResponse [15:28:42]1017 (14) - 77093643461234 [15:28:42]1041 (16) - 0000000000871792 [15:28:42]1040 (4) - 155583 [15:28:42]1012 (4) - 24.10.2024 09:02 [15:28:42]1206 (1) - 0 [15:28:42]OFD Sender: Remove packet 155583 [15:28:42]ProducePacketName [15:28:42]name=ofd_packets/00155583 [15:28:42]NVStorageDeleteData [15:28:42]Write to MH i2c: 01 00 00 15 0C 21 [15:28:42]Write i2c OK [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: 01 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: 01 07 00 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: 01 07 00 15 0C 00 00 00 00 00 E8 0C 1C [15:28:42]RasterBufferAndPrint [15:28:42]line [15:28:42]line [15:28:42]line [15:28:42]line [15:28:42]line [15:28:42]written 0, free lines is 3310 [15:28:42]process_action close_receipt done [15:28:42]requested_data is exist [15:28:42]produce_requested_data [15:28:42]requested_item fm.sn is exist - process it [15:28:42]wFMCommunicate request_size=4 [15:28:42]MH_SAM_APDU [15:28:42]CAPDU: 80 11 00 00 [15:28:42]Write to MH i2c: E2 08 00 1C 0C 80 11 00 00 00 00 00 00 A2 [15:28:42]Write i2c OK [15:28:42]MH_I2C_Read... [15:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:42]Read from MH i2c: E2 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: E2 17 00 [15:28:42]MH_I2C_Read... [15:28:42]Read from MH i2c: E2 17 00 1C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F7 [15:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:28:42]wFMCommunicate OK [15:28:42]requested_item fd.num is exist - process it [15:28:42]SAM_PROTO_GetFieldsCounters [15:28:42]wFMCommunicate request_size=4 [15:28:42]MH_SAM_APDU [15:28:42]CAPDU: 80 13 00 00 [15:28:42]Write to MH i2c: E2 08 00 1D 0C 80 13 00 00 00 00 00 00 A5 [15:28:42]Write i2c OK [15:28:42]MH_I2C_Read... [15:28:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:43]Read from MH i2c: E2 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: E2 62 00 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: E2 62 00 1D 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BF 5F 02 00 0E 04 04 00 16 02 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 73 [15:28:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BF 5F 02 00 0E 04 04 00 16 02 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 [15:28:43]wFMCommunicate OK [15:28:43]SAM_PROTO_GetFieldsCounters done [15:28:43]requested_item shift.num is exist - process it [15:28:43]requested_item shift.opened is exist - process it [15:28:43]req_shift_opened [15:28:43]FM_GetShiftState [15:28:43]SAM_PROTO_GetShiftState [15:28:43]wFMCommunicate request_size=4 [15:28:43]MH_SAM_APDU [15:28:43]CAPDU: 80 13 01 00 [15:28:43]Write to MH i2c: E2 08 00 1E 0C 80 13 01 00 00 00 00 00 A7 [15:28:43]Write i2c OK [15:28:43]MH_I2C_Read... [15:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:43]Read from MH i2c: E2 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: E2 0E 00 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: E2 0E 00 1E 0C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F4 [15:28:43]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:28:43]wFMCommunicate OK [15:28:43]SAM_PROTO_GetShiftState done [15:28:43]FM_GetShiftState done [15:28:43]req_shift_opened done [15:28:43]requested_item shift.open_date is exist - process it [15:28:43]req_shift_open_date [15:28:43]req_shift_open_date done [15:28:43]produce_requested_data done [15:28:43]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155583,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:28:43]process_action_free close_receipt [15:28:43]json_value_free [15:28:43]json_value_free done [15:28:43]process_json_proto returns [15:28:43]Send response to host [15:28:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155583,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:28:43]free response buf [15:28:43]execute_script done [15:28:43]execute_script returns [15:28:43]free content buf [15:28:43]Sock 9.Close socket [15:28:43]Sock 9.Thread stoped [15:28:43]OFD Sender: No OFD packet to send [15:28:43]accept exits with 8 [15:28:43]New connection [15:28:43]New thread 3066637668 created [15:28:43]Thread 3066781028 joined [15:28:43]Waiting for new connection... [15:28:43] Sock 8.Parse request [15:28:43]Sock 8.Check first char [15:28:43]Sock 8.First char is OK [15:28:43]request: POST /json_proto HTTP/1.0 [15:28:43]Method: POST [15:28:43]URL: /json_proto [15:28:43]Method is POST - this is cgi request [15:28:43]url: /json_proto [15:28:43]query_string will be loaded in cgi processing [15:28:43]execute_cgi json_proto POST (null) [15:28:43]execute_cgi path=json_proto method=POST [15:28:43]POST find Content-Length [15:28:43]Host: 172.17.63.3:8080 [15:28:43]Content-Length: 676 [15:28:43]Content-Type: application/json [15:28:43] [15:28:43]POST finish read [15:28:43]Found Content-Length = 676 [15:28:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:43]execute_script... [15:28: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)98390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:43]POST & json_proto [15:28:43]process_json_proto [15:28:43]json parsed OK: [15:28:43]protocol is kg_v1.0 [15:28:43]action value=close_receipt [15:28:43]process_action close_receipt [15:28:43]cmd_close_receipt [15:28:43]MH_GetDate [15:28:43]Write to MH i2c: F0 00 00 1F 0C 1A [15:28:43]Write i2c OK [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: F0 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: F0 09 00 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: F0 09 00 1F 0C 00 AC 67 1A 67 50 D1 6C 64 A8 [15:28:43]GetLastDocTimeStamp 1729783720 [15:28:43]current date 1729783724 [15:28:43]FM_GetShiftState [15:28:43]SAM_PROTO_GetShiftState [15:28:43]wFMCommunicate request_size=4 [15:28:43]MH_SAM_APDU [15:28:43]CAPDU: 80 13 01 00 [15:28:43]Write to MH i2c: E2 08 00 20 0C 80 13 01 00 00 00 00 00 A9 [15:28:43]Write i2c OK [15:28:43]MH_I2C_Read... [15:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:43]Read from MH i2c: E2 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: E2 0E 00 [15:28:43]MH_I2C_Read... [15:28:43]Read from MH i2c: E2 0E 00 20 0C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F6 [15:28:43]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:28:43]wFMCommunicate OK [15:28:43]SAM_PROTO_GetShiftState done [15:28:43]FM_GetShiftState done [15:28:43]opened in 1729729836 [15:28:43]opened+sec_in_day 1729816236 [15:28:43]quantity*price = 50041 [15:28:43]sum+1 = 50042 [15:28:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 209 24.10.2024 15:28 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155584 ФПД: 224147278683188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152844&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155584&fm=224147278683188&tin=02508201610067®Number=0000000000091693&sum=50000 [15:28:45]StoreToDocumentArchive [15:28:45]shift 534 fd 155584 [15:28:45]save to /storage/0534/doc_00155584 [15:28:45]save last doc name /storage/0534/doc_00155584 to /storage/kkm_last_doc_name [15:28:45]save OK [15:28:45]Clear old archive folders... [15:28:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:45]tlvbuf is 01F7FA20 [15:28:45]SAM_PROTO_ClearQueue [15:28:45]wFMCommunicate request_size=4 [15:28:45]MH_SAM_APDU [15:28:45]CAPDU: 80 09 00 00 [15:28:45]Write to MH i2c: E2 08 00 2D 0C 80 09 00 00 00 00 00 00 AB [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:45]Read from MH i2c: E2 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 2D 0C 00 90 00 AD [15:28:45]RAPDU: 90 00 [15:28:45]wFMCommunicate OK [15:28:45]SAM_PROTO_ClearQueue done [15:28:45]KKMCreateOFDPacket [15:28:45]OFDProtocolAddRootSTLVToBuf [15:28:45]FM_MakeSignedData [15:28:45]FM_MakeSignedData [15:28:45]SAM_PROTO_SignData [15:28:45]wFMCommunicate request_size=4 [15:28:45]MH_SAM_APDU [15:28:45]CAPDU: 80 0D 01 02 [15:28:45]Write to MH i2c: E2 08 00 2E 0C 80 0D 01 02 00 00 00 00 B3 [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:45]Read from MH i2c: E2 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 2E 0C 00 90 00 AE [15:28:45]RAPDU: 90 00 [15:28:45]wFMCommunicate OK [15:28:45]wFMCommunicate request_size=255 [15:28:45]MH_SAM_APDU [15:28: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 AC 67 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 5F 02 00 35 04 06 00 CB [15:28:45]Write to MH i2c: E2 02 01 2F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 AC 67 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 5F 02 00 35 04 06 00 CB 00 00 B0 [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:45]Read from MH i2c: E2 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 2F 0C 00 90 00 AF [15:28:45]RAPDU: 90 00 [15:28:45]wFMCommunicate OK [15:28:45]wFMCommunicate request_size=10 [15:28:45]MH_SAM_APDU [15:28:45]CAPDU: 80 0D 02 02 05 DC 5A EC 5C 34 [15:28:45]Write to MH i2c: E2 0D 00 30 0C 80 0D 02 02 05 00 DC 5A EC 5C 34 00 00 72 [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:45]Read from MH i2c: E2 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 30 0C 00 90 00 B0 [15:28:45]RAPDU: 90 00 [15:28:45]wFMCommunicate OK [15:28:45]wFMCommunicate request_size=4 [15:28:45]MH_SAM_APDU [15:28:45]CAPDU: 80 0D 03 02 [15:28:45]Write to MH i2c: E2 08 00 31 0C 80 0D 03 02 00 00 00 00 B8 [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:45]Read from MH i2c: E2 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 0B 00 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 0B 00 31 0C 00 03 76 CA A5 CE A1 0D 3F 90 00 5C [15:28:45]RAPDU: 03 76 CA A5 CE A1 0D 3F 90 00 [15:28:45]wFMCommunicate OK [15:28:45]SAM_PROTO_SignData done [15:28:45]FM_MakeSignedData done [15:28:45]CreateOFDProtocolMessage [15:28:45]wFMCommunicate request_size=4 [15:28:45]MH_SAM_APDU [15:28:45]CAPDU: 80 11 00 00 [15:28:45]Write to MH i2c: E2 08 00 32 0C 80 11 00 00 00 00 00 00 B8 [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:45]Read from MH i2c: E2 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 17 00 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 17 00 32 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0D [15:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:28:45]wFMCommunicate OK [15:28:45]CreateOFDProtocolMessage done [15:28:45]OFDSenderStorePacket 155584 [15:28:45]StoreOFDPacket docnum=155584 [15:28:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 53 76 07 01 6B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 AC 67 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 5F 02 00 35 04 06 00 CB DC 5A EC 5C 34 03 76 CA A5 CE A1 0D 3F [15:28:45]CheckFolder [15:28:45]dirname=/storage/ofd_packets [15:28:45]CheckFolder done [15:28:45]ProducePacketName [15:28:45]name=ofd_packets/00155584 [15:28:45]NVStorageSaveData ofd_packets/00155584 [15:28:45]File name is /storage/ofd_packets/00155584 [15:28:45]Write 301 bytes [15:28:45]NVStorageSaveData done [15:28:45]OFDSenderStorePacket done [15:28:45]KKMCreateOFDPacket done [15:28:45]NVStorageSaveData kkm_last_timestamp [15:28:45]File name is /storage/kkm_last_timestamp [15:28:45]Write 4 bytes [15:28:45]NVStorageSaveData done [15:28:45]ExternCall_PrintAddStr [15:28:45]wPrintStart [15:28:45]Write to MH i2c: 01 00 00 33 0C 3F [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: 01 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: 01 07 00 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: 01 07 00 33 0C 00 00 00 00 00 FF 0F 54 [15:28:45]RasterBufferAndPrint [15:28:45]line Счет N : (1)98390 [15:28:45]line ИНН: 02508201610067 [15:28:45]line Контрольно-Кассовый Чек [15:28:45]line ПРОДАЖА [15:28:45]line ТРК (МРК, ГНК) : 21 [15:28:45]line Товар: 2710124130 [15:28:45]line Аи-92-К-5 [15:28:45]line 7.480 * 66.90 [15:28:45]line = 500.41 [15:28:45]line НДС 12% НСП 1% [15:28:45]line > о реализуемом товаре [15:28:45]line ОКРУГЛЕНИЕ: -0.41 [15:28:45]line ИТОГО: 500.00 [15:28:45]line Внесено: 500.00 [15:28:45]line СДАЧА: 0.00 [15:28:45]line НСП 1% : 4.43 [15:28:45]line НДС 12% : 53.14 [15:28:45]line Наличными: 500.00 [15:28:45]line Безнал.: 0.00 [15:28:45]line Место: АЗС № 143 "Партнер Нефть" [15:28:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:28:45]line СНО: Общий режим [15:28:45]line Чек 209 24.10.2024 15:28 [15:28:46]line Смена: 534 ФФД: 1.0 [15:28:46]line ЗНМ: 0300000096 [15:28:46]line РНМ: 0000000000091693 [15:28:46]line Версия ККМ: 001 [15:28:46]line ФМ: 0000000000871792 [15:28:46]line ФД: 155584 [15:28:46]line ФПД: 224147278683188 [15:28:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T152844&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155584&fm=224147278683188&tin=02508201610067®Number=0000000000091693&sum=50000 [15:28:46]OFD Sender: Processing packet 155584 [packets to send 31, broken 30] [15:28:46]ProducePacketName [15:28:46]name=ofd_packets/00155584 [15:28:46]OFD Sender: To server: pG, [15:28:46]CommunicateWithHost lk.salyk.kg:30040 [15:28:46]ConnectInit lk.salyk.kg [15:28:46]written 0, free lines is 4095 [15:28:46]Connected sock=10 [15:28: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 39 32 0F 01 00 00 53 76 07 01 6B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 AC 67 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 5F 02 00 35 04 06 00 CB DC 5A EC 5C 34 03 76 CA A5 CE A1 0D 3F [15:28: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 39 32 4F 00 00 00 17 2A 47 00 65 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 5F 02 00 F4 03 04 00 25 0D 1A 67 B6 04 01 00 00 99 27 20 71 65 66 25 3E [15:28:46]CommunicateWithHost err = 0 [15:28:46]CheckOFDResponse [15:28:46]1017 (14) - 77093643461234 [15:28:46]1041 (16) - 0000000000871792 [15:28:46]1040 (4) - 155584 [15:28:46]1012 (4) - 24.10.2024 09:02 [15:28:46]1206 (1) - 0 [15:28:46]OFD Sender: Remove packet 155584 [15:28:46]ProducePacketName [15:28:46]name=ofd_packets/00155584 [15:28:46]NVStorageDeleteData [15:28:46]Write to MH i2c: 01 00 00 5E 0C 6A [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 07 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 07 00 5E 0C 00 00 00 00 00 DF 0C 5C [15:28:46]RasterBufferAndPrint [15:28:46]line [15:28:46]line [15:28:46]line [15:28:46]line [15:28:46]line [15:28:46]written 0, free lines is 3307 [15:28:46]process_action close_receipt done [15:28:46]requested_data is exist [15:28:46]produce_requested_data [15:28:46]requested_item fm.sn is exist - process it [15:28:46]wFMCommunicate request_size=4 [15:28:46]MH_SAM_APDU [15:28:46]CAPDU: 80 11 00 00 [15:28:46]Write to MH i2c: E2 08 00 65 0C 80 11 00 00 00 00 00 00 EB [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:46]Read from MH i2c: E2 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 17 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 17 00 65 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 40 [15:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:28:46]wFMCommunicate OK [15:28:46]requested_item fd.num is exist - process it [15:28:46]SAM_PROTO_GetFieldsCounters [15:28:46]wFMCommunicate request_size=4 [15:28:46]MH_SAM_APDU [15:28:46]CAPDU: 80 13 00 00 [15:28:46]Write to MH i2c: E2 08 00 66 0C 80 13 00 00 00 00 00 00 EE [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:46]Read from MH i2c: E2 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 62 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 62 00 66 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C0 5F 02 00 0E 04 04 00 16 02 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 C0 [15:28: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C0 5F 02 00 0E 04 04 00 16 02 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 [15:28:46]wFMCommunicate OK [15:28:46]SAM_PROTO_GetFieldsCounters done [15:28:46]requested_item shift.num is exist - process it [15:28:46]requested_item shift.opened is exist - process it [15:28:46]req_shift_opened [15:28:46]FM_GetShiftState [15:28:46]SAM_PROTO_GetShiftState [15:28:46]wFMCommunicate request_size=4 [15:28:46]MH_SAM_APDU [15:28:46]CAPDU: 80 13 01 00 [15:28:46]Write to MH i2c: E2 08 00 67 0C 80 13 01 00 00 00 00 00 F0 [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:46]Read from MH i2c: E2 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 0E 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 0E 00 67 0C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3D [15:28:46]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:28:46]wFMCommunicate OK [15:28:46]SAM_PROTO_GetShiftState done [15:28:46]FM_GetShiftState done [15:28:46]req_shift_opened done [15:28:46]requested_item shift.open_date is exist - process it [15:28:46]req_shift_open_date [15:28:46]req_shift_open_date done [15:28:46]produce_requested_data done [15:28:46]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155584,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:28:46]process_action_free close_receipt [15:28:46]json_value_free [15:28:46]json_value_free done [15:28:46]process_json_proto returns [15:28:46]Send response to host [15:28:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155584,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:28:46]free response buf [15:28:46]execute_script done [15:28:46]execute_script returns [15:28:46]free content buf [15:28:46]Sock 8.Close socket [15:28:46]Sock 8.Thread stoped [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:13]accept exits with 9 [15:31:13]New connection [15:31:13]New thread 3066781028 created [15:31:13]Thread 3066637668 joined [15:31:13]Waiting for new connection... [15:31:13] Sock 9.Parse request [15:31:13]Sock 9.Check first char [15:31:13]Sock 9.First char is OK [15:31:13]request: POST /json_proto HTTP/1.0 [15:31:13]Method: POST [15:31:13]URL: /json_proto [15:31:13]Method is POST - this is cgi request [15:31:13]url: /json_proto [15:31:13]query_string will be loaded in cgi processing [15:31:13]execute_cgi json_proto POST (null) [15:31:13]execute_cgi path=json_proto method=POST [15:31:13]POST find Content-Length [15:31:13]Host: 172.17.63.3:8080 [15:31:13]Content-Length: 765 [15:31:13]Content-Type: application/json [15:31:13] [15:31:13]POST finish read [15:31:13]Found Content-Length = 765 [15:31:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:13]execute_script... [15:31: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)98391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:13]POST & json_proto [15:31:13]process_json_proto [15:31:13]json parsed OK: [15:31:13]protocol is kg_v1.0 [15:31:13]action value=close_receipt [15:31:13]process_action close_receipt [15:31:13]cmd_close_receipt [15:31:13]MH_GetDate [15:31:13]Write to MH i2c: F0 00 00 68 0C 63 [15:31:13]Write i2c OK [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: F0 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: F0 09 00 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: F0 09 00 68 0C 00 41 68 1A 67 50 D1 6C 64 87 [15:31:13]GetLastDocTimeStamp 1729783724 [15:31:13]current date 1729783873 [15:31:13]FM_GetShiftState [15:31:13]SAM_PROTO_GetShiftState [15:31:13]wFMCommunicate request_size=4 [15:31:13]MH_SAM_APDU [15:31:13]CAPDU: 80 13 01 00 [15:31:13]Write to MH i2c: E2 08 00 69 0C 80 13 01 00 00 00 00 00 F2 [15:31:13]Write i2c OK [15:31:13]MH_I2C_Read... [15:31:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:13]Read from MH i2c: E2 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: E2 0E 00 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: E2 0E 00 69 0C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3F [15:31:13]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:31:13]wFMCommunicate OK [15:31:13]SAM_PROTO_GetShiftState done [15:31:13]FM_GetShiftState done [15:31:13]opened in 1729729836 [15:31:13]opened+sec_in_day 1729816236 [15:31:13]quantity*price = 20003 [15:31:13]sum+1 = 20004 [15:31:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 210 24.10.2024 15:31 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155585 ФПД: 132453046516063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153113&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155585&fm=132453046516063&tin=02508201610067®Number=0000000000091693&sum=20003 [15:31:14]StoreToDocumentArchive [15:31:14]shift 534 fd 155585 [15:31:14]save to /storage/0534/doc_00155585 [15:31:14]save last doc name /storage/0534/doc_00155585 to /storage/kkm_last_doc_name [15:31:14]save OK [15:31:14]Clear old archive folders... [15:31:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:14]tlvbuf is 01F90D90 [15:31:14]SAM_PROTO_ClearQueue [15:31:14]wFMCommunicate request_size=4 [15:31:14]MH_SAM_APDU [15:31:14]CAPDU: 80 09 00 00 [15:31:14]Write to MH i2c: E2 08 00 76 0C 80 09 00 00 00 00 00 00 F4 [15:31:14]Write i2c OK [15:31:14]MH_I2C_Read... [15:31:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:14]Read from MH i2c: E2 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 03 00 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 03 00 76 0C 00 90 00 F6 [15:31:14]RAPDU: 90 00 [15:31:14]wFMCommunicate OK [15:31:14]SAM_PROTO_ClearQueue done [15:31:14]KKMCreateOFDPacket [15:31:14]OFDProtocolAddRootSTLVToBuf [15:31:14]FM_MakeSignedData [15:31:14]FM_MakeSignedData [15:31:14]SAM_PROTO_SignData [15:31:14]wFMCommunicate request_size=4 [15:31:14]MH_SAM_APDU [15:31:14]CAPDU: 80 0D 01 02 [15:31:14]Write to MH i2c: E2 08 00 77 0C 80 0D 01 02 00 00 00 00 FC [15:31:14]Write i2c OK [15:31:14]MH_I2C_Read... [15:31:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:14]Read from MH i2c: E2 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 03 00 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 03 00 77 0C 00 90 00 F7 [15:31:14]RAPDU: 90 00 [15:31:14]wFMCommunicate OK [15:31:14]wFMCommunicate request_size=255 [15:31:14]MH_SAM_APDU [15:31: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 41 68 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 5F 02 00 35 04 06 00 78 [15:31:14]Write to MH i2c: E2 02 01 78 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 41 68 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 5F 02 00 35 04 06 00 78 00 00 06 [15:31:14]Write i2c OK [15:31:14]MH_I2C_Read... [15:31:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:14]Read from MH i2c: E2 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 03 00 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 03 00 78 0C 00 90 00 F8 [15:31:14]RAPDU: 90 00 [15:31:14]wFMCommunicate OK [15:31:14]wFMCommunicate request_size=10 [15:31:14]MH_SAM_APDU [15:31:14]CAPDU: 80 0D 02 02 05 77 20 C9 79 5F [15:31:14]Write to MH i2c: E2 0D 00 79 0C 80 0D 02 02 05 00 77 20 C9 79 5F 00 00 41 [15:31:14]Write i2c OK [15:31:14]MH_I2C_Read... [15:31:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:14]Read from MH i2c: E2 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 03 00 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 03 00 79 0C 00 90 00 F9 [15:31:14]RAPDU: 90 00 [15:31:14]wFMCommunicate OK [15:31:14]wFMCommunicate request_size=4 [15:31:14]MH_SAM_APDU [15:31:14]CAPDU: 80 0D 03 02 [15:31:14]Write to MH i2c: E2 08 00 7A 0C 80 0D 03 02 00 00 00 00 01 [15:31:14]Write i2c OK [15:31:14]MH_I2C_Read... [15:31:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:14]Read from MH i2c: E2 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 0B 00 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 0B 00 7A 0C 00 EF CD 95 13 26 F8 D8 83 90 00 DF [15:31:14]RAPDU: EF CD 95 13 26 F8 D8 83 90 00 [15:31:14]wFMCommunicate OK [15:31:14]SAM_PROTO_SignData done [15:31:14]FM_MakeSignedData done [15:31:14]CreateOFDProtocolMessage [15:31:14]wFMCommunicate request_size=4 [15:31:14]MH_SAM_APDU [15:31:14]CAPDU: 80 11 00 00 [15:31:14]Write to MH i2c: E2 08 00 7B 0C 80 11 00 00 00 00 00 00 01 [15:31:14]Write i2c OK [15:31:14]MH_I2C_Read... [15:31:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:14]Read from MH i2c: E2 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 17 00 [15:31:14]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 17 00 7B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 56 [15:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:31:15]wFMCommunicate OK [15:31:15]CreateOFDProtocolMessage done [15:31:15]OFDSenderStorePacket 155585 [15:31:15]StoreOFDPacket docnum=155585 [15:31:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8F 69 07 01 66 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 41 68 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 5F 02 00 35 04 06 00 78 77 20 C9 79 5F EF CD 95 13 26 F8 D8 83 [15:31:15]CheckFolder [15:31:15]dirname=/storage/ofd_packets [15:31:15]CheckFolder done [15:31:15]ProducePacketName [15:31:15]name=ofd_packets/00155585 [15:31:15]NVStorageSaveData ofd_packets/00155585 [15:31:15]File name is /storage/ofd_packets/00155585 [15:31:15]Write 301 bytes [15:31:15]NVStorageSaveData done [15:31:15]OFDSenderStorePacket done [15:31:15]KKMCreateOFDPacket done [15:31:15]NVStorageSaveData kkm_last_timestamp [15:31:15]File name is /storage/kkm_last_timestamp [15:31:15]Write 4 bytes [15:31:15]NVStorageSaveData done [15:31:15]ExternCall_PrintAddStr [15:31:15]wPrintStart [15:31:15]Write to MH i2c: 01 00 00 7C 0C 88 [15:31:15]Write i2c OK [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: 01 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: 01 07 00 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: 01 07 00 7C 0C 00 00 00 00 00 FF 0F 9D [15:31:15]RasterBufferAndPrint [15:31:15]line Счет N : (1)98391 [15:31:15]line ИНН: 02508201610067 [15:31:15]line Контрольно-Кассовый Чек [15:31:15]line ПРОДАЖА [15:31:15]line ТРК (МРК, ГНК) : 31 [15:31:15]line Товар: 2710124130 [15:31:15]line Аи-92-К-5 [15:31:15]line 2.990 * 66.90 [15:31:15]line = 200.03 [15:31:15]line НДС 12% НСП 1% [15:31:15]line > о реализуемом товаре [15:31:15]line ИТОГО: 200.03 [15:31:15]line НСП 1% : 1.77 [15:31:15]line НДС 12% : 21.24 [15:31:15]line Наличными: 0.00 [15:31:15]line Безнал.: 200.03 [15:31:15]line Место: АЗС № 143 "Партнер Нефть" [15:31:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:31:15]line СНО: Общий режим [15:31:15]line Чек 210 24.10.2024 15:31 [15:31:15]line Смена: 534 ФФД: 1.0 [15:31:15]line ЗНМ: 0300000096 [15:31:15]line РНМ: 0000000000091693 [15:31:15]line Версия ККМ: 001 [15:31:15]line Платежная система: Mbank [15:31:15]line ФМ: 0000000000871792 [15:31:15]line ФД: 155585 [15:31:15]line ФПД: 132453046516063 [15:31:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153113&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155585&fm=132453046516063&tin=02508201610067®Number=0000000000091693&sum=20003 [15:31:15]written 0, free lines is 4095 [15:31:15]OFD Sender: Processing packet 155585 [packets to send 31, broken 30] [15:31:15]ProducePacketName [15:31:15]name=ofd_packets/00155585 [15:31:15]OFD Sender: To server: pG, [15:31:15]CommunicateWithHost lk.salyk.kg:30040 [15:31:15]ConnectInit lk.salyk.kg [15:31:15]Connected sock=10 [15:31: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 39 32 0F 01 00 00 8F 69 07 01 66 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 41 68 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 5F 02 00 35 04 06 00 78 77 20 C9 79 5F EF CD 95 13 26 F8 D8 83 [15:31:15]Write to MH i2c: 01 00 00 A5 0C B1 [15:31:15]Write i2c OK [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: 01 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: 01 07 00 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: 01 07 00 A5 0C 00 00 00 00 00 05 0D CA [15:31:15]RasterBufferAndPrint [15:31:15]line [15:31:15]line [15:31:15]line [15:31:15]line [15:31:15]line [15:31:15]written 0, free lines is 3340 [15:31:15]process_action close_receipt done [15:31:15]requested_data is exist [15:31:15]produce_requested_data [15:31:15]requested_item fm.sn is exist - process it [15:31:15]wFMCommunicate request_size=4 [15:31:15]MH_SAM_APDU [15:31:15]CAPDU: 80 11 00 00 [15:31:15]Write to MH i2c: E2 08 00 AC 0C 80 11 00 00 00 00 00 00 32 [15:31:15]Write i2c OK [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 [15:31:15]MH_I2C_Read... [15:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:15]Read from MH i2c: E2 17 00 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 17 00 AC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 87 [15:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:31:15]wFMCommunicate OK [15:31:15]requested_item fd.num is exist - process it [15:31:15]SAM_PROTO_GetFieldsCounters [15:31:15]wFMCommunicate request_size=4 [15:31:15]MH_SAM_APDU [15:31:15]CAPDU: 80 13 00 00 [15:31:15]Write to MH i2c: E2 08 00 AD 0C 80 13 00 00 00 00 00 00 35 [15:31:15]Write i2c OK [15:31:15]MH_I2C_Read... [15:31: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 39 32 4F 00 00 00 D0 E4 47 00 1A 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 39 32 10 04 04 00 C1 5F 02 00 F4 03 04 00 BA 0D 1A 67 B6 04 01 00 00 B8 22 FB 7E BB D5 80 87 [15:31:15]CommunicateWithHost err = 0 [15:31:15]CheckOFDResponse [15:31:15]1017 (14) - 77093643461234 [15:31:15]1041 (16) - 0000000000871792 [15:31:15]1040 (4) - 155585 [15:31:15]1012 (4) - 24.10.2024 09:04 [15:31:15]1206 (1) - 0 [15:31:15]OFD Sender: Remove packet 155585 [15:31:15]ProducePacketName [15:31:15]name=ofd_packets/00155585 [15:31:15]NVStorageDeleteData [15:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:15]Read from MH i2c: E2 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 62 00 [15:31:15]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 62 00 AD 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C1 5F 02 00 0E 04 04 00 16 02 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 0B [15:31: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C1 5F 02 00 0E 04 04 00 16 02 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 [15:31:16]wFMCommunicate OK [15:31:16]SAM_PROTO_GetFieldsCounters done [15:31:16]requested_item shift.num is exist - process it [15:31:16]requested_item shift.opened is exist - process it [15:31:16]req_shift_opened [15:31:16]FM_GetShiftState [15:31:16]SAM_PROTO_GetShiftState [15:31:16]wFMCommunicate request_size=4 [15:31:16]MH_SAM_APDU [15:31:16]CAPDU: 80 13 01 00 [15:31:16]Write to MH i2c: E2 08 00 AE 0C 80 13 01 00 00 00 00 00 37 [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:16]Read from MH i2c: E2 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 0E 00 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 0E 00 AE 0C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 84 [15:31:16]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:31:16]wFMCommunicate OK [15:31:16]SAM_PROTO_GetShiftState done [15:31:16]FM_GetShiftState done [15:31:16]req_shift_opened done [15:31:16]requested_item shift.open_date is exist - process it [15:31:16]req_shift_open_date [15:31:16]req_shift_open_date done [15:31:16]produce_requested_data done [15:31:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155585,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:31:16]process_action_free close_receipt [15:31:16]json_value_free [15:31:16]json_value_free done [15:31:16]process_json_proto returns [15:31:16]Send response to host [15:31:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155585,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:31:16]free response buf [15:31:16]execute_script done [15:31:16]execute_script returns [15:31:16]free content buf [15:31:16]Sock 9.Close socket [15:31:16]Sock 9.Thread stoped [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:33:59]accept exits with 8 [15:33:59]New connection [15:33:59]New thread 3066637668 created [15:33:59]Thread 3066781028 joined [15:33:59]Waiting for new connection... [15:33:59] Sock 8.Parse request [15:33:59]Sock 8.Check first char [15:33:59]Sock 8.First char is OK [15:33:59]request: POST /json_proto HTTP/1.0 [15:33:59]Method: POST [15:33:59]URL: /json_proto [15:33:59]Method is POST - this is cgi request [15:33:59]url: /json_proto [15:33:59]query_string will be loaded in cgi processing [15:33:59]execute_cgi json_proto POST (null) [15:33:59]execute_cgi path=json_proto method=POST [15:33:59]POST find Content-Length [15:33:59]Host: 172.17.63.3:8080 [15:33:59]Content-Length: 676 [15:33:59]Content-Type: application/json [15:33:59] [15:33:59]POST finish read [15:33:59]Found Content-Length = 676 [15:33:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:59]execute_script... [15:33: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)98392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:59]POST & json_proto [15:33:59]process_json_proto [15:33:59]json parsed OK: [15:33:59]protocol is kg_v1.0 [15:33:59]action value=close_receipt [15:33:59]process_action close_receipt [15:33:59]cmd_close_receipt [15:33:59]MH_GetDate [15:33:59]Write to MH i2c: F0 00 00 AF 0C AA [15:33:59]Write i2c OK [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: F0 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: F0 09 00 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: F0 09 00 AF 0C 00 E8 68 1A 67 50 D1 6C 64 75 [15:33:59]GetLastDocTimeStamp 1729783873 [15:33:59]current date 1729784040 [15:33:59]FM_GetShiftState [15:33:59]SAM_PROTO_GetShiftState [15:33:59]wFMCommunicate request_size=4 [15:33:59]MH_SAM_APDU [15:33:59]CAPDU: 80 13 01 00 [15:33:59]Write to MH i2c: E2 08 00 B0 0C 80 13 01 00 00 00 00 00 39 [15:33:59]Write i2c OK [15:33:59]MH_I2C_Read... [15:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:59]Read from MH i2c: E2 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: E2 0E 00 [15:33:59]MH_I2C_Read... [15:33:59]Read from MH i2c: E2 0E 00 B0 0C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 86 [15:33:59]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:33:59]wFMCommunicate OK [15:33:59]SAM_PROTO_GetShiftState done [15:33:59]FM_GetShiftState done [15:33:59]opened in 1729729836 [15:33:59]opened+sec_in_day 1729816236 [15:33:59]quantity*price = 50041 [15:33:59]sum+1 = 50042 [15:33:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 211 24.10.2024 15:34 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155586 ФПД: 117299477233348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153400&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155586&fm=117299477233348&tin=02508201610067®Number=0000000000091693&sum=50000 [15:34:00]StoreToDocumentArchive [15:34:00]shift 534 fd 155586 [15:34:00]save to /storage/0534/doc_00155586 [15:34:00]save last doc name /storage/0534/doc_00155586 to /storage/kkm_last_doc_name [15:34:00]save OK [15:34:00]Clear old archive folders... [15:34:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:34:00]tlvbuf is 01F90970 [15:34:00]SAM_PROTO_ClearQueue [15:34:00]wFMCommunicate request_size=4 [15:34:00]MH_SAM_APDU [15:34:00]CAPDU: 80 09 00 00 [15:34:00]Write to MH i2c: E2 08 00 BD 0C 80 09 00 00 00 00 00 00 3B [15:34:00]Write i2c OK [15:34:00]MH_I2C_Read... [15:34:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:00]Read from MH i2c: E2 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: E2 03 00 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: E2 03 00 BD 0C 00 90 00 3D [15:34:00]RAPDU: 90 00 [15:34:00]wFMCommunicate OK [15:34:00]SAM_PROTO_ClearQueue done [15:34:00]KKMCreateOFDPacket [15:34:00]OFDProtocolAddRootSTLVToBuf [15:34:00]FM_MakeSignedData [15:34:00]FM_MakeSignedData [15:34:00]SAM_PROTO_SignData [15:34:00]wFMCommunicate request_size=4 [15:34:00]MH_SAM_APDU [15:34:00]CAPDU: 80 0D 01 02 [15:34:00]Write to MH i2c: E2 08 00 BE 0C 80 0D 01 02 00 00 00 00 43 [15:34:00]Write i2c OK [15:34:00]MH_I2C_Read... [15:34:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:00]Read from MH i2c: E2 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: E2 03 00 [15:34:00]MH_I2C_Read... [15:34:00]Read from MH i2c: E2 03 00 BE 0C 00 90 00 3E [15:34:00]RAPDU: 90 00 [15:34:00]wFMCommunicate OK [15:34:00]wFMCommunicate request_size=255 [15:34:00]MH_SAM_APDU [15:34: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 E8 68 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 5F 02 00 35 04 06 00 6A [15:34:00]Write to MH i2c: E2 02 01 BF 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 E8 68 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 5F 02 00 35 04 06 00 6A 00 00 20 [15:34:00]Write i2c OK [15:34:00]MH_I2C_Read... [15:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:01]Read from MH i2c: E2 [15:34:01]MH_I2C_Read... [15:34:01]Read from MH i2c: E2 03 00 [15:34:01]MH_I2C_Read... [15:34:01]Read from MH i2c: E2 03 00 BF 0C 00 90 00 3F [15:34:01]RAPDU: 90 00 [15:34:01]wFMCommunicate OK [15:34:01]wFMCommunicate request_size=10 [15:34:01]MH_SAM_APDU [15:34:01]CAPDU: 80 0D 02 02 05 AE E9 AC 3E C4 [15:34:01]Write to MH i2c: E2 0D 00 C0 0C 80 0D 02 02 05 00 AE E9 AC 3E C4 00 00 95 [15:34:01]Write i2c OK [15:34:01]MH_I2C_Read... [15:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:01]Read from MH i2c: E2 [15:34:01]MH_I2C_Read... [15:34:01]Read from MH i2c: E2 03 00 [15:34:01]MH_I2C_Read... [15:34:01]Read from MH i2c: E2 03 00 C0 0C 00 90 00 40 [15:34:01]RAPDU: 90 00 [15:34:01]wFMCommunicate OK [15:34:01]wFMCommunicate request_size=4 [15:34:01]MH_SAM_APDU [15:34:01]CAPDU: 80 0D 03 02 [15:34:01]Write to MH i2c: E2 08 00 C1 0C 80 0D 03 02 00 00 00 00 48 [15:34:01]Write i2c OK [15:34:01]MH_I2C_Read... [15:34:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:01]Read from MH i2c: E2 [15:34:01]MH_I2C_Read... [15:34:01]Read from MH i2c: E2 0B 00 [15:34:01]MH_I2C_Read... [15:34:01]Read from MH i2c: E2 0B 00 C1 0C 00 09 02 48 39 B8 0A 1E 03 90 00 B8 [15:34:01]RAPDU: 09 02 48 39 B8 0A 1E 03 90 00 [15:34:01]wFMCommunicate OK [15:34:01]SAM_PROTO_SignData done [15:34:01]FM_MakeSignedData done [15:34:01]CreateOFDProtocolMessage [15:34:01]wFMCommunicate request_size=4 [15:34:01]MH_SAM_APDU [15:34:01]CAPDU: 80 11 00 00 [15:34:01]Write to MH i2c: E2 08 00 C2 0C 80 11 00 00 00 00 00 00 48 [15:34:01]Write i2c OK [15:34:01]MH_I2C_Read... [15:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:01]Read from MH i2c: E2 [15:34:01]MH_I2C_Read... [15:34:01]Read from MH i2c: E2 17 00 [15:34:01]MH_I2C_Read... [15:34:01]Read from MH i2c: E2 17 00 C2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9D [15:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:34:01]wFMCommunicate OK [15:34:01]CreateOFDProtocolMessage done [15:34:01]OFDSenderStorePacket 155586 [15:34:01]StoreOFDPacket docnum=155586 [15:34:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E6 D8 07 01 91 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 E8 68 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 5F 02 00 35 04 06 00 6A AE E9 AC 3E C4 09 02 48 39 B8 0A 1E 03 [15:34:01]CheckFolder [15:34:01]dirname=/storage/ofd_packets [15:34:01]CheckFolder done [15:34:01]ProducePacketName [15:34:01]name=ofd_packets/00155586 [15:34:01]NVStorageSaveData ofd_packets/00155586 [15:34:01]File name is /storage/ofd_packets/00155586 [15:34:01]Write 301 bytes [15:34:01]NVStorageSaveData done [15:34:01]OFDSenderStorePacket done [15:34:01]KKMCreateOFDPacket done [15:34:01]NVStorageSaveData kkm_last_timestamp [15:34:01]File name is /storage/kkm_last_timestamp [15:34:01]Write 4 bytes [15:34:01]NVStorageSaveData done [15:34:01]ExternCall_PrintAddStr [15:34:01]wPrintStart [15:34:01]Write to MH i2c: 01 00 00 C3 0C CF [15:34:01]Write i2c OK [15:34:01]MH_I2C_Read... [15:34:01]Read from MH i2c: 01 [15:34:01]MH_I2C_Read... [15:34:01]Read from MH i2c: 01 07 00 [15:34:01]MH_I2C_Read... [15:34:01]Read from MH i2c: 01 07 00 C3 0C 00 00 00 00 00 FF 0F E4 [15:34:01]RasterBufferAndPrint [15:34:01]line Счет N : (1)98392 [15:34:01]line ИНН: 02508201610067 [15:34:01]line Контрольно-Кассовый Чек [15:34:01]line ПРОДАЖА [15:34:01]line ТРК (МРК, ГНК) : 21 [15:34:01]line Товар: 2710124130 [15:34:01]line Аи-92-К-5 [15:34:01]line 7.480 * 66.90 [15:34:01]line = 500.41 [15:34:01]line НДС 12% НСП 1% [15:34:01]line > о реализуемом товаре [15:34:01]line ОКРУГЛЕНИЕ: -0.41 [15:34:01]line ИТОГО: 500.00 [15:34:01]line Внесено: 500.00 [15:34:01]line СДАЧА: 0.00 [15:34:01]line НСП 1% : 4.43 [15:34:01]line НДС 12% : 53.14 [15:34:01]line Наличными: 500.00 [15:34:01]line Безнал.: 0.00 [15:34:01]line Место: АЗС № 143 "Партнер Нефть" [15:34:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:34:01]line СНО: Общий режим [15:34:01]line Чек 211 24.10.2024 15:34 [15:34:01]line Смена: 534 ФФД: 1.0 [15:34:01]line ЗНМ: 0300000096 [15:34:01]line РНМ: 0000000000091693 [15:34:01]line Версия ККМ: 001 [15:34:01]line ФМ: 0000000000871792 [15:34:01]line ФД: 155586 [15:34:01]line ФПД: 117299477233348 [15:34:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153400&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155586&fm=117299477233348&tin=02508201610067®Number=0000000000091693&sum=50000 [15:34:01]OFD Sender: Processing packet 155586 [packets to send 31, broken 30] [15:34:01]ProducePacketName [15:34:01]name=ofd_packets/00155586 [15:34:01]OFD Sender: To server: pG, [15:34:01]CommunicateWithHost lk.salyk.kg:30040 [15:34:01]ConnectInit lk.salyk.kg [15:34:01]written 0, free lines is 4095 [15:34:01]Connected sock=10 [15:34: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 39 32 0F 01 00 00 E6 D8 07 01 91 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 E8 68 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 5F 02 00 35 04 06 00 6A AE E9 AC 3E C4 09 02 48 39 B8 0A 1E 03 [15:34: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 39 32 4F 00 00 00 F4 69 47 00 54 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 39 32 10 04 04 00 C2 5F 02 00 F4 03 04 00 60 0E 1A 67 B6 04 01 00 00 7A 76 7A DB 8D B5 5D 95 [15:34:01]CommunicateWithHost err = 0 [15:34:01]CheckOFDResponse [15:34:01]1017 (14) - 77093643461234 [15:34:01]1041 (16) - 0000000000871792 [15:34:01]1040 (4) - 155586 [15:34:01]1012 (4) - 24.10.2024 09:07 [15:34:01]1206 (1) - 0 [15:34:01]OFD Sender: Remove packet 155586 [15:34:01]ProducePacketName [15:34:01]name=ofd_packets/00155586 [15:34:01]NVStorageDeleteData [15:34:02]Write to MH i2c: 01 00 00 EE 0C FA [15:34:02]Write i2c OK [15:34:02]MH_I2C_Read... [15:34:02]Read from MH i2c: 01 [15:34:02]MH_I2C_Read... [15:34:02]Read from MH i2c: 01 07 00 [15:34:02]MH_I2C_Read... [15:34:02]Read from MH i2c: 01 07 00 EE 0C 00 00 00 00 00 DA 0C E7 [15:34:02]RasterBufferAndPrint [15:34:02]line [15:34:02]line [15:34:02]line [15:34:02]line [15:34:02]line [15:34:02]written 0, free lines is 3298 [15:34:02]process_action close_receipt done [15:34:02]requested_data is exist [15:34:02]produce_requested_data [15:34:02]requested_item fm.sn is exist - process it [15:34:02]wFMCommunicate request_size=4 [15:34:02]MH_SAM_APDU [15:34:02]CAPDU: 80 11 00 00 [15:34:02]Write to MH i2c: E2 08 00 F5 0C 80 11 00 00 00 00 00 00 7B [15:34:02]Write i2c OK [15:34:02]MH_I2C_Read... [15:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:02]Read from MH i2c: E2 [15:34:02]MH_I2C_Read... [15:34:02]Read from MH i2c: E2 17 00 [15:34:02]MH_I2C_Read... [15:34:02]Read from MH i2c: E2 17 00 F5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D0 [15:34:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:34:02]wFMCommunicate OK [15:34:02]requested_item fd.num is exist - process it [15:34:02]SAM_PROTO_GetFieldsCounters [15:34:02]wFMCommunicate request_size=4 [15:34:02]MH_SAM_APDU [15:34:02]CAPDU: 80 13 00 00 [15:34:02]Write to MH i2c: E2 08 00 F6 0C 80 13 00 00 00 00 00 00 7E [15:34:02]Write i2c OK [15:34:02]MH_I2C_Read... [15:34:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:02]Read from MH i2c: E2 [15:34:02]MH_I2C_Read... [15:34:02]Read from MH i2c: E2 62 00 [15:34:02]MH_I2C_Read... [15:34:02]Read from MH i2c: E2 62 00 F6 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C2 5F 02 00 0E 04 04 00 16 02 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 58 [15:34: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C2 5F 02 00 0E 04 04 00 16 02 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 [15:34:02]wFMCommunicate OK [15:34:02]SAM_PROTO_GetFieldsCounters done [15:34:02]requested_item shift.num is exist - process it [15:34:02]requested_item shift.opened is exist - process it [15:34:02]req_shift_opened [15:34:02]FM_GetShiftState [15:34:02]SAM_PROTO_GetShiftState [15:34:02]wFMCommunicate request_size=4 [15:34:02]MH_SAM_APDU [15:34:02]CAPDU: 80 13 01 00 [15:34:02]Write to MH i2c: E2 08 00 F7 0C 80 13 01 00 00 00 00 00 80 [15:34:02]Write i2c OK [15:34:02]MH_I2C_Read... [15:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:02]Read from MH i2c: E2 [15:34:02]MH_I2C_Read... [15:34:02]Read from MH i2c: E2 0E 00 [15:34:02]MH_I2C_Read... [15:34:02]Read from MH i2c: E2 0E 00 F7 0C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 CD [15:34:02]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:34:02]wFMCommunicate OK [15:34:02]SAM_PROTO_GetShiftState done [15:34:02]FM_GetShiftState done [15:34:02]req_shift_opened done [15:34:02]requested_item shift.open_date is exist - process it [15:34:02]req_shift_open_date [15:34:02]req_shift_open_date done [15:34:02]produce_requested_data done [15:34:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155586,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:34:02]process_action_free close_receipt [15:34:02]json_value_free [15:34:02]json_value_free done [15:34:02]process_json_proto returns [15:34:02]Send response to host [15:34:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155586,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:34:02]free response buf [15:34:02]execute_script done [15:34:02]execute_script returns [15:34:02]free content buf [15:34:02]Sock 8.Close socket [15:34:02]Sock 8.Thread stoped [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:49]accept exits with 9 [15:36:49]New connection [15:36:49]New thread 3066781028 created [15:36:49]Thread 3066637668 joined [15:36:49]Waiting for new connection... [15:36:49] Sock 9.Parse request [15:36:49]Sock 9.Check first char [15:36:49]Sock 9.First char is OK [15:36:49]request: POST /json_proto HTTP/1.0 [15:36:49]Method: POST [15:36:49]URL: /json_proto [15:36:49]Method is POST - this is cgi request [15:36:49]url: /json_proto [15:36:49]query_string will be loaded in cgi processing [15:36:49]execute_cgi json_proto POST (null) [15:36:49]execute_cgi path=json_proto method=POST [15:36:49]POST find Content-Length [15:36:49]Host: 172.17.63.3:8080 [15:36:49]Content-Length: 676 [15:36:49]Content-Type: application/json [15:36:49] [15:36:49]POST finish read [15:36:49]Found Content-Length = 676 [15:36:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:49]execute_script... [15: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)98393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:49]POST & json_proto [15:36:49]process_json_proto [15:36:49]json parsed OK: [15:36:49]protocol is kg_v1.0 [15:36:49]action value=close_receipt [15:36:49]process_action close_receipt [15:36:49]cmd_close_receipt [15:36:49]MH_GetDate [15:36:49]Write to MH i2c: F0 00 00 F8 0C F3 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: F0 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: F0 09 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: F0 09 00 F8 0C 00 92 69 1A 67 50 D1 6C 64 69 [15:36:49]GetLastDocTimeStamp 1729784040 [15:36:49]current date 1729784210 [15:36:49]FM_GetShiftState [15:36:49]SAM_PROTO_GetShiftState [15:36:49]wFMCommunicate request_size=4 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 13 01 00 [15:36:49]Write to MH i2c: E2 08 00 F9 0C 80 13 01 00 00 00 00 00 82 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 0E 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 0E 00 F9 0C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 CF [15:36:49]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:36:49]wFMCommunicate OK [15:36:49]SAM_PROTO_GetShiftState done [15:36:49]FM_GetShiftState done [15:36:49]opened in 1729729836 [15:36:49]opened+sec_in_day 1729816236 [15:36:49]quantity*price = 50041 [15:36:49]sum+1 = 50042 [15:36:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 212 24.10.2024 15:36 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155587 ФПД: 96991284040256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153650&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155587&fm=96991284040256&tin=02508201610067®Number=0000000000091693&sum=50000 [15:36:50]StoreToDocumentArchive [15:36:50]shift 534 fd 155587 [15:36:50]save to /storage/0534/doc_00155587 [15:36:50]save last doc name /storage/0534/doc_00155587 to /storage/kkm_last_doc_name [15:36:50]save OK [15:36:50]Clear old archive folders... [15:36:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:50]tlvbuf is 01F911B0 [15:36:50]SAM_PROTO_ClearQueue [15:36:50]wFMCommunicate request_size=4 [15:36:50]MH_SAM_APDU [15:36:50]CAPDU: 80 09 00 00 [15:36:50]Write to MH i2c: E2 08 00 06 0D 80 09 00 00 00 00 00 00 85 [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:50]Read from MH i2c: E2 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 03 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 03 00 06 0D 00 90 00 87 [15:36:50]RAPDU: 90 00 [15:36:50]wFMCommunicate OK [15:36:50]SAM_PROTO_ClearQueue done [15:36:50]KKMCreateOFDPacket [15:36:50]OFDProtocolAddRootSTLVToBuf [15:36:50]FM_MakeSignedData [15:36:50]FM_MakeSignedData [15:36:50]SAM_PROTO_SignData [15:36:50]wFMCommunicate request_size=4 [15:36:50]MH_SAM_APDU [15:36:50]CAPDU: 80 0D 01 02 [15:36:50]Write to MH i2c: E2 08 00 07 0D 80 0D 01 02 00 00 00 00 8D [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:50]Read from MH i2c: E2 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 03 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: E2 03 00 07 0D 00 90 00 88 [15:36:50]RAPDU: 90 00 [15:36:50]wFMCommunicate OK [15:36:50]wFMCommunicate request_size=255 [15:36:50]MH_SAM_APDU [15:36: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 92 69 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 5F 02 00 35 04 06 00 58 [15:36:50]Write to MH i2c: E2 02 01 08 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 92 69 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 5F 02 00 35 04 06 00 58 00 00 05 [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:51]Read from MH i2c: E2 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 03 00 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 03 00 08 0D 00 90 00 89 [15:36:51]RAPDU: 90 00 [15:36:51]wFMCommunicate OK [15:36:51]wFMCommunicate request_size=10 [15:36:51]MH_SAM_APDU [15:36:51]CAPDU: 80 0D 02 02 05 36 8B 08 12 40 [15:36:51]Write to MH i2c: E2 0D 00 09 0D 80 0D 02 02 05 00 36 8B 08 12 40 00 00 B5 [15:36:51]Write i2c OK [15:36:51]MH_I2C_Read... [15:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:51]Read from MH i2c: E2 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 03 00 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 03 00 09 0D 00 90 00 8A [15:36:51]RAPDU: 90 00 [15:36:51]wFMCommunicate OK [15:36:51]wFMCommunicate request_size=4 [15:36:51]MH_SAM_APDU [15:36:51]CAPDU: 80 0D 03 02 [15:36:51]Write to MH i2c: E2 08 00 0A 0D 80 0D 03 02 00 00 00 00 92 [15:36:51]Write i2c OK [15:36:51]MH_I2C_Read... [15:36:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:51]Read from MH i2c: E2 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 0B 00 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 0B 00 0A 0D 00 19 02 A0 1E 1F 35 6D 2B 90 00 58 [15:36:51]RAPDU: 19 02 A0 1E 1F 35 6D 2B 90 00 [15:36:51]wFMCommunicate OK [15:36:51]SAM_PROTO_SignData done [15:36:51]FM_MakeSignedData done [15:36:51]CreateOFDProtocolMessage [15:36:51]wFMCommunicate request_size=4 [15:36:51]MH_SAM_APDU [15:36:51]CAPDU: 80 11 00 00 [15:36:51]Write to MH i2c: E2 08 00 0B 0D 80 11 00 00 00 00 00 00 92 [15:36:51]Write i2c OK [15:36:51]MH_I2C_Read... [15:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:51]Read from MH i2c: E2 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 17 00 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: E2 17 00 0B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E7 [15:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:36:51]wFMCommunicate OK [15:36:51]CreateOFDProtocolMessage done [15:36:51]OFDSenderStorePacket 155587 [15:36:51]StoreOFDPacket docnum=155587 [15:36:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1F AF 07 01 D2 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 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 92 69 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 5F 02 00 35 04 06 00 58 36 8B 08 12 40 19 02 A0 1E 1F 35 6D 2B [15:36:51]CheckFolder [15:36:51]dirname=/storage/ofd_packets [15:36:51]CheckFolder done [15:36:51]ProducePacketName [15:36:51]name=ofd_packets/00155587 [15:36:51]NVStorageSaveData ofd_packets/00155587 [15:36:51]File name is /storage/ofd_packets/00155587 [15:36:51]Write 301 bytes [15:36:51]NVStorageSaveData done [15:36:51]OFDSenderStorePacket done [15:36:51]KKMCreateOFDPacket done [15:36:51]NVStorageSaveData kkm_last_timestamp [15:36:51]File name is /storage/kkm_last_timestamp [15:36:51]Write 4 bytes [15:36:51]NVStorageSaveData done [15:36:51]ExternCall_PrintAddStr [15:36:51]wPrintStart [15:36:51]Write to MH i2c: 01 00 00 0C 0D 19 [15:36:51]Write i2c OK [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: 01 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: 01 07 00 [15:36:51]MH_I2C_Read... [15:36:51]Read from MH i2c: 01 07 00 0C 0D 00 00 00 00 00 FF 0F 2E [15:36:51]RasterBufferAndPrint [15:36:51]line Счет N : (1)98393 [15:36:51]line ИНН: 02508201610067 [15:36:51]line Контрольно-Кассовый Чек [15:36:51]line ПРОДАЖА [15:36:51]line ТРК (МРК, ГНК) : 21 [15:36:51]line Товар: 2710124130 [15:36:51]line Аи-92-К-5 [15:36:51]line 7.480 * 66.90 [15:36:51]line = 500.41 [15:36:51]line НДС 12% НСП 1% [15:36:51]line > о реализуемом товаре [15:36:51]line ОКРУГЛЕНИЕ: -0.41 [15:36:51]line ИТОГО: 500.00 [15:36:51]line Внесено: 500.00 [15:36:51]line СДАЧА: 0.00 [15:36:51]line НСП 1% : 4.43 [15:36:51]line НДС 12% : 53.14 [15:36:51]line Наличными: 500.00 [15:36:51]line Безнал.: 0.00 [15:36:51]line Место: АЗС № 143 "Партнер Нефть" [15:36:51]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:36:51]line СНО: Общий режим [15:36:51]line Чек 212 24.10.2024 15:36 [15:36:51]line Смена: 534 ФФД: 1.0 [15:36:51]line ЗНМ: 0300000096 [15:36:51]line РНМ: 0000000000091693 [15:36:51]line Версия ККМ: 001 [15:36:51]line ФМ: 0000000000871792 [15:36:51]line ФД: 155587 [15:36:51]line ФПД: 96991284040256 [15:36:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T153650&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155587&fm=96991284040256&tin=02508201610067®Number=0000000000091693&sum=50000 [15:36:51]OFD Sender: Processing packet 155587 [packets to send 31, broken 30] [15:36:51]ProducePacketName [15:36:51]name=ofd_packets/00155587 [15:36:51]OFD Sender: To server: pG, [15:36:51]CommunicateWithHost lk.salyk.kg:30040 [15:36:51]ConnectInit lk.salyk.kg [15:36:51]written 0, free lines is 4095 [15:36:51]Connected sock=11 [15:36: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 39 32 0F 01 00 00 1F AF 07 01 D2 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 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 92 69 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 5F 02 00 35 04 06 00 58 36 8B 08 12 40 19 02 A0 1E 1F 35 6D 2B [15:36: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 39 32 4F 00 00 00 19 1E 47 00 33 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 39 32 10 04 04 00 C3 5F 02 00 F4 03 04 00 0A 0F 1A 67 B6 04 01 00 00 6F CA 4A C0 4C 1B D4 80 [15:36:51]CommunicateWithHost err = 0 [15:36:51]CheckOFDResponse [15:36:51]1017 (14) - 77093643461234 [15:36:51]1041 (16) - 0000000000871792 [15:36:51]1040 (4) - 155587 [15:36:51]1012 (4) - 24.10.2024 09:10 [15:36:51]1206 (1) - 0 [15:36:51]OFD Sender: Remove packet 155587 [15:36:51]ProducePacketName [15:36:51]name=ofd_packets/00155587 [15:36:51]NVStorageDeleteData [15:36:52]Write to MH i2c: 01 00 00 37 0D 44 [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: 01 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: 01 07 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: 01 07 00 37 0D 00 00 00 00 00 E4 0C 3B [15:36:52]RasterBufferAndPrint [15:36:52]line [15:36:52]line [15:36:52]line [15:36:52]line [15:36:52]line [15:36:52]written 0, free lines is 3306 [15:36:52]process_action close_receipt done [15:36:52]requested_data is exist [15:36:52]produce_requested_data [15:36:52]requested_item fm.sn is exist - process it [15:36:52]wFMCommunicate request_size=4 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 11 00 00 [15:36:52]Write to MH i2c: E2 08 00 3E 0D 80 11 00 00 00 00 00 00 C5 [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 17 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 17 00 3E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1A [15:36:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:36:52]wFMCommunicate OK [15:36:52]requested_item fd.num is exist - process it [15:36:52]SAM_PROTO_GetFieldsCounters [15:36:52]wFMCommunicate request_size=4 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 13 00 00 [15:36:52]Write to MH i2c: E2 08 00 3F 0D 80 13 00 00 00 00 00 00 C8 [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 62 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 62 00 3F 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C3 5F 02 00 0E 04 04 00 16 02 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 A6 [15:36: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C3 5F 02 00 0E 04 04 00 16 02 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 [15:36:52]wFMCommunicate OK [15:36:52]SAM_PROTO_GetFieldsCounters done [15:36:52]requested_item shift.num is exist - process it [15:36:52]requested_item shift.opened is exist - process it [15:36:52]req_shift_opened [15:36:52]FM_GetShiftState [15:36:52]SAM_PROTO_GetShiftState [15:36:52]wFMCommunicate request_size=4 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 13 01 00 [15:36:52]Write to MH i2c: E2 08 00 40 0D 80 13 01 00 00 00 00 00 CA [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 0E 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 0E 00 40 0D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 17 [15:36:52]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:36:52]wFMCommunicate OK [15:36:52]SAM_PROTO_GetShiftState done [15:36:52]FM_GetShiftState done [15:36:52]req_shift_opened done [15:36:52]requested_item shift.open_date is exist - process it [15:36:52]req_shift_open_date [15:36:52]req_shift_open_date done [15:36:52]produce_requested_data done [15:36:52]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155587,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:36:52]process_action_free close_receipt [15:36:52]json_value_free [15:36:52]json_value_free done [15:36:52]process_json_proto returns [15:36:52]Send response to host [15:36:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155587,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:36:52]free response buf [15:36:52]execute_script done [15:36:52]execute_script returns [15:36:52]free content buf [15:36:52]Sock 9.Close socket [15:36:52]Sock 9.Thread stoped [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:38]accept exits with 8 [15:40:38]New connection [15:40:38]New thread 3066637668 created [15:40:38]Thread 3066781028 joined [15:40:38]Waiting for new connection... [15:40:38] Sock 8.Parse request [15:40:38]Sock 8.Check first char [15:40:38]Sock 8.First char is OK [15:40:38]request: POST /json_proto HTTP/1.0 [15:40:38]Method: POST [15:40:38]URL: /json_proto [15:40:38]Method is POST - this is cgi request [15:40:38]url: /json_proto [15:40:38]query_string will be loaded in cgi processing [15:40:38]execute_cgi json_proto POST (null) [15:40:38]execute_cgi path=json_proto method=POST [15:40:38]POST find Content-Length [15:40:38]Host: 172.17.63.3:8080 [15:40:38]Content-Length: 676 [15:40:38]Content-Type: application/json [15:40:38] [15:40:38]POST finish read [15:40:38]Found Content-Length = 676 [15:40:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:38]execute_script... [15:40: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)98394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:38]POST & json_proto [15:40:38]process_json_proto [15:40:38]json parsed OK: [15:40:38]protocol is kg_v1.0 [15:40:38]action value=close_receipt [15:40:38]process_action close_receipt [15:40:38]cmd_close_receipt [15:40:38]MH_GetDate [15:40:38]Write to MH i2c: F0 00 00 41 0D 3D [15:40:38]Write i2c OK [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: F0 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: F0 09 00 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: F0 09 00 41 0D 00 77 6A 1A 67 50 D1 6C 64 99 [15:40:38]GetLastDocTimeStamp 1729784210 [15:40:38]current date 1729784439 [15:40:38]FM_GetShiftState [15:40:38]SAM_PROTO_GetShiftState [15:40:38]wFMCommunicate request_size=4 [15:40:38]MH_SAM_APDU [15:40:38]CAPDU: 80 13 01 00 [15:40:38]Write to MH i2c: E2 08 00 42 0D 80 13 01 00 00 00 00 00 CC [15:40:38]Write i2c OK [15:40:38]MH_I2C_Read... [15:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:38]Read from MH i2c: E2 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 0E 00 [15:40:38]MH_I2C_Read... [15:40:38]Read from MH i2c: E2 0E 00 42 0D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 19 [15:40:38]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:40:38]wFMCommunicate OK [15:40:38]SAM_PROTO_GetShiftState done [15:40:38]FM_GetShiftState done [15:40:38]opened in 1729729836 [15:40:38]opened+sec_in_day 1729816236 [15:40:38]quantity*price = 50041 [15:40:38]sum+1 = 50042 [15:40:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 213 24.10.2024 15:40 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155588 ФПД: 201604925405703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154039&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155588&fm=201604925405703&tin=02508201610067®Number=0000000000091693&sum=50000 [15:40:39]StoreToDocumentArchive [15:40:39]shift 534 fd 155588 [15:40:39]save to /storage/0534/doc_00155588 [15:40:39]save last doc name /storage/0534/doc_00155588 to /storage/kkm_last_doc_name [15:40:39]save OK [15:40:39]Clear old archive folders... [15:40:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:39]tlvbuf is 01F5A1C0 [15:40:39]SAM_PROTO_ClearQueue [15:40:39]wFMCommunicate request_size=4 [15:40:39]MH_SAM_APDU [15:40:39]CAPDU: 80 09 00 00 [15:40:39]Write to MH i2c: E2 08 00 4F 0D 80 09 00 00 00 00 00 00 CE [15:40:39]Write i2c OK [15:40:39]MH_I2C_Read... [15:40:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:40]Read from MH i2c: E2 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 03 00 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 03 00 4F 0D 00 90 00 D0 [15:40:40]RAPDU: 90 00 [15:40:40]wFMCommunicate OK [15:40:40]SAM_PROTO_ClearQueue done [15:40:40]KKMCreateOFDPacket [15:40:40]OFDProtocolAddRootSTLVToBuf [15:40:40]FM_MakeSignedData [15:40:40]FM_MakeSignedData [15:40:40]SAM_PROTO_SignData [15:40:40]wFMCommunicate request_size=4 [15:40:40]MH_SAM_APDU [15:40:40]CAPDU: 80 0D 01 02 [15:40:40]Write to MH i2c: E2 08 00 50 0D 80 0D 01 02 00 00 00 00 D6 [15:40:40]Write i2c OK [15:40:40]MH_I2C_Read... [15:40:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:40]Read from MH i2c: E2 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 03 00 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 03 00 50 0D 00 90 00 D1 [15:40:40]RAPDU: 90 00 [15:40:40]wFMCommunicate OK [15:40:40]wFMCommunicate request_size=255 [15:40:40]MH_SAM_APDU [15:40: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 77 6A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C4 5F 02 00 35 04 06 00 B7 [15:40:40]Write to MH i2c: E2 02 01 51 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 77 6A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C4 5F 02 00 35 04 06 00 B7 00 00 95 [15:40:40]Write i2c OK [15:40:40]MH_I2C_Read... [15:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:40]Read from MH i2c: E2 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 03 00 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 03 00 51 0D 00 90 00 D2 [15:40:40]RAPDU: 90 00 [15:40:40]wFMCommunicate OK [15:40:40]wFMCommunicate request_size=10 [15:40:40]MH_SAM_APDU [15:40:40]CAPDU: 80 0D 02 02 05 5B CD F6 BA 07 [15:40:40]Write to MH i2c: E2 0D 00 52 0D 80 0D 02 02 05 00 5B CD F6 BA 07 00 00 C2 [15:40:40]Write i2c OK [15:40:40]MH_I2C_Read... [15:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:40]Read from MH i2c: E2 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 03 00 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 03 00 52 0D 00 90 00 D3 [15:40:40]RAPDU: 90 00 [15:40:40]wFMCommunicate OK [15:40:40]wFMCommunicate request_size=4 [15:40:40]MH_SAM_APDU [15:40:40]CAPDU: 80 0D 03 02 [15:40:40]Write to MH i2c: E2 08 00 53 0D 80 0D 03 02 00 00 00 00 DB [15:40:40]Write i2c OK [15:40:40]MH_I2C_Read... [15:40:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:40]Read from MH i2c: E2 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 0B 00 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 0B 00 53 0D 00 CA 14 2D FA F0 B4 02 DE 90 00 65 [15:40:40]RAPDU: CA 14 2D FA F0 B4 02 DE 90 00 [15:40:40]wFMCommunicate OK [15:40:40]SAM_PROTO_SignData done [15:40:40]FM_MakeSignedData done [15:40:40]CreateOFDProtocolMessage [15:40:40]wFMCommunicate request_size=4 [15:40:40]MH_SAM_APDU [15:40:40]CAPDU: 80 11 00 00 [15:40:40]Write to MH i2c: E2 08 00 54 0D 80 11 00 00 00 00 00 00 DB [15:40:40]Write i2c OK [15:40:40]MH_I2C_Read... [15:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:40]Read from MH i2c: E2 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 17 00 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: E2 17 00 54 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 30 [15:40:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:40:40]wFMCommunicate OK [15:40:40]CreateOFDProtocolMessage done [15:40:40]OFDSenderStorePacket 155588 [15:40:40]StoreOFDPacket docnum=155588 [15:40:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2F 5F 07 01 D4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 77 6A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C4 5F 02 00 35 04 06 00 B7 5B CD F6 BA 07 CA 14 2D FA F0 B4 02 DE [15:40:40]CheckFolder [15:40:40]dirname=/storage/ofd_packets [15:40:40]CheckFolder done [15:40:40]ProducePacketName [15:40:40]name=ofd_packets/00155588 [15:40:40]NVStorageSaveData ofd_packets/00155588 [15:40:40]File name is /storage/ofd_packets/00155588 [15:40:40]Write 301 bytes [15:40:40]NVStorageSaveData done [15:40:40]OFDSenderStorePacket done [15:40:40]KKMCreateOFDPacket done [15:40:40]NVStorageSaveData kkm_last_timestamp [15:40:40]File name is /storage/kkm_last_timestamp [15:40:40]Write 4 bytes [15:40:40]NVStorageSaveData done [15:40:40]ExternCall_PrintAddStr [15:40:40]wPrintStart [15:40:40]Write to MH i2c: 01 00 00 55 0D 62 [15:40:40]Write i2c OK [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: 01 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: 01 07 00 [15:40:40]MH_I2C_Read... [15:40:40]Read from MH i2c: 01 07 00 55 0D 00 00 00 00 00 FF 0F 77 [15:40:40]RasterBufferAndPrint [15:40:40]line Счет N : (1)98394 [15:40:40]line ИНН: 02508201610067 [15:40:40]line Контрольно-Кассовый Чек [15:40:40]line ПРОДАЖА [15:40:40]line ТРК (МРК, ГНК) : 31 [15:40:40]line Товар: 2710124130 [15:40:40]line Аи-92-К-5 [15:40:40]line 7.480 * 66.90 [15:40:40]line = 500.41 [15:40:40]line НДС 12% НСП 1% [15:40:40]line > о реализуемом товаре [15:40:40]line ОКРУГЛЕНИЕ: -0.41 [15:40:40]line ИТОГО: 500.00 [15:40:40]line Внесено: 500.00 [15:40:40]line СДАЧА: 0.00 [15:40:40]line НСП 1% : 4.43 [15:40:40]line НДС 12% : 53.14 [15:40:40]line Наличными: 500.00 [15:40:40]line Безнал.: 0.00 [15:40:40]line Место: АЗС № 143 "Партнер Нефть" [15:40:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:40:40]line СНО: Общий режим [15:40:40]line Чек 213 24.10.2024 15:40 [15:40:40]line Смена: 534 ФФД: 1.0 [15:40:40]line ЗНМ: 0300000096 [15:40:40]line РНМ: 0000000000091693 [15:40:40]line Версия ККМ: 001 [15:40:40]line ФМ: 0000000000871792 [15:40:40]line ФД: 155588 [15:40:40]line ФПД: 201604925405703 [15:40:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154039&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155588&fm=201604925405703&tin=02508201610067®Number=0000000000091693&sum=50000 [15:40:40]OFD Sender: Processing packet 155588 [packets to send 31, broken 30] [15:40:40]ProducePacketName [15:40:40]name=ofd_packets/00155588 [15:40:40]OFD Sender: To server: pG, [15:40:40]CommunicateWithHost lk.salyk.kg:30040 [15:40:40]ConnectInit lk.salyk.kg [15:40:40]written 0, free lines is 4095 [15:40:40]Connected sock=10 [15:40: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 39 32 0F 01 00 00 2F 5F 07 01 D4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 77 6A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C4 5F 02 00 35 04 06 00 B7 5B CD F6 BA 07 CA 14 2D FA F0 B4 02 DE [15: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 39 32 4F 00 00 00 33 45 47 00 32 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 39 32 10 04 04 00 C4 5F 02 00 F4 03 04 00 EF 0F 1A 67 B6 04 01 00 00 B8 3B 6D EF A2 08 FB F4 [15:40:41]CommunicateWithHost err = 0 [15:40:41]CheckOFDResponse [15:40:41]1017 (14) - 77093643461234 [15:40:41]1041 (16) - 0000000000871792 [15:40:41]1040 (4) - 155588 [15:40:41]1012 (4) - 24.10.2024 09:14 [15:40:41]1206 (1) - 0 [15:40:41]OFD Sender: Remove packet 155588 [15:40:41]ProducePacketName [15:40:41]name=ofd_packets/00155588 [15:40:41]NVStorageDeleteData [15:40:41]Write to MH i2c: 01 00 00 80 0D 8D [15:40:41]Write i2c OK [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: 01 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: 01 07 00 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: 01 07 00 80 0D 00 00 00 00 00 D4 0C 74 [15:40:41]RasterBufferAndPrint [15:40:41]line [15:40:41]line [15:40:41]line [15:40:41]line [15:40:41]line [15:40:41]written 0, free lines is 3288 [15:40:41]process_action close_receipt done [15:40:41]requested_data is exist [15:40:41]produce_requested_data [15:40:41]requested_item fm.sn is exist - process it [15:40:41]wFMCommunicate request_size=4 [15:40:41]MH_SAM_APDU [15:40:41]CAPDU: 80 11 00 00 [15:40:41]Write to MH i2c: E2 08 00 87 0D 80 11 00 00 00 00 00 00 0E [15:40:41]Write i2c OK [15:40:41]MH_I2C_Read... [15:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:41]Read from MH i2c: E2 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 17 00 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 17 00 87 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 63 [15:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:40:41]wFMCommunicate OK [15:40:41]requested_item fd.num is exist - process it [15:40:41]SAM_PROTO_GetFieldsCounters [15:40:41]wFMCommunicate request_size=4 [15:40:41]MH_SAM_APDU [15:40:41]CAPDU: 80 13 00 00 [15:40:41]Write to MH i2c: E2 08 00 88 0D 80 13 00 00 00 00 00 00 11 [15:40:41]Write i2c OK [15:40:41]MH_I2C_Read... [15:40:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:41]Read from MH i2c: E2 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 62 00 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 62 00 88 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C4 5F 02 00 0E 04 04 00 16 02 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 F3 [15:40: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C4 5F 02 00 0E 04 04 00 16 02 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 [15:40:41]wFMCommunicate OK [15:40:41]SAM_PROTO_GetFieldsCounters done [15:40:41]requested_item shift.num is exist - process it [15:40:41]requested_item shift.opened is exist - process it [15:40:41]req_shift_opened [15:40:41]FM_GetShiftState [15:40:41]SAM_PROTO_GetShiftState [15:40:41]wFMCommunicate request_size=4 [15:40:41]MH_SAM_APDU [15:40:41]CAPDU: 80 13 01 00 [15:40:41]Write to MH i2c: E2 08 00 89 0D 80 13 01 00 00 00 00 00 13 [15:40:41]Write i2c OK [15:40:41]MH_I2C_Read... [15:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:41]Read from MH i2c: E2 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 0E 00 [15:40:41]MH_I2C_Read... [15:40:41]Read from MH i2c: E2 0E 00 89 0D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 60 [15:40:41]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:40:41]wFMCommunicate OK [15:40:41]SAM_PROTO_GetShiftState done [15:40:41]FM_GetShiftState done [15:40:41]req_shift_opened done [15:40:41]requested_item shift.open_date is exist - process it [15:40:41]req_shift_open_date [15:40:41]req_shift_open_date done [15:40:41]produce_requested_data done [15:40:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155588,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:40:41]process_action_free close_receipt [15:40:41]json_value_free [15:40:41]json_value_free done [15:40:41]process_json_proto returns [15:40:41]Send response to host [15:40:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155588,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:40:41]free response buf [15:40:41]execute_script done [15:40:41]execute_script returns [15:40:41]free content buf [15:40:41]Sock 8.Close socket [15:40:41]Sock 8.Thread stoped [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41: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]accept exits with 9 [15:42:21]New connection [15:42:21]New thread 3066781028 created [15:42:21]Thread 3066637668 joined [15:42:21]Waiting for new connection... [15:42:21] Sock 9.Parse request [15:42:21]Sock 9.Check first char [15:42:21]Sock 9.First char is OK [15:42:21]request: POST /json_proto HTTP/1.0 [15:42:21]Method: POST [15:42:21]URL: /json_proto [15:42:21]Method is POST - this is cgi request [15:42:21]url: /json_proto [15:42:21]query_string will be loaded in cgi processing [15:42:21]execute_cgi json_proto POST (null) [15:42:21]execute_cgi path=json_proto method=POST [15:42:21]POST find Content-Length [15:42:21]Host: 172.17.63.3:8080 [15:42:21]Content-Length: 673 [15:42:21]Content-Type: application/json [15:42:21] [15:42:21]POST finish read [15:42:21]Found Content-Length = 673 [15:42:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\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:42:21]execute_script... [15:42: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)98395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\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:42:21]POST & json_proto [15:42:21]process_json_proto [15:42:21]json parsed OK: [15:42:21]protocol is kg_v1.0 [15:42:21]action value=close_receipt [15:42:21]process_action close_receipt [15:42:21]cmd_close_receipt [15:42:21]MH_GetDate [15:42:21]Write to MH i2c: F0 00 00 8A 0D 86 [15:42:21]Write i2c OK [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: F0 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: F0 09 00 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: F0 09 00 8A 0D 00 DD 6A 1A 67 50 D1 6C 64 48 [15:42:21]GetLastDocTimeStamp 1729784439 [15:42:21]current date 1729784541 [15:42:21]FM_GetShiftState [15:42:21]SAM_PROTO_GetShiftState [15:42:21]wFMCommunicate request_size=4 [15:42:21]MH_SAM_APDU [15:42:21]CAPDU: 80 13 01 00 [15:42:21]Write to MH i2c: E2 08 00 8B 0D 80 13 01 00 00 00 00 00 15 [15:42:21]Write i2c OK [15:42:21]MH_I2C_Read... [15:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:21]Read from MH i2c: E2 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: E2 0E 00 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: E2 0E 00 8B 0D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 62 [15:42:21]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:42:21]wFMCommunicate OK [15:42:21]SAM_PROTO_GetShiftState done [15:42:21]FM_GetShiftState done [15:42:21]opened in 1729729836 [15:42:21]opened+sec_in_day 1729816236 [15:42:21]quantity*price = 30022 [15:42:21]sum+1 = 30024 [15:42:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 214 24.10.2024 15:42 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155589 ФПД: 239372383484601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154221&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155589&fm=239372383484601&tin=02508201610067®Number=0000000000091693&sum=30000 [15:42:22]StoreToDocumentArchive [15:42:22]shift 534 fd 155589 [15:42:22]save to /storage/0534/doc_00155589 [15:42:22]save last doc name /storage/0534/doc_00155589 to /storage/kkm_last_doc_name [15:42:22]save OK [15:42:22]Clear old archive folders... [15:42:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:42:22]tlvbuf is 01F90DD0 [15:42:22]SAM_PROTO_ClearQueue [15:42:22]wFMCommunicate request_size=4 [15:42:22]MH_SAM_APDU [15:42:22]CAPDU: 80 09 00 00 [15:42:22]Write to MH i2c: E2 08 00 98 0D 80 09 00 00 00 00 00 00 17 [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:22]Read from MH i2c: E2 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 03 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 03 00 98 0D 00 90 00 19 [15:42:22]RAPDU: 90 00 [15:42:22]wFMCommunicate OK [15:42:22]SAM_PROTO_ClearQueue done [15:42:22]KKMCreateOFDPacket [15:42:22]OFDProtocolAddRootSTLVToBuf [15:42:22]FM_MakeSignedData [15:42:22]FM_MakeSignedData [15:42:22]SAM_PROTO_SignData [15:42:22]wFMCommunicate request_size=4 [15:42:22]MH_SAM_APDU [15:42:22]CAPDU: 80 0D 01 02 [15:42:22]Write to MH i2c: E2 08 00 99 0D 80 0D 01 02 00 00 00 00 1F [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:22]Read from MH i2c: E2 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 03 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 03 00 99 0D 00 90 00 1A [15:42:22]RAPDU: 90 00 [15:42:22]wFMCommunicate OK [15:42:22]wFMCommunicate request_size=255 [15:42:22]MH_SAM_APDU [15:42:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D6 00 00 00 F4 03 04 00 DD 6A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 5F 02 00 35 04 06 00 D9 B5 39 E2 [15:42:22]Write to MH i2c: E2 02 01 9A 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D6 00 00 00 F4 03 04 00 DD 6A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 5F 02 00 35 04 06 00 D9 B5 39 E2 00 00 EB [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:22]Read from MH i2c: E2 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 03 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 03 00 9A 0D 00 90 00 1B [15:42:22]RAPDU: 90 00 [15:42:22]wFMCommunicate OK [15:42:22]wFMCommunicate request_size=7 [15:42:22]MH_SAM_APDU [15:42:22]CAPDU: 80 0D 02 02 02 FA B9 [15:42:22]Write to MH i2c: E2 0A 00 9B 0D 80 0D 02 02 02 00 FA B9 00 00 D9 [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:22]Read from MH i2c: E2 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 03 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 03 00 9B 0D 00 90 00 1C [15:42:22]RAPDU: 90 00 [15:42:22]wFMCommunicate OK [15:42:22]wFMCommunicate request_size=4 [15:42:22]MH_SAM_APDU [15:42:22]CAPDU: 80 0D 03 02 [15:42:22]Write to MH i2c: E2 08 00 9C 0D 80 0D 03 02 00 00 00 00 24 [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:22]Read from MH i2c: E2 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 0B 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 0B 00 9C 0D 00 CA C9 DA BD 30 2C 56 18 90 00 19 [15:42:22]RAPDU: CA C9 DA BD 30 2C 56 18 90 00 [15:42:22]wFMCommunicate OK [15:42:22]SAM_PROTO_SignData done [15:42:22]FM_MakeSignedData done [15:42:22]CreateOFDProtocolMessage [15:42:22]wFMCommunicate request_size=4 [15:42:22]MH_SAM_APDU [15:42:22]CAPDU: 80 11 00 00 [15:42:22]Write to MH i2c: E2 08 00 9D 0D 80 11 00 00 00 00 00 00 24 [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:22]Read from MH i2c: E2 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 17 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: E2 17 00 9D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 79 [15:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:42:22]wFMCommunicate OK [15:42:22]CreateOFDProtocolMessage done [15:42:22]OFDSenderStorePacket 155589 [15:42:22]StoreOFDPacket docnum=155589 [15:42:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 22 43 04 01 51 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D6 00 00 00 F4 03 04 00 DD 6A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 5F 02 00 35 04 06 00 D9 B5 39 E2 FA B9 CA C9 DA BD 30 2C 56 18 [15:42:22]CheckFolder [15:42:22]dirname=/storage/ofd_packets [15:42:22]CheckFolder done [15:42:22]ProducePacketName [15:42:22]name=ofd_packets/00155589 [15:42:22]NVStorageSaveData ofd_packets/00155589 [15:42:22]File name is /storage/ofd_packets/00155589 [15:42:22]Write 298 bytes [15:42:22]NVStorageSaveData done [15:42:22]OFDSenderStorePacket done [15:42:22]KKMCreateOFDPacket done [15:42:22]NVStorageSaveData kkm_last_timestamp [15:42:22]File name is /storage/kkm_last_timestamp [15:42:22]Write 4 bytes [15:42:22]NVStorageSaveData done [15:42:22]ExternCall_PrintAddStr [15:42:22]wPrintStart [15:42:22]Write to MH i2c: 01 00 00 9E 0D AB [15:42:22]Write i2c OK [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: 01 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: 01 07 00 [15:42:22]MH_I2C_Read... [15:42:22]Read from MH i2c: 01 07 00 9E 0D 00 00 00 00 00 FF 0F C0 [15:42:22]RasterBufferAndPrint [15:42:22]line Счет N : (1)98395 [15:42:22]line ИНН: 02508201610067 [15:42:22]line Контрольно-Кассовый Чек [15:42:22]line ПРОДАЖА [15:42:22]line ТРК (МРК, ГНК) : 32 [15:42:22]line Товар: 2710194210 [15:42:22]line ДТ-К-5 [15:42:22]line 3.940 * 76.20 [15:42:22]line = 300.23 [15:42:22]line НДС 12% НСП 1% [15:42:22]line > о реализуемом товаре [15:42:22]line ОКРУГЛЕНИЕ: -0.23 [15:42:22]line ИТОГО: 300.00 [15:42:22]line Внесено: 300.00 [15:42:22]line СДАЧА: 0.00 [15:42:22]line НСП 1% : 2.66 [15:42:22]line НДС 12% : 31.88 [15:42:22]line Наличными: 300.00 [15:42:22]line Безнал.: 0.00 [15:42:22]line Место: АЗС № 143 "Партнер Нефть" [15:42:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:42:22]line СНО: Общий режим [15:42:22]line Чек 214 24.10.2024 15:42 [15:42:22]line Смена: 534 ФФД: 1.0 [15:42:22]line ЗНМ: 0300000096 [15:42:22]line РНМ: 0000000000091693 [15:42:22]line Версия ККМ: 001 [15:42:22]line ФМ: 0000000000871792 [15:42:22]line ФД: 155589 [15:42:22]line ФПД: 239372383484601 [15:42:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154221&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155589&fm=239372383484601&tin=02508201610067®Number=0000000000091693&sum=30000 [15:42:23]OFD Sender: Processing packet 155589 [packets to send 31, broken 30] [15:42:23]ProducePacketName [15:42:23]name=ofd_packets/00155589 [15:42:23]OFD Sender: To server: pG, [15:42:23]CommunicateWithHost lk.salyk.kg:30040 [15:42:23]ConnectInit lk.salyk.kg [15:42:23]written 0, free lines is 4095 [15:42:23]Connected sock=10 [15:42: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 39 32 0C 01 00 00 22 43 04 01 51 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D6 00 00 00 F4 03 04 00 DD 6A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 5F 02 00 35 04 06 00 D9 B5 39 E2 FA B9 CA C9 DA BD 30 2C 56 18 [15: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 39 32 4F 00 00 00 8F C6 47 00 00 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 39 32 10 04 04 00 C5 5F 02 00 F4 03 04 00 56 10 1A 67 B6 04 01 00 00 91 0A 87 78 31 AD B4 CC [15:42:23]CommunicateWithHost err = 0 [15:42:23]CheckOFDResponse [15:42:23]1017 (14) - 77093643461234 [15:42:23]1041 (16) - 0000000000871792 [15:42:23]1040 (4) - 155589 [15:42:23]1012 (4) - 24.10.2024 09:16 [15:42:23]1206 (1) - 0 [15:42:23]OFD Sender: Remove packet 155589 [15:42:23]ProducePacketName [15:42:23]name=ofd_packets/00155589 [15:42:23]NVStorageDeleteData [15:42:23]Write to MH i2c: 01 00 00 C9 0D D6 [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: 01 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: 01 07 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: 01 07 00 C9 0D 00 00 00 00 00 D4 0C BD [15:42:23]RasterBufferAndPrint [15:42:23]line [15:42:23]line [15:42:23]line [15:42:23]line [15:42:23]line [15:42:23]written 0, free lines is 3292 [15:42:23]process_action close_receipt done [15:42:23]requested_data is exist [15:42:23]produce_requested_data [15:42:23]requested_item fm.sn is exist - process it [15:42:23]wFMCommunicate request_size=4 [15:42:23]MH_SAM_APDU [15:42:23]CAPDU: 80 11 00 00 [15:42:23]Write to MH i2c: E2 08 00 D0 0D 80 11 00 00 00 00 00 00 57 [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:23]Read from MH i2c: E2 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 17 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 17 00 D0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AC [15:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:42:23]wFMCommunicate OK [15:42:23]requested_item fd.num is exist - process it [15:42:23]SAM_PROTO_GetFieldsCounters [15:42:23]wFMCommunicate request_size=4 [15:42:23]MH_SAM_APDU [15:42:23]CAPDU: 80 13 00 00 [15:42:23]Write to MH i2c: E2 08 00 D1 0D 80 13 00 00 00 00 00 00 5A [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:23]Read from MH i2c: E2 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 62 00 [15:42:23]MH_I2C_Read... [15:42:23]Read from MH i2c: E2 62 00 D1 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C5 5F 02 00 0E 04 04 00 16 02 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 40 [15:42: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C5 5F 02 00 0E 04 04 00 16 02 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 [15:42:23]wFMCommunicate OK [15:42:23]SAM_PROTO_GetFieldsCounters done [15:42:23]requested_item shift.num is exist - process it [15:42:23]requested_item shift.opened is exist - process it [15:42:23]req_shift_opened [15:42:23]FM_GetShiftState [15:42:23]SAM_PROTO_GetShiftState [15:42:23]wFMCommunicate request_size=4 [15:42:23]MH_SAM_APDU [15:42:23]CAPDU: 80 13 01 00 [15:42:23]Write to MH i2c: E2 08 00 D2 0D 80 13 01 00 00 00 00 00 5C [15:42:23]Write i2c OK [15:42:23]MH_I2C_Read... [15:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:24]Read from MH i2c: E2 [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: E2 0E 00 [15:42:24]MH_I2C_Read... [15:42:24]Read from MH i2c: E2 0E 00 D2 0D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 A9 [15:42:24]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:42:24]wFMCommunicate OK [15:42:24]SAM_PROTO_GetShiftState done [15:42:24]FM_GetShiftState done [15:42:24]req_shift_opened done [15:42:24]requested_item shift.open_date is exist - process it [15:42:24]req_shift_open_date [15:42:24]req_shift_open_date done [15:42:24]produce_requested_data done [15:42:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155589,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:42:24]process_action_free close_receipt [15:42:24]json_value_free [15:42:24]json_value_free done [15:42:24]process_json_proto returns [15:42:24]Send response to host [15:42:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155589,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:42:24]free response buf [15:42:24]execute_script done [15:42:24]execute_script returns [15:42:24]free content buf [15:42:24]Sock 9.Close socket [15:42:24]Sock 9.Thread stoped [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:20]accept exits with 8 [15:46:20]New connection [15:46:20]New thread 3066637668 created [15:46:20]Thread 3066781028 joined [15:46:20]Waiting for new connection... [15:46:20] Sock 8.Parse request [15:46:20]Sock 8.Check first char [15:46:20]Sock 8.First char is OK [15:46:20]request: POST /json_proto HTTP/1.0 [15:46:20]Method: POST [15:46:20]URL: /json_proto [15:46:20]Method is POST - this is cgi request [15:46:20]url: /json_proto [15:46:20]query_string will be loaded in cgi processing [15:46:20]execute_cgi json_proto POST (null) [15:46:20]execute_cgi path=json_proto method=POST [15:46:20]POST find Content-Length [15:46:20]Host: 172.17.63.3:8080 [15:46:20]Content-Length: 762 [15:46:20]Content-Type: application/json [15:46:20] [15:46:20]POST finish read [15:46:20]Found Content-Length = 762 [15:46:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:20]execute_script... [15:46: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)98396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:20]POST & json_proto [15:46:20]process_json_proto [15:46:20]json parsed OK: [15:46:20]protocol is kg_v1.0 [15:46:20]action value=close_receipt [15:46:20]process_action close_receipt [15:46:20]cmd_close_receipt [15:46:20]MH_GetDate [15:46:20]Write to MH i2c: F0 00 00 D3 0D CF [15:46:20]Write i2c OK [15:46:20]MH_I2C_Read... [15:46:20]Read from MH i2c: F0 [15:46:20]MH_I2C_Read... [15:46:20]Read from MH i2c: F0 09 00 [15:46:20]MH_I2C_Read... [15:46:20]Read from MH i2c: F0 09 00 D3 0D 00 CD 6B 1A 67 50 D1 6C 64 82 [15:46:20]GetLastDocTimeStamp 1729784541 [15:46:20]current date 1729784781 [15:46:20]FM_GetShiftState [15:46:20]SAM_PROTO_GetShiftState [15:46:20]wFMCommunicate request_size=4 [15:46:20]MH_SAM_APDU [15:46:20]CAPDU: 80 13 01 00 [15:46:20]Write to MH i2c: E2 08 00 D4 0D 80 13 01 00 00 00 00 00 5E [15:46:20]Write i2c OK [15:46:20]MH_I2C_Read... [15:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:20]Read from MH i2c: E2 [15:46:20]MH_I2C_Read... [15:46:20]Read from MH i2c: E2 0E 00 [15:46:20]MH_I2C_Read... [15:46:20]Read from MH i2c: E2 0E 00 D4 0D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AB [15:46:20]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:46:20]wFMCommunicate OK [15:46:20]SAM_PROTO_GetShiftState done [15:46:20]FM_GetShiftState done [15:46:20]opened in 1729729836 [15:46:20]opened+sec_in_day 1729816236 [15:46:20]quantity*price = 70027 [15:46:20]sum+1 = 70029 [15:46:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.28 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 0.00 Безнал.: 700.28 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 215 24.10.2024 15:46 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155590 ФПД: 272747160269101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154621&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155590&fm=272747160269101&tin=02508201610067®Number=0000000000091693&sum=70028 [15:46:21]StoreToDocumentArchive [15:46:21]shift 534 fd 155590 [15:46:21]save to /storage/0534/doc_00155590 [15:46:21]save last doc name /storage/0534/doc_00155590 to /storage/kkm_last_doc_name [15:46:21]save OK [15:46:21]Clear old archive folders... [15:46:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:46:21]tlvbuf is 01F59DB0 [15:46:21]SAM_PROTO_ClearQueue [15:46:21]wFMCommunicate request_size=4 [15:46:21]MH_SAM_APDU [15:46:21]CAPDU: 80 09 00 00 [15:46:21]Write to MH i2c: E2 08 00 E1 0D 80 09 00 00 00 00 00 00 60 [15:46:21]Write i2c OK [15:46:21]MH_I2C_Read... [15:46:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:21]Read from MH i2c: E2 [15:46:21]MH_I2C_Read... [15:46:21]Read from MH i2c: E2 03 00 [15:46:21]MH_I2C_Read... [15:46:21]Read from MH i2c: E2 03 00 E1 0D 00 90 00 62 [15:46:21]RAPDU: 90 00 [15:46:21]wFMCommunicate OK [15:46:21]SAM_PROTO_ClearQueue done [15:46:21]KKMCreateOFDPacket [15:46:21]OFDProtocolAddRootSTLVToBuf [15:46:21]FM_MakeSignedData [15:46:21]FM_MakeSignedData [15:46:21]SAM_PROTO_SignData [15:46:21]wFMCommunicate request_size=4 [15:46:21]MH_SAM_APDU [15:46:21]CAPDU: 80 0D 01 02 [15:46:21]Write to MH i2c: E2 08 00 E2 0D 80 0D 01 02 00 00 00 00 68 [15:46:21]Write i2c OK [15:46:21]MH_I2C_Read... [15:46:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:21]Read from MH i2c: E2 [15:46:21]MH_I2C_Read... [15:46:21]Read from MH i2c: E2 03 00 [15:46:21]MH_I2C_Read... [15:46:21]Read from MH i2c: E2 03 00 E2 0D 00 90 00 63 [15:46:21]RAPDU: 90 00 [15:46:21]wFMCommunicate OK [15:46:21]wFMCommunicate request_size=255 [15:46:21]MH_SAM_APDU [15:46:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 CD 6B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 5F 02 00 35 04 06 00 F8 0F E5 99 [15:46:21]Write to MH i2c: E2 02 01 E3 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 CD 6B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 5F 02 00 35 04 06 00 F8 0F E5 99 00 00 7A [15:46:21]Write i2c OK [15:46:21]MH_I2C_Read... [15:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:22]Read from MH i2c: E2 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 03 00 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 03 00 E3 0D 00 90 00 64 [15:46:22]RAPDU: 90 00 [15:46:22]wFMCommunicate OK [15:46:22]wFMCommunicate request_size=7 [15:46:22]MH_SAM_APDU [15:46:22]CAPDU: 80 0D 02 02 02 F1 2D [15:46:22]Write to MH i2c: E2 0A 00 E4 0D 80 0D 02 02 02 00 F1 2D 00 00 8D [15:46:22]Write i2c OK [15:46:22]MH_I2C_Read... [15:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:22]Read from MH i2c: E2 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 03 00 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 03 00 E4 0D 00 90 00 65 [15:46:22]RAPDU: 90 00 [15:46:22]wFMCommunicate OK [15:46:22]wFMCommunicate request_size=4 [15:46:22]MH_SAM_APDU [15:46:22]CAPDU: 80 0D 03 02 [15:46:22]Write to MH i2c: E2 08 00 E5 0D 80 0D 03 02 00 00 00 00 6D [15:46:22]Write i2c OK [15:46:22]MH_I2C_Read... [15:46:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:22]Read from MH i2c: E2 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 0B 00 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 0B 00 E5 0D 00 93 18 B6 76 19 6C 35 F8 90 00 F7 [15:46:22]RAPDU: 93 18 B6 76 19 6C 35 F8 90 00 [15:46:22]wFMCommunicate OK [15:46:22]SAM_PROTO_SignData done [15:46:22]FM_MakeSignedData done [15:46:22]CreateOFDProtocolMessage [15:46:22]wFMCommunicate request_size=4 [15:46:22]MH_SAM_APDU [15:46:22]CAPDU: 80 11 00 00 [15:46:22]Write to MH i2c: E2 08 00 E6 0D 80 11 00 00 00 00 00 00 6D [15:46:22]Write i2c OK [15:46:22]MH_I2C_Read... [15:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:22]Read from MH i2c: E2 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 17 00 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 17 00 E6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C2 [15:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:46:22]wFMCommunicate OK [15:46:22]CreateOFDProtocolMessage done [15:46:22]OFDSenderStorePacket 155590 [15:46:22]StoreOFDPacket docnum=155590 [15:46:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 FB 1D 04 01 A6 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 CD 6B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 5F 02 00 35 04 06 00 F8 0F E5 99 F1 2D 93 18 B6 76 19 6C 35 F8 [15:46:22]CheckFolder [15:46:22]dirname=/storage/ofd_packets [15:46:22]CheckFolder done [15:46:22]ProducePacketName [15:46:22]name=ofd_packets/00155590 [15:46:22]NVStorageSaveData ofd_packets/00155590 [15:46:22]File name is /storage/ofd_packets/00155590 [15:46:22]Write 298 bytes [15:46:22]NVStorageSaveData done [15:46:22]OFDSenderStorePacket done [15:46:22]KKMCreateOFDPacket done [15:46:22]NVStorageSaveData kkm_last_timestamp [15:46:22]File name is /storage/kkm_last_timestamp [15:46:22]Write 4 bytes [15:46:22]NVStorageSaveData done [15:46:22]ExternCall_PrintAddStr [15:46:22]wPrintStart [15:46:22]Write to MH i2c: 01 00 00 E7 0D F4 [15:46:22]Write i2c OK [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: 01 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: 01 07 00 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: 01 07 00 E7 0D 00 00 00 00 00 FF 0F 09 [15:46:22]RasterBufferAndPrint [15:46:22]line Счет N : (1)98396 [15:46:22]line ИНН: 02508201610067 [15:46:22]line Контрольно-Кассовый Чек [15:46:22]line ПРОДАЖА [15:46:22]line ТРК (МРК, ГНК) : 32 [15:46:22]line Товар: 2710194210 [15:46:22]line ДТ-К-5 [15:46:22]line 9.190 * 76.20 [15:46:22]line = 700.28 [15:46:22]line НДС 12% НСП 1% [15:46:22]line > о реализуемом товаре [15:46:22]line ИТОГО: 700.28 [15:46:22]line НСП 1% : 6.20 [15:46:22]line НДС 12% : 74.37 [15:46:22]line Наличными: 0.00 [15:46:22]line Безнал.: 700.28 [15:46:22]line Место: АЗС № 143 "Партнер Нефть" [15:46:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:46:22]line СНО: Общий режим [15:46:22]line Чек 215 24.10.2024 15:46 [15:46:22]line Смена: 534 ФФД: 1.0 [15:46:22]line ЗНМ: 0300000096 [15:46:22]line РНМ: 0000000000091693 [15:46:22]line Версия ККМ: 001 [15:46:22]line Платежная система: Mbank [15:46:22]line ФМ: 0000000000871792 [15:46:22]line ФД: 155590 [15:46:22]line ФПД: 272747160269101 [15:46:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154621&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155590&fm=272747160269101&tin=02508201610067®Number=0000000000091693&sum=70028 [15:46:22]written 0, free lines is 4095 [15:46:22]OFD Sender: Processing packet 155590 [packets to send 31, broken 30] [15:46:22]ProducePacketName [15:46:22]name=ofd_packets/00155590 [15:46:22]OFD Sender: To server: pG, [15:46:22]CommunicateWithHost lk.salyk.kg:30040 [15:46:22]ConnectInit lk.salyk.kg [15:46:22]Connected sock=10 [15:46: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 39 32 0C 01 00 00 FB 1D 04 01 A6 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 8C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 CD 6B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 5F 02 00 35 04 06 00 F8 0F E5 99 F1 2D 93 18 B6 76 19 6C 35 F8 [15:46: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 39 32 4F 00 00 00 BD 70 47 00 58 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 39 32 10 04 04 00 C6 5F 02 00 F4 03 04 00 45 11 1A 67 B6 04 01 00 00 91 55 4C 45 14 5F ED 01 [15:46:22]CommunicateWithHost err = 0 [15:46:22]CheckOFDResponse [15:46:22]1017 (14) - 77093643461234 [15:46:22]1041 (16) - 0000000000871792 [15:46:22]1040 (4) - 155590 [15:46:22]1012 (4) - 24.10.2024 09:20 [15:46:22]1206 (1) - 0 [15:46:22]OFD Sender: Remove packet 155590 [15:46:22]ProducePacketName [15:46:22]name=ofd_packets/00155590 [15:46:22]NVStorageDeleteData [15:46:22]Write to MH i2c: 01 00 00 10 0E 1E [15:46:22]Write i2c OK [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: 01 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: 01 07 00 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: 01 07 00 10 0E 00 00 00 00 00 FF 0C 30 [15:46:22]RasterBufferAndPrint [15:46:22]line [15:46:22]line [15:46:22]line [15:46:22]line [15:46:22]line [15:46:22]written 0, free lines is 3333 [15:46:22]process_action close_receipt done [15:46:22]requested_data is exist [15:46:22]produce_requested_data [15:46:22]requested_item fm.sn is exist - process it [15:46:22]wFMCommunicate request_size=4 [15:46:22]MH_SAM_APDU [15:46:22]CAPDU: 80 11 00 00 [15:46:22]Write to MH i2c: E2 08 00 17 0E 80 11 00 00 00 00 00 00 9F [15:46:22]Write i2c OK [15:46:22]MH_I2C_Read... [15:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:22]Read from MH i2c: E2 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 17 00 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 17 00 17 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F4 [15:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:46:22]wFMCommunicate OK [15:46:22]requested_item fd.num is exist - process it [15:46:22]SAM_PROTO_GetFieldsCounters [15:46:22]wFMCommunicate request_size=4 [15:46:22]MH_SAM_APDU [15:46:22]CAPDU: 80 13 00 00 [15:46:22]Write to MH i2c: E2 08 00 18 0E 80 13 00 00 00 00 00 00 A2 [15:46:22]Write i2c OK [15:46:22]MH_I2C_Read... [15:46:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:22]Read from MH i2c: E2 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 62 00 [15:46:22]MH_I2C_Read... [15:46:22]Read from MH i2c: E2 62 00 18 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C6 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [15:46: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C6 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:22]wFMCommunicate OK [15:46:22]SAM_PROTO_GetFieldsCounters done [15:46:22]requested_item shift.num is exist - process it [15:46:22]requested_item shift.opened is exist - process it [15:46:22]req_shift_opened [15:46:22]FM_GetShiftState [15:46:22]SAM_PROTO_GetShiftState [15:46:22]wFMCommunicate request_size=4 [15:46:22]MH_SAM_APDU [15:46:22]CAPDU: 80 13 01 00 [15:46:22]Write to MH i2c: E2 08 00 19 0E 80 13 01 00 00 00 00 00 A4 [15:46:22]Write i2c OK [15:46:22]MH_I2C_Read... [15:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:23]Read from MH i2c: E2 [15:46:23]MH_I2C_Read... [15:46:23]Read from MH i2c: E2 0E 00 [15:46:23]MH_I2C_Read... [15:46:23]Read from MH i2c: E2 0E 00 19 0E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F1 [15:46:23]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:46:23]wFMCommunicate OK [15:46:23]SAM_PROTO_GetShiftState done [15:46:23]FM_GetShiftState done [15:46:23]req_shift_opened done [15:46:23]requested_item shift.open_date is exist - process it [15:46:23]req_shift_open_date [15:46:23]req_shift_open_date done [15:46:23]produce_requested_data done [15:46:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155590,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:46:23]process_action_free close_receipt [15:46:23]json_value_free [15:46:23]json_value_free done [15:46:23]process_json_proto returns [15:46:23]Send response to host [15:46:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155590,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:46:23]free response buf [15:46:23]execute_script done [15:46:23]execute_script returns [15:46:23]free content buf [15:46:23]Sock 8.Close socket [15:46:23]Sock 8.Thread stoped [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:56]accept exits with 9 [15:47:56]New connection [15:47:56]New thread 3066781028 created [15:47:56]Thread 3066637668 joined [15:47:56]Waiting for new connection... [15:47:56] Sock 9.Parse request [15:47:56]Sock 9.Check first char [15:47:56]Sock 9.First char is OK [15:47:56]request: POST /json_proto HTTP/1.0 [15:47:56]Method: POST [15:47:56]URL: /json_proto [15:47:56]Method is POST - this is cgi request [15:47:56]url: /json_proto [15:47:56]query_string will be loaded in cgi processing [15:47:56]execute_cgi json_proto POST (null) [15:47:56]execute_cgi path=json_proto method=POST [15:47:56]POST find Content-Length [15:47:56]Host: 172.17.63.3:8080 [15:47:56]Content-Length: 765 [15:47:56]Content-Type: application/json [15:47:56] [15:47:56]POST finish read [15:47:56]Found Content-Length = 765 [15:47:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:56]execute_script... [15:47:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:56]POST & json_proto [15:47:56]process_json_proto [15:47:56]json parsed OK: [15:47:56]protocol is kg_v1.0 [15:47:56]action value=close_receipt [15:47:56]process_action close_receipt [15:47:56]cmd_close_receipt [15:47:56]MH_GetDate [15:47:56]Write to MH i2c: F0 00 00 1A 0E 17 [15:47:56]Write i2c OK [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: F0 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: F0 09 00 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: F0 09 00 1A 0E 00 2C 6C 1A 67 50 D1 6C 64 2A [15:47:56]GetLastDocTimeStamp 1729784781 [15:47:56]current date 1729784876 [15:47:56]FM_GetShiftState [15:47:56]SAM_PROTO_GetShiftState [15:47:56]wFMCommunicate request_size=4 [15:47:56]MH_SAM_APDU [15:47:56]CAPDU: 80 13 01 00 [15:47:56]Write to MH i2c: E2 08 00 1B 0E 80 13 01 00 00 00 00 00 A6 [15:47:56]Write i2c OK [15:47:56]MH_I2C_Read... [15:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:56]Read from MH i2c: E2 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: E2 0E 00 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: E2 0E 00 1B 0E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F3 [15:47:56]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:47:56]wFMCommunicate OK [15:47:56]SAM_PROTO_GetShiftState done [15:47:56]FM_GetShiftState done [15:47:56]opened in 1729729836 [15:47:56]opened+sec_in_day 1729816236 [15:47:56]quantity*price = 50041 [15:47:56]sum+1 = 50042 [15:47:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 216 24.10.2024 15:47 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155591 ФПД: 175660395377078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154756&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155591&fm=175660395377078&tin=02508201610067®Number=0000000000091693&sum=50041 [15:47:57]StoreToDocumentArchive [15:47:57]shift 534 fd 155591 [15:47:57]save to /storage/0534/doc_00155591 [15:47:57]save last doc name /storage/0534/doc_00155591 to /storage/kkm_last_doc_name [15:47:57]save OK [15:47:57]Clear old archive folders... [15:47:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:57]tlvbuf is 01F60420 [15:47:57]SAM_PROTO_ClearQueue [15:47:57]wFMCommunicate request_size=4 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 09 00 00 [15:47:57]Write to MH i2c: E2 08 00 28 0E 80 09 00 00 00 00 00 00 A8 [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 03 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 03 00 28 0E 00 90 00 AA [15:47:57]RAPDU: 90 00 [15:47:57]wFMCommunicate OK [15:47:57]SAM_PROTO_ClearQueue done [15:47:57]KKMCreateOFDPacket [15:47:57]OFDProtocolAddRootSTLVToBuf [15:47:57]FM_MakeSignedData [15:47:57]FM_MakeSignedData [15:47:57]SAM_PROTO_SignData [15:47:57]wFMCommunicate request_size=4 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 0D 01 02 [15:47:57]Write to MH i2c: E2 08 00 29 0E 80 0D 01 02 00 00 00 00 B0 [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 03 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 03 00 29 0E 00 90 00 AB [15:47:57]RAPDU: 90 00 [15:47:57]wFMCommunicate OK [15:47:57]wFMCommunicate request_size=255 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 2C 6C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 5F 02 00 35 04 06 00 9F [15:47:57]Write to MH i2c: E2 02 01 2A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 2C 6C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 5F 02 00 35 04 06 00 9F 00 00 66 [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 03 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 03 00 2A 0E 00 90 00 AC [15:47:57]RAPDU: 90 00 [15:47:57]wFMCommunicate OK [15:47:57]wFMCommunicate request_size=10 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 0D 02 02 05 C3 1F 77 B1 B6 [15:47:57]Write to MH i2c: E2 0D 00 2B 0E 80 0D 02 02 05 00 C3 1F 77 B1 B6 00 00 7D [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 03 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 03 00 2B 0E 00 90 00 AD [15:47:57]RAPDU: 90 00 [15:47:57]wFMCommunicate OK [15:47:57]wFMCommunicate request_size=4 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 0D 03 02 [15:47:57]Write to MH i2c: E2 08 00 2C 0E 80 0D 03 02 00 00 00 00 B5 [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 0B 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 0B 00 2C 0E 00 9F 97 D1 5E BA 47 AC B1 90 00 79 [15:47:57]RAPDU: 9F 97 D1 5E BA 47 AC B1 90 00 [15:47:57]wFMCommunicate OK [15:47:57]SAM_PROTO_SignData done [15:47:57]FM_MakeSignedData done [15:47:57]CreateOFDProtocolMessage [15:47:57]wFMCommunicate request_size=4 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 11 00 00 [15:47:57]Write to MH i2c: E2 08 00 2D 0E 80 11 00 00 00 00 00 00 B5 [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 17 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 17 00 2D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0A [15:47:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:47:57]wFMCommunicate OK [15:47:57]CreateOFDProtocolMessage done [15:47:57]OFDSenderStorePacket 155591 [15:47:57]StoreOFDPacket docnum=155591 [15:47:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 40 F3 07 01 D6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 2C 6C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 5F 02 00 35 04 06 00 9F C3 1F 77 B1 B6 9F 97 D1 5E BA 47 AC B1 [15:47:57]CheckFolder [15:47:57]dirname=/storage/ofd_packets [15:47:57]CheckFolder done [15:47:57]ProducePacketName [15:47:57]name=ofd_packets/00155591 [15:47:57]NVStorageSaveData ofd_packets/00155591 [15:47:57]File name is /storage/ofd_packets/00155591 [15:47:57]Write 301 bytes [15:47:57]NVStorageSaveData done [15:47:57]OFDSenderStorePacket done [15:47:57]KKMCreateOFDPacket done [15:47:57]NVStorageSaveData kkm_last_timestamp [15:47:57]File name is /storage/kkm_last_timestamp [15:47:57]Write 4 bytes [15:47:57]NVStorageSaveData done [15:47:57]ExternCall_PrintAddStr [15:47:57]wPrintStart [15:47:57]Write to MH i2c: 01 00 00 2E 0E 3C [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: 01 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: 01 07 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: 01 07 00 2E 0E 00 00 00 00 00 FF 0F 51 [15:47:57]RasterBufferAndPrint [15:47:57]line Счет N : (1)98397 [15:47:57]line ИНН: 02508201610067 [15:47:57]line Контрольно-Кассовый Чек [15:47:57]line ПРОДАЖА [15:47:57]line ТРК (МРК, ГНК) : 31 [15:47:57]line Товар: 2710124130 [15:47:57]line Аи-92-К-5 [15:47:57]line 7.480 * 66.90 [15:47:57]line = 500.41 [15:47:57]line НДС 12% НСП 1% [15:47:57]line > о реализуемом товаре [15:47:57]line ИТОГО: 500.41 [15:47:57]line НСП 1% : 4.43 [15:47:57]line НДС 12% : 53.14 [15:47:57]line Наличными: 0.00 [15:47:57]line Безнал.: 500.41 [15:47:57]line Место: АЗС № 143 "Партнер Нефть" [15:47:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:47:57]line СНО: Общий режим [15:47:57]line Чек 216 24.10.2024 15:47 [15:47:57]line Смена: 534 ФФД: 1.0 [15:47:57]line ЗНМ: 0300000096 [15:47:57]line РНМ: 0000000000091693 [15:47:57]line Версия ККМ: 001 [15:47:57]line Платежная система: Mbank [15:47:57]line ФМ: 0000000000871792 [15:47:57]line ФД: 155591 [15:47:57]line ФПД: 175660395377078 [15:47:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154756&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155591&fm=175660395377078&tin=02508201610067®Number=0000000000091693&sum=50041 [15:47:58]OFD Sender: Processing packet 155591 [packets to send 31, broken 30] [15:47:58]ProducePacketName [15:47:58]name=ofd_packets/00155591 [15:47:58]OFD Sender: To server: pG, [15:47:58]CommunicateWithHost lk.salyk.kg:30040 [15:47:58]ConnectInit lk.salyk.kg [15:47:58]written 0, free lines is 4095 [15:47:58]Connected sock=10 [15:47:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 40 F3 07 01 D6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 2C 6C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 5F 02 00 35 04 06 00 9F C3 1F 77 B1 B6 9F 97 D1 5E BA 47 AC B1 [15:47:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 26 BB 47 00 2C 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 39 32 10 04 04 00 C7 5F 02 00 F4 03 04 00 A5 11 1A 67 B6 04 01 00 00 C7 BC 6B 52 B1 70 28 6B [15:47:58]CommunicateWithHost err = 0 [15:47:58]CheckOFDResponse [15:47:58]1017 (14) - 77093643461234 [15:47:58]1041 (16) - 0000000000871792 [15:47:58]1040 (4) - 155591 [15:47:58]1012 (4) - 24.10.2024 09:21 [15:47:58]1206 (1) - 0 [15:47:58]OFD Sender: Remove packet 155591 [15:47:58]ProducePacketName [15:47:58]name=ofd_packets/00155591 [15:47:58]NVStorageDeleteData [15:47:58]Write to MH i2c: 01 00 00 57 0E 65 [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: 01 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: 01 07 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 03 0D 7C [15:47:58]RasterBufferAndPrint [15:47:58]line [15:47:58]line [15:47:58]line [15:47:58]line [15:47:58]line [15:47:58]written 0, free lines is 3337 [15:47:58]process_action close_receipt done [15:47:58]requested_data is exist [15:47:58]produce_requested_data [15:47:58]requested_item fm.sn is exist - process it [15:47:58]wFMCommunicate request_size=4 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 11 00 00 [15:47:58]Write to MH i2c: E2 08 00 5E 0E 80 11 00 00 00 00 00 00 E6 [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 17 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 17 00 5E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3B [15:47:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:47:58]wFMCommunicate OK [15:47:58]requested_item fd.num is exist - process it [15:47:58]SAM_PROTO_GetFieldsCounters [15:47:58]wFMCommunicate request_size=4 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 13 00 00 [15:47:58]Write to MH i2c: E2 08 00 5F 0E 80 13 00 00 00 00 00 00 E9 [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 62 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 62 00 5F 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C7 5F 02 00 0E 04 04 00 16 02 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 D7 [15:47: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C7 5F 02 00 0E 04 04 00 16 02 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 [15:47:58]wFMCommunicate OK [15:47:58]SAM_PROTO_GetFieldsCounters done [15:47:58]requested_item shift.num is exist - process it [15:47:58]requested_item shift.opened is exist - process it [15:47:58]req_shift_opened [15:47:58]FM_GetShiftState [15:47:58]SAM_PROTO_GetShiftState [15:47:58]wFMCommunicate request_size=4 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 13 01 00 [15:47:58]Write to MH i2c: E2 08 00 60 0E 80 13 01 00 00 00 00 00 EB [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 0E 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 0E 00 60 0E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 38 [15:47:58]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:47:58]wFMCommunicate OK [15:47:58]SAM_PROTO_GetShiftState done [15:47:58]FM_GetShiftState done [15:47:58]req_shift_opened done [15:47:58]requested_item shift.open_date is exist - process it [15:47:58]req_shift_open_date [15:47:58]req_shift_open_date done [15:47:58]produce_requested_data done [15:47:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155591,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:47:58]process_action_free close_receipt [15:47:58]json_value_free [15:47:58]json_value_free done [15:47:58]process_json_proto returns [15:47:58]Send response to host [15:47:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155591,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:47:58]free response buf [15:47:58]execute_script done [15:47:58]execute_script returns [15:47:58]free content buf [15:47:58]Sock 9.Close socket [15:47:58]Sock 9.Thread stoped [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:19]OFD Sender: No OFD packet to send [15:49:24]OFD Sender: No OFD packet to send [15:49:29]OFD Sender: No OFD packet to send [15:49:34]OFD Sender: No OFD packet to send [15:49:39]OFD Sender: No OFD packet to send [15:49:39]accept exits with 8 [15:49:39]New connection [15:49:39]New thread 3066637668 created [15:49:39]Thread 3066781028 joined [15:49:39]Waiting for new connection... [15:49:39] Sock 8.Parse request [15:49:39]Sock 8.Check first char [15:49:39]Sock 8.First char is OK [15:49:39]request: POST /json_proto HTTP/1.0 [15:49:39]Method: POST [15:49:39]URL: /json_proto [15:49:39]Method is POST - this is cgi request [15:49:39]url: /json_proto [15:49:39]query_string will be loaded in cgi processing [15:49:39]execute_cgi json_proto POST (null) [15:49:39]execute_cgi path=json_proto method=POST [15:49:39]POST find Content-Length [15:49:39]Host: 172.17.63.3:8080 [15:49:39]Content-Length: 678 [15:49:39]Content-Type: application/json [15:49:39] [15:49:39]POST finish read [15:49:39]Found Content-Length = 678 [15:49:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:39]execute_script... [15:49: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)98398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:39]POST & json_proto [15:49:39]process_json_proto [15:49:39]json parsed OK: [15:49:39]protocol is kg_v1.0 [15:49:39]action value=close_receipt [15:49:39]process_action close_receipt [15:49:39]cmd_close_receipt [15:49:39]MH_GetDate [15:49:39]Write to MH i2c: F0 00 00 61 0E 5E [15:49:39]Write i2c OK [15:49:39]MH_I2C_Read... [15:49:39]Read from MH i2c: F0 [15:49:39]MH_I2C_Read... [15:49:39]Read from MH i2c: F0 09 00 [15:49:39]MH_I2C_Read... [15:49:39]Read from MH i2c: F0 09 00 61 0E 00 94 6C 1A 67 50 D1 6C 64 D9 [15:49:39]GetLastDocTimeStamp 1729784876 [15:49:39]current date 1729784980 [15:49:39]FM_GetShiftState [15:49:39]SAM_PROTO_GetShiftState [15:49:39]wFMCommunicate request_size=4 [15:49:39]MH_SAM_APDU [15:49:39]CAPDU: 80 13 01 00 [15:49:39]Write to MH i2c: E2 08 00 62 0E 80 13 01 00 00 00 00 00 ED [15:49:39]Write i2c OK [15:49:39]MH_I2C_Read... [15:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:39]Read from MH i2c: E2 [15:49:39]MH_I2C_Read... [15:49:39]Read from MH i2c: E2 0E 00 [15:49:39]MH_I2C_Read... [15:49:39]Read from MH i2c: E2 0E 00 62 0E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3A [15:49:39]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:49:39]wFMCommunicate OK [15:49:39]SAM_PROTO_GetShiftState done [15:49:39]FM_GetShiftState done [15:49:39]opened in 1729729836 [15:49:39]opened+sec_in_day 1729816236 [15:49:39]quantity*price = 100050 [15:49:39]sum+1 = 100052 [15:49:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 217 24.10.2024 15:49 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155592 ФПД: 4051105895181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154940&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155592&fm=4051105895181&tin=02508201610067®Number=0000000000091693&sum=100000 [15:49:41]StoreToDocumentArchive [15:49:41]shift 534 fd 155592 [15:49:41]save to /storage/0534/doc_00155592 [15:49:41]save last doc name /storage/0534/doc_00155592 to /storage/kkm_last_doc_name [15:49:41]save OK [15:49:41]Clear old archive folders... [15:49:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:49:41]tlvbuf is 01F08D90 [15:49:41]SAM_PROTO_ClearQueue [15:49:41]wFMCommunicate request_size=4 [15:49:41]MH_SAM_APDU [15:49:41]CAPDU: 80 09 00 00 [15:49:41]Write to MH i2c: E2 08 00 6F 0E 80 09 00 00 00 00 00 00 EF [15:49:41]Write i2c OK [15:49:41]MH_I2C_Read... [15:49:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:41]Read from MH i2c: E2 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: E2 03 00 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [15:49:41]RAPDU: 90 00 [15:49:41]wFMCommunicate OK [15:49:41]SAM_PROTO_ClearQueue done [15:49:41]KKMCreateOFDPacket [15:49:41]OFDProtocolAddRootSTLVToBuf [15:49:41]FM_MakeSignedData [15:49:41]FM_MakeSignedData [15:49:41]SAM_PROTO_SignData [15:49:41]wFMCommunicate request_size=4 [15:49:41]MH_SAM_APDU [15:49:41]CAPDU: 80 0D 01 02 [15:49:41]Write to MH i2c: E2 08 00 70 0E 80 0D 01 02 00 00 00 00 F7 [15:49:41]Write i2c OK [15:49:41]MH_I2C_Read... [15:49:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:41]Read from MH i2c: E2 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: E2 03 00 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: E2 03 00 70 0E 00 90 00 F2 [15:49:41]RAPDU: 90 00 [15:49:41]wFMCommunicate OK [15:49:41]wFMCommunicate request_size=255 [15:49:41]MH_SAM_APDU [15:49:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 D9 00 00 00 F4 03 04 00 94 6C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 5F 02 00 35 04 06 00 03 AF 38 BA [15:49:41]Write to MH i2c: E2 02 01 71 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 94 6C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 5F 02 00 35 04 06 00 03 AF 38 BA 00 00 C0 [15:49:41]Write i2c OK [15:49:41]MH_I2C_Read... [15:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:41]Read from MH i2c: E2 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: E2 03 00 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [15:49:41]RAPDU: 90 00 [15:49:41]wFMCommunicate OK [15:49:41]wFMCommunicate request_size=7 [15:49:41]MH_SAM_APDU [15:49:41]CAPDU: 80 0D 02 02 02 53 0D [15:49:41]Write to MH i2c: E2 0A 00 72 0E 80 0D 02 02 02 00 53 0D 00 00 5E [15:49:41]Write i2c OK [15:49:41]MH_I2C_Read... [15:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:41]Read from MH i2c: E2 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: E2 03 00 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [15:49:41]RAPDU: 90 00 [15:49:41]wFMCommunicate OK [15:49:41]wFMCommunicate request_size=4 [15:49:41]MH_SAM_APDU [15:49:41]CAPDU: 80 0D 03 02 [15:49:41]Write to MH i2c: E2 08 00 73 0E 80 0D 03 02 00 00 00 00 FC [15:49:41]Write i2c OK [15:49:41]MH_I2C_Read... [15:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:41]Read from MH i2c: E2 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: E2 0B 00 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: E2 0B 00 73 0E 00 59 4C A8 FA 41 6C 11 15 90 00 17 [15:49:41]RAPDU: 59 4C A8 FA 41 6C 11 15 90 00 [15:49:41]wFMCommunicate OK [15:49:41]SAM_PROTO_SignData done [15:49:41]FM_MakeSignedData done [15:49:41]CreateOFDProtocolMessage [15:49:41]wFMCommunicate request_size=4 [15:49:41]MH_SAM_APDU [15:49:41]CAPDU: 80 11 00 00 [15:49:41]Write to MH i2c: E2 08 00 74 0E 80 11 00 00 00 00 00 00 FC [15:49:41]Write i2c OK [15:49:41]MH_I2C_Read... [15:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:41]Read from MH i2c: E2 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: E2 17 00 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: E2 17 00 74 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 51 [15:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:49:41]wFMCommunicate OK [15:49:41]CreateOFDProtocolMessage done [15:49:41]OFDSenderStorePacket 155592 [15:49:41]StoreOFDPacket docnum=155592 [15:49:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 98 0A 04 01 FB 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 94 6C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 5F 02 00 35 04 06 00 03 AF 38 BA 53 0D 59 4C A8 FA 41 6C 11 15 [15:49:41]CheckFolder [15:49:41]dirname=/storage/ofd_packets [15:49:41]CheckFolder done [15:49:41]ProducePacketName [15:49:41]name=ofd_packets/00155592 [15:49:41]NVStorageSaveData ofd_packets/00155592 [15:49:41]File name is /storage/ofd_packets/00155592 [15:49:41]Write 298 bytes [15:49:41]NVStorageSaveData done [15:49:41]OFDSenderStorePacket done [15:49:41]KKMCreateOFDPacket done [15:49:41]NVStorageSaveData kkm_last_timestamp [15:49:41]File name is /storage/kkm_last_timestamp [15:49:41]Write 4 bytes [15:49:41]NVStorageSaveData done [15:49:41]ExternCall_PrintAddStr [15:49:41]wPrintStart [15:49:41]Write to MH i2c: 01 00 00 75 0E 83 [15:49:41]Write i2c OK [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: 01 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: 01 07 00 [15:49:41]MH_I2C_Read... [15:49:41]Read from MH i2c: 01 07 00 75 0E 00 00 00 00 00 FF 0F 98 [15:49:41]RasterBufferAndPrint [15:49:41]line Счет N : (1)98398 [15:49:41]line ИНН: 02508201610067 [15:49:41]line Контрольно-Кассовый Чек [15:49:41]line ПРОДАЖА [15:49:41]line ТРК (МРК, ГНК) : 32 [15:49:41]line Товар: 2710194210 [15:49:41]line ДТ-К-5 [15:49:41]line 13.130 * 76.20 [15:49:41]line = 1000.51 [15:49:41]line НДС 12% НСП 1% [15:49:41]line > о реализуемом товаре [15:49:41]line ОКРУГЛЕНИЕ: -0.51 [15:49:41]line ИТОГО: 1000.00 [15:49:41]line Внесено: 1000.00 [15:49:41]line СДАЧА: 0.00 [15:49:41]line НСП 1% : 8.85 [15:49:41]line НДС 12% : 106.25 [15:49:41]line Наличными: 1000.00 [15:49:41]line Безнал.: 0.00 [15:49:41]line Место: АЗС № 143 "Партнер Нефть" [15:49:41]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:49:41]line СНО: Общий режим [15:49:41]line Чек 217 24.10.2024 15:49 [15:49:41]line Смена: 534 ФФД: 1.0 [15:49:41]line ЗНМ: 0300000096 [15:49:41]line РНМ: 0000000000091693 [15:49:41]line Версия ККМ: 001 [15:49:41]line ФМ: 0000000000871792 [15:49:41]line ФД: 155592 [15:49:41]line ФПД: 4051105895181 [15:49:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154940&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155592&fm=4051105895181&tin=02508201610067®Number=0000000000091693&sum=100000 [15:49:41]OFD Sender: Processing packet 155592 [packets to send 31, broken 30] [15:49:41]ProducePacketName [15:49:41]name=ofd_packets/00155592 [15:49:41]OFD Sender: To server: pG, [15:49:41]CommunicateWithHost lk.salyk.kg:30040 [15:49:41]ConnectInit lk.salyk.kg [15:49:41]written 0, free lines is 4095 [15:49:42]Connected sock=10 [15:49: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 39 32 0C 01 00 00 98 0A 04 01 FB 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 94 6C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 5F 02 00 35 04 06 00 03 AF 38 BA 53 0D 59 4C A8 FA 41 6C 11 15 [15:49: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 39 32 4F 00 00 00 80 88 47 00 19 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 5F 02 00 F4 03 04 00 0D 12 1A 67 B6 04 01 00 00 0C 87 5E 33 70 9B CA B7 [15:49:42]CommunicateWithHost err = 0 [15:49:42]CheckOFDResponse [15:49:42]1017 (14) - 77093643461234 [15:49:42]1041 (16) - 0000000000871792 [15:49:42]1040 (4) - 155592 [15:49:42]1012 (4) - 24.10.2024 09:23 [15:49:42]1206 (1) - 0 [15:49:42]OFD Sender: Remove packet 155592 [15:49:42]ProducePacketName [15:49:42]name=ofd_packets/00155592 [15:49:42]NVStorageDeleteData [15:49:42]Write to MH i2c: 01 00 00 A0 0E AE [15:49:42]Write i2c OK [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: 01 [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: 01 07 00 [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: 01 07 00 A0 0E 00 00 00 00 00 D4 0C 95 [15:49:42]RasterBufferAndPrint [15:49:42]line [15:49:42]line [15:49:42]line [15:49:42]line [15:49:42]line [15:49:42]written 0, free lines is 3290 [15:49:42]process_action close_receipt done [15:49:42]requested_data is exist [15:49:42]produce_requested_data [15:49:42]requested_item fm.sn is exist - process it [15:49:42]wFMCommunicate request_size=4 [15:49:42]MH_SAM_APDU [15:49:42]CAPDU: 80 11 00 00 [15:49:42]Write to MH i2c: E2 08 00 A7 0E 80 11 00 00 00 00 00 00 2F [15:49:42]Write i2c OK [15:49:42]MH_I2C_Read... [15:49:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:42]Read from MH i2c: E2 [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: E2 17 00 [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: E2 17 00 A7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 84 [15:49:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:49:42]wFMCommunicate OK [15:49:42]requested_item fd.num is exist - process it [15:49:42]SAM_PROTO_GetFieldsCounters [15:49:42]wFMCommunicate request_size=4 [15:49:42]MH_SAM_APDU [15:49:42]CAPDU: 80 13 00 00 [15:49:42]Write to MH i2c: E2 08 00 A8 0E 80 13 00 00 00 00 00 00 32 [15:49:42]Write i2c OK [15:49:42]MH_I2C_Read... [15:49:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:42]Read from MH i2c: E2 [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: E2 62 00 [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: E2 62 00 A8 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C8 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [15: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C8 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:42]wFMCommunicate OK [15:49:42]SAM_PROTO_GetFieldsCounters done [15:49:42]requested_item shift.num is exist - process it [15:49:42]requested_item shift.opened is exist - process it [15:49:42]req_shift_opened [15:49:42]FM_GetShiftState [15:49:42]SAM_PROTO_GetShiftState [15:49:42]wFMCommunicate request_size=4 [15:49:42]MH_SAM_APDU [15:49:42]CAPDU: 80 13 01 00 [15:49:42]Write to MH i2c: E2 08 00 A9 0E 80 13 01 00 00 00 00 00 34 [15:49:42]Write i2c OK [15:49:42]MH_I2C_Read... [15:49:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:42]Read from MH i2c: E2 [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: E2 0E 00 [15:49:42]MH_I2C_Read... [15:49:42]Read from MH i2c: E2 0E 00 A9 0E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 81 [15:49:42]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:49:42]wFMCommunicate OK [15:49:42]SAM_PROTO_GetShiftState done [15:49:42]FM_GetShiftState done [15:49:42]req_shift_opened done [15:49:42]requested_item shift.open_date is exist - process it [15:49:42]req_shift_open_date [15:49:42]req_shift_open_date done [15:49:42]produce_requested_data done [15:49:42]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155592,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:49:42]process_action_free close_receipt [15:49:42]json_value_free [15:49:42]json_value_free done [15:49:42]process_json_proto returns [15:49:42]Send response to host [15:49:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155592,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:49:42]free response buf [15:49:42]execute_script done [15:49:42]execute_script returns [15:49:42]free content buf [15:49:42]Sock 8.Close socket [15:49:42]Sock 8.Thread stoped [15:49:42]OFD Sender: No OFD packet to send [15:49:47]accept exits with 9 [15:49:47]New connection [15:49:47]New thread 3066781028 created [15:49:47]Thread 3066637668 joined [15:49:47]Waiting for new connection... [15:49:47] Sock 9.Parse request [15:49:47]Sock 9.Check first char [15:49:47]Sock 9.First char is OK [15:49:47]request: POST /json_proto HTTP/1.0 [15:49:47]Method: POST [15:49:47]URL: /json_proto [15:49:47]Method is POST - this is cgi request [15:49:47]url: /json_proto [15:49:47]query_string will be loaded in cgi processing [15:49:47]execute_cgi json_proto POST (null) [15:49:47]execute_cgi path=json_proto method=POST [15:49:47]POST find Content-Length [15:49:47]Host: 172.17.63.3:8080 [15:49:47]Content-Length: 676 [15:49:47]Content-Type: application/json [15:49:47] [15:49:47]POST finish read [15:49:47]Found Content-Length = 676 [15:49:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:47]execute_script... [15: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)98399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:47]POST & json_proto [15:49:47]process_json_proto [15:49:47]json parsed OK: [15:49:47]protocol is kg_v1.0 [15:49:47]action value=close_receipt [15:49:47]process_action close_receipt [15:49:47]cmd_close_receipt [15:49:47]MH_GetDate [15:49:47]Write to MH i2c: F0 00 00 AA 0E A7 [15:49:47]Write i2c OK [15:49:47]MH_I2C_Read... [15:49:47]Read from MH i2c: F0 [15:49:47]MH_I2C_Read... [15:49:47]Read from MH i2c: F0 09 00 [15:49:47]MH_I2C_Read... [15:49:47]Read from MH i2c: F0 09 00 AA 0E 00 9B 6C 1A 67 50 D1 6C 64 29 [15:49:47]GetLastDocTimeStamp 1729784980 [15:49:47]current date 1729784987 [15:49:47]FM_GetShiftState [15:49:47]SAM_PROTO_GetShiftState [15:49:47]wFMCommunicate request_size=4 [15:49:47]MH_SAM_APDU [15:49:47]CAPDU: 80 13 01 00 [15:49:47]Write to MH i2c: E2 08 00 AB 0E 80 13 01 00 00 00 00 00 36 [15:49:47]Write i2c OK [15:49:47]MH_I2C_Read... [15:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:47]Read from MH i2c: E2 [15:49:47]MH_I2C_Read... [15:49:47]Read from MH i2c: E2 0E 00 [15:49:47]MH_I2C_Read... [15:49:47]Read from MH i2c: E2 0E 00 AB 0E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 83 [15:49:47]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:49:47]wFMCommunicate OK [15:49:47]SAM_PROTO_GetShiftState done [15:49:47]FM_GetShiftState done [15:49:47]opened in 1729729836 [15:49:47]opened+sec_in_day 1729816236 [15:49:47]quantity*price = 65026 [15:49:47]sum+1 = 65028 [15:49:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 218 24.10.2024 15:49 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155593 ФПД: 107121432398246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154947&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155593&fm=107121432398246&tin=02508201610067®Number=0000000000091693&sum=65000 [15:49:48]StoreToDocumentArchive [15:49:48]shift 534 fd 155593 [15:49:48]save to /storage/0534/doc_00155593 [15:49:48]save last doc name /storage/0534/doc_00155593 to /storage/kkm_last_doc_name [15:49:48]save OK [15:49:48]Clear old archive folders... [15:49:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:48]tlvbuf is 01F57650 [15:49:48]SAM_PROTO_ClearQueue [15:49:48]wFMCommunicate request_size=4 [15:49:48]MH_SAM_APDU [15:49:48]CAPDU: 80 09 00 00 [15:49:48]Write to MH i2c: E2 08 00 B8 0E 80 09 00 00 00 00 00 00 38 [15:49:48]Write i2c OK [15:49:48]MH_I2C_Read... [15:49:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:48]Read from MH i2c: E2 [15:49:48]MH_I2C_Read... [15:49:48]Read from MH i2c: E2 03 00 [15:49:48]MH_I2C_Read... [15:49:48]Read from MH i2c: E2 03 00 B8 0E 00 90 00 3A [15:49:48]RAPDU: 90 00 [15:49:48]wFMCommunicate OK [15:49:48]SAM_PROTO_ClearQueue done [15:49:48]KKMCreateOFDPacket [15:49:48]OFDProtocolAddRootSTLVToBuf [15:49:48]FM_MakeSignedData [15:49:48]FM_MakeSignedData [15:49:48]SAM_PROTO_SignData [15:49:48]wFMCommunicate request_size=4 [15:49:48]MH_SAM_APDU [15:49:48]CAPDU: 80 0D 01 02 [15:49:48]Write to MH i2c: E2 08 00 B9 0E 80 0D 01 02 00 00 00 00 40 [15:49:48]Write i2c OK [15:49:48]MH_I2C_Read... [15:49:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:48]Read from MH i2c: E2 [15:49:48]MH_I2C_Read... [15:49:48]Read from MH i2c: E2 03 00 [15:49:48]MH_I2C_Read... [15:49:48]Read from MH i2c: E2 03 00 B9 0E 00 90 00 3B [15:49:48]RAPDU: 90 00 [15:49:48]wFMCommunicate OK [15:49:48]wFMCommunicate request_size=255 [15:49:48]MH_SAM_APDU [15: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 9B 6C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 5F 02 00 35 04 06 00 61 [15:49:48]Write to MH i2c: E2 02 01 BA 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 9B 6C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 5F 02 00 35 04 06 00 61 00 00 CC [15:49:48]Write i2c OK [15:49:48]MH_I2C_Read... [15:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:48]Read from MH i2c: E2 [15:49:48]MH_I2C_Read... [15:49:48]Read from MH i2c: E2 03 00 [15:49:48]MH_I2C_Read... [15:49:48]Read from MH i2c: E2 03 00 BA 0E 00 90 00 3C [15:49:48]RAPDU: 90 00 [15:49:48]wFMCommunicate OK [15:49:48]wFMCommunicate request_size=10 [15:49:48]MH_SAM_APDU [15:49:48]CAPDU: 80 0D 02 02 05 6D 26 ED 09 A6 [15:49:48]Write to MH i2c: E2 0D 00 BB 0E 80 0D 02 02 05 00 6D 26 ED 09 A6 00 00 7C [15:49:48]Write i2c OK [15:49:48]MH_I2C_Read... [15:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:48]Read from MH i2c: E2 [15:49:48]MH_I2C_Read... [15:49:48]Read from MH i2c: E2 03 00 [15:49:48]MH_I2C_Read... [15:49:48]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [15:49:48]RAPDU: 90 00 [15:49:48]wFMCommunicate OK [15:49:48]wFMCommunicate request_size=4 [15:49:48]MH_SAM_APDU [15:49:48]CAPDU: 80 0D 03 02 [15:49:48]Write to MH i2c: E2 08 00 BC 0E 80 0D 03 02 00 00 00 00 45 [15:49:48]Write i2c OK [15:49:48]MH_I2C_Read... [15:49:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:48]Read from MH i2c: E2 [15:49:48]MH_I2C_Read... [15:49:48]Read from MH i2c: E2 0B 00 [15:49:48]MH_I2C_Read... [15:49:48]Read from MH i2c: E2 0B 00 BC 0E 00 94 10 BE 5D 94 54 81 8B 90 00 F9 [15:49:48]RAPDU: 94 10 BE 5D 94 54 81 8B 90 00 [15:49:48]wFMCommunicate OK [15:49:48]SAM_PROTO_SignData done [15:49:48]FM_MakeSignedData done [15:49:48]CreateOFDProtocolMessage [15:49:48]wFMCommunicate request_size=4 [15:49:48]MH_SAM_APDU [15:49:48]CAPDU: 80 11 00 00 [15:49:48]Write to MH i2c: E2 08 00 BD 0E 80 11 00 00 00 00 00 00 45 [15:49:48]Write i2c OK [15:49:48]MH_I2C_Read... [15:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:48]Read from MH i2c: E2 [15:49:48]MH_I2C_Read... [15:49:48]Read from MH i2c: E2 17 00 [15:49:48]MH_I2C_Read... [15:49:48]Read from MH i2c: E2 17 00 BD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9A [15:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:49:48]wFMCommunicate OK [15:49:48]CreateOFDProtocolMessage done [15:49:48]OFDSenderStorePacket 155593 [15:49:48]StoreOFDPacket docnum=155593 [15:49:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1C 42 07 01 E4 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 9B 6C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 5F 02 00 35 04 06 00 61 6D 26 ED 09 A6 94 10 BE 5D 94 54 81 8B [15:49:48]CheckFolder [15:49:48]dirname=/storage/ofd_packets [15:49:48]CheckFolder done [15:49:48]ProducePacketName [15:49:48]name=ofd_packets/00155593 [15:49:48]NVStorageSaveData ofd_packets/00155593 [15:49:48]File name is /storage/ofd_packets/00155593 [15:49:48]Write 301 bytes [15:49:48]NVStorageSaveData done [15:49:48]OFDSenderStorePacket done [15:49:48]KKMCreateOFDPacket done [15:49:48]NVStorageSaveData kkm_last_timestamp [15:49:48]File name is /storage/kkm_last_timestamp [15:49:48]Write 4 bytes [15:49:48]NVStorageSaveData done [15:49:48]ExternCall_PrintAddStr [15:49:48]wPrintStart [15:49:48]Write to MH i2c: 01 00 00 BE 0E CC [15:49:48]Write i2c OK [15:49:48]MH_I2C_Read... [15:49:48]Read from MH i2c: 01 [15:49:48]MH_I2C_Read... [15:49:48]Read from MH i2c: 01 07 00 [15:49:48]MH_I2C_Read... [15:49:48]Read from MH i2c: 01 07 00 BE 0E 00 00 00 00 00 FF 0F E1 [15:49:48]RasterBufferAndPrint [15:49:48]line Счет N : (1)98399 [15:49:48]line ИНН: 02508201610067 [15:49:48]line Контрольно-Кассовый Чек [15:49:48]line ПРОДАЖА [15:49:48]line ТРК (МРК, ГНК) : 21 [15:49:48]line Товар: 2710124130 [15:49:48]line Аи-92-К-5 [15:49:48]line 9.720 * 66.90 [15:49:48]line = 650.27 [15:49:48]line НДС 12% НСП 1% [15:49:48]line > о реализуемом товаре [15:49:48]line ОКРУГЛЕНИЕ: -0.27 [15:49:48]line ИТОГО: 650.00 [15:49:48]line Внесено: 650.00 [15:49:48]line СДАЧА: 0.00 [15:49:48]line НСП 1% : 5.75 [15:49:48]line НДС 12% : 69.05 [15:49:48]line Наличными: 650.00 [15:49:48]line Безнал.: 0.00 [15:49:48]line Место: АЗС № 143 "Партнер Нефть" [15:49:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:49:48]line СНО: Общий режим [15:49:48]line Чек 218 24.10.2024 15:49 [15:49:48]line Смена: 534 ФФД: 1.0 [15:49:48]line ЗНМ: 0300000096 [15:49:48]line РНМ: 0000000000091693 [15:49:48]line Версия ККМ: 001 [15:49:48]line ФМ: 0000000000871792 [15:49:48]line ФД: 155593 [15:49:48]line ФПД: 107121432398246 [15:49:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T154947&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155593&fm=107121432398246&tin=02508201610067®Number=0000000000091693&sum=65000 [15:49:48]written 0, free lines is 4095 [15:49:48]OFD Sender: Processing packet 155593 [packets to send 31, broken 30] [15:49:48]ProducePacketName [15:49:49]name=ofd_packets/00155593 [15:49:49]OFD Sender: To server: pG, [15:49:49]CommunicateWithHost lk.salyk.kg:30040 [15:49:49]ConnectInit lk.salyk.kg [15:49:49]Connected sock=10 [15:49: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 39 32 0F 01 00 00 1C 42 07 01 E4 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 9B 6C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 5F 02 00 35 04 06 00 61 6D 26 ED 09 A6 94 10 BE 5D 94 54 81 8B [15:49:49]Write to MH i2c: 01 00 00 E9 0E F7 [15:49:49]Write i2c OK [15:49:49]MH_I2C_Read... [15:49:49]Read from MH i2c: 01 [15:49:49]MH_I2C_Read... [15:49:49]Read from MH i2c: 01 07 00 [15:49:49]MH_I2C_Read... [15:49:49]Read from MH i2c: 01 07 00 E9 0E 00 00 00 00 00 F0 0C FA [15:49:49]RasterBufferAndPrint [15:49:49]line [15:49:49]line [15:49:49]line [15:49:49]line [15:49:49]line [15:49:49]written 0, free lines is 3321 [15:49:49]process_action close_receipt done [15:49:49]requested_data is exist [15:49:49]produce_requested_data [15:49:49]requested_item fm.sn is exist - process it [15:49:49]wFMCommunicate request_size=4 [15:49:49]MH_SAM_APDU [15:49:49]CAPDU: 80 11 00 00 [15:49:49]Write to MH i2c: E2 08 00 F0 0E 80 11 00 00 00 00 00 00 78 [15:49:49]Write i2c OK [15:49:49]MH_I2C_Read... [15:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:49]Read from MH i2c: E2 [15:49:49]MH_I2C_Read... [15:49:49]Read from MH i2c: E2 17 00 [15:49:49]MH_I2C_Read... [15:49:49]Read from MH i2c: E2 17 00 F0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CD [15:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:49:49]wFMCommunicate OK [15:49:49]requested_item fd.num is exist - process it [15:49:49]SAM_PROTO_GetFieldsCounters [15:49:49]wFMCommunicate request_size=4 [15:49:49]MH_SAM_APDU [15:49:49]CAPDU: 80 13 00 00 [15:49:49]Write to MH i2c: E2 08 00 F1 0E 80 13 00 00 00 00 00 00 7B [15:49:49]Write i2c OK [15:49:49]MH_I2C_Read... [15:49:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49: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 39 32 4F 00 00 00 25 21 47 00 39 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 39 32 10 04 04 00 C9 5F 02 00 F4 03 04 00 14 12 1A 67 B6 04 01 00 00 CB FB AB BC 37 99 02 AA [15:49:49]CommunicateWithHost err = 0 [15:49:49]CheckOFDResponse [15:49:49]1017 (14) - 77093643461234 [15:49:49]1041 (16) - 0000000000871792 [15:49:49]1040 (4) - 155593 [15:49:49]1012 (4) - 24.10.2024 09:23 [15:49:49]1206 (1) - 0 [15:49:49]OFD Sender: Remove packet 155593 [15:49:49]ProducePacketName [15:49:49]name=ofd_packets/00155593 [15:49:49]NVStorageDeleteData [15:49:49]Read from MH i2c: E2 [15:49:49]MH_I2C_Read... [15:49:49]Read from MH i2c: E2 62 00 [15:49:49]MH_I2C_Read... [15:49:49]Read from MH i2c: E2 62 00 F1 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C9 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [15:49:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C9 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:49]wFMCommunicate OK [15:49:49]SAM_PROTO_GetFieldsCounters done [15:49:49]requested_item shift.num is exist - process it [15:49:49]requested_item shift.opened is exist - process it [15:49:49]req_shift_opened [15:49:49]FM_GetShiftState [15:49:49]SAM_PROTO_GetShiftState [15:49:49]wFMCommunicate request_size=4 [15:49:49]MH_SAM_APDU [15:49:49]CAPDU: 80 13 01 00 [15:49:49]Write to MH i2c: E2 08 00 F2 0E 80 13 01 00 00 00 00 00 7D [15:49:49]Write i2c OK [15:49:49]MH_I2C_Read... [15:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:49]Read from MH i2c: E2 [15:49:49]MH_I2C_Read... [15:49:49]Read from MH i2c: E2 0E 00 [15:49:49]MH_I2C_Read... [15:49:49]Read from MH i2c: E2 0E 00 F2 0E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 CA [15:49:49]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:49:49]wFMCommunicate OK [15:49:49]SAM_PROTO_GetShiftState done [15:49:49]FM_GetShiftState done [15:49:49]req_shift_opened done [15:49:49]requested_item shift.open_date is exist - process it [15:49:49]req_shift_open_date [15:49:49]req_shift_open_date done [15:49:49]produce_requested_data done [15:49:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155593,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:49:49]process_action_free close_receipt [15:49:49]json_value_free [15:49:49]json_value_free done [15:49:49]process_json_proto returns [15:49:49]Send response to host [15:49:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155593,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:49:49]free response buf [15:49:49]execute_script done [15:49:49]execute_script returns [15:49:49]free content buf [15:49:49]Sock 9.Close socket [15:49:49]Sock 9.Thread stoped [15:49:49]OFD Sender: No OFD packet to send [15:49:54]OFD Sender: No OFD packet to send [15:49:59]OFD Sender: No OFD packet to send [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]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:51:58]accept exits with 8 [15:51:58]New connection [15:51:58]New thread 3066637668 created [15:51:58]Thread 3066781028 joined [15:51:58]Waiting for new connection... [15:51:58] Sock 8.Parse request [15:51:58]Sock 8.Check first char [15:51:58]Sock 8.First char is OK [15:51:58]request: POST /json_proto HTTP/1.0 [15:51:58]Method: POST [15:51:58]URL: /json_proto [15:51:58]Method is POST - this is cgi request [15:51:58]url: /json_proto [15:51:58]query_string will be loaded in cgi processing [15:51:58]execute_cgi json_proto POST (null) [15:51:58]execute_cgi path=json_proto method=POST [15:51:58]POST find Content-Length [15:51:58]Host: 172.17.63.3:8080 [15:51:58]Content-Length: 678 [15:51:58]Content-Type: application/json [15:51:58] [15:51:58]POST finish read [15:51:58]Found Content-Length = 678 [15:51:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:58]execute_script... [15: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)98400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:58]POST & json_proto [15:51:58]process_json_proto [15:51:58]json parsed OK: [15:51:58]protocol is kg_v1.0 [15:51:58]action value=close_receipt [15:51:58]process_action close_receipt [15:51:58]cmd_close_receipt [15:51:58]MH_GetDate [15:51:58]Write to MH i2c: F0 00 00 F3 0E F0 [15:51:58]Write i2c OK [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: F0 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: F0 09 00 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: F0 09 00 F3 0E 00 1F 6D 1A 67 50 D1 6C 64 F7 [15:51:58]GetLastDocTimeStamp 1729784987 [15:51:58]current date 1729785119 [15:51:58]FM_GetShiftState [15:51:58]SAM_PROTO_GetShiftState [15:51:58]wFMCommunicate request_size=4 [15:51:58]MH_SAM_APDU [15:51:58]CAPDU: 80 13 01 00 [15:51:58]Write to MH i2c: E2 08 00 F4 0E 80 13 01 00 00 00 00 00 7F [15:51:58]Write i2c OK [15:51:58]MH_I2C_Read... [15:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:58]Read from MH i2c: E2 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: E2 0E 00 [15:51:58]MH_I2C_Read... [15:51:58]Read from MH i2c: E2 0E 00 F4 0E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 CC [15:51:58]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:51:58]wFMCommunicate OK [15:51:58]SAM_PROTO_GetShiftState done [15:51:58]FM_GetShiftState done [15:51:58]opened in 1729729836 [15:51:58]opened+sec_in_day 1729816236 [15:51:58]quantity*price = 200025 [15:51:58]sum+1 = 200026 [15:51:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 219 24.10.2024 15:51 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155594 ФПД: 210305164100868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155159&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155594&fm=210305164100868&tin=02508201610067®Number=0000000000091693&sum=200000 [15:51:59]StoreToDocumentArchive [15:51:59]shift 534 fd 155594 [15:51:59]save to /storage/0534/doc_00155594 [15:51:59]save last doc name /storage/0534/doc_00155594 to /storage/kkm_last_doc_name [15:51:59]save OK [15:51:59]Clear old archive folders... [15:51:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:51:59]tlvbuf is 01F271D0 [15:51:59]SAM_PROTO_ClearQueue [15:51:59]wFMCommunicate request_size=4 [15:51:59]MH_SAM_APDU [15:51:59]CAPDU: 80 09 00 00 [15:51:59]Write to MH i2c: E2 08 00 01 0F 80 09 00 00 00 00 00 00 82 [15:51:59]Write i2c OK [15:51:59]MH_I2C_Read... [15:51:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:59]Read from MH i2c: E2 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: E2 03 00 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: E2 03 00 01 0F 00 90 00 84 [15:51:59]RAPDU: 90 00 [15:51:59]wFMCommunicate OK [15:51:59]SAM_PROTO_ClearQueue done [15:51:59]KKMCreateOFDPacket [15:51:59]OFDProtocolAddRootSTLVToBuf [15:51:59]FM_MakeSignedData [15:51:59]FM_MakeSignedData [15:51:59]SAM_PROTO_SignData [15:51:59]wFMCommunicate request_size=4 [15:51:59]MH_SAM_APDU [15:51:59]CAPDU: 80 0D 01 02 [15:51:59]Write to MH i2c: E2 08 00 02 0F 80 0D 01 02 00 00 00 00 8A [15:51:59]Write i2c OK [15:51:59]MH_I2C_Read... [15:51:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:59]Read from MH i2c: E2 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: E2 03 00 [15:51:59]MH_I2C_Read... [15:51:59]Read from MH i2c: E2 03 00 02 0F 00 90 00 85 [15:51:59]RAPDU: 90 00 [15:51:59]wFMCommunicate OK [15:51:59]wFMCommunicate request_size=255 [15:51:59]MH_SAM_APDU [15:51:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DB 00 00 00 F4 03 04 00 1F 6D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 5F 02 00 35 04 06 00 BF 45 7C 99 [15:51:59]Write to MH i2c: E2 02 01 03 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 1F 6D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 5F 02 00 35 04 06 00 BF 45 7C 99 00 00 46 [15:51:59]Write i2c OK [15:51:59]MH_I2C_Read... [15:52:00]OFD Sender: No OFD packet to send [15:52:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:00]Read from MH i2c: E2 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: E2 03 00 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: E2 03 00 03 0F 00 90 00 86 [15:52:00]RAPDU: 90 00 [15:52:00]wFMCommunicate OK [15:52:00]wFMCommunicate request_size=7 [15:52:00]MH_SAM_APDU [15:52:00]CAPDU: 80 0D 02 02 02 C5 04 [15:52:00]Write to MH i2c: E2 0A 00 04 0F 80 0D 02 02 02 00 C5 04 00 00 5A [15:52:00]Write i2c OK [15:52:00]MH_I2C_Read... [15:52:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:00]Read from MH i2c: E2 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: E2 03 00 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: E2 03 00 04 0F 00 90 00 87 [15:52:00]RAPDU: 90 00 [15:52:00]wFMCommunicate OK [15:52:00]wFMCommunicate request_size=4 [15:52:00]MH_SAM_APDU [15:52:00]CAPDU: 80 0D 03 02 [15:52:00]Write to MH i2c: E2 08 00 05 0F 80 0D 03 02 00 00 00 00 8F [15:52:00]Write i2c OK [15:52:00]MH_I2C_Read... [15:52:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:00]Read from MH i2c: E2 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: E2 0B 00 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: E2 0B 00 05 0F 00 64 E4 4F 36 86 4F A9 05 90 00 E0 [15:52:00]RAPDU: 64 E4 4F 36 86 4F A9 05 90 00 [15:52:00]wFMCommunicate OK [15:52:00]SAM_PROTO_SignData done [15:52:00]FM_MakeSignedData done [15:52:00]CreateOFDProtocolMessage [15:52:00]wFMCommunicate request_size=4 [15:52:00]MH_SAM_APDU [15:52:00]CAPDU: 80 11 00 00 [15:52:00]Write to MH i2c: E2 08 00 06 0F 80 11 00 00 00 00 00 00 8F [15:52:00]Write i2c OK [15:52:00]MH_I2C_Read... [15:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:00]Read from MH i2c: E2 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: E2 17 00 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: E2 17 00 06 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E4 [15:52:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:52:00]wFMCommunicate OK [15:52:00]CreateOFDProtocolMessage done [15:52:00]OFDSenderStorePacket 155594 [15:52:00]StoreOFDPacket docnum=155594 [15:52:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 53 A2 04 01 54 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DB 00 00 00 F4 03 04 00 1F 6D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 5F 02 00 35 04 06 00 BF 45 7C 99 C5 04 64 E4 4F 36 86 4F A9 05 [15:52:00]CheckFolder [15:52:00]dirname=/storage/ofd_packets [15:52:00]CheckFolder done [15:52:00]ProducePacketName [15:52:00]name=ofd_packets/00155594 [15:52:00]NVStorageSaveData ofd_packets/00155594 [15:52:00]File name is /storage/ofd_packets/00155594 [15:52:00]Write 298 bytes [15:52:00]NVStorageSaveData done [15:52:00]OFDSenderStorePacket done [15:52:00]KKMCreateOFDPacket done [15:52:00]NVStorageSaveData kkm_last_timestamp [15:52:00]File name is /storage/kkm_last_timestamp [15:52:00]Write 4 bytes [15:52:00]NVStorageSaveData done [15:52:00]ExternCall_PrintAddStr [15:52:00]wPrintStart [15:52:00]Write to MH i2c: 01 00 00 07 0F 16 [15:52:00]Write i2c OK [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: 01 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: 01 07 00 [15:52:00]MH_I2C_Read... [15:52:00]Read from MH i2c: 01 07 00 07 0F 00 00 00 00 00 FF 0F 2B [15:52:00]RasterBufferAndPrint [15:52:00]line Счет N : (1)98400 [15:52:00]line ИНН: 02508201610067 [15:52:00]line Контрольно-Кассовый Чек [15:52:00]line ПРОДАЖА [15:52:00]line ТРК (МРК, ГНК) : 32 [15:52:00]line Товар: 2710194210 [15:52:00]line ДТ-К-5 [15:52:00]line 26.250 * 76.20 [15:52:00]line = 2000.25 [15:52:00]line НДС 12% НСП 1% [15:52:00]line > о реализуемом товаре [15:52:00]line ОКРУГЛЕНИЕ: -0.25 [15:52:00]line ИТОГО: 2000.00 [15:52:00]line Внесено: 2000.00 [15:52:00]line СДАЧА: 0.00 [15:52:00]line НСП 1% : 17.70 [15:52:00]line НДС 12% : 212.42 [15:52:00]line Наличными: 2000.00 [15:52:00]line Безнал.: 0.00 [15:52:00]line Место: АЗС № 143 "Партнер Нефть" [15:52:00]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:52:00]line СНО: Общий режим [15:52:00]line Чек 219 24.10.2024 15:51 [15:52:00]line Смена: 534 ФФД: 1.0 [15:52:00]line ЗНМ: 0300000096 [15:52:00]line РНМ: 0000000000091693 [15:52:00]line Версия ККМ: 001 [15:52:00]line ФМ: 0000000000871792 [15:52:00]line ФД: 155594 [15:52:00]line ФПД: 210305164100868 [15:52:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155159&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155594&fm=210305164100868&tin=02508201610067®Number=0000000000091693&sum=200000 [15:52:00]OFD Sender: Processing packet 155594 [packets to send 31, broken 30] [15:52:00]ProducePacketName [15:52:00]name=ofd_packets/00155594 [15:52:00]OFD Sender: To server: pG, [15:52:00]CommunicateWithHost lk.salyk.kg:30040 [15:52:00]ConnectInit lk.salyk.kg [15:52:00]written 0, free lines is 4095 [15:52:00]Connected sock=10 [15:52: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 39 32 0C 01 00 00 53 A2 04 01 54 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DB 00 00 00 F4 03 04 00 1F 6D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 5F 02 00 35 04 06 00 BF 45 7C 99 C5 04 64 E4 4F 36 86 4F A9 05 [15:52: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 39 32 4F 00 00 00 34 84 47 00 BC 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 39 32 10 04 04 00 CA 5F 02 00 F4 03 04 00 97 12 1A 67 B6 04 01 00 00 55 74 46 42 06 84 DC 01 [15:52:01]CommunicateWithHost err = 0 [15:52:01]CheckOFDResponse [15:52:01]1017 (14) - 77093643461234 [15:52:01]1041 (16) - 0000000000871792 [15:52:01]1040 (4) - 155594 [15:52:01]1012 (4) - 24.10.2024 09:25 [15:52:01]1206 (1) - 0 [15:52:01]OFD Sender: Remove packet 155594 [15:52:01]ProducePacketName [15:52:01]name=ofd_packets/00155594 [15:52:01]NVStorageDeleteData [15:52:01]Write to MH i2c: 01 00 00 32 0F 41 [15:52:01]Write i2c OK [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: 01 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: 01 07 00 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: 01 07 00 32 0F 00 00 00 00 00 E2 0C 36 [15:52:01]RasterBufferAndPrint [15:52:01]line [15:52:01]line [15:52:01]line [15:52:01]line [15:52:01]line [15:52:01]written 0, free lines is 3304 [15:52:01]process_action close_receipt done [15:52:01]requested_data is exist [15:52:01]produce_requested_data [15:52:01]requested_item fm.sn is exist - process it [15:52:01]wFMCommunicate request_size=4 [15:52:01]MH_SAM_APDU [15:52:01]CAPDU: 80 11 00 00 [15:52:01]Write to MH i2c: E2 08 00 39 0F 80 11 00 00 00 00 00 00 C2 [15:52:01]Write i2c OK [15:52:01]MH_I2C_Read... [15:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:01]Read from MH i2c: E2 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 17 00 [15:52:01]MH_I2C_Read... [15:52:01]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 39 32 90 00 17 [15:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:52:01]wFMCommunicate OK [15:52:01]requested_item fd.num is exist - process it [15:52:01]SAM_PROTO_GetFieldsCounters [15:52:01]wFMCommunicate request_size=4 [15:52:01]MH_SAM_APDU [15:52:01]CAPDU: 80 13 00 00 [15:52:01]Write to MH i2c: E2 08 00 3A 0F 80 13 00 00 00 00 00 00 C5 [15:52:01]Write i2c OK [15:52:01]MH_I2C_Read... [15:52:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:01]Read from MH i2c: E2 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 62 00 [15:52:01]MH_I2C_Read... [15:52:01]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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CA 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [15:52: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CA 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:01]wFMCommunicate OK [15:52:01]SAM_PROTO_GetFieldsCounters done [15:52:01]requested_item shift.num is exist - process it [15:52:01]requested_item shift.opened is exist - process it [15:52:01]req_shift_opened [15:52:01]FM_GetShiftState [15:52:01]SAM_PROTO_GetShiftState [15:52:01]wFMCommunicate request_size=4 [15:52:01]MH_SAM_APDU [15:52:01]CAPDU: 80 13 01 00 [15:52:01]Write to MH i2c: E2 08 00 3B 0F 80 13 01 00 00 00 00 00 C7 [15:52:01]Write i2c OK [15:52:01]MH_I2C_Read... [15:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:01]Read from MH i2c: E2 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 0E 00 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 0E 00 3B 0F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 14 [15:52:01]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:52:01]wFMCommunicate OK [15:52:01]SAM_PROTO_GetShiftState done [15:52:01]FM_GetShiftState done [15:52:01]req_shift_opened done [15:52:01]requested_item shift.open_date is exist - process it [15:52:01]req_shift_open_date [15:52:01]req_shift_open_date done [15:52:01]produce_requested_data done [15:52:01]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155594,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:52:01]process_action_free close_receipt [15:52:01]json_value_free [15:52:01]json_value_free done [15:52:01]process_json_proto returns [15:52:01]Send response to host [15:52:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155594,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:52:01]free response buf [15:52:01]execute_script done [15:52:01]execute_script returns [15:52:01]free content buf [15:52:01]Sock 8.Close socket [15:52:01]Sock 8.Thread stoped [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:16]OFD Sender: No OFD packet to send [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:37]accept exits with 9 [15:52:37]New connection [15:52:37]New thread 3066781028 created [15:52:37]Thread 3066637668 joined [15:52:37]Waiting for new connection... [15:52:37] Sock 9.Parse request [15:52:37]Sock 9.Check first char [15:52:37]Sock 9.First char is OK [15:52:37]request: POST /json_proto HTTP/1.0 [15:52:37]Method: POST [15:52:37]URL: /json_proto [15:52:37]Method is POST - this is cgi request [15:52:37]url: /json_proto [15:52:37]query_string will be loaded in cgi processing [15:52:37]execute_cgi json_proto POST (null) [15:52:37]execute_cgi path=json_proto method=POST [15:52:37]POST find Content-Length [15:52:37]Host: 172.17.63.3:8080 [15:52:37]Content-Length: 799 [15:52:37]Content-Type: application/json [15:52:37] [15:52:37]POST finish read [15:52:37]Found Content-Length = 799 [15:52:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3948470", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:37]execute_script... [15:52:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3948470", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:37]POST & json_proto [15:52:37]process_json_proto [15:52:37]json parsed OK: [15:52:37]protocol is kg_v1.0 [15:52:37]action value=close_receipt [15:52:37]process_action close_receipt [15:52:37]cmd_close_receipt [15:52:37]MH_GetDate [15:52:37]Write to MH i2c: F0 00 00 3C 0F 3A [15:52:37]Write i2c OK [15:52:37]MH_I2C_Read... [15:52:37]Read from MH i2c: F0 [15:52:37]MH_I2C_Read... [15:52:37]Read from MH i2c: F0 09 00 [15:52:37]MH_I2C_Read... [15:52:37]Read from MH i2c: F0 09 00 3C 0F 00 46 6D 1A 67 50 D1 6C 64 68 [15:52:37]GetLastDocTimeStamp 1729785119 [15:52:37]current date 1729785158 [15:52:37]FM_GetShiftState [15:52:37]SAM_PROTO_GetShiftState [15:52:37]wFMCommunicate request_size=4 [15:52:37]MH_SAM_APDU [15:52:37]CAPDU: 80 13 01 00 [15:52:37]Write to MH i2c: E2 08 00 3D 0F 80 13 01 00 00 00 00 00 C9 [15:52:37]Write i2c OK [15:52:37]MH_I2C_Read... [15:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:37]Read from MH i2c: E2 [15:52:37]MH_I2C_Read... [15:52:37]Read from MH i2c: E2 0E 00 [15:52:37]MH_I2C_Read... [15:52:37]Read from MH i2c: E2 0E 00 3D 0F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 16 [15:52:37]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:52:37]wFMCommunicate OK [15:52:37]SAM_PROTO_GetShiftState done [15:52:37]FM_GetShiftState done [15:52:37]opened in 1729729836 [15:52:37]opened+sec_in_day 1729816236 [15:52:37]quantity*price = 0 [15:52:37]sum+1 = 1 [15:52:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 220 24.10.2024 15:52 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 3948470 ФМ: 0000000000871792 ФД: 155595 ФПД: 103610017581387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155238&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155595&fm=103610017581387&tin=02508201610067®Number=0000000000091693&sum=0 [15:52:38]StoreToDocumentArchive [15:52:38]shift 534 fd 155595 [15:52:38]save to /storage/0534/doc_00155595 [15:52:38]save last doc name /storage/0534/doc_00155595 to /storage/kkm_last_doc_name [15:52:38]save OK [15:52:38]Clear old archive folders... [15:52:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:38]tlvbuf is 01F90960 [15:52:38]SAM_PROTO_ClearQueue [15:52:38]wFMCommunicate request_size=4 [15:52:38]MH_SAM_APDU [15:52:38]CAPDU: 80 09 00 00 [15:52:38]Write to MH i2c: E2 08 00 4A 0F 80 09 00 00 00 00 00 00 CB [15:52:38]Write i2c OK [15:52:38]MH_I2C_Read... [15:52:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:38]Read from MH i2c: E2 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: E2 03 00 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: E2 03 00 4A 0F 00 90 00 CD [15:52:38]RAPDU: 90 00 [15:52:38]wFMCommunicate OK [15:52:38]SAM_PROTO_ClearQueue done [15:52:38]KKMCreateOFDPacket [15:52:38]OFDProtocolAddRootSTLVToBuf [15:52:38]FM_MakeSignedData [15:52:38]FM_MakeSignedData [15:52:38]SAM_PROTO_SignData [15:52:38]wFMCommunicate request_size=4 [15:52:38]MH_SAM_APDU [15:52:38]CAPDU: 80 0D 01 02 [15:52:38]Write to MH i2c: E2 08 00 4B 0F 80 0D 01 02 00 00 00 00 D3 [15:52:38]Write i2c OK [15:52:38]MH_I2C_Read... [15:52:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:38]Read from MH i2c: E2 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: E2 03 00 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: E2 03 00 4B 0F 00 90 00 CE [15:52:38]RAPDU: 90 00 [15:52:38]wFMCommunicate OK [15:52:38]wFMCommunicate request_size=255 [15:52:38]MH_SAM_APDU [15:52:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DC 00 00 00 F4 03 04 00 46 6D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 5F 02 00 35 04 06 00 5E [15:52:38]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 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 DC 00 00 00 F4 03 04 00 46 6D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 5F 02 00 35 04 06 00 5E 00 00 02 [15:52:38]Write i2c OK [15:52:38]MH_I2C_Read... [15:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:39]Read from MH i2c: E2 [15:52:39]MH_I2C_Read... [15:52:39]Read from MH i2c: E2 03 00 [15:52:39]MH_I2C_Read... [15:52:39]Read from MH i2c: E2 03 00 4C 0F 00 90 00 CF [15:52:39]RAPDU: 90 00 [15:52:39]wFMCommunicate OK [15:52:39]wFMCommunicate request_size=10 [15:52:39]MH_SAM_APDU [15:52:39]CAPDU: 80 0D 02 02 05 3B 96 4B 09 4B [15:52:39]Write to MH i2c: E2 0D 00 4D 0F 80 0D 02 02 05 00 3B 96 4B 09 4B 00 00 50 [15:52:39]Write i2c OK [15:52:39]MH_I2C_Read... [15:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:39]Read from MH i2c: E2 [15:52:39]MH_I2C_Read... [15:52:39]Read from MH i2c: E2 03 00 [15:52:39]MH_I2C_Read... [15:52:39]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [15:52:39]RAPDU: 90 00 [15:52:39]wFMCommunicate OK [15:52:39]wFMCommunicate request_size=4 [15:52:39]MH_SAM_APDU [15:52:39]CAPDU: 80 0D 03 02 [15:52:39]Write to MH i2c: E2 08 00 4E 0F 80 0D 03 02 00 00 00 00 D8 [15:52:39]Write i2c OK [15:52:39]MH_I2C_Read... [15:52:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:39]Read from MH i2c: E2 [15:52:39]MH_I2C_Read... [15:52:39]Read from MH i2c: E2 0B 00 [15:52:39]MH_I2C_Read... [15:52:39]Read from MH i2c: E2 0B 00 4E 0F 00 C2 A3 8B BD 64 54 A0 B3 90 00 91 [15:52:39]RAPDU: C2 A3 8B BD 64 54 A0 B3 90 00 [15:52:39]wFMCommunicate OK [15:52:39]SAM_PROTO_SignData done [15:52:39]FM_MakeSignedData done [15:52:39]CreateOFDProtocolMessage [15:52:39]wFMCommunicate request_size=4 [15:52:39]MH_SAM_APDU [15:52:39]CAPDU: 80 11 00 00 [15:52:39]Write to MH i2c: E2 08 00 4F 0F 80 11 00 00 00 00 00 00 D8 [15:52:39]Write i2c OK [15:52:39]MH_I2C_Read... [15:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:39]Read from MH i2c: E2 [15:52:39]MH_I2C_Read... [15:52:39]Read from MH i2c: E2 17 00 [15:52:39]MH_I2C_Read... [15:52:39]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 39 32 90 00 2D [15:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:52:39]wFMCommunicate OK [15:52:39]CreateOFDProtocolMessage done [15:52:39]OFDSenderStorePacket 155595 [15:52:39]StoreOFDPacket docnum=155595 [15:52:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 40 84 07 01 FC A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 DC 00 00 00 F4 03 04 00 46 6D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 5F 02 00 35 04 06 00 5E 3B 96 4B 09 4B C2 A3 8B BD 64 54 A0 B3 [15:52:39]CheckFolder [15:52:39]dirname=/storage/ofd_packets [15:52:39]CheckFolder done [15:52:39]ProducePacketName [15:52:39]name=ofd_packets/00155595 [15:52:39]NVStorageSaveData ofd_packets/00155595 [15:52:39]File name is /storage/ofd_packets/00155595 [15:52:39]Write 301 bytes [15:52:39]NVStorageSaveData done [15:52:39]OFDSenderStorePacket done [15:52:39]KKMCreateOFDPacket done [15:52:39]NVStorageSaveData kkm_last_timestamp [15:52:39]File name is /storage/kkm_last_timestamp [15:52:39]Write 4 bytes [15:52:39]NVStorageSaveData done [15:52:39]ExternCall_PrintAddStr [15:52:39]wPrintStart [15:52:39]Write to MH i2c: 01 00 00 50 0F 5F [15:52:39]Write i2c OK [15:52:39]MH_I2C_Read... [15:52:39]Read from MH i2c: 01 [15:52:39]MH_I2C_Read... [15:52:39]Read from MH i2c: 01 07 00 [15:52:39]MH_I2C_Read... [15:52:39]Read from MH i2c: 01 07 00 50 0F 00 00 00 00 00 FF 0F 74 [15:52:39]RasterBufferAndPrint [15:52:39]line Счет N : (1)98401 [15:52:39]line ИНН: 02508201610067 [15:52:39]line Контрольно-Кассовый Чек [15:52:39]line ПРОДАЖА [15:52:39]line ТРК (МРК, ГНК) : 21 [15:52:39]line Товар: 2710124130 [15:52:39]line Аи-92-К-5 [15:52:39]line 20.000 * 0.00 [15:52:39]line = 0.00 [15:52:39]line НДС 12% НСП 1% [15:52:39]line > о реализуемом товаре [15:52:39]line ИТОГО: 0.00 [15:52:39]line НСП 1% : 0.00 [15:52:39]line НДС 12% : 0.00 [15:52:39]line Наличными: 0.00 [15:52:39]line Безнал.: 0.00 [15:52:39]line Место: АЗС № 143 "Партнер Нефть" [15:52:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:52:39]line СНО: Общий режим [15:52:39]line Чек 220 24.10.2024 15:52 [15:52:39]line Смена: 534 ФФД: 1.0 [15:52:39]line ЗНМ: 0300000096 [15:52:39]line РНМ: 0000000000091693 [15:52:39]line Версия ККМ: 001 [15:52:39]line Талоны: Топливные Талоны [15:52:39]line 3948470 [15:52:39]line ФМ: 0000000000871792 [15:52:39]line ФД: 155595 [15:52:39]line ФПД: 103610017581387 [15:52:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155238&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155595&fm=103610017581387&tin=02508201610067®Number=0000000000091693&sum=0 [15:52:39]written 0, free lines is 4095 [15:52:39]OFD Sender: Processing packet 155595 [packets to send 31, broken 30] [15:52:39]ProducePacketName [15:52:39]name=ofd_packets/00155595 [15:52:39]OFD Sender: To server: pG, [15:52:39]CommunicateWithHost lk.salyk.kg:30040 [15:52:39]ConnectInit lk.salyk.kg [15:52:39]Connected sock=10 [15:52:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 40 84 07 01 FC A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 DC 00 00 00 F4 03 04 00 46 6D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 5F 02 00 35 04 06 00 5E 3B 96 4B 09 4B C2 A3 8B BD 64 54 A0 B3 [15:52:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 FA D3 47 00 FB 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 39 32 10 04 04 00 CB 5F 02 00 F4 03 04 00 BE 12 1A 67 B6 04 01 00 00 60 3B 75 99 E1 F2 54 28 [15:52:39]CommunicateWithHost err = 0 [15:52:39]CheckOFDResponse [15:52:39]1017 (14) - 77093643461234 [15:52:39]1041 (16) - 0000000000871792 [15:52:39]1040 (4) - 155595 [15:52:39]1012 (4) - 24.10.2024 09:26 [15:52:39]1206 (1) - 0 [15:52:39]OFD Sender: Remove packet 155595 [15:52:39]ProducePacketName [15:52:39]name=ofd_packets/00155595 [15:52:39]NVStorageDeleteData [15:52:40]Write to MH i2c: 01 00 00 7A 0F 89 [15:52:40]Write i2c OK [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: 01 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: 01 07 00 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: 01 07 00 7A 0F 00 00 00 00 00 ED 0C 89 [15:52:40]RasterBufferAndPrint [15:52:40]line [15:52:40]line [15:52:40]line [15:52:40]line [15:52:40]line [15:52:40]written 0, free lines is 3315 [15:52:40]process_action close_receipt done [15:52:40]requested_data is exist [15:52:40]produce_requested_data [15:52:40]requested_item fm.sn is exist - process it [15:52:40]wFMCommunicate request_size=4 [15:52:40]MH_SAM_APDU [15:52:40]CAPDU: 80 11 00 00 [15:52:40]Write to MH i2c: E2 08 00 81 0F 80 11 00 00 00 00 00 00 0A [15:52:40]Write i2c OK [15:52:40]MH_I2C_Read... [15:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:40]Read from MH i2c: E2 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 17 00 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 17 00 81 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5F [15:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:52:40]wFMCommunicate OK [15:52:40]requested_item fd.num is exist - process it [15:52:40]SAM_PROTO_GetFieldsCounters [15:52:40]wFMCommunicate request_size=4 [15:52:40]MH_SAM_APDU [15:52:40]CAPDU: 80 13 00 00 [15:52:40]Write to MH i2c: E2 08 00 82 0F 80 13 00 00 00 00 00 00 0D [15:52:40]Write i2c OK [15:52:40]MH_I2C_Read... [15:52:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:40]Read from MH i2c: E2 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 62 00 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 62 00 82 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CB 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [15:52: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CB 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:40]wFMCommunicate OK [15:52:40]SAM_PROTO_GetFieldsCounters done [15:52:40]requested_item shift.num is exist - process it [15:52:40]requested_item shift.opened is exist - process it [15:52:40]req_shift_opened [15:52:40]FM_GetShiftState [15:52:40]SAM_PROTO_GetShiftState [15:52:40]wFMCommunicate request_size=4 [15:52:40]MH_SAM_APDU [15:52:40]CAPDU: 80 13 01 00 [15:52:40]Write to MH i2c: E2 08 00 83 0F 80 13 01 00 00 00 00 00 0F [15:52:40]Write i2c OK [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 [15:52:40]MH_I2C_Read... [15:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:40]Read from MH i2c: E2 0E 00 [15:52:40]MH_I2C_Read... [15:52:40]Read from MH i2c: E2 0E 00 83 0F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 5C [15:52:40]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:52:40]wFMCommunicate OK [15:52:40]SAM_PROTO_GetShiftState done [15:52:40]FM_GetShiftState done [15:52:40]req_shift_opened done [15:52:40]requested_item shift.open_date is exist - process it [15:52:40]req_shift_open_date [15:52:40]req_shift_open_date done [15:52:40]produce_requested_data done [15:52:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155595,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:52:40]process_action_free close_receipt [15:52:40]json_value_free [15:52:40]json_value_free done [15:52:40]process_json_proto returns [15:52:40]Send response to host [15:52:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155595,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:52:40]free response buf [15:52:40]execute_script done [15:52:40]execute_script returns [15:52:40]free content buf [15:52:40]Sock 9.Close socket [15:52:40]Sock 9.Thread stoped [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:54]int [15:52:54]Write to MH i2c: 01 00 00 84 0F 93 [15:52:54]*** FLAG_PRN_KEY set [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: 01 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: 01 07 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: 01 07 00 84 0F 00 08 00 00 00 FF 0F B0 [15:52:54]state=0 [15:52:54]Key pressed [15:52:54]Feed [15:52:54]Write to MH i2c: D8 00 00 85 0F 6B [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: D8 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: D8 01 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: D8 01 00 85 0F 00 6C [15:52:54]int [15:52:54]Write to MH i2c: 01 00 00 86 0F 95 [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: 01 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: 01 07 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: 01 07 00 86 0F 00 48 00 00 00 3D 00 21 [15:52:54]state=2 [15:52:54]Key pressed [15:52:54]int [15:52:54]Write to MH i2c: 01 00 00 87 0F 96 [15:52:54]*** FLAG_PRN_KEY reset [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: 01 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: 01 07 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: 01 07 00 87 0F 00 00 00 00 00 F6 0F A2 [15:52:54]state=2 [15:52:54]Stop feed [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:20]OFD Sender: No OFD packet to send [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]accept exits with 8 [15:54:15]New connection [15:54:15]New thread 3066637668 created [15:54:15]Thread 3066781028 joined [15:54:15]Waiting for new connection... [15:54:15] Sock 8.Parse request [15:54:15]Sock 8.Check first char [15:54:15]Sock 8.First char is OK [15:54:15]request: POST /json_proto HTTP/1.0 [15:54:15]Method: POST [15:54:15]URL: /json_proto [15:54:15]Method is POST - this is cgi request [15:54:15]url: /json_proto [15:54:15]query_string will be loaded in cgi processing [15:54:15]execute_cgi json_proto POST (null) [15:54:15]execute_cgi path=json_proto method=POST [15:54:15]POST find Content-Length [15:54:15]Host: 172.17.63.3:8080 [15:54:15]Content-Length: 676 [15:54:15]Content-Type: application/json [15:54:15] [15:54:15]POST finish read [15:54:15]Found Content-Length = 676 [15:54:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.450, "sum" : 163.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 163.00, "payments": [ { "type": 0, "sum" : 163.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:15]execute_script... [15:54: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)98402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.450, "sum" : 163.91, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 163.00, "payments": [ { "type": 0, "sum" : 163.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:15]POST & json_proto [15:54:15]process_json_proto [15:54:15]json parsed OK: [15:54:15]protocol is kg_v1.0 [15:54:15]action value=close_receipt [15:54:15]process_action close_receipt [15:54:15]cmd_close_receipt [15:54:15]MH_GetDate [15:54:15]Write to MH i2c: F0 00 00 88 0F 86 [15:54:15]Write i2c OK [15:54:15]MH_I2C_Read... [15:54:15]Read from MH i2c: F0 [15:54:15]MH_I2C_Read... [15:54:15]Read from MH i2c: F0 09 00 [15:54:15]MH_I2C_Read... [15:54:15]Read from MH i2c: F0 09 00 88 0F 00 A8 6D 1A 67 50 D1 6C 64 16 [15:54:15]GetLastDocTimeStamp 1729785158 [15:54:15]current date 1729785256 [15:54:15]FM_GetShiftState [15:54:15]SAM_PROTO_GetShiftState [15:54:15]wFMCommunicate request_size=4 [15:54:15]MH_SAM_APDU [15:54:15]CAPDU: 80 13 01 00 [15:54:15]Write to MH i2c: E2 08 00 89 0F 80 13 01 00 00 00 00 00 15 [15:54:15]Write i2c OK [15:54:15]MH_I2C_Read... [15:54:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:15]Read from MH i2c: E2 [15:54:15]MH_I2C_Read... [15:54:15]Read from MH i2c: E2 0E 00 [15:54:15]MH_I2C_Read... [15:54:15]Read from MH i2c: E2 0E 00 89 0F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 62 [15:54:15]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:54:15]wFMCommunicate OK [15:54:15]SAM_PROTO_GetShiftState done [15:54:15]FM_GetShiftState done [15:54:15]opened in 1729729836 [15:54:15]opened+sec_in_day 1729816236 [15:54:15]quantity*price = 16390 [15:54:15]sum+1 = 16392 [15:54:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.91 ИТОГО: 163.00 Внесено: 200.00 СДАЧА: 37.00 НСП 1% : 1.45 НДС 12% : 17.41 Наличными: 163.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 221 24.10.2024 15:54 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155596 ФПД: 76510392866360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155416&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155596&fm=76510392866360&tin=02508201610067®Number=0000000000091693&sum=16300 [15:54:16]StoreToDocumentArchive [15:54:16]shift 534 fd 155596 [15:54:16]save to /storage/0534/doc_00155596 [15:54:16]save last doc name /storage/0534/doc_00155596 to /storage/kkm_last_doc_name [15:54:16]save OK [15:54:16]Clear old archive folders... [15:54:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:54:16]tlvbuf is 01F90C60 [15:54:16]SAM_PROTO_ClearQueue [15:54:16]wFMCommunicate request_size=4 [15:54:16]MH_SAM_APDU [15:54:16]CAPDU: 80 09 00 00 [15:54:16]Write to MH i2c: E2 08 00 96 0F 80 09 00 00 00 00 00 00 17 [15:54:16]Write i2c OK [15:54:16]MH_I2C_Read... [15:54:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:16]Read from MH i2c: E2 [15:54:16]MH_I2C_Read... [15:54:16]Read from MH i2c: E2 03 00 [15:54:16]MH_I2C_Read... [15:54:16]Read from MH i2c: E2 03 00 96 0F 00 90 00 19 [15:54:16]RAPDU: 90 00 [15:54:16]wFMCommunicate OK [15:54:16]SAM_PROTO_ClearQueue done [15:54:16]KKMCreateOFDPacket [15:54:16]OFDProtocolAddRootSTLVToBuf [15:54:16]FM_MakeSignedData [15:54:16]FM_MakeSignedData [15:54:16]SAM_PROTO_SignData [15:54:16]wFMCommunicate request_size=4 [15:54:16]MH_SAM_APDU [15:54:16]CAPDU: 80 0D 01 02 [15:54:16]Write to MH i2c: E2 08 00 97 0F 80 0D 01 02 00 00 00 00 1F [15:54:16]Write i2c OK [15:54:16]MH_I2C_Read... [15:54:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:16]Read from MH i2c: E2 [15:54:16]MH_I2C_Read... [15:54:16]Read from MH i2c: E2 03 00 [15:54:16]MH_I2C_Read... [15:54:16]Read from MH i2c: E2 03 00 97 0F 00 90 00 1A [15:54:16]RAPDU: 90 00 [15:54:16]wFMCommunicate OK [15:54:16]wFMCommunicate request_size=255 [15:54:16]MH_SAM_APDU [15:54: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 92 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 07 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 3F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 AC 3F 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 A8 6D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CC 5F 02 00 35 04 06 00 45 [15:54:16]Write to MH i2c: E2 02 01 98 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 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 07 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 3F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 AC 3F 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 A8 6D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CC 5F 02 00 35 04 06 00 45 00 00 83 [15:54:16]Write i2c OK [15:54:16]MH_I2C_Read... [15:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:16]Read from MH i2c: E2 [15:54:16]MH_I2C_Read... [15:54:16]Read from MH i2c: E2 03 00 [15:54:16]MH_I2C_Read... [15:54:16]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [15:54:16]RAPDU: 90 00 [15:54:16]wFMCommunicate OK [15:54:16]wFMCommunicate request_size=10 [15:54:16]MH_SAM_APDU [15:54:16]CAPDU: 80 0D 02 02 05 95 F6 C9 D6 38 [15:54:16]Write to MH i2c: E2 0D 00 99 0F 80 0D 02 02 05 00 95 F6 C9 D6 38 00 00 8E [15:54:16]Write i2c OK [15:54:16]MH_I2C_Read... [15:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:17]Read from MH i2c: E2 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 03 00 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 03 00 99 0F 00 90 00 1C [15:54:17]RAPDU: 90 00 [15:54:17]wFMCommunicate OK [15:54:17]wFMCommunicate request_size=4 [15:54:17]MH_SAM_APDU [15:54:17]CAPDU: 80 0D 03 02 [15:54:17]Write to MH i2c: E2 08 00 9A 0F 80 0D 03 02 00 00 00 00 24 [15:54:17]Write i2c OK [15:54:17]MH_I2C_Read... [15:54:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:17]Read from MH i2c: E2 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 0B 00 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 0B 00 9A 0F 00 63 2D 13 1F 84 5C 14 20 90 00 FB [15:54:17]RAPDU: 63 2D 13 1F 84 5C 14 20 90 00 [15:54:17]wFMCommunicate OK [15:54:17]SAM_PROTO_SignData done [15:54:17]FM_MakeSignedData done [15:54:17]CreateOFDProtocolMessage [15:54:17]wFMCommunicate request_size=4 [15:54:17]MH_SAM_APDU [15:54:17]CAPDU: 80 11 00 00 [15:54:17]Write to MH i2c: E2 08 00 9B 0F 80 11 00 00 00 00 00 00 24 [15:54:17]Write i2c OK [15:54:17]MH_I2C_Read... [15:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:17]Read from MH i2c: E2 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 17 00 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 17 00 9B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 79 [15:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:54:17]wFMCommunicate OK [15:54:17]CreateOFDProtocolMessage done [15:54:17]OFDSenderStorePacket 155596 [15:54:17]StoreOFDPacket docnum=155596 [15:54:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 11 4C 07 01 6A 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 92 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 07 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 3F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 AC 3F 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 A8 6D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CC 5F 02 00 35 04 06 00 45 95 F6 C9 D6 38 63 2D 13 1F 84 5C 14 20 [15:54:17]CheckFolder [15:54:17]dirname=/storage/ofd_packets [15:54:17]CheckFolder done [15:54:17]ProducePacketName [15:54:17]name=ofd_packets/00155596 [15:54:17]NVStorageSaveData ofd_packets/00155596 [15:54:17]File name is /storage/ofd_packets/00155596 [15:54:17]Write 301 bytes [15:54:17]NVStorageSaveData done [15:54:17]OFDSenderStorePacket done [15:54:17]KKMCreateOFDPacket done [15:54:17]NVStorageSaveData kkm_last_timestamp [15:54:17]File name is /storage/kkm_last_timestamp [15:54:17]Write 4 bytes [15:54:17]NVStorageSaveData done [15:54:17]ExternCall_PrintAddStr [15:54:17]wPrintStart [15:54:17]Write to MH i2c: 01 00 00 9C 0F AB [15:54:17]Write i2c OK [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: 01 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: 01 07 00 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: 01 07 00 9C 0F 00 00 00 00 00 FF 0F C0 [15:54:17]RasterBufferAndPrint [15:54:17]line Счет N : (1)98402 [15:54:17]line ИНН: 02508201610067 [15:54:17]line Контрольно-Кассовый Чек [15:54:17]line ПРОДАЖА [15:54:17]line ТРК (МРК, ГНК) : 11 [15:54:17]line Товар: 2710124130 [15:54:17]line Аи-92-К-5 [15:54:17]line 2.450 * 66.90 [15:54:17]line = 163.91 [15:54:17]line НДС 12% НСП 1% [15:54:17]line > о реализуемом товаре [15:54:17]line ОКРУГЛЕНИЕ: -0.91 [15:54:17]line ИТОГО: 163.00 [15:54:17]line Внесено: 200.00 [15:54:17]line СДАЧА: 37.00 [15:54:17]line НСП 1% : 1.45 [15:54:17]line НДС 12% : 17.41 [15:54:17]line Наличными: 163.00 [15:54:17]line Безнал.: 0.00 [15:54:17]line Место: АЗС № 143 "Партнер Нефть" [15:54:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:54:17]line СНО: Общий режим [15:54:17]line Чек 221 24.10.2024 15:54 [15:54:17]line Смена: 534 ФФД: 1.0 [15:54:17]line ЗНМ: 0300000096 [15:54:17]line РНМ: 0000000000091693 [15:54:17]line Версия ККМ: 001 [15:54:17]line ФМ: 0000000000871792 [15:54:17]line ФД: 155596 [15:54:17]line ФПД: 76510392866360 [15:54:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155416&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155596&fm=76510392866360&tin=02508201610067®Number=0000000000091693&sum=16300 [15:54:17]OFD Sender: Processing packet 155596 [packets to send 31, broken 30] [15:54:17]ProducePacketName [15:54:17]name=ofd_packets/00155596 [15:54:17]OFD Sender: To server: pG, [15:54:17]CommunicateWithHost lk.salyk.kg:30040 [15:54:17]ConnectInit lk.salyk.kg [15:54:17]written 0, free lines is 4095 [15:54:17]Connected sock=10 [15:54: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 39 32 0F 01 00 00 11 4C 07 01 6A 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 92 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 07 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 3F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 AC 3F 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 A8 6D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CC 5F 02 00 35 04 06 00 45 95 F6 C9 D6 38 63 2D 13 1F 84 5C 14 20 [15:54: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 39 32 4F 00 00 00 60 79 47 00 44 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 39 32 10 04 04 00 CC 5F 02 00 F4 03 04 00 20 13 1A 67 B6 04 01 00 00 5E DC 48 7F 3E FD 23 52 [15:54:17]CommunicateWithHost err = 0 [15:54:17]CheckOFDResponse [15:54:17]1017 (14) - 77093643461234 [15:54:17]1041 (16) - 0000000000871792 [15:54:17]1040 (4) - 155596 [15:54:17]1012 (4) - 24.10.2024 09:28 [15:54:17]1206 (1) - 0 [15:54:17]OFD Sender: Remove packet 155596 [15:54:17]ProducePacketName [15:54:17]name=ofd_packets/00155596 [15:54:17]NVStorageDeleteData [15:54:17]Write to MH i2c: 01 00 00 C7 0F D6 [15:54:17]Write i2c OK [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: 01 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: 01 07 00 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: 01 07 00 C7 0F 00 00 00 00 00 E1 0C CA [15:54:17]RasterBufferAndPrint [15:54:17]line [15:54:17]line [15:54:17]line [15:54:17]line [15:54:17]line [15:54:17]written 0, free lines is 3303 [15:54:17]process_action close_receipt done [15:54:17]requested_data is exist [15:54:17]produce_requested_data [15:54:17]requested_item fm.sn is exist - process it [15:54:17]wFMCommunicate request_size=4 [15:54:17]MH_SAM_APDU [15:54:17]CAPDU: 80 11 00 00 [15:54:17]Write to MH i2c: E2 08 00 CE 0F 80 11 00 00 00 00 00 00 57 [15:54:17]Write i2c OK [15:54:17]MH_I2C_Read... [15:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:17]Read from MH i2c: E2 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 17 00 [15:54:17]MH_I2C_Read... [15:54:17]Read from MH i2c: E2 17 00 CE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AC [15:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:54:17]wFMCommunicate OK [15:54:17]requested_item fd.num is exist - process it [15:54:17]SAM_PROTO_GetFieldsCounters [15:54:17]wFMCommunicate request_size=4 [15:54:17]MH_SAM_APDU [15:54:17]CAPDU: 80 13 00 00 [15:54:17]Write to MH i2c: E2 08 00 CF 0F 80 13 00 00 00 00 00 00 5A [15:54:17]Write i2c OK [15:54:17]MH_I2C_Read... [15:54:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:18]Read from MH i2c: E2 [15:54:18]MH_I2C_Read... [15:54:18]Read from MH i2c: E2 62 00 [15:54:18]MH_I2C_Read... [15:54:18]Read from MH i2c: E2 62 00 CF 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CC 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [15: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CC 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:54:18]wFMCommunicate OK [15:54:18]SAM_PROTO_GetFieldsCounters done [15:54:18]requested_item shift.num is exist - process it [15:54:18]requested_item shift.opened is exist - process it [15:54:18]req_shift_opened [15:54:18]FM_GetShiftState [15:54:18]SAM_PROTO_GetShiftState [15:54:18]wFMCommunicate request_size=4 [15:54:18]MH_SAM_APDU [15:54:18]CAPDU: 80 13 01 00 [15:54:18]Write to MH i2c: E2 08 00 D0 0F 80 13 01 00 00 00 00 00 5C [15:54:18]Write i2c OK [15:54:18]MH_I2C_Read... [15:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:18]Read from MH i2c: E2 [15:54:18]MH_I2C_Read... [15:54:18]Read from MH i2c: E2 0E 00 [15:54:18]MH_I2C_Read... [15:54:18]Read from MH i2c: E2 0E 00 D0 0F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 A9 [15:54:18]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:54:18]wFMCommunicate OK [15:54:18]SAM_PROTO_GetShiftState done [15:54:18]FM_GetShiftState done [15:54:18]req_shift_opened done [15:54:18]requested_item shift.open_date is exist - process it [15:54:18]req_shift_open_date [15:54:18]req_shift_open_date done [15:54:18]produce_requested_data done [15:54:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155596,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:54:18]process_action_free close_receipt [15:54:18]json_value_free [15:54:18]json_value_free done [15:54:18]process_json_proto returns [15:54:18]Send response to host [15:54:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155596,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:54:18]free response buf [15:54:18]execute_script done [15:54:18]execute_script returns [15:54:18]free content buf [15:54:18]Sock 8.Close socket [15:54:18]Sock 8.Thread stoped [15:54:18]OFD Sender: No OFD packet to send [15:54:21]accept exits with 9 [15:54:21]New connection [15:54:21]New thread 3066781028 created [15:54:21]Thread 3066637668 joined [15:54:21]Waiting for new connection... [15:54:21] Sock 9.Parse request [15:54:21]Sock 9.Check first char [15:54:21]Sock 9.First char is OK [15:54:21]request: POST /json_proto HTTP/1.0 [15:54:21]Method: POST [15:54:21]URL: /json_proto [15:54:21]Method is POST - this is cgi request [15:54:21]url: /json_proto [15:54:21]query_string will be loaded in cgi processing [15:54:21]execute_cgi json_proto POST (null) [15:54:21]execute_cgi path=json_proto method=POST [15:54:21]POST find Content-Length [15:54:21]Host: 172.17.63.3:8080 [15:54:21]Content-Length: 796 [15:54:21]Content-Type: application/json [15:54:21] [15:54:21]POST finish read [15:54:21]Found Content-Length = 796 [15:54:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295788", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:21]execute_script... [15:54: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)98403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295788", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:21]POST & json_proto [15:54:21]process_json_proto [15:54:21]json parsed OK: [15:54:21]protocol is kg_v1.0 [15:54:21]action value=close_receipt [15:54:21]process_action close_receipt [15:54:21]cmd_close_receipt [15:54:21]MH_GetDate [15:54:21]Write to MH i2c: F0 00 00 D1 0F CF [15:54:21]Write i2c OK [15:54:21]MH_I2C_Read... [15:54:21]Read from MH i2c: F0 [15:54:21]MH_I2C_Read... [15:54:21]Read from MH i2c: F0 09 00 [15:54:21]MH_I2C_Read... [15:54:21]Read from MH i2c: F0 09 00 D1 0F 00 AD 6D 1A 67 50 D1 6C 64 64 [15:54:21]GetLastDocTimeStamp 1729785256 [15:54:21]current date 1729785261 [15:54:21]FM_GetShiftState [15:54:21]SAM_PROTO_GetShiftState [15:54:21]wFMCommunicate request_size=4 [15:54:21]MH_SAM_APDU [15:54:21]CAPDU: 80 13 01 00 [15:54:21]Write to MH i2c: E2 08 00 D2 0F 80 13 01 00 00 00 00 00 5E [15:54:21]Write i2c OK [15:54:21]MH_I2C_Read... [15:54:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:21]Read from MH i2c: E2 [15:54:21]MH_I2C_Read... [15:54:21]Read from MH i2c: E2 0E 00 [15:54:21]MH_I2C_Read... [15:54:21]Read from MH i2c: E2 0E 00 D2 0F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AB [15:54:21]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:54:21]wFMCommunicate OK [15:54:21]SAM_PROTO_GetShiftState done [15:54:21]FM_GetShiftState done [15:54:21]opened in 1729729836 [15:54:21]opened+sec_in_day 1729816236 [15:54:21]quantity*price = 0 [15:54:21]sum+1 = 1 [15:54:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 222 24.10.2024 15:54 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4295788 ФМ: 0000000000871792 ФД: 155597 ФПД: 169741976068842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155421&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155597&fm=169741976068842&tin=02508201610067®Number=0000000000091693&sum=0 [15:54:22]StoreToDocumentArchive [15:54:22]shift 534 fd 155597 [15:54:22]save to /storage/0534/doc_00155597 [15:54:22]save last doc name /storage/0534/doc_00155597 to /storage/kkm_last_doc_name [15:54:22]save OK [15:54:22]Clear old archive folders... [15:54:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:54:22]tlvbuf is 01F6B840 [15:54:22]SAM_PROTO_ClearQueue [15:54:22]wFMCommunicate request_size=4 [15:54:22]MH_SAM_APDU [15:54:22]CAPDU: 80 09 00 00 [15:54:22]Write to MH i2c: E2 08 00 DF 0F 80 09 00 00 00 00 00 00 60 [15:54:22]Write i2c OK [15:54:22]MH_I2C_Read... [15:54:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:22]Read from MH i2c: E2 [15:54:22]MH_I2C_Read... [15:54:22]Read from MH i2c: E2 03 00 [15:54:22]MH_I2C_Read... [15:54:22]Read from MH i2c: E2 03 00 DF 0F 00 90 00 62 [15:54:22]RAPDU: 90 00 [15:54:22]wFMCommunicate OK [15:54:22]SAM_PROTO_ClearQueue done [15:54:22]KKMCreateOFDPacket [15:54:22]OFDProtocolAddRootSTLVToBuf [15:54:22]FM_MakeSignedData [15:54:22]FM_MakeSignedData [15:54:22]SAM_PROTO_SignData [15:54:22]wFMCommunicate request_size=4 [15:54:22]MH_SAM_APDU [15:54:22]CAPDU: 80 0D 01 02 [15:54:22]Write to MH i2c: E2 08 00 E0 0F 80 0D 01 02 00 00 00 00 68 [15:54:22]Write i2c OK [15:54:22]MH_I2C_Read... [15:54:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:22]Read from MH i2c: E2 [15:54:22]MH_I2C_Read... [15:54:22]Read from MH i2c: E2 03 00 [15:54:22]MH_I2C_Read... [15:54:22]Read from MH i2c: E2 03 00 E0 0F 00 90 00 63 [15:54:22]RAPDU: 90 00 [15:54:22]wFMCommunicate OK [15:54:22]wFMCommunicate request_size=255 [15:54:22]MH_SAM_APDU [15:54:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DE 00 00 00 F4 03 04 00 AD 6D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 5F 02 00 35 04 06 00 9A 61 22 2F [15:54:22]Write to MH i2c: E2 02 01 E1 0F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 AD 6D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 5F 02 00 35 04 06 00 9A 61 22 2F 00 00 0C [15:54:22]Write i2c OK [15:54:22]MH_I2C_Read... [15:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:22]Read from MH i2c: E2 [15:54:22]MH_I2C_Read... [15:54:22]Read from MH i2c: E2 03 00 [15:54:22]MH_I2C_Read... [15:54:22]Read from MH i2c: E2 03 00 E1 0F 00 90 00 64 [15:54:22]RAPDU: 90 00 [15:54:22]wFMCommunicate OK [15:54:22]wFMCommunicate request_size=7 [15:54:22]MH_SAM_APDU [15:54:22]CAPDU: 80 0D 02 02 02 E2 EA [15:54:22]Write to MH i2c: E2 0A 00 E2 0F 80 0D 02 02 02 00 E2 EA 00 00 3B [15:54:22]Write i2c OK [15:54:22]MH_I2C_Read... [15:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:22]Read from MH i2c: E2 [15:54:22]MH_I2C_Read... [15:54:22]Read from MH i2c: E2 03 00 [15:54:22]MH_I2C_Read... [15:54:22]Read from MH i2c: E2 03 00 E2 0F 00 90 00 65 [15:54:22]RAPDU: 90 00 [15:54:22]wFMCommunicate OK [15:54:22]wFMCommunicate request_size=4 [15:54:22]MH_SAM_APDU [15:54:22]CAPDU: 80 0D 03 02 [15:54:22]Write to MH i2c: E2 08 00 E3 0F 80 0D 03 02 00 00 00 00 6D [15:54:22]Write i2c OK [15:54:22]MH_I2C_Read... [15:54:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:22]Read from MH i2c: E2 [15:54:22]MH_I2C_Read... [15:54:22]Read from MH i2c: E2 0B 00 [15:54:22]MH_I2C_Read... [15:54:22]Read from MH i2c: E2 0B 00 E3 0F 00 BA E6 6E 48 B8 64 D8 A6 90 00 5E [15:54:22]RAPDU: BA E6 6E 48 B8 64 D8 A6 90 00 [15:54:22]wFMCommunicate OK [15:54:22]SAM_PROTO_SignData done [15:54:22]FM_MakeSignedData done [15:54:22]CreateOFDProtocolMessage [15:54:22]wFMCommunicate request_size=4 [15:54:22]MH_SAM_APDU [15:54:22]CAPDU: 80 11 00 00 [15:54:22]Write to MH i2c: E2 08 00 E4 0F 80 11 00 00 00 00 00 00 6D [15:54:22]Write i2c OK [15:54:22]MH_I2C_Read... [15:54:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:23]Read from MH i2c: E2 [15:54:23]MH_I2C_Read... [15:54:23]Read from MH i2c: E2 17 00 [15:54:23]MH_I2C_Read... [15:54:23]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 39 32 90 00 C2 [15:54:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:54:23]wFMCommunicate OK [15:54:23]CreateOFDProtocolMessage done [15:54:23]OFDSenderStorePacket 155597 [15:54:23]StoreOFDPacket docnum=155597 [15:54:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 31 CA 04 01 8E 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 AD 6D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 5F 02 00 35 04 06 00 9A 61 22 2F E2 EA BA E6 6E 48 B8 64 D8 A6 [15:54:23]CheckFolder [15:54:23]dirname=/storage/ofd_packets [15:54:23]CheckFolder done [15:54:23]ProducePacketName [15:54:23]name=ofd_packets/00155597 [15:54:23]NVStorageSaveData ofd_packets/00155597 [15:54:23]File name is /storage/ofd_packets/00155597 [15:54:23]Write 298 bytes [15:54:23]NVStorageSaveData done [15:54:23]OFDSenderStorePacket done [15:54:23]KKMCreateOFDPacket done [15:54:23]NVStorageSaveData kkm_last_timestamp [15:54:23]File name is /storage/kkm_last_timestamp [15:54:23]Write 4 bytes [15:54:23]NVStorageSaveData done [15:54:23]ExternCall_PrintAddStr [15:54:23]wPrintStart [15:54:23]Write to MH i2c: 01 00 00 E5 0F F4 [15:54:23]Write i2c OK [15:54:23]MH_I2C_Read... [15:54:23]Read from MH i2c: 01 [15:54:23]MH_I2C_Read... [15:54:23]Read from MH i2c: 01 07 00 [15:54:23]MH_I2C_Read... [15:54:23]Read from MH i2c: 01 07 00 E5 0F 00 00 00 00 00 FF 0F 09 [15:54:23]RasterBufferAndPrint [15:54:23]line Счет N : (1)98403 [15:54:23]line ИНН: 02508201610067 [15:54:23]line Контрольно-Кассовый Чек [15:54:23]line ПРОДАЖА [15:54:23]line ТРК (МРК, ГНК) : 32 [15:54:23]line Товар: 2710194210 [15:54:23]line ДТ-К-5 [15:54:23]line 10.000 * 0.00 [15:54:23]line = 0.00 [15:54:23]line НДС 12% НСП 1% [15:54:23]line > о реализуемом товаре [15:54:23]line ИТОГО: 0.00 [15:54:23]line НСП 1% : 0.00 [15:54:23]line НДС 12% : 0.00 [15:54:23]line Наличными: 0.00 [15:54:23]line Безнал.: 0.00 [15:54:23]line Место: АЗС № 143 "Партнер Нефть" [15:54:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:54:23]line СНО: Общий режим [15:54:23]line Чек 222 24.10.2024 15:54 [15:54:23]line Смена: 534 ФФД: 1.0 [15:54:23]line ЗНМ: 0300000096 [15:54:23]line РНМ: 0000000000091693 [15:54:23]line Версия ККМ: 001 [15:54:23]line Талоны: Топливные Талоны [15:54:23]line 4295788 [15:54:23]line ФМ: 0000000000871792 [15:54:23]line ФД: 155597 [15:54:23]line ФПД: 169741976068842 [15:54:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155421&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155597&fm=169741976068842&tin=02508201610067®Number=0000000000091693&sum=0 [15:54:23]OFD Sender: Processing packet 155597 [packets to send 31, broken 30] [15:54:23]ProducePacketName [15:54:23]name=ofd_packets/00155597 [15:54:23]OFD Sender: To server: pG, [15:54:23]CommunicateWithHost lk.salyk.kg:30040 [15:54:23]ConnectInit lk.salyk.kg [15:54:23]written 0, free lines is 4095 [15:54:23]Connected sock=10 [15:54: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 39 32 0C 01 00 00 31 CA 04 01 8E 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 AD 6D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 5F 02 00 35 04 06 00 9A 61 22 2F E2 EA BA E6 6E 48 B8 64 D8 A6 [15:54: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 39 32 4F 00 00 00 7F 7E 47 00 58 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 39 32 10 04 04 00 CD 5F 02 00 F4 03 04 00 26 13 1A 67 B6 04 01 00 00 0A 95 29 50 6E 15 58 61 [15:54:23]CommunicateWithHost err = 0 [15:54:23]CheckOFDResponse [15:54:23]1017 (14) - 77093643461234 [15:54:23]1041 (16) - 0000000000871792 [15:54:23]1040 (4) - 155597 [15:54:23]1012 (4) - 24.10.2024 09:28 [15:54:23]1206 (1) - 0 [15:54:23]OFD Sender: Remove packet 155597 [15:54:23]ProducePacketName [15:54:23]name=ofd_packets/00155597 [15:54:23]NVStorageDeleteData [15:54:23]Write to MH i2c: 01 00 00 0F 10 1F [15:54:23]Write i2c OK [15:54:23]MH_I2C_Read... [15:54:23]Read from MH i2c: 01 [15:54:23]MH_I2C_Read... [15:54:23]Read from MH i2c: 01 07 00 [15:54:23]MH_I2C_Read... [15:54:23]Read from MH i2c: 01 07 00 0F 10 00 00 00 00 00 FD 0C 2F [15:54:23]RasterBufferAndPrint [15:54:23]line [15:54:23]line [15:54:23]line [15:54:23]line [15:54:23]line [15:54:23]written 0, free lines is 3337 [15:54:23]process_action close_receipt done [15:54:23]requested_data is exist [15:54:23]produce_requested_data [15:54:23]requested_item fm.sn is exist - process it [15:54:23]wFMCommunicate request_size=4 [15:54:23]MH_SAM_APDU [15:54:23]CAPDU: 80 11 00 00 [15:54:23]Write to MH i2c: E2 08 00 16 10 80 11 00 00 00 00 00 00 A0 [15:54:23]Write i2c OK [15:54:23]MH_I2C_Read... [15:54:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:23]Read from MH i2c: E2 [15:54:23]MH_I2C_Read... [15:54:23]Read from MH i2c: E2 17 00 [15:54:23]MH_I2C_Read... [15:54:23]Read from MH i2c: E2 17 00 16 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F5 [15:54:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:54:23]wFMCommunicate OK [15:54:23]requested_item fd.num is exist - process it [15:54:23]SAM_PROTO_GetFieldsCounters [15:54:23]wFMCommunicate request_size=4 [15:54:23]MH_SAM_APDU [15:54:23]CAPDU: 80 13 00 00 [15:54:23]Write to MH i2c: E2 08 00 17 10 80 13 00 00 00 00 00 00 A3 [15:54:23]Write i2c OK [15:54:23]MH_I2C_Read... [15:54:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:23]Read from MH i2c: E2 [15:54:23]MH_I2C_Read... [15:54:23]Read from MH i2c: E2 62 00 [15:54:23]MH_I2C_Read... [15:54:23]Read from MH i2c: E2 62 00 17 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CD 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [15:54: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CD 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:54:23]wFMCommunicate OK [15:54:23]SAM_PROTO_GetFieldsCounters done [15:54:23]requested_item shift.num is exist - process it [15:54:23]requested_item shift.opened is exist - process it [15:54:23]req_shift_opened [15:54:23]FM_GetShiftState [15:54:23]SAM_PROTO_GetShiftState [15:54:23]wFMCommunicate request_size=4 [15:54:23]MH_SAM_APDU [15:54:23]CAPDU: 80 13 01 00 [15:54:23]Write to MH i2c: E2 08 00 18 10 80 13 01 00 00 00 00 00 A5 [15:54:23]Write i2c OK [15:54:23]MH_I2C_Read... [15:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:23]Read from MH i2c: E2 [15:54:23]MH_I2C_Read... [15:54:23]Read from MH i2c: E2 0E 00 [15:54:23]MH_I2C_Read... [15:54:23]Read from MH i2c: E2 0E 00 18 10 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F2 [15:54:23]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:54:23]wFMCommunicate OK [15:54:23]SAM_PROTO_GetShiftState done [15:54:23]FM_GetShiftState done [15:54:23]req_shift_opened done [15:54:23]requested_item shift.open_date is exist - process it [15:54:23]req_shift_open_date [15:54:23]req_shift_open_date done [15:54:23]produce_requested_data done [15:54:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155597,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:54:23]process_action_free close_receipt [15:54:23]json_value_free [15:54:23]json_value_free done [15:54:23]process_json_proto returns [15:54:23]Send response to host [15:54:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155597,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:54:23]free response buf [15:54:23]execute_script done [15:54:23]execute_script returns [15:54:23]free content buf [15:54:23]Sock 9.Close socket [15:54:23]Sock 9.Thread stoped [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:29]int [15:54:29]Write to MH i2c: 01 00 00 19 10 29 [15:54:29]*** FLAG_PRN_KEY set [15:54:29]Write i2c OK [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: 01 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: 01 07 00 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: 01 07 00 19 10 00 08 00 00 00 FF 0F 46 [15:54:29]state=0 [15:54:29]Key pressed [15:54:29]Feed [15:54:29]Write to MH i2c: D8 00 00 1A 10 01 [15:54:29]Write i2c OK [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: D8 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: D8 01 00 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: D8 01 00 1A 10 00 02 [15:54:29]int [15:54:29]Write to MH i2c: 01 00 00 1B 10 2B [15:54:29]Write i2c OK [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: 01 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: 01 07 00 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: 01 07 00 1B 10 00 48 00 00 00 3D 00 B7 [15:54:29]state=2 [15:54:29]Key pressed [15:54:29]int [15:54:29]Write to MH i2c: 01 00 00 1C 10 2C [15:54:29]*** FLAG_PRN_KEY reset [15:54:29]Write i2c OK [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: 01 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: 01 07 00 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: 01 07 00 1C 10 00 00 00 00 00 FF 0F 41 [15:54:29]state=2 [15:54:29]Stop feed [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:53]OFD Sender: No OFD packet to send [15:55:58]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:34]accept exits with 8 [15:56:34]New connection [15:56:34]New thread 3066637668 created [15:56:34]Thread 3066781028 joined [15:56:34]Waiting for new connection... [15:56:34] Sock 8.Parse request [15:56:34]Sock 8.Check first char [15:56:34]Sock 8.First char is OK [15:56:34]request: POST /json_proto HTTP/1.0 [15:56:34]Method: POST [15:56:34]URL: /json_proto [15:56:34]Method is POST - this is cgi request [15:56:34]url: /json_proto [15:56:34]query_string will be loaded in cgi processing [15:56:34]execute_cgi json_proto POST (null) [15:56:34]execute_cgi path=json_proto method=POST [15:56:34]POST find Content-Length [15:56:34]Host: 172.17.63.3:8080 [15:56:34]Content-Length: 799 [15:56:34]Content-Type: application/json [15:56:34] [15:56:34]POST finish read [15:56:34]Found Content-Length = 799 [15:56:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4582904", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:34]execute_script... [15:56:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4582904", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:34]POST & json_proto [15:56:34]process_json_proto [15:56:34]json parsed OK: [15:56:34]protocol is kg_v1.0 [15:56:34]action value=close_receipt [15:56:34]process_action close_receipt [15:56:34]cmd_close_receipt [15:56:34]MH_GetDate [15:56:34]Write to MH i2c: F0 00 00 1D 10 1C [15:56:34]Write i2c OK [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: F0 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: F0 09 00 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: F0 09 00 1D 10 00 33 6E 1A 67 50 D1 6C 64 38 [15:56:34]GetLastDocTimeStamp 1729785261 [15:56:34]current date 1729785395 [15:56:34]FM_GetShiftState [15:56:34]SAM_PROTO_GetShiftState [15:56:34]wFMCommunicate request_size=4 [15:56:34]MH_SAM_APDU [15:56:34]CAPDU: 80 13 01 00 [15:56:34]Write to MH i2c: E2 08 00 1E 10 80 13 01 00 00 00 00 00 AB [15:56:34]Write i2c OK [15:56:34]MH_I2C_Read... [15:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:34]Read from MH i2c: E2 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 0E 00 [15:56:34]MH_I2C_Read... [15:56:34]Read from MH i2c: E2 0E 00 1E 10 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F8 [15:56:34]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:56:34]wFMCommunicate OK [15:56:34]SAM_PROTO_GetShiftState done [15:56:34]FM_GetShiftState done [15:56:34]opened in 1729729836 [15:56:34]opened+sec_in_day 1729816236 [15:56:34]quantity*price = 0 [15:56:34]sum+1 = 1 [15:56:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 223 24.10.2024 15:56 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4582904 ФМ: 0000000000871792 ФД: 155598 ФПД: 122706131407759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155635&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155598&fm=122706131407759&tin=02508201610067®Number=0000000000091693&sum=0 [15:56:35]StoreToDocumentArchive [15:56:35]shift 534 fd 155598 [15:56:35]save to /storage/0534/doc_00155598 [15:56:35]save last doc name /storage/0534/doc_00155598 to /storage/kkm_last_doc_name [15:56:35]save OK [15:56:35]Clear old archive folders... [15:56:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:35]tlvbuf is 01F32250 [15:56:35]SAM_PROTO_ClearQueue [15:56:35]wFMCommunicate request_size=4 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 09 00 00 [15:56:35]Write to MH i2c: E2 08 00 2B 10 80 09 00 00 00 00 00 00 AD [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:35]Read from MH i2c: E2 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 03 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 03 00 2B 10 00 90 00 AF [15:56:35]RAPDU: 90 00 [15:56:35]wFMCommunicate OK [15:56:35]SAM_PROTO_ClearQueue done [15:56:35]KKMCreateOFDPacket [15:56:35]OFDProtocolAddRootSTLVToBuf [15:56:35]FM_MakeSignedData [15:56:35]FM_MakeSignedData [15:56:35]SAM_PROTO_SignData [15:56:35]wFMCommunicate request_size=4 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 0D 01 02 [15:56:35]Write to MH i2c: E2 08 00 2C 10 80 0D 01 02 00 00 00 00 B5 [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:35]Read from MH i2c: E2 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 03 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 03 00 2C 10 00 90 00 B0 [15:56:35]RAPDU: 90 00 [15:56:35]wFMCommunicate OK [15:56:35]wFMCommunicate request_size=255 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 DF 00 00 00 F4 03 04 00 33 6E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CE 5F 02 00 35 04 06 00 6F [15:56:35]Write to MH i2c: E2 02 01 2D 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 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 DF 00 00 00 F4 03 04 00 33 6E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CE 5F 02 00 35 04 06 00 6F 00 00 B2 [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:35]Read from MH i2c: E2 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 03 00 [15:56:35]MH_I2C_Read... [15:56:35]Read from MH i2c: E2 03 00 2D 10 00 90 00 B1 [15:56:35]RAPDU: 90 00 [15:56:35]wFMCommunicate OK [15:56:35]wFMCommunicate request_size=10 [15:56:35]MH_SAM_APDU [15:56:35]CAPDU: 80 0D 02 02 05 99 BF 5F D3 8F [15:56:35]Write to MH i2c: E2 0D 00 2E 10 80 0D 02 02 05 00 99 BF 5F D3 8F 00 00 DB [15:56:35]Write i2c OK [15:56:35]MH_I2C_Read... [15:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:36]Read from MH i2c: E2 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: E2 03 00 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: E2 03 00 2E 10 00 90 00 B2 [15:56:36]RAPDU: 90 00 [15:56:36]wFMCommunicate OK [15:56:36]wFMCommunicate request_size=4 [15:56:36]MH_SAM_APDU [15:56:36]CAPDU: 80 0D 03 02 [15:56:36]Write to MH i2c: E2 08 00 2F 10 80 0D 03 02 00 00 00 00 BA [15:56:36]Write i2c OK [15:56:36]MH_I2C_Read... [15:56:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:36]Read from MH i2c: E2 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: E2 0B 00 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: E2 0B 00 2F 10 00 EE 6C 57 4E C3 EA 35 A9 90 00 45 [15:56:36]RAPDU: EE 6C 57 4E C3 EA 35 A9 90 00 [15:56:36]wFMCommunicate OK [15:56:36]SAM_PROTO_SignData done [15:56:36]FM_MakeSignedData done [15:56:36]CreateOFDProtocolMessage [15:56:36]wFMCommunicate request_size=4 [15:56:36]MH_SAM_APDU [15:56:36]CAPDU: 80 11 00 00 [15:56:36]Write to MH i2c: E2 08 00 30 10 80 11 00 00 00 00 00 00 BA [15:56:36]Write i2c OK [15:56:36]MH_I2C_Read... [15:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:36]Read from MH i2c: E2 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: E2 17 00 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: E2 17 00 30 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0F [15:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:56:36]wFMCommunicate OK [15:56:36]CreateOFDProtocolMessage done [15:56:36]OFDSenderStorePacket 155598 [15:56:36]StoreOFDPacket docnum=155598 [15:56:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6E 6C 07 01 58 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 33 6E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CE 5F 02 00 35 04 06 00 6F 99 BF 5F D3 8F EE 6C 57 4E C3 EA 35 A9 [15:56:36]CheckFolder [15:56:36]dirname=/storage/ofd_packets [15:56:36]CheckFolder done [15:56:36]ProducePacketName [15:56:36]name=ofd_packets/00155598 [15:56:36]NVStorageSaveData ofd_packets/00155598 [15:56:36]File name is /storage/ofd_packets/00155598 [15:56:36]Write 301 bytes [15:56:36]NVStorageSaveData done [15:56:36]OFDSenderStorePacket done [15:56:36]KKMCreateOFDPacket done [15:56:36]NVStorageSaveData kkm_last_timestamp [15:56:36]File name is /storage/kkm_last_timestamp [15:56:36]Write 4 bytes [15:56:36]NVStorageSaveData done [15:56:36]ExternCall_PrintAddStr [15:56:36]wPrintStart [15:56:36]Write to MH i2c: 01 00 00 31 10 41 [15:56:36]Write i2c OK [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: 01 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: 01 07 00 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: 01 07 00 31 10 00 00 00 00 00 FF 0F 56 [15:56:36]RasterBufferAndPrint [15:56:36]line Счет N : (1)98404 [15:56:36]line ИНН: 02508201610067 [15:56:36]line Контрольно-Кассовый Чек [15:56:36]line ПРОДАЖА [15:56:36]line ТРК (МРК, ГНК) : 21 [15:56:36]line Товар: 2710124130 [15:56:36]line Аи-92-К-5 [15:56:36]line 10.000 * 0.00 [15:56:36]line = 0.00 [15:56:36]line НДС 12% НСП 1% [15:56:36]line > о реализуемом товаре [15:56:36]line ИТОГО: 0.00 [15:56:36]line НСП 1% : 0.00 [15:56:36]line НДС 12% : 0.00 [15:56:36]line Наличными: 0.00 [15:56:36]line Безнал.: 0.00 [15:56:36]line Место: АЗС № 143 "Партнер Нефть" [15:56:36]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:56:36]line СНО: Общий режим [15:56:36]line Чек 223 24.10.2024 15:56 [15:56:36]line Смена: 534 ФФД: 1.0 [15:56:36]line ЗНМ: 0300000096 [15:56:36]line РНМ: 0000000000091693 [15:56:36]line Версия ККМ: 001 [15:56:36]line Талоны: Топливные Талоны [15:56:36]line 4582904 [15:56:36]line ФМ: 0000000000871792 [15:56:36]line ФД: 155598 [15:56:36]line ФПД: 122706131407759 [15:56:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T155635&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155598&fm=122706131407759&tin=02508201610067®Number=0000000000091693&sum=0 [15:56:36]OFD Sender: Processing packet 155598 [packets to send 31, broken 30] [15:56:36]ProducePacketName [15:56:36]name=ofd_packets/00155598 [15:56:36]OFD Sender: To server: pG, [15:56:36]CommunicateWithHost lk.salyk.kg:30040 [15:56:36]ConnectInit lk.salyk.kg [15:56:36]written 0, free lines is 4095 [15:56:36]Connected sock=10 [15:56:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6E 6C 07 01 58 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 33 6E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CE 5F 02 00 35 04 06 00 6F 99 BF 5F D3 8F EE 6C 57 4E C3 EA 35 A9 [15:56:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 36 EA 47 00 59 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 39 32 10 04 04 00 CE 5F 02 00 F4 03 04 00 AB 13 1A 67 B6 04 01 00 00 33 5A B2 02 DE FB 20 43 [15:56:36]CommunicateWithHost err = 0 [15:56:36]CheckOFDResponse [15:56:36]1017 (14) - 77093643461234 [15:56:36]1041 (16) - 0000000000871792 [15:56:36]1040 (4) - 155598 [15:56:36]1012 (4) - 24.10.2024 09:30 [15:56:36]1206 (1) - 0 [15:56:36]OFD Sender: Remove packet 155598 [15:56:36]ProducePacketName [15:56:36]name=ofd_packets/00155598 [15:56:36]NVStorageDeleteData [15:56:36]Write to MH i2c: 01 00 00 5B 10 6B [15:56:36]Write i2c OK [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: 01 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: 01 07 00 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: 01 07 00 5B 10 00 00 00 00 00 F6 0C 74 [15:56:36]RasterBufferAndPrint [15:56:36]line [15:56:36]line [15:56:36]line [15:56:36]line [15:56:36]line [15:56:36]written 0, free lines is 3324 [15:56:36]process_action close_receipt done [15:56:36]requested_data is exist [15:56:36]produce_requested_data [15:56:36]requested_item fm.sn is exist - process it [15:56:36]wFMCommunicate request_size=4 [15:56:36]MH_SAM_APDU [15:56:36]CAPDU: 80 11 00 00 [15:56:36]Write to MH i2c: E2 08 00 62 10 80 11 00 00 00 00 00 00 EC [15:56:36]Write i2c OK [15:56:36]MH_I2C_Read... [15:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:36]Read from MH i2c: E2 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: E2 17 00 [15:56:36]MH_I2C_Read... [15:56:36]Read from MH i2c: E2 17 00 62 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 41 [15:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:56:36]wFMCommunicate OK [15:56:36]requested_item fd.num is exist - process it [15:56:36]SAM_PROTO_GetFieldsCounters [15:56:36]wFMCommunicate request_size=4 [15:56:36]MH_SAM_APDU [15:56:36]CAPDU: 80 13 00 00 [15:56:36]Write to MH i2c: E2 08 00 63 10 80 13 00 00 00 00 00 00 EF [15:56:36]Write i2c OK [15:56:36]MH_I2C_Read... [15:56:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:37]Read from MH i2c: E2 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 62 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 62 00 63 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CE 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [15:56: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CE 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:37]wFMCommunicate OK [15:56:37]SAM_PROTO_GetFieldsCounters done [15:56:37]requested_item shift.num is exist - process it [15:56:37]requested_item shift.opened is exist - process it [15:56:37]req_shift_opened [15:56:37]FM_GetShiftState [15:56:37]SAM_PROTO_GetShiftState [15:56:37]wFMCommunicate request_size=4 [15:56:37]MH_SAM_APDU [15:56:37]CAPDU: 80 13 01 00 [15:56:37]Write to MH i2c: E2 08 00 64 10 80 13 01 00 00 00 00 00 F1 [15:56:37]Write i2c OK [15:56:37]MH_I2C_Read... [15:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:37]Read from MH i2c: E2 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 0E 00 [15:56:37]MH_I2C_Read... [15:56:37]Read from MH i2c: E2 0E 00 64 10 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3E [15:56:37]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [15:56:37]wFMCommunicate OK [15:56:37]SAM_PROTO_GetShiftState done [15:56:37]FM_GetShiftState done [15:56:37]req_shift_opened done [15:56:37]requested_item shift.open_date is exist - process it [15:56:37]req_shift_open_date [15:56:37]req_shift_open_date done [15:56:37]produce_requested_data done [15:56:37]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155598,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [15:56:37]process_action_free close_receipt [15:56:37]json_value_free [15:56:37]json_value_free done [15:56:37]process_json_proto returns [15:56:37]Send response to host [15:56:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155598,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [15:56:37]free response buf [15:56:37]execute_script done [15:56:37]execute_script returns [15:56:37]free content buf [15:56:37]Sock 8.Close socket [15:56:37]Sock 8.Thread stoped [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:56]int [15:56:56]Write to MH i2c: 01 00 00 65 10 75 [15:56:56]*** FLAG_PRN_KEY set [15:56:56]Write i2c OK [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: 01 [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: 01 07 00 [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: 01 07 00 65 10 00 08 00 00 00 FF 0F 92 [15:56:56]state=0 [15:56:56]Key pressed [15:56:56]Feed [15:56:56]Write to MH i2c: D8 00 00 66 10 4D [15:56:56]Write i2c OK [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: D8 [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: D8 01 00 [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: D8 01 00 66 10 00 4E [15:56:56]int [15:56:56]Write to MH i2c: 01 00 00 67 10 77 [15:56:56]Write i2c OK [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: 01 [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: 01 07 00 [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: 01 07 00 67 10 00 48 00 00 00 3D 00 03 [15:56:56]state=2 [15:56:56]Key pressed [15:56:56]int [15:56:56]Write to MH i2c: 01 00 00 68 10 78 [15:56:56]*** FLAG_PRN_KEY reset [15:56:56]Write i2c OK [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: 01 [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: 01 07 00 [15:56:56]MH_I2C_Read... [15:56:56]Read from MH i2c: 01 07 00 68 10 00 00 00 00 00 FB 0F 89 [15:56:56]state=2 [15:56:56]Stop feed [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 [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:43]accept exits with 9 [16:00:43]New connection [16:00:43]New thread 3066781028 created [16:00:43] Sock 9.Parse request [16:00:43]Sock 9.Check first char [16:00:43]Thread 3066637668 joined [16:00:43]Waiting for new connection... [16:00:43]Sock 9.First char is OK [16:00:43]request: POST /json_proto HTTP/1.0 [16:00:43]Method: POST [16:00:43]URL: /json_proto [16:00:43]Method is POST - this is cgi request [16:00:43]url: /json_proto [16:00:43]query_string will be loaded in cgi processing [16:00:43]execute_cgi json_proto POST (null) [16:00:43]execute_cgi path=json_proto method=POST [16:00:43]POST find Content-Length [16:00:43]Host: 172.17.63.3:8080 [16:00:43]Content-Length: 681 [16:00:43]Content-Type: application/json [16:00:43] [16:00:43]POST finish read [16:00:43]Found Content-Length = 681 [16:00:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:43]execute_script... [16:00:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:43]POST & json_proto [16:00:43]process_json_proto [16:00:43]json parsed OK: [16:00:43]protocol is kg_v1.0 [16:00:43]action value=close_receipt [16:00:43]process_action close_receipt [16:00:43]cmd_close_receipt [16:00:43]MH_GetDate [16:00:43]Write to MH i2c: F0 00 00 69 10 68 [16:00:43]Write i2c OK [16:00:43]MH_I2C_Read... [16:00:43]Read from MH i2c: F0 [16:00:43]MH_I2C_Read... [16:00:43]Read from MH i2c: F0 09 00 [16:00:43]MH_I2C_Read... [16:00:43]Read from MH i2c: F0 09 00 69 10 00 2C 6F 1A 67 50 D1 6C 64 7E [16:00:43]GetLastDocTimeStamp 1729785395 [16:00:43]current date 1729785644 [16:00:43]FM_GetShiftState [16:00:43]SAM_PROTO_GetShiftState [16:00:43]wFMCommunicate request_size=4 [16:00:43]MH_SAM_APDU [16:00:43]CAPDU: 80 13 01 00 [16:00:43]Write to MH i2c: E2 08 00 6A 10 80 13 01 00 00 00 00 00 F7 [16:00:43]Write i2c OK [16:00:43]MH_I2C_Read... [16:00:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:43]Read from MH i2c: E2 [16:00:43]MH_I2C_Read... [16:00:43]Read from MH i2c: E2 0E 00 [16:00:43]MH_I2C_Read... [16:00:43]Read from MH i2c: E2 0E 00 6A 10 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 44 [16:00:43]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:00:43]wFMCommunicate OK [16:00:43]SAM_PROTO_GetShiftState done [16:00:43]FM_GetShiftState done [16:00:43]opened in 1729729836 [16:00:43]opened+sec_in_day 1729816236 [16:00:43]quantity*price = 100015 [16:00:43]sum+1 = 100017 [16:00:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 224 24.10.2024 16:00 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155599 ФПД: 219370663139379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160044&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155599&fm=219370663139379&tin=02508201610067®Number=0000000000091693&sum=100000 [16:00:44]StoreToDocumentArchive [16:00:44]shift 534 fd 155599 [16:00:44]save to /storage/0534/doc_00155599 [16:00:44]save last doc name /storage/0534/doc_00155599 to /storage/kkm_last_doc_name [16:00:44]save OK [16:00:44]Clear old archive folders... [16:00:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:44]tlvbuf is 01F31EA0 [16:00:44]SAM_PROTO_ClearQueue [16:00:44]wFMCommunicate request_size=4 [16:00:44]MH_SAM_APDU [16:00:44]CAPDU: 80 09 00 00 [16:00:44]Write to MH i2c: E2 08 00 77 10 80 09 00 00 00 00 00 00 F9 [16:00:44]Write i2c OK [16:00:44]MH_I2C_Read... [16:00:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:44]Read from MH i2c: E2 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: E2 03 00 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: E2 03 00 77 10 00 90 00 FB [16:00:44]RAPDU: 90 00 [16:00:44]wFMCommunicate OK [16:00:44]SAM_PROTO_ClearQueue done [16:00:44]KKMCreateOFDPacket [16:00:44]OFDProtocolAddRootSTLVToBuf [16:00:44]FM_MakeSignedData [16:00:44]FM_MakeSignedData [16:00:44]SAM_PROTO_SignData [16:00:44]wFMCommunicate request_size=4 [16:00:44]MH_SAM_APDU [16:00:44]CAPDU: 80 0D 01 02 [16:00:44]Write to MH i2c: E2 08 00 78 10 80 0D 01 02 00 00 00 00 01 [16:00:44]Write i2c OK [16:00:44]MH_I2C_Read... [16:00:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:44]Read from MH i2c: E2 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: E2 03 00 [16:00:44]MH_I2C_Read... [16:00:44]Read from MH i2c: E2 03 00 78 10 00 90 00 FC [16:00:44]RAPDU: 90 00 [16:00:44]wFMCommunicate OK [16:00:44]wFMCommunicate request_size=255 [16:00:44]MH_SAM_APDU [16:00:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 2C 6F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 5F 02 00 35 04 06 00 C7 [16:00:44]Write to MH i2c: E2 02 01 79 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 2C 6F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 5F 02 00 35 04 06 00 C7 00 00 9A [16:00:44]Write i2c OK [16:00:44]MH_I2C_Read... [16:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:45]Read from MH i2c: E2 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 03 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 03 00 79 10 00 90 00 FD [16:00:45]RAPDU: 90 00 [16:00:45]wFMCommunicate OK [16:00:45]wFMCommunicate request_size=10 [16:00:45]MH_SAM_APDU [16:00:45]CAPDU: 80 0D 02 02 05 84 36 73 58 33 [16:00:45]Write to MH i2c: E2 0D 00 7A 10 80 0D 02 02 05 00 84 36 73 58 33 00 00 C6 [16:00:45]Write i2c OK [16:00:45]MH_I2C_Read... [16:00:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:45]Read from MH i2c: E2 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 03 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 03 00 7A 10 00 90 00 FE [16:00:45]RAPDU: 90 00 [16:00:45]wFMCommunicate OK [16:00:45]wFMCommunicate request_size=4 [16:00:45]MH_SAM_APDU [16:00:45]CAPDU: 80 0D 03 02 [16:00:45]Write to MH i2c: E2 08 00 7B 10 80 0D 03 02 00 00 00 00 06 [16:00:45]Write i2c OK [16:00:45]MH_I2C_Read... [16:00:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:45]Read from MH i2c: E2 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 0B 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 0B 00 7B 10 00 DD F7 C7 5E 3E EA 4D F8 90 00 6D [16:00:45]RAPDU: DD F7 C7 5E 3E EA 4D F8 90 00 [16:00:45]wFMCommunicate OK [16:00:45]SAM_PROTO_SignData done [16:00:45]FM_MakeSignedData done [16:00:45]CreateOFDProtocolMessage [16:00:45]wFMCommunicate request_size=4 [16:00:45]MH_SAM_APDU [16:00:45]CAPDU: 80 11 00 00 [16:00:45]Write to MH i2c: E2 08 00 7C 10 80 11 00 00 00 00 00 00 06 [16:00:45]Write i2c OK [16:00:45]MH_I2C_Read... [16:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:45]Read from MH i2c: E2 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 17 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 17 00 7C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5B [16:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:00:45]wFMCommunicate OK [16:00:45]CreateOFDProtocolMessage done [16:00:45]OFDSenderStorePacket 155599 [16:00:45]StoreOFDPacket docnum=155599 [16:00:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E3 D7 07 01 5F 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 2C 6F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 5F 02 00 35 04 06 00 C7 84 36 73 58 33 DD F7 C7 5E 3E EA 4D F8 [16:00:45]CheckFolder [16:00:45]dirname=/storage/ofd_packets [16:00:45]CheckFolder done [16:00:45]ProducePacketName [16:00:45]name=ofd_packets/00155599 [16:00:45]NVStorageSaveData ofd_packets/00155599 [16:00:45]File name is /storage/ofd_packets/00155599 [16:00:45]Write 301 bytes [16:00:45]NVStorageSaveData done [16:00:45]OFDSenderStorePacket done [16:00:45]KKMCreateOFDPacket done [16:00:45]NVStorageSaveData kkm_last_timestamp [16:00:45]File name is /storage/kkm_last_timestamp [16:00:45]Write 4 bytes [16:00:45]NVStorageSaveData done [16:00:45]ExternCall_PrintAddStr [16:00:45]wPrintStart [16:00:45]Write to MH i2c: 01 00 00 7D 10 8D [16:00:45]Write i2c OK [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: 01 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: 01 07 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: 01 07 00 7D 10 00 00 00 00 00 FF 0F A2 [16:00:45]RasterBufferAndPrint [16:00:45]line Счет N : (1)98405 [16:00:45]line ИНН: 02508201610067 [16:00:45]line Контрольно-Кассовый Чек [16:00:45]line ПРОДАЖА [16:00:45]line ТРК (МРК, ГНК) : 31 [16:00:45]line Товар: 2710124130 [16:00:45]line Аи-92-К-5 [16:00:45]line 14.950 * 66.90 [16:00:45]line = 1000.16 [16:00:45]line НДС 12% НСП 1% [16:00:45]line > о реализуемом товаре [16:00:45]line ОКРУГЛЕНИЕ: -0.16 [16:00:45]line ИТОГО: 1000.00 [16:00:45]line Внесено: 1000.00 [16:00:45]line СДАЧА: 0.00 [16:00:45]line НСП 1% : 8.85 [16:00:45]line НДС 12% : 106.21 [16:00:45]line Наличными: 1000.00 [16:00:45]line Безнал.: 0.00 [16:00:45]line Место: АЗС № 143 "Партнер Нефть" [16:00:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:00:45]line СНО: Общий режим [16:00:45]line Чек 224 24.10.2024 16:00 [16:00:45]line Смена: 534 ФФД: 1.0 [16:00:45]line ЗНМ: 0300000096 [16:00:45]line РНМ: 0000000000091693 [16:00:45]line Версия ККМ: 001 [16:00:45]line ФМ: 0000000000871792 [16:00:45]line ФД: 155599 [16:00:45]line ФПД: 219370663139379 [16:00:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160044&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155599&fm=219370663139379&tin=02508201610067®Number=0000000000091693&sum=100000 [16:00:45]OFD Sender: Processing packet 155599 [packets to send 31, broken 30] [16:00:45]ProducePacketName [16:00:45]name=ofd_packets/00155599 [16:00:45]OFD Sender: To server: pG, [16:00:45]CommunicateWithHost lk.salyk.kg:30040 [16:00:45]ConnectInit lk.salyk.kg [16:00:45]written 0, free lines is 4095 [16:00:45]Connected sock=10 [16:00:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E3 D7 07 01 5F 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 2C 6F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 5F 02 00 35 04 06 00 C7 84 36 73 58 33 DD F7 C7 5E 3E EA 4D F8 [16:00:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0F 3E 47 00 C4 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 39 32 10 04 04 00 CF 5F 02 00 F4 03 04 00 A4 14 1A 67 B6 04 01 00 00 62 FB 55 6C 1A A1 B3 B2 [16:00:46]CommunicateWithHost err = 0 [16:00:46]CheckOFDResponse [16:00:46]1017 (14) - 77093643461234 [16:00:46]1041 (16) - 0000000000871792 [16:00:46]1040 (4) - 155599 [16:00:46]1012 (4) - 24.10.2024 09:34 [16:00:46]1206 (1) - 0 [16:00:46]OFD Sender: Remove packet 155599 [16:00:46]ProducePacketName [16:00:46]name=ofd_packets/00155599 [16:00:46]NVStorageDeleteData [16:00:46]Write to MH i2c: 01 00 00 A8 10 B8 [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: 01 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: 01 07 00 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: 01 07 00 A8 10 00 00 00 00 00 F4 0C BF [16:00:46]RasterBufferAndPrint [16:00:46]line [16:00:46]line [16:00:46]line [16:00:46]line [16:00:46]line [16:00:46]written 0, free lines is 3323 [16:00:46]process_action close_receipt done [16:00:46]requested_data is exist [16:00:46]produce_requested_data [16:00:46]requested_item fm.sn is exist - process it [16:00:46]wFMCommunicate request_size=4 [16:00:46]MH_SAM_APDU [16:00:46]CAPDU: 80 11 00 00 [16:00:46]Write to MH i2c: E2 08 00 AF 10 80 11 00 00 00 00 00 00 39 [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:46]Read from MH i2c: E2 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 17 00 [16:00:46]MH_I2C_Read... [16:00:46]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 39 32 90 00 8E [16:00:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:00:46]wFMCommunicate OK [16:00:46]requested_item fd.num is exist - process it [16:00:46]SAM_PROTO_GetFieldsCounters [16:00:46]wFMCommunicate request_size=4 [16:00:46]MH_SAM_APDU [16:00:46]CAPDU: 80 13 00 00 [16:00:46]Write to MH i2c: E2 08 00 B0 10 80 13 00 00 00 00 00 00 3C [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:46]Read from MH i2c: E2 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 62 00 [16:00:46]MH_I2C_Read... [16:00:46]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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CF 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [16:00: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CF 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:46]wFMCommunicate OK [16:00:46]SAM_PROTO_GetFieldsCounters done [16:00:46]requested_item shift.num is exist - process it [16:00:46]requested_item shift.opened is exist - process it [16:00:46]req_shift_opened [16:00:46]FM_GetShiftState [16:00:46]SAM_PROTO_GetShiftState [16:00:46]wFMCommunicate request_size=4 [16:00:46]MH_SAM_APDU [16:00:46]CAPDU: 80 13 01 00 [16:00:46]Write to MH i2c: E2 08 00 B1 10 80 13 01 00 00 00 00 00 3E [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:46]Read from MH i2c: E2 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 0E 00 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 0E 00 B1 10 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8B [16:00:46]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:00:46]wFMCommunicate OK [16:00:46]SAM_PROTO_GetShiftState done [16:00:46]FM_GetShiftState done [16:00:46]req_shift_opened done [16:00:46]requested_item shift.open_date is exist - process it [16:00:46]req_shift_open_date [16:00:46]req_shift_open_date done [16:00:46]produce_requested_data done [16:00:46]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155599,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:00:46]process_action_free close_receipt [16:00:46]json_value_free [16:00:46]json_value_free done [16:00:46]process_json_proto returns [16:00:46]Send response to host [16:00:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155599,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:00:46]free response buf [16:00:46]execute_script done [16:00:46]execute_script returns [16:00:46]free content buf [16:00:46]Sock 9.Close socket [16:00:46]Sock 9.Thread stoped [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:37]accept exits with 8 [16:02:37]New connection [16:02:37]New thread 3066637668 created [16:02:37]Thread 3066781028 joined [16:02:37]Waiting for new connection... [16:02:37] Sock 8.Parse request [16:02:37]Sock 8.Check first char [16:02:37]Sock 8.First char is OK [16:02:37]request: POST /json_proto HTTP/1.0 [16:02:37]Method: POST [16:02:37]URL: /json_proto [16:02:37]Method is POST - this is cgi request [16:02:37]url: /json_proto [16:02:37]query_string will be loaded in cgi processing [16:02:37]execute_cgi json_proto POST (null) [16:02:37]execute_cgi path=json_proto method=POST [16:02:37]POST find Content-Length [16:02:37]Host: 172.17.63.3:8080 [16:02:37]Content-Length: 681 [16:02:37]Content-Type: application/json [16:02:37] [16:02:37]POST finish read [16:02:37]Found Content-Length = 681 [16:02:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:37]execute_script... [16:02: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)98406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:37]POST & json_proto [16:02:37]process_json_proto [16:02:37]json parsed OK: [16:02:37]protocol is kg_v1.0 [16:02:37]action value=close_receipt [16:02:37]process_action close_receipt [16:02:37]cmd_close_receipt [16:02:37]MH_GetDate [16:02:37]Write to MH i2c: F0 00 00 B2 10 B1 [16:02:37]Write i2c OK [16:02:37]MH_I2C_Read... [16:02:37]Read from MH i2c: F0 [16:02:37]MH_I2C_Read... [16:02:37]Read from MH i2c: F0 09 00 [16:02:37]MH_I2C_Read... [16:02:37]Read from MH i2c: F0 09 00 B2 10 00 9E 6F 1A 67 50 D1 6C 64 39 [16:02:37]GetLastDocTimeStamp 1729785644 [16:02:37]current date 1729785758 [16:02:37]FM_GetShiftState [16:02:37]SAM_PROTO_GetShiftState [16:02:37]wFMCommunicate request_size=4 [16:02:37]MH_SAM_APDU [16:02:37]CAPDU: 80 13 01 00 [16:02:37]Write to MH i2c: E2 08 00 B3 10 80 13 01 00 00 00 00 00 40 [16:02:37]Write i2c OK [16:02:37]MH_I2C_Read... [16:02:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:37]Read from MH i2c: E2 [16:02:37]MH_I2C_Read... [16:02:37]Read from MH i2c: E2 0E 00 [16:02:37]MH_I2C_Read... [16:02:37]Read from MH i2c: E2 0E 00 B3 10 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8D [16:02:37]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:02:37]wFMCommunicate OK [16:02:37]SAM_PROTO_GetShiftState done [16:02:37]FM_GetShiftState done [16:02:37]opened in 1729729836 [16:02:37]opened+sec_in_day 1729816236 [16:02:37]quantity*price = 100015 [16:02:37]sum+1 = 100017 [16:02:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 225 24.10.2024 16:02 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155600 ФПД: 97091317556452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160238&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155600&fm=97091317556452&tin=02508201610067®Number=0000000000091693&sum=100000 [16:02:39]StoreToDocumentArchive [16:02:39]shift 534 fd 155600 [16:02:39]save to /storage/0534/doc_00155600 [16:02:39]save last doc name /storage/0534/doc_00155600 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=251 [16:02:39]tlvbuf is 01F88210 [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 C0 10 80 09 00 00 00 00 00 00 42 [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 C0 10 00 90 00 44 [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 C1 10 80 0D 01 02 00 00 00 00 4A [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 C1 10 00 90 00 45 [16:02:39]RAPDU: 90 00 [16:02:39]wFMCommunicate OK [16:02:39]wFMCommunicate request_size=255 [16:02:39]MH_SAM_APDU [16:02: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 9E 6F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 5F 02 00 35 04 06 00 58 [16:02:39]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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 9E 6F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 5F 02 00 35 04 06 00 58 00 00 E8 [16:02:39]Write i2c OK [16:02:39]MH_I2C_Read... [16:02:39]*** iso7816_exchange 80 0D 02 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 C2 10 00 90 00 46 [16:02:39]RAPDU: 90 00 [16:02:39]wFMCommunicate OK [16:02:39]wFMCommunicate request_size=10 [16:02:39]MH_SAM_APDU [16:02:39]CAPDU: 80 0D 02 02 05 4D D5 7E 64 E4 [16:02:39]Write to MH i2c: E2 0D 00 C3 10 80 0D 02 02 05 00 4D D5 7E 64 E4 00 00 3F [16:02:39]Write i2c OK [16:02:39]MH_I2C_Read... [16:02:39]*** iso7816_exchange 80 0D 02 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 C3 10 00 90 00 47 [16:02:39]RAPDU: 90 00 [16:02:39]wFMCommunicate OK [16:02:39]wFMCommunicate request_size=4 [16:02:39]MH_SAM_APDU [16:02:39]CAPDU: 80 0D 03 02 [16:02:39]Write to MH i2c: E2 08 00 C4 10 80 0D 03 02 00 00 00 00 4F [16:02:39]Write i2c OK [16:02:39]MH_I2C_Read... [16:02:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:39]Read from MH i2c: E2 [16:02:39]MH_I2C_Read... [16:02:39]Read from MH i2c: E2 0B 00 [16:02:39]MH_I2C_Read... [16:02:39]Read from MH i2c: E2 0B 00 C4 10 00 58 A5 EC 3C 36 BF DE 76 90 00 BE [16:02:39]RAPDU: 58 A5 EC 3C 36 BF DE 76 90 00 [16:02:39]wFMCommunicate OK [16:02:39]SAM_PROTO_SignData done [16:02:39]FM_MakeSignedData done [16:02:39]CreateOFDProtocolMessage [16:02:39]wFMCommunicate request_size=4 [16:02:39]MH_SAM_APDU [16:02:39]CAPDU: 80 11 00 00 [16:02:39]Write to MH i2c: E2 08 00 C5 10 80 11 00 00 00 00 00 00 4F [16:02:39]Write i2c OK [16:02:39]MH_I2C_Read... [16:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:39]Read from MH i2c: E2 [16:02:39]MH_I2C_Read... [16:02:39]Read from MH i2c: E2 17 00 [16:02:39]MH_I2C_Read... [16:02:39]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 39 32 90 00 A4 [16:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:02:39]wFMCommunicate OK [16:02:39]CreateOFDProtocolMessage done [16:02:39]OFDSenderStorePacket 155600 [16:02:39]StoreOFDPacket docnum=155600 [16:02:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8D C2 07 01 B5 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 9E 6F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 5F 02 00 35 04 06 00 58 4D D5 7E 64 E4 58 A5 EC 3C 36 BF DE 76 [16:02:39]CheckFolder [16:02:39]dirname=/storage/ofd_packets [16:02:39]CheckFolder done [16:02:39]ProducePacketName [16:02:39]name=ofd_packets/00155600 [16:02:39]NVStorageSaveData ofd_packets/00155600 [16:02:39]File name is /storage/ofd_packets/00155600 [16:02:39]Write 301 bytes [16:02:39]NVStorageSaveData done [16:02:39]OFDSenderStorePacket done [16:02:39]KKMCreateOFDPacket done [16:02:39]NVStorageSaveData kkm_last_timestamp [16:02:39]File name is /storage/kkm_last_timestamp [16:02:39]Write 4 bytes [16:02:39]NVStorageSaveData done [16:02:39]ExternCall_PrintAddStr [16:02:39]wPrintStart [16:02:39]Write to MH i2c: 01 00 00 C6 10 D6 [16:02:39]OFD Sender: Processing packet 155600 [packets to send 31, broken 30] [16:02:39]ProducePacketName [16:02:39]name=ofd_packets/00155600 [16:02:39]OFD Sender: To server: pG, [16:02:39]CommunicateWithHost lk.salyk.kg:30040 [16:02:39]ConnectInit lk.salyk.kg [16:02:39]Write i2c OK [16:02:39]MH_I2C_Read... [16:02:39]Read from MH i2c: 01 [16:02:39]MH_I2C_Read... [16:02:39]Read from MH i2c: 01 07 00 [16:02:39]MH_I2C_Read... [16:02:39]Read from MH i2c: 01 07 00 C6 10 00 00 00 00 00 FF 0F EB [16:02:39]RasterBufferAndPrint [16:02:39]line Счет N : (1)98406 [16:02:39]line ИНН: 02508201610067 [16:02:39]line Контрольно-Кассовый Чек [16:02:39]line ПРОДАЖА [16:02:39]line ТРК (МРК, ГНК) : 11 [16:02:39]line Товар: 2710124130 [16:02:39]line Аи-92-К-5 [16:02:39]line 14.950 * 66.90 [16:02:39]line = 1000.16 [16:02:39]line НДС 12% НСП 1% [16:02:39]line > о реализуемом товаре [16:02:39]line ОКРУГЛЕНИЕ: -0.16 [16:02:39]line ИТОГО: 1000.00 [16:02:39]line Внесено: 1000.00 [16:02:39]line СДАЧА: 0.00 [16:02:39]line НСП 1% : 8.85 [16:02:39]line НДС 12% : 106.21 [16:02:39]line Наличными: 1000.00 [16:02:39]line Безнал.: 0.00 [16:02:39]line Место: АЗС № 143 "Партнер Нефть" [16:02:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:02:39]line СНО: Общий режим [16:02:39]line Чек 225 24.10.2024 16:02 [16:02:39]line Смена: 534 ФФД: 1.0 [16:02:39]line ЗНМ: 0300000096 [16:02:39]line РНМ: 0000000000091693 [16:02:39]line Версия ККМ: 001 [16:02:39]line ФМ: 0000000000871792 [16:02:39]line ФД: 155600 [16:02:39]line ФПД: 97091317556452 [16:02:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T160238&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155600&fm=97091317556452&tin=02508201610067®Number=0000000000091693&sum=100000 [16:02:39]Connected sock=10 [16:02: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 39 32 0F 01 00 00 8D C2 07 01 B5 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 9E 6F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 5F 02 00 35 04 06 00 58 4D D5 7E 64 E4 58 A5 EC 3C 36 BF DE 76 [16:02:39]written 0, free lines is 4095 [16:02: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 39 32 4F 00 00 00 F6 B6 47 00 E8 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 39 32 10 04 04 00 D0 5F 02 00 F4 03 04 00 16 15 1A 67 B6 04 01 00 00 27 18 0D 79 88 D8 4D 01 [16:02:40]CommunicateWithHost err = 0 [16:02:40]CheckOFDResponse [16:02:40]1017 (14) - 77093643461234 [16:02:40]1041 (16) - 0000000000871792 [16:02:40]1040 (4) - 155600 [16:02:40]1012 (4) - 24.10.2024 09:36 [16:02:40]1206 (1) - 0 [16:02:40]OFD Sender: Remove packet 155600 [16:02:40]ProducePacketName [16:02:40]name=ofd_packets/00155600 [16:02:40]NVStorageDeleteData [16:02:40]Write to MH i2c: 01 00 00 F1 10 01 [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 F1 10 00 00 00 00 00 E8 0C FC [16:02:40]RasterBufferAndPrint [16:02:40]line [16:02:40]line [16:02:40]line [16:02:40]line [16:02:40]line [16:02:40]written 0, free lines is 3311 [16:02:40]process_action close_receipt done [16:02:40]requested_data is exist [16:02:40]produce_requested_data [16:02:40]requested_item fm.sn is exist - process it [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 F8 10 80 11 00 00 00 00 00 00 82 [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 F8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D7 [16:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:02:40]wFMCommunicate OK [16:02:40]requested_item fd.num is exist - process it [16:02:40]SAM_PROTO_GetFieldsCounters [16:02:40]wFMCommunicate request_size=4 [16:02:40]MH_SAM_APDU [16:02:40]CAPDU: 80 13 00 00 [16:02:40]Write to MH i2c: E2 08 00 F9 10 80 13 00 00 00 00 00 00 85 [16:02:40]Write i2c OK [16:02:40]MH_I2C_Read... [16:02:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:40]Read from MH i2c: E2 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 62 00 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 62 00 F9 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D0 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [16:02: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D0 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:40]wFMCommunicate OK [16:02:40]SAM_PROTO_GetFieldsCounters done [16:02:40]requested_item shift.num is exist - process it [16:02:40]requested_item shift.opened is exist - process it [16:02:40]req_shift_opened [16:02:40]FM_GetShiftState [16:02:40]SAM_PROTO_GetShiftState [16:02:40]wFMCommunicate request_size=4 [16:02:40]MH_SAM_APDU [16:02:40]CAPDU: 80 13 01 00 [16:02:40]Write to MH i2c: E2 08 00 FA 10 80 13 01 00 00 00 00 00 87 [16:02:40]OFD Sender: No OFD packet to send [16:02:40]Write i2c OK [16:02:40]MH_I2C_Read... [16:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:40]Read from MH i2c: E2 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 0E 00 [16:02:40]MH_I2C_Read... [16:02:40]Read from MH i2c: E2 0E 00 FA 10 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D4 [16:02:40]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:02:40]wFMCommunicate OK [16:02:40]SAM_PROTO_GetShiftState done [16:02:40]FM_GetShiftState done [16:02:40]req_shift_opened done [16:02:40]requested_item shift.open_date is exist - process it [16:02:40]req_shift_open_date [16:02:40]req_shift_open_date done [16:02:40]produce_requested_data done [16:02:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155600,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:02:40]process_action_free close_receipt [16:02:40]json_value_free [16:02:40]json_value_free done [16:02:40]process_json_proto returns [16:02:40]Send response to host [16:02:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155600,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:02:40]free response buf [16:02:40]execute_script done [16:02:40]execute_script returns [16:02:40]free content buf [16:02:40]Sock 8.Close socket [16:02:40]Sock 8.Thread stoped [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [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: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:25]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16: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:25]accept exits with 9 [16:14:25]New connection [16:14:25]New thread 3066781028 created [16:14:25]Thread 3066637668 joined [16:14:25]Waiting for new connection... [16:14:25] Sock 9.Parse request [16:14:25]Sock 9.Check first char [16:14:25]Sock 9.First char is OK [16:14:25]request: POST /json_proto HTTP/1.0 [16:14:25]Method: POST [16:14:25]URL: /json_proto [16:14:25]Method is POST - this is cgi request [16:14:25]url: /json_proto [16:14:25]query_string will be loaded in cgi processing [16:14:25]execute_cgi json_proto POST (null) [16:14:25]execute_cgi path=json_proto method=POST [16:14:25]POST find Content-Length [16:14:25]Host: 172.17.63.3:8080 [16:14:25]Content-Length: 676 [16:14:25]Content-Type: application/json [16:14:25] [16:14:25]POST finish read [16:14:25]Found Content-Length = 676 [16:14:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:25]execute_script... [16:14:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:25]POST & json_proto [16:14:25]process_json_proto [16:14:25]json parsed OK: [16:14:25]protocol is kg_v1.0 [16:14:25]action value=close_receipt [16:14:25]process_action close_receipt [16:14:25]cmd_close_receipt [16:14:25]MH_GetDate [16:14:25]Write to MH i2c: F0 00 00 FB 10 FA [16:14:25]Write i2c OK [16:14:25]MH_I2C_Read... [16:14:25]Read from MH i2c: F0 [16:14:25]MH_I2C_Read... [16:14:25]Read from MH i2c: F0 09 00 [16:14:25]MH_I2C_Read... [16:14:25]Read from MH i2c: F0 09 00 FB 10 00 62 72 1A 67 50 D1 6C 64 49 [16:14:25]GetLastDocTimeStamp 1729785758 [16:14:25]current date 1729786466 [16:14:25]FM_GetShiftState [16:14:25]SAM_PROTO_GetShiftState [16:14:25]wFMCommunicate request_size=4 [16:14:25]MH_SAM_APDU [16:14:25]CAPDU: 80 13 01 00 [16:14:25]Write to MH i2c: E2 08 00 FC 10 80 13 01 00 00 00 00 00 89 [16:14:25]Write i2c OK [16:14:25]MH_I2C_Read... [16:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:26]Read from MH i2c: E2 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: E2 0E 00 [16:14:26]MH_I2C_Read... [16:14:26]Read from MH i2c: E2 0E 00 FC 10 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D6 [16:14:26]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:14:26]wFMCommunicate OK [16:14:26]SAM_PROTO_GetShiftState done [16:14:26]FM_GetShiftState done [16:14:26]opened in 1729729836 [16:14:26]opened+sec_in_day 1729816236 [16:14:26]quantity*price = 20003 [16:14:26]sum+1 = 20004 [16:14:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 226 24.10.2024 16:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155601 ФПД: 278961322903900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161426&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155601&fm=278961322903900&tin=02508201610067®Number=0000000000091693&sum=20000 [16:14:27]StoreToDocumentArchive [16:14:27]shift 534 fd 155601 [16:14:27]save to /storage/0534/doc_00155601 [16:14:27]save last doc name /storage/0534/doc_00155601 to /storage/kkm_last_doc_name [16:14:27]save OK [16:14:27]Clear old archive folders... [16:14:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:27]tlvbuf is 01F95A80 [16:14:27]SAM_PROTO_ClearQueue [16:14:27]wFMCommunicate request_size=4 [16:14:27]MH_SAM_APDU [16:14:27]CAPDU: 80 09 00 00 [16:14:27]Write to MH i2c: E2 08 00 09 11 80 09 00 00 00 00 00 00 8C [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:27]Read from MH i2c: E2 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 03 00 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 03 00 09 11 00 90 00 8E [16:14:27]RAPDU: 90 00 [16:14:27]wFMCommunicate OK [16:14:27]SAM_PROTO_ClearQueue done [16:14:27]KKMCreateOFDPacket [16:14:27]OFDProtocolAddRootSTLVToBuf [16:14:27]FM_MakeSignedData [16:14:27]FM_MakeSignedData [16:14:27]SAM_PROTO_SignData [16:14:27]wFMCommunicate request_size=4 [16:14:27]MH_SAM_APDU [16:14:27]CAPDU: 80 0D 01 02 [16:14:27]Write to MH i2c: E2 08 00 0A 11 80 0D 01 02 00 00 00 00 94 [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:27]Read from MH i2c: E2 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 03 00 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 03 00 0A 11 00 90 00 8F [16:14:27]RAPDU: 90 00 [16:14:27]wFMCommunicate OK [16:14:27]wFMCommunicate request_size=255 [16:14:27]MH_SAM_APDU [16:14: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 62 72 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 5F 02 00 35 04 06 00 FD [16:14:27]Write to MH i2c: E2 02 01 0B 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 62 72 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 5F 02 00 35 04 06 00 FD 00 00 68 [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:27]Read from MH i2c: E2 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 03 00 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 03 00 0B 11 00 90 00 90 [16:14:27]RAPDU: 90 00 [16:14:27]wFMCommunicate OK [16:14:27]wFMCommunicate request_size=10 [16:14:27]MH_SAM_APDU [16:14:27]CAPDU: 80 0D 02 02 05 B6 BE 8E C9 5C [16:14:27]Write to MH i2c: E2 0D 00 0C 11 80 0D 02 02 05 00 B6 BE 8E C9 5C 00 00 C8 [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:27]Read from MH i2c: E2 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 03 00 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 03 00 0C 11 00 90 00 91 [16:14:27]RAPDU: 90 00 [16:14:27]wFMCommunicate OK [16:14:27]wFMCommunicate request_size=4 [16:14:27]MH_SAM_APDU [16:14:27]CAPDU: 80 0D 03 02 [16:14:27]Write to MH i2c: E2 08 00 0D 11 80 0D 03 02 00 00 00 00 99 [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:27]Read from MH i2c: E2 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 0B 00 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 0B 00 0D 11 00 72 2A E0 04 33 8B CD 01 90 00 A6 [16:14:27]RAPDU: 72 2A E0 04 33 8B CD 01 90 00 [16:14:27]wFMCommunicate OK [16:14:27]SAM_PROTO_SignData done [16:14:27]FM_MakeSignedData done [16:14:27]CreateOFDProtocolMessage [16:14:27]wFMCommunicate request_size=4 [16:14:27]MH_SAM_APDU [16:14:27]CAPDU: 80 11 00 00 [16:14:27]Write to MH i2c: E2 08 00 0E 11 80 11 00 00 00 00 00 00 99 [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:27]Read from MH i2c: E2 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 17 00 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: E2 17 00 0E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EE [16:14:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:14:27]wFMCommunicate OK [16:14:27]CreateOFDProtocolMessage done [16:14:27]OFDSenderStorePacket 155601 [16:14:27]StoreOFDPacket docnum=155601 [16:14:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E0 7E 07 01 2F D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 62 72 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 5F 02 00 35 04 06 00 FD B6 BE 8E C9 5C 72 2A E0 04 33 8B CD 01 [16:14:27]CheckFolder [16:14:27]dirname=/storage/ofd_packets [16:14:27]CheckFolder done [16:14:27]ProducePacketName [16:14:27]name=ofd_packets/00155601 [16:14:27]NVStorageSaveData ofd_packets/00155601 [16:14:27]File name is /storage/ofd_packets/00155601 [16:14:27]Write 301 bytes [16:14:27]NVStorageSaveData done [16:14:27]OFDSenderStorePacket done [16:14:27]KKMCreateOFDPacket done [16:14:27]NVStorageSaveData kkm_last_timestamp [16:14:27]File name is /storage/kkm_last_timestamp [16:14:27]Write 4 bytes [16:14:27]NVStorageSaveData done [16:14:27]ExternCall_PrintAddStr [16:14:27]wPrintStart [16:14:27]Write to MH i2c: 01 00 00 0F 11 20 [16:14:27]Write i2c OK [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: 01 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: 01 07 00 [16:14:27]MH_I2C_Read... [16:14:27]Read from MH i2c: 01 07 00 0F 11 00 00 00 00 00 FF 0F 35 [16:14:27]RasterBufferAndPrint [16:14:27]line Счет N : (1)98408 [16:14:27]line ИНН: 02508201610067 [16:14:27]line Контрольно-Кассовый Чек [16:14:27]line ПРОДАЖА [16:14:27]line ТРК (МРК, ГНК) : 11 [16:14:27]line Товар: 2710124130 [16:14:27]line Аи-92-К-5 [16:14:27]line 2.990 * 66.90 [16:14:27]line = 200.03 [16:14:27]line НДС 12% НСП 1% [16:14:27]line > о реализуемом товаре [16:14:27]line ОКРУГЛЕНИЕ: -0.03 [16:14:27]line ИТОГО: 200.00 [16:14:27]line Внесено: 200.00 [16:14:27]line СДАЧА: 0.00 [16:14:27]line НСП 1% : 1.77 [16:14:27]line НДС 12% : 21.24 [16:14:27]line Наличными: 200.00 [16:14:27]line Безнал.: 0.00 [16:14:27]line Место: АЗС № 143 "Партнер Нефть" [16:14:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:14:27]line СНО: Общий режим [16:14:27]line Чек 226 24.10.2024 16:14 [16:14:27]line Смена: 534 ФФД: 1.0 [16:14:27]line ЗНМ: 0300000096 [16:14:27]line РНМ: 0000000000091693 [16:14:27]line Версия ККМ: 001 [16:14:27]line ФМ: 0000000000871792 [16:14:27]line ФД: 155601 [16:14:27]line ФПД: 278961322903900 [16:14:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161426&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155601&fm=278961322903900&tin=02508201610067®Number=0000000000091693&sum=20000 [16:14:27]OFD Sender: Processing packet 155601 [packets to send 31, broken 30] [16:14:27]ProducePacketName [16:14:27]name=ofd_packets/00155601 [16:14:27]OFD Sender: To server: pG, [16:14:27]CommunicateWithHost lk.salyk.kg:30040 [16:14:28]ConnectInit lk.salyk.kg [16:14:28]written 0, free lines is 4095 [16:14:28]Connected sock=10 [16:14:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E0 7E 07 01 2F D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 62 72 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 5F 02 00 35 04 06 00 FD B6 BE 8E C9 5C 72 2A E0 04 33 8B CD 01 [16:14:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4C C9 47 00 30 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 39 32 10 04 04 00 D1 5F 02 00 F4 03 04 00 DB 17 1A 67 B6 04 01 00 00 BD 1E BA 1F 02 2B 13 C7 [16:14:28]CommunicateWithHost err = 0 [16:14:28]CheckOFDResponse [16:14:28]1017 (14) - 77093643461234 [16:14:28]1041 (16) - 0000000000871792 [16:14:28]1040 (4) - 155601 [16:14:28]1012 (4) - 24.10.2024 09:48 [16:14:28]1206 (1) - 0 [16:14:28]OFD Sender: Remove packet 155601 [16:14:28]ProducePacketName [16:14:28]name=ofd_packets/00155601 [16:14:28]NVStorageDeleteData [16:14:28]Write to MH i2c: 01 00 00 3A 11 4B [16:14:28]Write i2c OK [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: 01 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: 01 07 00 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: 01 07 00 3A 11 00 00 00 00 00 EB 0C 49 [16:14:28]RasterBufferAndPrint [16:14:28]line [16:14:28]line [16:14:28]line [16:14:28]line [16:14:28]line [16:14:28]written 0, free lines is 3313 [16:14:28]process_action close_receipt done [16:14:28]requested_data is exist [16:14:28]produce_requested_data [16:14:28]requested_item fm.sn is exist - process it [16:14:28]wFMCommunicate request_size=4 [16:14:28]MH_SAM_APDU [16:14:28]CAPDU: 80 11 00 00 [16:14:28]Write to MH i2c: E2 08 00 41 11 80 11 00 00 00 00 00 00 CC [16:14:28]Write i2c OK [16:14:28]MH_I2C_Read... [16:14:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:28]Read from MH i2c: E2 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: E2 17 00 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: E2 17 00 41 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 21 [16:14:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:14:28]wFMCommunicate OK [16:14:28]requested_item fd.num is exist - process it [16:14:28]SAM_PROTO_GetFieldsCounters [16:14:28]wFMCommunicate request_size=4 [16:14:28]MH_SAM_APDU [16:14:28]CAPDU: 80 13 00 00 [16:14:28]Write to MH i2c: E2 08 00 42 11 80 13 00 00 00 00 00 00 CF [16:14:28]Write i2c OK [16:14:28]MH_I2C_Read... [16:14:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:28]Read from MH i2c: E2 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: E2 62 00 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: E2 62 00 42 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D1 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [16:14: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D1 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:28]wFMCommunicate OK [16:14:28]SAM_PROTO_GetFieldsCounters done [16:14:28]requested_item shift.num is exist - process it [16:14:28]requested_item shift.opened is exist - process it [16:14:28]req_shift_opened [16:14:28]FM_GetShiftState [16:14:28]SAM_PROTO_GetShiftState [16:14:28]wFMCommunicate request_size=4 [16:14:28]MH_SAM_APDU [16:14:28]CAPDU: 80 13 01 00 [16:14:28]Write to MH i2c: E2 08 00 43 11 80 13 01 00 00 00 00 00 D1 [16:14:28]Write i2c OK [16:14:28]MH_I2C_Read... [16:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:28]Read from MH i2c: E2 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: E2 0E 00 [16:14:28]MH_I2C_Read... [16:14:28]Read from MH i2c: E2 0E 00 43 11 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1E [16:14:28]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:14:28]wFMCommunicate OK [16:14:28]SAM_PROTO_GetShiftState done [16:14:28]FM_GetShiftState done [16:14:28]req_shift_opened done [16:14:28]requested_item shift.open_date is exist - process it [16:14:28]req_shift_open_date [16:14:28]req_shift_open_date done [16:14:28]produce_requested_data done [16:14:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155601,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:14:28]process_action_free close_receipt [16:14:28]json_value_free [16:14:28]json_value_free done [16:14:28]process_json_proto returns [16:14:28]Send response to host [16:14:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155601,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:14:28]free response buf [16:14:28]execute_script done [16:14:28]execute_script returns [16:14:28]free content buf [16:14:28]Sock 9.Close socket [16:14:28]Sock 9.Thread stoped [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:37]accept exits with 8 [16:14:37]New connection [16:14:37]New thread 3066637668 created [16:14:37]Thread 3066781028 joined [16:14:37]Waiting for new connection... [16:14:37] Sock 8.Parse request [16:14:37]Sock 8.Check first char [16:14:37]Sock 8.First char is OK [16:14:37]request: POST /json_proto HTTP/1.0 [16:14:37]Method: POST [16:14:37]URL: /json_proto [16:14:37]Method is POST - this is cgi request [16:14:37]url: /json_proto [16:14:37]query_string will be loaded in cgi processing [16:14:37]execute_cgi json_proto POST (null) [16:14:37]execute_cgi path=json_proto method=POST [16:14:37]POST find Content-Length [16:14:37]Host: 172.17.63.3:8080 [16:14:37]Content-Length: 676 [16:14:37]Content-Type: application/json [16:14:37] [16:14:37]POST finish read [16:14:37]Found Content-Length = 676 [16:14:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:37]execute_script... [16:14:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:37]POST & json_proto [16:14:37]process_json_proto [16:14:37]json parsed OK: [16:14:37]protocol is kg_v1.0 [16:14:37]action value=close_receipt [16:14:37]process_action close_receipt [16:14:37]cmd_close_receipt [16:14:37]MH_GetDate [16:14:37]Write to MH i2c: F0 00 00 44 11 44 [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: F0 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: F0 09 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: F0 09 00 44 11 00 6E 72 1A 67 50 D1 6C 64 9F [16:14:37]GetLastDocTimeStamp 1729786466 [16:14:37]current date 1729786478 [16:14:37]FM_GetShiftState [16:14:37]SAM_PROTO_GetShiftState [16:14:37]wFMCommunicate request_size=4 [16:14:37]MH_SAM_APDU [16:14:37]CAPDU: 80 13 01 00 [16:14:37]Write to MH i2c: E2 08 00 45 11 80 13 01 00 00 00 00 00 D3 [16:14:37]Write i2c OK [16:14:37]MH_I2C_Read... [16:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:37]Read from MH i2c: E2 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 0E 00 [16:14:37]MH_I2C_Read... [16:14:37]Read from MH i2c: E2 0E 00 45 11 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 20 [16:14:37]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:14:37]wFMCommunicate OK [16:14:37]SAM_PROTO_GetShiftState done [16:14:37]FM_GetShiftState done [16:14:37]opened in 1729729836 [16:14:37]opened+sec_in_day 1729816236 [16:14:37]quantity*price = 40006 [16:14:37]sum+1 = 40007 [16:14:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 227 24.10.2024 16:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155602 ФПД: 88564057470258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161438&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155602&fm=88564057470258&tin=02508201610067®Number=0000000000091693&sum=40000 [16:14:38]StoreToDocumentArchive [16:14:38]shift 534 fd 155602 [16:14:38]save to /storage/0534/doc_00155602 [16:14:38]save last doc name /storage/0534/doc_00155602 to /storage/kkm_last_doc_name [16:14:38]save OK [16:14:38]Clear old archive folders... [16:14:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:38]tlvbuf is 01F79210 [16:14:38]SAM_PROTO_ClearQueue [16:14:38]wFMCommunicate request_size=4 [16:14:38]MH_SAM_APDU [16:14:38]CAPDU: 80 09 00 00 [16:14:38]Write to MH i2c: E2 08 00 52 11 80 09 00 00 00 00 00 00 D5 [16:14:38]Write i2c OK [16:14:38]MH_I2C_Read... [16:14:38]OFD Sender: No OFD packet to send [16:14:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:38]Read from MH i2c: E2 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: E2 03 00 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: E2 03 00 52 11 00 90 00 D7 [16:14:38]RAPDU: 90 00 [16:14:38]wFMCommunicate OK [16:14:38]SAM_PROTO_ClearQueue done [16:14:38]KKMCreateOFDPacket [16:14:38]OFDProtocolAddRootSTLVToBuf [16:14:38]FM_MakeSignedData [16:14:38]FM_MakeSignedData [16:14:38]SAM_PROTO_SignData [16:14:38]wFMCommunicate request_size=4 [16:14:38]MH_SAM_APDU [16:14:38]CAPDU: 80 0D 01 02 [16:14:38]Write to MH i2c: E2 08 00 53 11 80 0D 01 02 00 00 00 00 DD [16:14:38]Write i2c OK [16:14:38]MH_I2C_Read... [16:14:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:38]Read from MH i2c: E2 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: E2 03 00 [16:14:38]MH_I2C_Read... [16:14:38]Read from MH i2c: E2 03 00 53 11 00 90 00 D8 [16:14:38]RAPDU: 90 00 [16:14:38]wFMCommunicate OK [16:14:38]wFMCommunicate request_size=255 [16:14:38]MH_SAM_APDU [16:14: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 6E 72 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 5F 02 00 35 04 06 00 50 [16:14:39]Write to MH i2c: E2 02 01 54 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 6E 72 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 5F 02 00 35 04 06 00 50 00 00 1F [16:14:39]Write i2c OK [16:14:39]MH_I2C_Read... [16:14:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:39]Read from MH i2c: E2 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 03 00 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 03 00 54 11 00 90 00 D9 [16:14:39]RAPDU: 90 00 [16:14:39]wFMCommunicate OK [16:14:39]wFMCommunicate request_size=10 [16:14:39]MH_SAM_APDU [16:14:39]CAPDU: 80 0D 02 02 05 8C 6D 2F 75 32 [16:14:39]Write to MH i2c: E2 0D 00 55 11 80 0D 02 02 05 00 8C 6D 2F 75 32 00 00 B9 [16:14:39]Write i2c OK [16:14:39]MH_I2C_Read... [16:14:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:39]Read from MH i2c: E2 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 03 00 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 03 00 55 11 00 90 00 DA [16:14:39]RAPDU: 90 00 [16:14:39]wFMCommunicate OK [16:14:39]wFMCommunicate request_size=4 [16:14:39]MH_SAM_APDU [16:14:39]CAPDU: 80 0D 03 02 [16:14:39]Write to MH i2c: E2 08 00 56 11 80 0D 03 02 00 00 00 00 E2 [16:14:39]Write i2c OK [16:14:39]MH_I2C_Read... [16:14:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:39]Read from MH i2c: E2 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 0B 00 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 0B 00 56 11 00 AD D2 1A D6 A3 BE CD C8 90 00 48 [16:14:39]RAPDU: AD D2 1A D6 A3 BE CD C8 90 00 [16:14:39]wFMCommunicate OK [16:14:39]SAM_PROTO_SignData done [16:14:39]FM_MakeSignedData done [16:14:39]CreateOFDProtocolMessage [16:14:39]wFMCommunicate request_size=4 [16:14:39]MH_SAM_APDU [16:14:39]CAPDU: 80 11 00 00 [16:14:39]Write to MH i2c: E2 08 00 57 11 80 11 00 00 00 00 00 00 E2 [16:14:39]Write i2c OK [16:14:39]MH_I2C_Read... [16:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:39]Read from MH i2c: E2 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 17 00 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: E2 17 00 57 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 37 [16:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:14:39]wFMCommunicate OK [16:14:39]CreateOFDProtocolMessage done [16:14:39]OFDSenderStorePacket 155602 [16:14:39]StoreOFDPacket docnum=155602 [16:14:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E9 AA 07 01 9C 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 6E 72 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 5F 02 00 35 04 06 00 50 8C 6D 2F 75 32 AD D2 1A D6 A3 BE CD C8 [16:14:39]CheckFolder [16:14:39]dirname=/storage/ofd_packets [16:14:39]CheckFolder done [16:14:39]ProducePacketName [16:14:39]name=ofd_packets/00155602 [16:14:39]NVStorageSaveData ofd_packets/00155602 [16:14:39]File name is /storage/ofd_packets/00155602 [16:14:39]Write 301 bytes [16:14:39]NVStorageSaveData done [16:14:39]OFDSenderStorePacket done [16:14:39]KKMCreateOFDPacket done [16:14:39]NVStorageSaveData kkm_last_timestamp [16:14:39]File name is /storage/kkm_last_timestamp [16:14:39]Write 4 bytes [16:14:39]NVStorageSaveData done [16:14:39]ExternCall_PrintAddStr [16:14:39]wPrintStart [16:14:39]Write to MH i2c: 01 00 00 58 11 69 [16:14:39]Write i2c OK [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: 01 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: 01 07 00 [16:14:39]MH_I2C_Read... [16:14:39]Read from MH i2c: 01 07 00 58 11 00 00 00 00 00 FF 0F 7E [16:14:39]RasterBufferAndPrint [16:14:39]line Счет N : (1)98407 [16:14:39]line ИНН: 02508201610067 [16:14:39]line Контрольно-Кассовый Чек [16:14:39]line ПРОДАЖА [16:14:39]line ТРК (МРК, ГНК) : 21 [16:14:39]line Товар: 2710124130 [16:14:39]line Аи-92-К-5 [16:14:39]line 5.980 * 66.90 [16:14:39]line = 400.06 [16:14:39]line НДС 12% НСП 1% [16:14:39]line > о реализуемом товаре [16:14:39]line ОКРУГЛЕНИЕ: -0.06 [16:14:39]line ИТОГО: 400.00 [16:14:39]line Внесено: 400.00 [16:14:39]line СДАЧА: 0.00 [16:14:39]line НСП 1% : 3.54 [16:14:39]line НДС 12% : 42.48 [16:14:39]line Наличными: 400.00 [16:14:39]line Безнал.: 0.00 [16:14:39]line Место: АЗС № 143 "Партнер Нефть" [16:14:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:14:39]line СНО: Общий режим [16:14:39]line Чек 227 24.10.2024 16:14 [16:14:39]line Смена: 534 ФФД: 1.0 [16:14:39]line ЗНМ: 0300000096 [16:14:39]line РНМ: 0000000000091693 [16:14:39]line Версия ККМ: 001 [16:14:39]line ФМ: 0000000000871792 [16:14:39]line ФД: 155602 [16:14:39]line ФПД: 88564057470258 [16:14:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161438&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155602&fm=88564057470258&tin=02508201610067®Number=0000000000091693&sum=40000 [16:14:39]OFD Sender: Processing packet 155602 [packets to send 31, broken 30] [16:14:39]ProducePacketName [16:14:39]name=ofd_packets/00155602 [16:14:39]OFD Sender: To server: pG, [16:14:39]CommunicateWithHost lk.salyk.kg:30040 [16:14:39]ConnectInit lk.salyk.kg [16:14:39]written 0, free lines is 4095 [16:14:39]Connected sock=10 [16:14:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E9 AA 07 01 9C 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 6E 72 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 5F 02 00 35 04 06 00 50 8C 6D 2F 75 32 AD D2 1A D6 A3 BE CD C8 [16:14: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 39 32 4F 00 00 00 0B B8 47 00 83 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 39 32 10 04 04 00 D2 5F 02 00 F4 03 04 00 E6 17 1A 67 B6 04 01 00 00 70 A1 9C 37 18 0D E0 3E [16:14:40]CommunicateWithHost err = 0 [16:14:40]CheckOFDResponse [16:14:40]1017 (14) - 77093643461234 [16:14:40]1041 (16) - 0000000000871792 [16:14:40]1040 (4) - 155602 [16:14:40]1012 (4) - 24.10.2024 09:48 [16:14:40]1206 (1) - 0 [16:14:40]OFD Sender: Remove packet 155602 [16:14:40]ProducePacketName [16:14:40]name=ofd_packets/00155602 [16:14:40]NVStorageDeleteData [16:14:40]Write to MH i2c: 01 00 00 83 11 94 [16:14:40]Write i2c OK [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: 01 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: 01 07 00 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: 01 07 00 83 11 00 00 00 00 00 E9 0C 90 [16:14:40]RasterBufferAndPrint [16:14:40]line [16:14:40]line [16:14:40]line [16:14:40]line [16:14:40]line [16:14:40]written 0, free lines is 3311 [16:14:40]process_action close_receipt done [16:14:40]requested_data is exist [16:14:40]produce_requested_data [16:14:40]requested_item fm.sn is exist - process it [16:14:40]wFMCommunicate request_size=4 [16:14:40]MH_SAM_APDU [16:14:40]CAPDU: 80 11 00 00 [16:14:40]Write to MH i2c: E2 08 00 8A 11 80 11 00 00 00 00 00 00 15 [16:14:40]Write i2c OK [16:14:40]MH_I2C_Read... [16:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:40]Read from MH i2c: E2 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 17 00 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 17 00 8A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6A [16:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:14:40]wFMCommunicate OK [16:14:40]requested_item fd.num is exist - process it [16:14:40]SAM_PROTO_GetFieldsCounters [16:14:40]wFMCommunicate request_size=4 [16:14:40]MH_SAM_APDU [16:14:40]CAPDU: 80 13 00 00 [16:14:40]Write to MH i2c: E2 08 00 8B 11 80 13 00 00 00 00 00 00 18 [16:14:40]Write i2c OK [16:14:40]MH_I2C_Read... [16:14:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:40]Read from MH i2c: E2 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 62 00 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 62 00 8B 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D2 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [16:14: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D2 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:14:40]wFMCommunicate OK [16:14:40]SAM_PROTO_GetFieldsCounters done [16:14:40]requested_item shift.num is exist - process it [16:14:40]requested_item shift.opened is exist - process it [16:14:40]req_shift_opened [16:14:40]FM_GetShiftState [16:14:40]SAM_PROTO_GetShiftState [16:14:40]wFMCommunicate request_size=4 [16:14:40]MH_SAM_APDU [16:14:40]CAPDU: 80 13 01 00 [16:14:40]Write to MH i2c: E2 08 00 8C 11 80 13 01 00 00 00 00 00 1A [16:14:40]Write i2c OK [16:14:40]MH_I2C_Read... [16:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:40]Read from MH i2c: E2 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 0E 00 [16:14:40]MH_I2C_Read... [16:14:40]Read from MH i2c: E2 0E 00 8C 11 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 67 [16:14:40]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:14:40]wFMCommunicate OK [16:14:40]SAM_PROTO_GetShiftState done [16:14:40]FM_GetShiftState done [16:14:40]req_shift_opened done [16:14:40]requested_item shift.open_date is exist - process it [16:14:40]req_shift_open_date [16:14:40]req_shift_open_date done [16:14:40]produce_requested_data done [16:14:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155602,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:14:40]process_action_free close_receipt [16:14:40]json_value_free [16:14:40]json_value_free done [16:14:40]process_json_proto returns [16:14:40]Send response to host [16:14:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155602,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:14:40]free response buf [16:14:40]execute_script done [16:14:40]execute_script returns [16:14:40]free content buf [16:14:40]Sock 8.Close socket [16:14:40]Sock 8.Thread stoped [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:00]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:30]OFD Sender: No OFD packet to send [16:15:35]OFD Sender: No OFD packet to send [16:15:40]OFD Sender: No OFD packet to send [16:15:45]OFD Sender: No OFD packet to send [16:15:50]OFD Sender: No OFD packet to send [16:15:55]OFD Sender: No OFD packet to send [16:16:00]OFD Sender: No OFD packet to send [16:16:05]OFD Sender: No OFD packet to send [16:16:10]OFD Sender: No OFD packet to send [16:16:15]OFD Sender: No OFD packet to send [16:16:20]OFD Sender: No OFD packet to send [16:16:25]OFD Sender: No OFD packet to send [16:16:30]OFD Sender: No OFD packet to send [16:16:35]OFD Sender: No OFD packet to send [16:16:40]OFD Sender: No OFD packet to send [16:16:45]OFD Sender: No OFD packet to send [16:16:50]OFD Sender: No OFD packet to send [16:16:51]accept exits with 9 [16:16:51]New connection [16:16:51]New thread 3066781028 created [16:16:51]Thread 3066637668 joined [16:16:51]Waiting for new connection... [16:16:51] Sock 9.Parse request [16:16:51]Sock 9.Check first char [16:16:51]Sock 9.First char is OK [16:16:51]request: POST /json_proto HTTP/1.0 [16:16:51]Method: POST [16:16:51]URL: /json_proto [16:16:51]Method is POST - this is cgi request [16:16:51]url: /json_proto [16:16:51]query_string will be loaded in cgi processing [16:16:51]execute_cgi json_proto POST (null) [16:16:51]execute_cgi path=json_proto method=POST [16:16:51]POST find Content-Length [16:16:51]Host: 172.17.63.3:8080 [16:16:51]Content-Length: 673 [16:16:51]Content-Type: application/json [16:16:51] [16:16:51]POST finish read [16:16:51]Found Content-Length = 673 [16:16:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\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:16:51]execute_script... [16:16:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\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:16:51]POST & json_proto [16:16:51]process_json_proto [16:16:51]json parsed OK: [16:16:51]protocol is kg_v1.0 [16:16:51]action value=close_receipt [16:16:51]process_action close_receipt [16:16:51]cmd_close_receipt [16:16:51]MH_GetDate [16:16:51]Write to MH i2c: F0 00 00 8D 11 8D [16:16:51]Write i2c OK [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: F0 [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: F0 09 00 [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: F0 09 00 8D 11 00 F4 72 1A 67 50 D1 6C 64 6E [16:16:51]GetLastDocTimeStamp 1729786478 [16:16:51]current date 1729786612 [16:16:51]FM_GetShiftState [16:16:51]SAM_PROTO_GetShiftState [16:16:51]wFMCommunicate request_size=4 [16:16:51]MH_SAM_APDU [16:16:51]CAPDU: 80 13 01 00 [16:16:51]Write to MH i2c: E2 08 00 8E 11 80 13 01 00 00 00 00 00 1C [16:16:51]Write i2c OK [16:16:51]MH_I2C_Read... [16:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:51]Read from MH i2c: E2 [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: E2 0E 00 [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: E2 0E 00 8E 11 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 69 [16:16:51]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:16:51]wFMCommunicate OK [16:16:51]SAM_PROTO_GetShiftState done [16:16:51]FM_GetShiftState done [16:16:51]opened in 1729729836 [16:16:51]opened+sec_in_day 1729816236 [16:16:51]quantity*price = 70027 [16:16:51]sum+1 = 70029 [16:16:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 228 24.10.2024 16:16 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155603 ФПД: 218749318175667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161652&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155603&fm=218749318175667&tin=02508201610067®Number=0000000000091693&sum=70000 [16:16:52]StoreToDocumentArchive [16:16:52]shift 534 fd 155603 [16:16:52]save to /storage/0534/doc_00155603 [16:16:52]save last doc name /storage/0534/doc_00155603 to /storage/kkm_last_doc_name [16:16:52]save OK [16:16:52]Clear old archive folders... [16:16:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:16:52]tlvbuf is 01F95E40 [16:16:52]SAM_PROTO_ClearQueue [16:16:52]wFMCommunicate request_size=4 [16:16:52]MH_SAM_APDU [16:16:52]CAPDU: 80 09 00 00 [16:16:52]Write to MH i2c: E2 08 00 9B 11 80 09 00 00 00 00 00 00 1E [16:16:52]Write i2c OK [16:16:52]MH_I2C_Read... [16:16:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:52]Read from MH i2c: E2 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: E2 03 00 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: E2 03 00 9B 11 00 90 00 20 [16:16:52]RAPDU: 90 00 [16:16:52]wFMCommunicate OK [16:16:52]SAM_PROTO_ClearQueue done [16:16:52]KKMCreateOFDPacket [16:16:52]OFDProtocolAddRootSTLVToBuf [16:16:52]FM_MakeSignedData [16:16:52]FM_MakeSignedData [16:16:52]SAM_PROTO_SignData [16:16:52]wFMCommunicate request_size=4 [16:16:52]MH_SAM_APDU [16:16:52]CAPDU: 80 0D 01 02 [16:16:52]Write to MH i2c: E2 08 00 9C 11 80 0D 01 02 00 00 00 00 26 [16:16:52]Write i2c OK [16:16:52]MH_I2C_Read... [16:16:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:52]Read from MH i2c: E2 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: E2 03 00 [16:16:52]MH_I2C_Read... [16:16:52]Read from MH i2c: E2 03 00 9C 11 00 90 00 21 [16:16:52]RAPDU: 90 00 [16:16:52]wFMCommunicate OK [16:16:52]wFMCommunicate request_size=255 [16:16:52]MH_SAM_APDU [16:16:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 E4 00 00 00 F4 03 04 00 F4 72 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 5F 02 00 35 04 06 00 C6 F3 8B 67 [16:16:52]Write to MH i2c: E2 02 01 9D 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E4 00 00 00 F4 03 04 00 F4 72 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 5F 02 00 35 04 06 00 C6 F3 8B 67 00 00 6E [16:16:52]Write i2c OK [16:16:52]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 9D 11 00 90 00 22 [16:16:53]RAPDU: 90 00 [16:16:53]wFMCommunicate OK [16:16:53]wFMCommunicate request_size=7 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 0D 02 02 02 9B B3 [16:16:53]Write to MH i2c: E2 0A 00 9E 11 80 0D 02 02 02 00 9B B3 00 00 7B [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 03 00 9E 11 00 90 00 23 [16:16:53]RAPDU: 90 00 [16:16:53]wFMCommunicate OK [16:16:53]wFMCommunicate request_size=4 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 0D 03 02 [16:16:53]Write to MH i2c: E2 08 00 9F 11 80 0D 03 02 00 00 00 00 2B [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 0B 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 0B 00 9F 11 00 06 DE 9E D7 AE 59 A5 EF 90 00 20 [16:16:53]RAPDU: 06 DE 9E D7 AE 59 A5 EF 90 00 [16:16:53]wFMCommunicate OK [16:16:53]SAM_PROTO_SignData done [16:16:53]FM_MakeSignedData done [16:16:53]CreateOFDProtocolMessage [16:16:53]wFMCommunicate request_size=4 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 11 00 00 [16:16:53]Write to MH i2c: E2 08 00 A0 11 80 11 00 00 00 00 00 00 2B [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:53]Read from MH i2c: E2 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 17 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: E2 17 00 A0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 80 [16:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:16:53]wFMCommunicate OK [16:16:53]CreateOFDProtocolMessage done [16:16:53]OFDSenderStorePacket 155603 [16:16:53]StoreOFDPacket docnum=155603 [16:16:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 BD 5E 04 01 89 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E4 00 00 00 F4 03 04 00 F4 72 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 5F 02 00 35 04 06 00 C6 F3 8B 67 9B B3 06 DE 9E D7 AE 59 A5 EF [16:16:53]CheckFolder [16:16:53]dirname=/storage/ofd_packets [16:16:53]CheckFolder done [16:16:53]ProducePacketName [16:16:53]name=ofd_packets/00155603 [16:16:53]NVStorageSaveData ofd_packets/00155603 [16:16:53]File name is /storage/ofd_packets/00155603 [16:16:53]Write 298 bytes [16:16:53]NVStorageSaveData done [16:16:53]OFDSenderStorePacket done [16:16:53]KKMCreateOFDPacket done [16:16:53]NVStorageSaveData kkm_last_timestamp [16:16:53]File name is /storage/kkm_last_timestamp [16:16:53]Write 4 bytes [16:16:53]NVStorageSaveData done [16:16:53]ExternCall_PrintAddStr [16:16:53]wPrintStart [16:16:53]Write to MH i2c: 01 00 00 A1 11 B2 [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: 01 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: 01 07 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: 01 07 00 A1 11 00 00 00 00 00 FF 0F C7 [16:16:53]RasterBufferAndPrint [16:16:53]line Счет N : (1)98409 [16:16:53]line ИНН: 02508201610067 [16:16:53]line Контрольно-Кассовый Чек [16:16:53]line ПРОДАЖА [16:16:53]line ТРК (МРК, ГНК) : 32 [16:16:53]line Товар: 2710194210 [16:16:53]line ДТ-К-5 [16:16:53]line 9.190 * 76.20 [16:16:53]line = 700.28 [16:16:53]line НДС 12% НСП 1% [16:16:53]line > о реализуемом товаре [16:16:53]line ОКРУГЛЕНИЕ: -0.28 [16:16:53]line ИТОГО: 700.00 [16:16:53]line Внесено: 700.00 [16:16:53]line СДАЧА: 0.00 [16:16:53]line НСП 1% : 6.20 [16:16:53]line НДС 12% : 74.37 [16:16:53]line Наличными: 700.00 [16:16:53]line Безнал.: 0.00 [16:16:53]line Место: АЗС № 143 "Партнер Нефть" [16:16:53]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:16:53]line СНО: Общий режим [16:16:53]line Чек 228 24.10.2024 16:16 [16:16:53]line Смена: 534 ФФД: 1.0 [16:16:53]line ЗНМ: 0300000096 [16:16:53]line РНМ: 0000000000091693 [16:16:53]line Версия ККМ: 001 [16:16:53]line ФМ: 0000000000871792 [16:16:53]line ФД: 155603 [16:16:53]line ФПД: 218749318175667 [16:16:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T161652&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155603&fm=218749318175667&tin=02508201610067®Number=0000000000091693&sum=70000 [16:16:53]OFD Sender: Processing packet 155603 [packets to send 31, broken 30] [16:16:53]ProducePacketName [16:16:53]name=ofd_packets/00155603 [16:16:53]OFD Sender: To server: pG, [16:16:53]CommunicateWithHost lk.salyk.kg:30040 [16:16:53]ConnectInit lk.salyk.kg [16:16:53]written 0, free lines is 4095 [16:16:53]Connected sock=10 [16:16:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 BD 5E 04 01 89 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E4 00 00 00 F4 03 04 00 F4 72 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 5F 02 00 35 04 06 00 C6 F3 8B 67 9B B3 06 DE 9E D7 AE 59 A5 EF [16:16:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 38 D2 47 00 14 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 5F 02 00 F4 03 04 00 6C 18 1A 67 B6 04 01 00 00 19 77 62 26 39 09 6B 0E [16:16:53]CommunicateWithHost err = 0 [16:16:53]CheckOFDResponse [16:16:53]1017 (14) - 77093643461234 [16:16:53]1041 (16) - 0000000000871792 [16:16:53]1040 (4) - 155603 [16:16:53]1012 (4) - 24.10.2024 09:50 [16:16:53]1206 (1) - 0 [16:16:53]OFD Sender: Remove packet 155603 [16:16:53]ProducePacketName [16:16:53]name=ofd_packets/00155603 [16:16:53]NVStorageDeleteData [16:16:53]Write to MH i2c: 01 00 00 CC 11 DD [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: 01 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: 01 07 00 [16:16:53]MH_I2C_Read... [16:16:53]Read from MH i2c: 01 07 00 CC 11 00 00 00 00 00 ED 0C DD [16:16:53]RasterBufferAndPrint [16:16:53]line [16:16:53]line [16:16:53]line [16:16:53]line [16:16:53]line [16:16:53]written 0, free lines is 3315 [16:16:53]process_action close_receipt done [16:16:53]requested_data is exist [16:16:53]produce_requested_data [16:16:53]requested_item fm.sn is exist - process it [16:16:53]wFMCommunicate request_size=4 [16:16:53]MH_SAM_APDU [16:16:53]CAPDU: 80 11 00 00 [16:16:53]Write to MH i2c: E2 08 00 D3 11 80 11 00 00 00 00 00 00 5E [16:16:53]Write i2c OK [16:16:53]MH_I2C_Read... [16:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:54]Read from MH i2c: E2 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 17 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 17 00 D3 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B3 [16:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:16:54]wFMCommunicate OK [16:16:54]requested_item fd.num is exist - process it [16:16:54]SAM_PROTO_GetFieldsCounters [16:16:54]wFMCommunicate request_size=4 [16:16:54]MH_SAM_APDU [16:16:54]CAPDU: 80 13 00 00 [16:16:54]Write to MH i2c: E2 08 00 D4 11 80 13 00 00 00 00 00 00 61 [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:54]Read from MH i2c: E2 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 62 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 62 00 D4 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D3 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [16:16: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D3 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:54]wFMCommunicate OK [16:16:54]SAM_PROTO_GetFieldsCounters done [16:16:54]requested_item shift.num is exist - process it [16:16:54]requested_item shift.opened is exist - process it [16:16:54]req_shift_opened [16:16:54]FM_GetShiftState [16:16:54]SAM_PROTO_GetShiftState [16:16:54]wFMCommunicate request_size=4 [16:16:54]MH_SAM_APDU [16:16:54]CAPDU: 80 13 01 00 [16:16:54]Write to MH i2c: E2 08 00 D5 11 80 13 01 00 00 00 00 00 63 [16:16:54]Write i2c OK [16:16:54]MH_I2C_Read... [16:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:54]Read from MH i2c: E2 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 0E 00 [16:16:54]MH_I2C_Read... [16:16:54]Read from MH i2c: E2 0E 00 D5 11 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 B0 [16:16:54]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:16:54]wFMCommunicate OK [16:16:54]SAM_PROTO_GetShiftState done [16:16:54]FM_GetShiftState done [16:16:54]req_shift_opened done [16:16:54]requested_item shift.open_date is exist - process it [16:16:54]req_shift_open_date [16:16:54]req_shift_open_date done [16:16:54]produce_requested_data done [16:16:54]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155603,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:16:54]process_action_free close_receipt [16:16:54]json_value_free [16:16:54]json_value_free done [16:16:54]process_json_proto returns [16:16:54]Send response to host [16:16:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155603,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:16:54]free response buf [16:16:54]execute_script done [16:16:54]execute_script returns [16:16:54]free content buf [16:16:54]Sock 9.Close socket [16:16:54]Sock 9.Thread stoped [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:01]accept exits with 8 [16:24:01]New connection [16:24:01]New thread 3066637668 created [16:24:01]Thread 3066781028 joined [16:24:01]Waiting for new connection... [16:24:01] Sock 8.Parse request [16:24:01]Sock 8.Check first char [16:24:01]Sock 8.First char is OK [16:24:01]request: POST /json_proto HTTP/1.0 [16:24:01]Method: POST [16:24:01]URL: /json_proto [16:24:01]Method is POST - this is cgi request [16:24:01]url: /json_proto [16:24:01]query_string will be loaded in cgi processing [16:24:01]execute_cgi json_proto POST (null) [16:24:01]execute_cgi path=json_proto method=POST [16:24:01]POST find Content-Length [16:24:01]Host: 172.17.63.3:8080 [16:24:01]Content-Length: 765 [16:24:01]Content-Type: application/json [16:24:01] [16:24:01]POST finish read [16:24:01]Found Content-Length = 765 [16:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 150.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:01]execute_script... [16: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)98410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 150.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:01]POST & json_proto [16:24:01]process_json_proto [16:24:01]json parsed OK: [16:24:01]protocol is kg_v1.0 [16:24:01]action value=close_receipt [16:24:01]process_action close_receipt [16:24:01]cmd_close_receipt [16:24:01]MH_GetDate [16:24:01]Write to MH i2c: F0 00 00 D6 11 D6 [16:24:01]Write i2c OK [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: F0 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: F0 09 00 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: F0 09 00 D6 11 00 A1 74 1A 67 50 D1 6C 64 66 [16:24:01]GetLastDocTimeStamp 1729786612 [16:24:01]current date 1729787041 [16:24:01]FM_GetShiftState [16:24:01]SAM_PROTO_GetShiftState [16:24:01]wFMCommunicate request_size=4 [16:24:01]MH_SAM_APDU [16:24:01]CAPDU: 80 13 01 00 [16:24:01]Write to MH i2c: E2 08 00 D7 11 80 13 01 00 00 00 00 00 65 [16:24:01]Write i2c OK [16:24:01]MH_I2C_Read... [16:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:01]Read from MH i2c: E2 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 0E 00 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 0E 00 D7 11 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 B2 [16:24:01]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:24:01]wFMCommunicate OK [16:24:01]SAM_PROTO_GetShiftState done [16:24:01]FM_GetShiftState done [16:24:01]opened in 1729729836 [16:24:01]opened+sec_in_day 1729816236 [16:24:01]quantity*price = 15052 [16:24:01]sum+1 = 15054 [16:24:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.53 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 0.00 Безнал.: 150.53 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 229 24.10.2024 16:24 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155604 ФПД: 202481432399754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162401&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155604&fm=202481432399754&tin=02508201610067®Number=0000000000091693&sum=15053 [16:24:02]StoreToDocumentArchive [16:24:02]shift 534 fd 155604 [16:24:02]save to /storage/0534/doc_00155604 [16:24:02]save last doc name /storage/0534/doc_00155604 to /storage/kkm_last_doc_name [16:24:02]save OK [16:24:02]Clear old archive folders... [16:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:02]tlvbuf is 01F602C0 [16:24:02]SAM_PROTO_ClearQueue [16:24:02]wFMCommunicate request_size=4 [16:24:02]MH_SAM_APDU [16:24:02]CAPDU: 80 09 00 00 [16:24:02]Write to MH i2c: E2 08 00 E4 11 80 09 00 00 00 00 00 00 67 [16:24:02]Write i2c OK [16:24:02]MH_I2C_Read... [16:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:02]Read from MH i2c: E2 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: E2 03 00 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: E2 03 00 E4 11 00 90 00 69 [16:24:02]RAPDU: 90 00 [16:24:02]wFMCommunicate OK [16:24:02]SAM_PROTO_ClearQueue done [16:24:02]KKMCreateOFDPacket [16:24:02]OFDProtocolAddRootSTLVToBuf [16:24:02]FM_MakeSignedData [16:24:02]FM_MakeSignedData [16:24:02]SAM_PROTO_SignData [16:24:02]wFMCommunicate request_size=4 [16:24:02]MH_SAM_APDU [16:24:02]CAPDU: 80 0D 01 02 [16:24:02]Write to MH i2c: E2 08 00 E5 11 80 0D 01 02 00 00 00 00 6F [16:24:02]Write i2c OK [16:24:02]MH_I2C_Read... [16:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:02]Read from MH i2c: E2 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: E2 03 00 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: E2 03 00 E5 11 00 90 00 6A [16:24:02]RAPDU: 90 00 [16:24:02]wFMCommunicate OK [16:24:02]wFMCommunicate request_size=255 [16:24:02]MH_SAM_APDU [16: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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 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 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 A1 74 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 5F 02 00 35 04 06 00 B8 [16:24:02]Write to MH i2c: E2 02 01 E6 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 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 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 A1 74 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 5F 02 00 35 04 06 00 B8 00 00 EA [16:24:02]Write i2c OK [16:24:02]MH_I2C_Read... [16:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:02]Read from MH i2c: E2 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: E2 03 00 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: E2 03 00 E6 11 00 90 00 6B [16:24:02]RAPDU: 90 00 [16:24:02]wFMCommunicate OK [16:24:02]wFMCommunicate request_size=10 [16:24:02]MH_SAM_APDU [16:24:02]CAPDU: 80 0D 02 02 05 27 E1 DA 0F 8A [16:24:02]Write to MH i2c: E2 0D 00 E7 11 80 0D 02 02 05 00 27 E1 DA 0F 8A 00 00 F7 [16:24:02]Write i2c OK [16:24:02]MH_I2C_Read... [16:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:02]Read from MH i2c: E2 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: E2 03 00 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: E2 03 00 E7 11 00 90 00 6C [16:24:02]RAPDU: 90 00 [16:24:02]wFMCommunicate OK [16:24:02]wFMCommunicate request_size=4 [16:24:02]MH_SAM_APDU [16:24:02]CAPDU: 80 0D 03 02 [16:24:02]Write to MH i2c: E2 08 00 E8 11 80 0D 03 02 00 00 00 00 74 [16:24:02]Write i2c OK [16:24:02]MH_I2C_Read... [16:24:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:02]Read from MH i2c: E2 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: E2 0B 00 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: E2 0B 00 E8 11 00 A5 31 BA A1 94 EE 15 60 90 00 9D [16:24:02]RAPDU: A5 31 BA A1 94 EE 15 60 90 00 [16:24:02]wFMCommunicate OK [16:24:02]SAM_PROTO_SignData done [16:24:02]FM_MakeSignedData done [16:24:02]CreateOFDProtocolMessage [16:24:02]wFMCommunicate request_size=4 [16:24:02]MH_SAM_APDU [16:24:02]CAPDU: 80 11 00 00 [16:24:02]Write to MH i2c: E2 08 00 E9 11 80 11 00 00 00 00 00 00 74 [16:24:02]Write i2c OK [16:24:02]MH_I2C_Read... [16:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:02]Read from MH i2c: E2 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: E2 17 00 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: E2 17 00 E9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C9 [16:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:24:02]wFMCommunicate OK [16:24:02]CreateOFDProtocolMessage done [16:24:02]OFDSenderStorePacket 155604 [16:24:02]StoreOFDPacket docnum=155604 [16:24:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A0 73 07 01 26 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 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 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 A1 74 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 5F 02 00 35 04 06 00 B8 27 E1 DA 0F 8A A5 31 BA A1 94 EE 15 60 [16:24:02]CheckFolder [16:24:02]dirname=/storage/ofd_packets [16:24:02]CheckFolder done [16:24:02]ProducePacketName [16:24:02]name=ofd_packets/00155604 [16:24:02]NVStorageSaveData ofd_packets/00155604 [16:24:02]File name is /storage/ofd_packets/00155604 [16:24:02]Write 301 bytes [16:24:02]NVStorageSaveData done [16:24:02]OFDSenderStorePacket done [16:24:02]KKMCreateOFDPacket done [16:24:02]NVStorageSaveData kkm_last_timestamp [16:24:02]File name is /storage/kkm_last_timestamp [16:24:02]Write 4 bytes [16:24:02]NVStorageSaveData done [16:24:02]ExternCall_PrintAddStr [16:24:02]wPrintStart [16:24:02]Write to MH i2c: 01 00 00 EA 11 FB [16:24:02]Write i2c OK [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: 01 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: 01 07 00 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: 01 07 00 EA 11 00 00 00 00 00 FF 0F 10 [16:24:02]RasterBufferAndPrint [16:24:02]line Счет N : (1)98410 [16:24:02]line ИНН: 02508201610067 [16:24:02]line Контрольно-Кассовый Чек [16:24:02]line ПРОДАЖА [16:24:02]line ТРК (МРК, ГНК) : 31 [16:24:02]line Товар: 2710124130 [16:24:02]line Аи-92-К-5 [16:24:02]line 2.250 * 66.90 [16:24:02]line = 150.53 [16:24:02]line НДС 12% НСП 1% [16:24:02]line > о реализуемом товаре [16:24:02]line ИТОГО: 150.53 [16:24:02]line НСП 1% : 1.33 [16:24:02]line НДС 12% : 15.98 [16:24:02]line Наличными: 0.00 [16:24:02]line Безнал.: 150.53 [16:24:02]line Место: АЗС № 143 "Партнер Нефть" [16:24:02]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:24:02]line СНО: Общий режим [16:24:02]line Чек 229 24.10.2024 16:24 [16:24:02]line Смена: 534 ФФД: 1.0 [16:24:02]line ЗНМ: 0300000096 [16:24:02]line РНМ: 0000000000091693 [16:24:02]line Версия ККМ: 001 [16:24:02]line Платежная система: Mbank [16:24:02]line ФМ: 0000000000871792 [16:24:02]line ФД: 155604 [16:24:02]line ФПД: 202481432399754 [16:24:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162401&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155604&fm=202481432399754&tin=02508201610067®Number=0000000000091693&sum=15053 [16:24:03]OFD Sender: Processing packet 155604 [packets to send 31, broken 30] [16:24:03]ProducePacketName [16:24:03]name=ofd_packets/00155604 [16:24:03]OFD Sender: To server: pG, [16:24:03]CommunicateWithHost lk.salyk.kg:30040 [16:24:03]ConnectInit lk.salyk.kg [16:24:03]written 0, free lines is 4095 [16:24:03]Connected sock=9 [16: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 39 32 0F 01 00 00 A0 73 07 01 26 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 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 00 00 00 00 00 00 39 04 06 00 CD 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 A1 74 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 5F 02 00 35 04 06 00 B8 27 E1 DA 0F 8A A5 31 BA A1 94 EE 15 60 [16:24:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 41 7F 47 00 66 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 39 32 10 04 04 00 D4 5F 02 00 F4 03 04 00 1A 1A 1A 67 B6 04 01 00 00 DB 96 11 08 D3 35 D1 41 [16:24:03]CommunicateWithHost err = 0 [16:24:03]CheckOFDResponse [16:24:03]1017 (14) - 77093643461234 [16:24:03]1041 (16) - 0000000000871792 [16:24:03]1040 (4) - 155604 [16:24:03]1012 (4) - 24.10.2024 09:57 [16:24:03]1206 (1) - 0 [16:24:03]OFD Sender: Remove packet 155604 [16:24:03]ProducePacketName [16:24:03]name=ofd_packets/00155604 [16:24:03]NVStorageDeleteData [16:24:03]Write to MH i2c: 01 00 00 13 12 25 [16:24:03]Write i2c OK [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: 01 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: 01 07 00 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: 01 07 00 13 12 00 00 00 00 00 0A 0D 43 [16:24:03]RasterBufferAndPrint [16:24:03]line [16:24:03]line [16:24:03]line [16:24:03]line [16:24:03]line [16:24:03]written 0, free lines is 3345 [16:24:03]process_action close_receipt done [16:24:03]requested_data is exist [16:24:03]produce_requested_data [16:24:03]requested_item fm.sn is exist - process it [16:24:03]wFMCommunicate request_size=4 [16:24:03]MH_SAM_APDU [16:24:03]CAPDU: 80 11 00 00 [16:24:03]Write to MH i2c: E2 08 00 1A 12 80 11 00 00 00 00 00 00 A6 [16:24:03]Write i2c OK [16:24:03]MH_I2C_Read... [16:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:03]Read from MH i2c: E2 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: E2 17 00 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: E2 17 00 1A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FB [16:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:24:03]wFMCommunicate OK [16:24:03]requested_item fd.num is exist - process it [16:24:03]SAM_PROTO_GetFieldsCounters [16:24:03]wFMCommunicate request_size=4 [16:24:03]MH_SAM_APDU [16:24:03]CAPDU: 80 13 00 00 [16:24:03]Write to MH i2c: E2 08 00 1B 12 80 13 00 00 00 00 00 00 A9 [16:24:03]Write i2c OK [16:24:03]MH_I2C_Read... [16:24:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:03]Read from MH i2c: E2 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: E2 62 00 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: E2 62 00 1B 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D4 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [16:24:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D4 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:03]wFMCommunicate OK [16:24:03]SAM_PROTO_GetFieldsCounters done [16:24:03]requested_item shift.num is exist - process it [16:24:03]requested_item shift.opened is exist - process it [16:24:03]req_shift_opened [16:24:03]FM_GetShiftState [16:24:03]SAM_PROTO_GetShiftState [16:24:03]wFMCommunicate request_size=4 [16:24:03]MH_SAM_APDU [16:24:03]CAPDU: 80 13 01 00 [16:24:03]Write to MH i2c: E2 08 00 1C 12 80 13 01 00 00 00 00 00 AB [16:24:03]Write i2c OK [16:24:03]MH_I2C_Read... [16:24:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:03]Read from MH i2c: E2 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: E2 0E 00 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: E2 0E 00 1C 12 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F8 [16:24:03]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:24:03]wFMCommunicate OK [16:24:03]SAM_PROTO_GetShiftState done [16:24:03]FM_GetShiftState done [16:24:03]req_shift_opened done [16:24:03]requested_item shift.open_date is exist - process it [16:24:03]req_shift_open_date [16:24:03]req_shift_open_date done [16:24:03]produce_requested_data done [16:24:03]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155604,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:24:03]process_action_free close_receipt [16:24:03]json_value_free [16:24:03]json_value_free done [16:24:03]process_json_proto returns [16:24:03]Send response to host [16:24:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155604,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:24:03]free response buf [16:24:03]execute_script done [16:24:03]execute_script returns [16:24:03]free content buf [16:24:03]Sock 8.Close socket [16:24:03]Sock 8.Thread stoped [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:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:24:59]accept exits with 10 [16:24:59]New connection [16:24:59]New thread 3066781028 created [16:24:59]Thread 3066637668 joined [16:24:59]Waiting for new connection... [16:24:59] Sock 10.Parse request [16:24:59]Sock 10.Check first char [16:24:59]Sock 10.First char is OK [16:24:59]request: POST /json_proto HTTP/1.0 [16:24:59]Method: POST [16:24:59]URL: /json_proto [16:24:59]Method is POST - this is cgi request [16:24:59]url: /json_proto [16:24:59]query_string will be loaded in cgi processing [16:24:59]execute_cgi json_proto POST (null) [16:24:59]execute_cgi path=json_proto method=POST [16:24:59]POST find Content-Length [16:24:59]Host: 172.17.63.3:8080 [16:24:59]Content-Length: 676 [16:24:59]Content-Type: application/json [16:24:59] [16:24:59]POST finish read [16:24:59]Found Content-Length = 676 [16:24:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:59]execute_script... [16:24: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)98411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:59]POST & json_proto [16:24:59]process_json_proto [16:24:59]json parsed OK: [16:24:59]protocol is kg_v1.0 [16:24:59]action value=close_receipt [16:24:59]process_action close_receipt [16:24:59]cmd_close_receipt [16:24:59]MH_GetDate [16:24:59]Write to MH i2c: F0 00 00 1D 12 1E [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: F0 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: F0 09 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: F0 09 00 1D 12 00 DC 74 1A 67 50 D1 6C 64 E9 [16:24:59]GetLastDocTimeStamp 1729787041 [16:24:59]current date 1729787100 [16:24:59]FM_GetShiftState [16:24:59]SAM_PROTO_GetShiftState [16:24:59]wFMCommunicate request_size=4 [16:24:59]MH_SAM_APDU [16:24:59]CAPDU: 80 13 01 00 [16:24:59]Write to MH i2c: E2 08 00 1E 12 80 13 01 00 00 00 00 00 AD [16:24:59]Write i2c OK [16:24:59]MH_I2C_Read... [16:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:59]Read from MH i2c: E2 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 0E 00 [16:24:59]MH_I2C_Read... [16:24:59]Read from MH i2c: E2 0E 00 1E 12 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 FA [16:24:59]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:24:59]wFMCommunicate OK [16:24:59]SAM_PROTO_GetShiftState done [16:24:59]FM_GetShiftState done [16:24:59]opened in 1729729836 [16:24:59]opened+sec_in_day 1729816236 [16:24:59]quantity*price = 50041 [16:24:59]sum+1 = 50042 [16:24:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 230 24.10.2024 16:25 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155605 ФПД: 128732847935567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162500&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155605&fm=128732847935567&tin=02508201610067®Number=0000000000091693&sum=50000 [16:25:01]StoreToDocumentArchive [16:25:01]shift 534 fd 155605 [16:25:01]save to /storage/0534/doc_00155605 [16:25:01]save last doc name /storage/0534/doc_00155605 to /storage/kkm_last_doc_name [16:25:01]save OK [16:25:01]Clear old archive folders... [16:25:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:01]tlvbuf is 01F60B80 [16:25:01]SAM_PROTO_ClearQueue [16:25:01]wFMCommunicate request_size=4 [16:25:01]MH_SAM_APDU [16:25:01]CAPDU: 80 09 00 00 [16:25:01]Write to MH i2c: E2 08 00 2B 12 80 09 00 00 00 00 00 00 AF [16:25:01]Write i2c OK [16:25:01]MH_I2C_Read... [16:25:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:01]Read from MH i2c: E2 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: E2 03 00 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: E2 03 00 2B 12 00 90 00 B1 [16:25:01]RAPDU: 90 00 [16:25:01]wFMCommunicate OK [16:25:01]SAM_PROTO_ClearQueue done [16:25:01]KKMCreateOFDPacket [16:25:01]OFDProtocolAddRootSTLVToBuf [16:25:01]FM_MakeSignedData [16:25:01]FM_MakeSignedData [16:25:01]SAM_PROTO_SignData [16:25:01]wFMCommunicate request_size=4 [16:25:01]MH_SAM_APDU [16:25:01]CAPDU: 80 0D 01 02 [16:25:01]Write to MH i2c: E2 08 00 2C 12 80 0D 01 02 00 00 00 00 B7 [16:25:01]Write i2c OK [16:25:01]MH_I2C_Read... [16:25:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:01]Read from MH i2c: E2 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: E2 03 00 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: E2 03 00 2C 12 00 90 00 B2 [16:25:01]RAPDU: 90 00 [16:25:01]wFMCommunicate OK [16:25:01]wFMCommunicate request_size=255 [16:25:01]MH_SAM_APDU [16:25: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 DC 74 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 5F 02 00 35 04 06 00 75 [16:25:01]Write to MH i2c: E2 02 01 2D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 DC 74 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 5F 02 00 35 04 06 00 75 00 00 C5 [16:25:01]Write i2c OK [16:25:01]MH_I2C_Read... [16:25:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:01]Read from MH i2c: E2 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: E2 03 00 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: E2 03 00 2D 12 00 90 00 B3 [16:25:01]RAPDU: 90 00 [16:25:01]wFMCommunicate OK [16:25:01]wFMCommunicate request_size=10 [16:25:01]MH_SAM_APDU [16:25:01]CAPDU: 80 0D 02 02 05 14 F3 AC 10 4F [16:25:01]Write to MH i2c: E2 0D 00 2E 12 80 0D 02 02 05 00 14 F3 AC 10 4F 00 00 D6 [16:25:01]Write i2c OK [16:25:01]MH_I2C_Read... [16:25:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:01]Read from MH i2c: E2 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: E2 03 00 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: E2 03 00 2E 12 00 90 00 B4 [16:25:01]RAPDU: 90 00 [16:25:01]wFMCommunicate OK [16:25:01]wFMCommunicate request_size=4 [16:25:01]MH_SAM_APDU [16:25:01]CAPDU: 80 0D 03 02 [16:25:01]Write to MH i2c: E2 08 00 2F 12 80 0D 03 02 00 00 00 00 BC [16:25:01]Write i2c OK [16:25:01]MH_I2C_Read... [16:25:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:01]Read from MH i2c: E2 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: E2 0B 00 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: E2 0B 00 2F 12 00 90 FD B3 45 66 C3 81 13 90 00 FF [16:25:01]RAPDU: 90 FD B3 45 66 C3 81 13 90 00 [16:25:01]wFMCommunicate OK [16:25:01]SAM_PROTO_SignData done [16:25:01]FM_MakeSignedData done [16:25:01]CreateOFDProtocolMessage [16:25:01]wFMCommunicate request_size=4 [16:25:01]MH_SAM_APDU [16:25:01]CAPDU: 80 11 00 00 [16:25:01]Write to MH i2c: E2 08 00 30 12 80 11 00 00 00 00 00 00 BC [16:25:01]Write i2c OK [16:25:01]MH_I2C_Read... [16:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:01]Read from MH i2c: E2 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: E2 17 00 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: E2 17 00 30 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 11 [16:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:25:01]wFMCommunicate OK [16:25:01]CreateOFDProtocolMessage done [16:25:01]OFDSenderStorePacket 155605 [16:25:01]StoreOFDPacket docnum=155605 [16:25:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 24 62 07 01 49 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 DC 74 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 5F 02 00 35 04 06 00 75 14 F3 AC 10 4F 90 FD B3 45 66 C3 81 13 [16:25:01]CheckFolder [16:25:01]dirname=/storage/ofd_packets [16:25:01]CheckFolder done [16:25:01]ProducePacketName [16:25:01]name=ofd_packets/00155605 [16:25:01]NVStorageSaveData ofd_packets/00155605 [16:25:01]File name is /storage/ofd_packets/00155605 [16:25:01]Write 301 bytes [16:25:01]NVStorageSaveData done [16:25:01]OFDSenderStorePacket done [16:25:01]KKMCreateOFDPacket done [16:25:01]NVStorageSaveData kkm_last_timestamp [16:25:01]File name is /storage/kkm_last_timestamp [16:25:01]Write 4 bytes [16:25:01]OFD Sender: Processing packet 155605 [packets to send 31, broken 30] [16:25:01]ProducePacketName [16:25:01]name=ofd_packets/00155605 [16:25:01]OFD Sender: To server: pG, [16:25:01]CommunicateWithHost lk.salyk.kg:30040 [16:25:01]ConnectInit lk.salyk.kg [16:25:01]NVStorageSaveData done [16:25:01]ExternCall_PrintAddStr [16:25:01]wPrintStart [16:25:01]Write to MH i2c: 01 00 00 31 12 43 [16:25:01]Write i2c OK [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: 01 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: 01 07 00 [16:25:01]MH_I2C_Read... [16:25:01]Read from MH i2c: 01 07 00 31 12 00 00 00 00 00 FF 0F 58 [16:25:01]RasterBufferAndPrint [16:25:01]line Счет N : (1)98411 [16:25:01]line ИНН: 02508201610067 [16:25:01]line Контрольно-Кассовый Чек [16:25:01]line ПРОДАЖА [16:25:01]line ТРК (МРК, ГНК) : 11 [16:25:01]line Товар: 2710124130 [16:25:01]line Аи-92-К-5 [16:25:01]line 7.480 * 66.90 [16:25:01]line = 500.41 [16:25:01]line НДС 12% НСП 1% [16:25:01]line > о реализуемом товаре [16:25:01]line ОКРУГЛЕНИЕ: -0.41 [16:25:01]line ИТОГО: 500.00 [16:25:01]line Внесено: 500.00 [16:25:01]line СДАЧА: 0.00 [16:25:01]line НСП 1% : 4.43 [16:25:01]line НДС 12% : 53.14 [16:25:01]line Наличными: 500.00 [16:25:01]line Безнал.: 0.00 [16:25:01]line Место: АЗС № 143 "Партнер Нефть" [16:25:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:25:01]line СНО: Общий режим [16:25:01]line Чек 230 24.10.2024 16:25 [16:25:01]line Смена: 534 ФФД: 1.0 [16:25:01]line ЗНМ: 0300000096 [16:25:01]line РНМ: 0000000000091693 [16:25:01]line Версия ККМ: 001 [16:25:01]line ФМ: 0000000000871792 [16:25:01]line ФД: 155605 [16:25:01]line ФПД: 128732847935567 [16:25:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T162500&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155605&fm=128732847935567&tin=02508201610067®Number=0000000000091693&sum=50000 [16:25:01]Connected sock=11 [16:25: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 39 32 0F 01 00 00 24 62 07 01 49 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 DC 74 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 5F 02 00 35 04 06 00 75 14 F3 AC 10 4F 90 FD B3 45 66 C3 81 13 [16:25:01]written 0, free lines is 4095 [16:25: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 39 32 4F 00 00 00 7B DF 47 00 EC 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 39 32 10 04 04 00 D5 5F 02 00 F4 03 04 00 54 1A 1A 67 B6 04 01 00 00 11 EA 2B 7C 7F B2 58 AE [16:25:02]CommunicateWithHost err = 0 [16:25:02]CheckOFDResponse [16:25:02]1017 (14) - 77093643461234 [16:25:02]1041 (16) - 0000000000871792 [16:25:02]1040 (4) - 155605 [16:25:02]1012 (4) - 24.10.2024 09:58 [16:25:02]1206 (1) - 0 [16:25:02]OFD Sender: Remove packet 155605 [16:25:02]ProducePacketName [16:25:02]name=ofd_packets/00155605 [16:25:02]NVStorageDeleteData [16:25:02]Write to MH i2c: 01 00 00 5C 12 6E [16:25:02]Write i2c OK [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: 01 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: 01 07 00 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: 01 07 00 5C 12 00 00 00 00 00 E6 0C 67 [16:25:02]RasterBufferAndPrint [16:25:02]line [16:25:02]line [16:25:02]line [16:25:02]line [16:25:02]line [16:25:02]written 0, free lines is 3308 [16:25:02]process_action close_receipt done [16:25:02]requested_data is exist [16:25:02]produce_requested_data [16:25:02]requested_item fm.sn is exist - process it [16:25:02]wFMCommunicate request_size=4 [16:25:02]MH_SAM_APDU [16:25:02]CAPDU: 80 11 00 00 [16:25:02]Write to MH i2c: E2 08 00 63 12 80 11 00 00 00 00 00 00 EF [16:25:02]Write i2c OK [16:25:02]MH_I2C_Read... [16:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:02]Read from MH i2c: E2 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 17 00 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 17 00 63 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 44 [16:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:25:02]wFMCommunicate OK [16:25:02]requested_item fd.num is exist - process it [16:25:02]SAM_PROTO_GetFieldsCounters [16:25:02]wFMCommunicate request_size=4 [16:25:02]MH_SAM_APDU [16:25:02]CAPDU: 80 13 00 00 [16:25:02]Write to MH i2c: E2 08 00 64 12 80 13 00 00 00 00 00 00 F2 [16:25:02]Write i2c OK [16:25:02]MH_I2C_Read... [16:25:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:02]OFD Sender: No OFD packet to send [16:25:02]Read from MH i2c: E2 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 62 00 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 62 00 64 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D5 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [16:25: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D5 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:02]wFMCommunicate OK [16:25:02]SAM_PROTO_GetFieldsCounters done [16:25:02]requested_item shift.num is exist - process it [16:25:02]requested_item shift.opened is exist - process it [16:25:02]req_shift_opened [16:25:02]FM_GetShiftState [16:25:02]SAM_PROTO_GetShiftState [16:25:02]wFMCommunicate request_size=4 [16:25:02]MH_SAM_APDU [16:25:02]CAPDU: 80 13 01 00 [16:25:02]Write to MH i2c: E2 08 00 65 12 80 13 01 00 00 00 00 00 F4 [16:25:02]Write i2c OK [16:25:02]MH_I2C_Read... [16:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:02]Read from MH i2c: E2 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 0E 00 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 0E 00 65 12 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 41 [16:25:02]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:25:02]wFMCommunicate OK [16:25:02]SAM_PROTO_GetShiftState done [16:25:02]FM_GetShiftState done [16:25:02]req_shift_opened done [16:25:02]requested_item shift.open_date is exist - process it [16:25:02]req_shift_open_date [16:25:02]req_shift_open_date done [16:25:02]produce_requested_data done [16:25:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155605,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:25:02]process_action_free close_receipt [16:25:02]json_value_free [16:25:02]json_value_free done [16:25:02]process_json_proto returns [16:25:02]Send response to host [16:25:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155605,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:25:02]free response buf [16:25:02]execute_script done [16:25:02]execute_script returns [16:25:02]free content buf [16:25:02]Sock 10.Close socket [16:25:02]Sock 10.Thread stoped [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:39]accept exits with 8 [16:31:39]New connection [16:31:39]New thread 3066637668 created [16:31:39]Thread 3066781028 joined [16:31:39]Waiting for new connection... [16:31:39] Sock 8.Parse request [16:31:39]Sock 8.Check first char [16:31:39]Sock 8.First char is OK [16:31:39]request: POST /json_proto HTTP/1.0 [16:31:39]Method: POST [16:31:39]URL: /json_proto [16:31:39]Method is POST - this is cgi request [16:31:39]url: /json_proto [16:31:39]query_string will be loaded in cgi processing [16:31:39]execute_cgi json_proto POST (null) [16:31:39]execute_cgi path=json_proto method=POST [16:31:39]POST find Content-Length [16:31:39]Host: 172.17.63.3:8080 [16:31:39]Content-Length: 676 [16:31:39]Content-Type: application/json [16:31:39] [16:31:39]POST finish read [16:31:39]Found Content-Length = 676 [16:31:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:39]execute_script... [16:31:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:39]POST & json_proto [16:31:39]process_json_proto [16:31:39]json parsed OK: [16:31:39]protocol is kg_v1.0 [16:31:39]action value=close_receipt [16:31:39]process_action close_receipt [16:31:39]cmd_close_receipt [16:31:39]MH_GetDate [16:31:39]Write to MH i2c: F0 00 00 66 12 67 [16:31:39]Write i2c OK [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: F0 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: F0 09 00 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: F0 09 00 66 12 00 6C 76 1A 67 50 D1 6C 64 C4 [16:31:39]GetLastDocTimeStamp 1729787100 [16:31:39]current date 1729787500 [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 67 12 80 13 01 00 00 00 00 00 F6 [16:31:39]Write i2c OK [16:31:39]MH_I2C_Read... [16:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:39]Read from MH i2c: E2 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: E2 0E 00 [16:31:39]MH_I2C_Read... [16:31:39]Read from MH i2c: E2 0E 00 67 12 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 43 [16:31:39]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:31:39]wFMCommunicate OK [16:31:39]SAM_PROTO_GetShiftState done [16:31:39]FM_GetShiftState done [16:31:39]opened in 1729729836 [16:31:39]opened+sec_in_day 1729816236 [16:31:39]quantity*price = 20003 [16:31:39]sum+1 = 20004 [16:31:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 231 24.10.2024 16:31 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155606 ФПД: 248096313082692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163140&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155606&fm=248096313082692&tin=02508201610067®Number=0000000000091693&sum=20000 [16:31:40]StoreToDocumentArchive [16:31:40]shift 534 fd 155606 [16:31:40]save to /storage/0534/doc_00155606 [16:31:40]save last doc name /storage/0534/doc_00155606 to /storage/kkm_last_doc_name [16:31:40]save OK [16:31:40]Clear old archive folders... [16:31:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:40]tlvbuf is 01F79180 [16:31:40]SAM_PROTO_ClearQueue [16:31:40]wFMCommunicate request_size=4 [16:31:40]MH_SAM_APDU [16:31:40]CAPDU: 80 09 00 00 [16:31:40]Write to MH i2c: E2 08 00 74 12 80 09 00 00 00 00 00 00 F8 [16:31:40]Write i2c OK [16:31:40]MH_I2C_Read... [16:31:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:40]Read from MH i2c: E2 [16:31:40]MH_I2C_Read... [16:31:40]Read from MH i2c: E2 03 00 [16:31:40]MH_I2C_Read... [16:31:40]Read from MH i2c: E2 03 00 74 12 00 90 00 FA [16:31:40]RAPDU: 90 00 [16:31:40]wFMCommunicate OK [16:31:40]SAM_PROTO_ClearQueue done [16:31:40]KKMCreateOFDPacket [16:31:40]OFDProtocolAddRootSTLVToBuf [16:31:40]FM_MakeSignedData [16:31:40]FM_MakeSignedData [16:31:40]SAM_PROTO_SignData [16:31:40]wFMCommunicate request_size=4 [16:31:40]MH_SAM_APDU [16:31:40]CAPDU: 80 0D 01 02 [16:31:40]Write to MH i2c: E2 08 00 75 12 80 0D 01 02 00 00 00 00 00 [16:31:40]Write i2c OK [16:31:40]MH_I2C_Read... [16:31:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:40]Read from MH i2c: E2 [16:31:40]MH_I2C_Read... [16:31:40]Read from MH i2c: E2 03 00 [16:31:40]MH_I2C_Read... [16:31:40]Read from MH i2c: E2 03 00 75 12 00 90 00 FB [16:31:40]RAPDU: 90 00 [16:31:40]wFMCommunicate OK [16:31:40]wFMCommunicate request_size=255 [16:31:40]MH_SAM_APDU [16:31:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 6C 76 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 5F 02 00 35 04 06 00 E1 [16:31:40]Write to MH i2c: E2 02 01 76 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 6C 76 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 5F 02 00 35 04 06 00 E1 00 00 D0 [16:31:40]Write i2c OK [16:31:40]MH_I2C_Read... [16:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:40]Read from MH i2c: E2 [16:31:40]MH_I2C_Read... [16:31:40]Read from MH i2c: E2 03 00 [16:31:40]MH_I2C_Read... [16:31:40]Read from MH i2c: E2 03 00 76 12 00 90 00 FC [16:31:40]RAPDU: 90 00 [16:31:40]wFMCommunicate OK [16:31:40]wFMCommunicate request_size=10 [16:31:40]MH_SAM_APDU [16:31:40]CAPDU: 80 0D 02 02 05 A4 6C 9C 83 44 [16:31:40]Write to MH i2c: E2 0D 00 77 12 80 0D 02 02 05 00 A4 6C 9C 83 44 00 00 80 [16:31:40]Write i2c OK [16:31:40]MH_I2C_Read... [16:31:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:40]Read from MH i2c: E2 [16:31:40]MH_I2C_Read... [16:31:40]Read from MH i2c: E2 03 00 [16:31:40]MH_I2C_Read... [16:31:40]Read from MH i2c: E2 03 00 77 12 00 90 00 FD [16:31:40]RAPDU: 90 00 [16:31:40]wFMCommunicate OK [16:31:40]wFMCommunicate request_size=4 [16:31:40]MH_SAM_APDU [16:31:40]CAPDU: 80 0D 03 02 [16:31:40]Write to MH i2c: E2 08 00 78 12 80 0D 03 02 00 00 00 00 05 [16:31:40]Write i2c OK [16:31:40]MH_I2C_Read... [16:31:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:40]Read from MH i2c: E2 [16:31:40]MH_I2C_Read... [16:31:40]Read from MH i2c: E2 0B 00 [16:31:40]MH_I2C_Read... [16:31:40]Read from MH i2c: E2 0B 00 78 12 00 17 E6 58 21 B7 E1 85 F9 90 00 92 [16:31:40]RAPDU: 17 E6 58 21 B7 E1 85 F9 90 00 [16:31:40]wFMCommunicate OK [16:31:40]SAM_PROTO_SignData done [16:31:40]FM_MakeSignedData done [16:31:40]CreateOFDProtocolMessage [16:31:40]wFMCommunicate request_size=4 [16:31:40]MH_SAM_APDU [16:31:40]CAPDU: 80 11 00 00 [16:31:40]Write to MH i2c: E2 08 00 79 12 80 11 00 00 00 00 00 00 05 [16:31:40]Write i2c OK [16:31:40]MH_I2C_Read... [16:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:40]Read from MH i2c: E2 [16:31:40]MH_I2C_Read... [16:31:40]Read from MH i2c: E2 17 00 [16:31:40]MH_I2C_Read... [16:31:40]Read from MH i2c: E2 17 00 79 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5A [16:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:31:40]wFMCommunicate OK [16:31:40]CreateOFDProtocolMessage done [16:31:40]OFDSenderStorePacket 155606 [16:31:40]StoreOFDPacket docnum=155606 [16:31:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 45 D4 07 01 C2 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 6C 76 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 5F 02 00 35 04 06 00 E1 A4 6C 9C 83 44 17 E6 58 21 B7 E1 85 F9 [16:31:40]CheckFolder [16:31:40]dirname=/storage/ofd_packets [16:31:40]CheckFolder done [16:31:40]ProducePacketName [16:31:40]name=ofd_packets/00155606 [16:31:40]NVStorageSaveData ofd_packets/00155606 [16:31:40]File name is /storage/ofd_packets/00155606 [16:31:40]Write 301 bytes [16:31:40]NVStorageSaveData done [16:31:40]OFDSenderStorePacket done [16:31:40]KKMCreateOFDPacket done [16:31:40]NVStorageSaveData kkm_last_timestamp [16:31:40]File name is /storage/kkm_last_timestamp [16:31:40]Write 4 bytes [16:31:40]NVStorageSaveData done [16:31:40]ExternCall_PrintAddStr [16:31:40]wPrintStart [16:31:40]Write to MH i2c: 01 00 00 7A 12 8C [16:31:41]Write i2c OK [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: 01 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: 01 07 00 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: 01 07 00 7A 12 00 00 00 00 00 FF 0F A1 [16:31:41]RasterBufferAndPrint [16:31:41]line Счет N : (1)98412 [16:31:41]line ИНН: 02508201610067 [16:31:41]line Контрольно-Кассовый Чек [16:31:41]line ПРОДАЖА [16:31:41]line ТРК (МРК, ГНК) : 11 [16:31:41]line Товар: 2710124130 [16:31:41]line Аи-92-К-5 [16:31:41]line 2.990 * 66.90 [16:31:41]line = 200.03 [16:31:41]line НДС 12% НСП 1% [16:31:41]line > о реализуемом товаре [16:31:41]line ОКРУГЛЕНИЕ: -0.03 [16:31:41]line ИТОГО: 200.00 [16:31:41]line Внесено: 200.00 [16:31:41]line СДАЧА: 0.00 [16:31:41]line НСП 1% : 1.77 [16:31:41]line НДС 12% : 21.24 [16:31:41]line Наличными: 200.00 [16:31:41]line Безнал.: 0.00 [16:31:41]line Место: АЗС № 143 "Партнер Нефть" [16:31:41]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:31:41]line СНО: Общий режим [16:31:41]line Чек 231 24.10.2024 16:31 [16:31:41]line Смена: 534 ФФД: 1.0 [16:31:41]line ЗНМ: 0300000096 [16:31:41]line РНМ: 0000000000091693 [16:31:41]line Версия ККМ: 001 [16:31:41]line ФМ: 0000000000871792 [16:31:41]line ФД: 155606 [16:31:41]line ФПД: 248096313082692 [16:31:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163140&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155606&fm=248096313082692&tin=02508201610067®Number=0000000000091693&sum=20000 [16:31:41]OFD Sender: Processing packet 155606 [packets to send 31, broken 30] [16:31:41]ProducePacketName [16:31:41]name=ofd_packets/00155606 [16:31:41]OFD Sender: To server: pG, [16:31:41]CommunicateWithHost lk.salyk.kg:30040 [16:31:41]ConnectInit lk.salyk.kg [16:31:41]written 0, free lines is 4095 [16:31:41]Connected sock=10 [16:31: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 39 32 0F 01 00 00 45 D4 07 01 C2 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 6C 76 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 5F 02 00 35 04 06 00 E1 A4 6C 9C 83 44 17 E6 58 21 B7 E1 85 F9 [16:31: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 39 32 4F 00 00 00 6B 4B 47 00 16 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 39 32 10 04 04 00 D6 5F 02 00 F4 03 04 00 E4 1B 1A 67 B6 04 01 00 00 65 D7 D3 E4 62 28 B2 75 [16:31:41]CommunicateWithHost err = 0 [16:31:41]CheckOFDResponse [16:31:41]1017 (14) - 77093643461234 [16:31:41]1041 (16) - 0000000000871792 [16:31:41]1040 (4) - 155606 [16:31:41]1012 (4) - 24.10.2024 10:05 [16:31:41]1206 (1) - 0 [16:31:41]OFD Sender: Remove packet 155606 [16:31:41]ProducePacketName [16:31:41]name=ofd_packets/00155606 [16:31:41]NVStorageDeleteData [16:31:41]Write to MH i2c: 01 00 00 A5 12 B7 [16:31:41]Write i2c OK [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: 01 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: 01 07 00 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: 01 07 00 A5 12 00 00 00 00 00 E4 0C AE [16:31:41]RasterBufferAndPrint [16:31:41]line [16:31:41]line [16:31:41]line [16:31:41]line [16:31:41]line [16:31:41]written 0, free lines is 3306 [16:31:41]process_action close_receipt done [16:31:41]requested_data is exist [16:31:41]produce_requested_data [16:31:41]requested_item fm.sn is exist - process it [16:31:41]wFMCommunicate request_size=4 [16:31:41]MH_SAM_APDU [16:31:41]CAPDU: 80 11 00 00 [16:31:41]Write to MH i2c: E2 08 00 AC 12 80 11 00 00 00 00 00 00 38 [16:31:41]Write i2c OK [16:31:41]MH_I2C_Read... [16:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:41]Read from MH i2c: E2 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: E2 17 00 [16:31:41]MH_I2C_Read... [16:31:41]Read from MH i2c: E2 17 00 AC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8D [16:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:31:41]wFMCommunicate OK [16:31:41]requested_item fd.num is exist - process it [16:31:41]SAM_PROTO_GetFieldsCounters [16:31:41]wFMCommunicate request_size=4 [16:31:41]MH_SAM_APDU [16:31:41]CAPDU: 80 13 00 00 [16:31:41]Write to MH i2c: E2 08 00 AD 12 80 13 00 00 00 00 00 00 3B [16:31:41]Write i2c OK [16:31:41]MH_I2C_Read... [16:31:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:42]Read from MH i2c: E2 [16:31:42]MH_I2C_Read... [16:31:42]Read from MH i2c: E2 62 00 [16:31:42]MH_I2C_Read... [16:31:42]Read from MH i2c: E2 62 00 AD 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D6 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [16:31: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D6 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:42]wFMCommunicate OK [16:31:42]SAM_PROTO_GetFieldsCounters done [16:31:42]requested_item shift.num is exist - process it [16:31:42]requested_item shift.opened is exist - process it [16:31:42]req_shift_opened [16:31:42]FM_GetShiftState [16:31:42]SAM_PROTO_GetShiftState [16:31:42]wFMCommunicate request_size=4 [16:31:42]MH_SAM_APDU [16:31:42]CAPDU: 80 13 01 00 [16:31:42]Write to MH i2c: E2 08 00 AE 12 80 13 01 00 00 00 00 00 3D [16:31:42]Write i2c OK [16:31:42]MH_I2C_Read... [16:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:42]Read from MH i2c: E2 [16:31:42]MH_I2C_Read... [16:31:42]Read from MH i2c: E2 0E 00 [16:31:42]MH_I2C_Read... [16:31:42]Read from MH i2c: E2 0E 00 AE 12 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8A [16:31:42]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:31:42]wFMCommunicate OK [16:31:42]SAM_PROTO_GetShiftState done [16:31:42]FM_GetShiftState done [16:31:42]req_shift_opened done [16:31:42]requested_item shift.open_date is exist - process it [16:31:42]req_shift_open_date [16:31:42]req_shift_open_date done [16:31:42]produce_requested_data done [16:31:42]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155606,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:31:42]process_action_free close_receipt [16:31:42]json_value_free [16:31:42]json_value_free done [16:31:42]process_json_proto returns [16:31:42]Send response to host [16:31:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155606,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:31:42]free response buf [16:31:42]execute_script done [16:31:42]execute_script returns [16:31:42]free content buf [16:31:42]Sock 8.Close socket [16:31:42]Sock 8.Thread stoped [16:31:42]OFD Sender: No OFD packet to send [16:31:46]accept exits with 9 [16:31:46]New connection [16:31:46]New thread 3066781028 created [16:31:46]Thread 3066637668 joined [16:31:46]Waiting for new connection... [16:31:46] Sock 9.Parse request [16:31:46]Sock 9.Check first char [16:31:46]Sock 9.First char is OK [16:31:46]request: POST /json_proto HTTP/1.0 [16:31:46]Method: POST [16:31:46]URL: /json_proto [16:31:46]Method is POST - this is cgi request [16:31:46]url: /json_proto [16:31:46]query_string will be loaded in cgi processing [16:31:46]execute_cgi json_proto POST (null) [16:31:46]execute_cgi path=json_proto method=POST [16:31:46]POST find Content-Length [16:31:46]Host: 172.17.63.3:8080 [16:31:46]Content-Length: 676 [16:31:46]Content-Type: application/json [16:31:46] [16:31:46]POST finish read [16:31:46]Found Content-Length = 676 [16:31:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:46]execute_script... [16:31: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)98413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:46]POST & json_proto [16:31:46]process_json_proto [16:31:46]json parsed OK: [16:31:46]protocol is kg_v1.0 [16:31:46]action value=close_receipt [16:31:46]process_action close_receipt [16:31:46]cmd_close_receipt [16:31:46]MH_GetDate [16:31:46]Write to MH i2c: F0 00 00 AF 12 B0 [16:31:46]Write i2c OK [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: F0 [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: F0 09 00 [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: F0 09 00 AF 12 00 72 76 1A 67 50 D1 6C 64 13 [16:31:46]GetLastDocTimeStamp 1729787500 [16:31:46]current date 1729787506 [16:31:46]FM_GetShiftState [16:31:46]SAM_PROTO_GetShiftState [16:31:46]wFMCommunicate request_size=4 [16:31:46]MH_SAM_APDU [16:31:46]CAPDU: 80 13 01 00 [16:31:46]Write to MH i2c: E2 08 00 B0 12 80 13 01 00 00 00 00 00 3F [16:31:46]Write i2c OK [16:31:46]MH_I2C_Read... [16:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:46]Read from MH i2c: E2 [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: E2 0E 00 [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: E2 0E 00 B0 12 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8C [16:31:46]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:31:46]wFMCommunicate OK [16:31:46]SAM_PROTO_GetShiftState done [16:31:46]FM_GetShiftState done [16:31:46]opened in 1729729836 [16:31:46]opened+sec_in_day 1729816236 [16:31:46]quantity*price = 20003 [16:31:46]sum+1 = 20004 [16:31:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 232 24.10.2024 16:31 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155607 ФПД: 260635824724754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163146&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155607&fm=260635824724754&tin=02508201610067®Number=0000000000091693&sum=20000 [16:31:47]StoreToDocumentArchive [16:31:47]shift 534 fd 155607 [16:31:47]save to /storage/0534/doc_00155607 [16:31:47]save last doc name /storage/0534/doc_00155607 to /storage/kkm_last_doc_name [16:31:47]save OK [16:31:47]Clear old archive folders... [16:31:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:47]tlvbuf is 01FA9E90 [16:31:47]SAM_PROTO_ClearQueue [16:31:47]wFMCommunicate request_size=4 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 09 00 00 [16:31:47]Write to MH i2c: E2 08 00 BD 12 80 09 00 00 00 00 00 00 41 [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 03 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 03 00 BD 12 00 90 00 43 [16:31:47]RAPDU: 90 00 [16:31:47]wFMCommunicate OK [16:31:47]SAM_PROTO_ClearQueue done [16:31:47]KKMCreateOFDPacket [16:31:47]OFDProtocolAddRootSTLVToBuf [16:31:47]FM_MakeSignedData [16:31:47]FM_MakeSignedData [16:31:47]SAM_PROTO_SignData [16:31:47]wFMCommunicate request_size=4 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 0D 01 02 [16:31:47]Write to MH i2c: E2 08 00 BE 12 80 0D 01 02 00 00 00 00 49 [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]OFD Sender: No OFD packet to send [16:31:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 03 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 03 00 BE 12 00 90 00 44 [16:31:47]RAPDU: 90 00 [16:31:47]wFMCommunicate OK [16:31:47]wFMCommunicate request_size=255 [16:31:47]MH_SAM_APDU [16:31: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 72 76 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 5F 02 00 35 04 06 00 ED [16:31:47]Write to MH i2c: E2 02 01 BF 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 72 76 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 5F 02 00 35 04 06 00 ED 00 00 2D [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 03 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 03 00 BF 12 00 90 00 45 [16:31:47]RAPDU: 90 00 [16:31:47]wFMCommunicate OK [16:31:47]wFMCommunicate request_size=10 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 0D 02 02 05 0C 01 BF 9B 12 [16:31:47]Write to MH i2c: E2 0D 00 C0 12 80 0D 02 02 05 00 0C 01 BF 9B 12 00 00 CF [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 03 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 03 00 C0 12 00 90 00 46 [16:31:47]RAPDU: 90 00 [16:31:47]wFMCommunicate OK [16:31:47]wFMCommunicate request_size=4 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 0D 03 02 [16:31:47]Write to MH i2c: E2 08 00 C1 12 80 0D 03 02 00 00 00 00 4E [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 0B 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 0B 00 C1 12 00 C6 CE B0 06 C3 3F C9 C7 90 00 2B [16:31:47]RAPDU: C6 CE B0 06 C3 3F C9 C7 90 00 [16:31:47]wFMCommunicate OK [16:31:47]SAM_PROTO_SignData done [16:31:47]FM_MakeSignedData done [16:31:47]CreateOFDProtocolMessage [16:31:47]wFMCommunicate request_size=4 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 11 00 00 [16:31:47]Write to MH i2c: E2 08 00 C2 12 80 11 00 00 00 00 00 00 4E [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 17 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 17 00 C2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A3 [16:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:31:47]wFMCommunicate OK [16:31:47]CreateOFDProtocolMessage done [16:31:47]OFDSenderStorePacket 155607 [16:31:47]StoreOFDPacket docnum=155607 [16:31:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 03 B0 07 01 8D 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 72 76 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 5F 02 00 35 04 06 00 ED 0C 01 BF 9B 12 C6 CE B0 06 C3 3F C9 C7 [16:31:47]CheckFolder [16:31:47]dirname=/storage/ofd_packets [16:31:47]CheckFolder done [16:31:47]ProducePacketName [16:31:47]name=ofd_packets/00155607 [16:31:47]NVStorageSaveData ofd_packets/00155607 [16:31:47]File name is /storage/ofd_packets/00155607 [16:31:47]Write 301 bytes [16:31:47]NVStorageSaveData done [16:31:47]OFDSenderStorePacket done [16:31:47]KKMCreateOFDPacket done [16:31:47]NVStorageSaveData kkm_last_timestamp [16:31:47]File name is /storage/kkm_last_timestamp [16:31:47]Write 4 bytes [16:31:47]NVStorageSaveData done [16:31:47]ExternCall_PrintAddStr [16:31:47]wPrintStart [16:31:47]Write to MH i2c: 01 00 00 C3 12 D5 [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: 01 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: 01 07 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: 01 07 00 C3 12 00 00 00 00 00 FF 0F EA [16:31:47]RasterBufferAndPrint [16:31:47]line Счет N : (1)98413 [16:31:47]line ИНН: 02508201610067 [16:31:47]line Контрольно-Кассовый Чек [16:31:47]line ПРОДАЖА [16:31:47]line ТРК (МРК, ГНК) : 21 [16:31:47]line Товар: 2710124130 [16:31:47]line Аи-92-К-5 [16:31:47]line 2.990 * 66.90 [16:31:47]line = 200.03 [16:31:47]line НДС 12% НСП 1% [16:31:47]line > о реализуемом товаре [16:31:47]line ОКРУГЛЕНИЕ: -0.03 [16:31:47]line ИТОГО: 200.00 [16:31:47]line Внесено: 200.00 [16:31:47]line СДАЧА: 0.00 [16:31:47]line НСП 1% : 1.77 [16:31:47]line НДС 12% : 21.24 [16:31:47]line Наличными: 200.00 [16:31:47]line Безнал.: 0.00 [16:31:47]line Место: АЗС № 143 "Партнер Нефть" [16:31:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:31:47]line СНО: Общий режим [16:31:47]line Чек 232 24.10.2024 16:31 [16:31:47]line Смена: 534 ФФД: 1.0 [16:31:47]line ЗНМ: 0300000096 [16:31:47]line РНМ: 0000000000091693 [16:31:47]line Версия ККМ: 001 [16:31:47]line ФМ: 0000000000871792 [16:31:47]line ФД: 155607 [16:31:47]line ФПД: 260635824724754 [16:31:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163146&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155607&fm=260635824724754&tin=02508201610067®Number=0000000000091693&sum=20000 [16:31:47]written 0, free lines is 4095 [16:31:47]OFD Sender: Processing packet 155607 [packets to send 31, broken 30] [16:31:47]ProducePacketName [16:31:47]name=ofd_packets/00155607 [16:31:47]OFD Sender: To server: pG, [16:31:47]CommunicateWithHost lk.salyk.kg:30040 [16:31:47]ConnectInit lk.salyk.kg [16:31:48]Connected sock=11 [16:31: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 39 32 0F 01 00 00 03 B0 07 01 8D 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 72 76 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 5F 02 00 35 04 06 00 ED 0C 01 BF 9B 12 C6 CE B0 06 C3 3F C9 C7 [16:31:48]Write to MH i2c: 01 00 00 EE 12 00 [16:31:48]Write i2c OK [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: 01 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: 01 07 00 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: 01 07 00 EE 12 00 00 00 00 00 FE 0C 11 [16:31:48]RasterBufferAndPrint [16:31:48]line [16:31:48]line [16:31:48]line [16:31:48]line [16:31:48]line [16:31:48]written 0, free lines is 3336 [16:31:48]process_action close_receipt done [16:31:48]requested_data is exist [16:31:48]produce_requested_data [16:31:48]requested_item fm.sn is exist - process it [16:31:48]wFMCommunicate request_size=4 [16:31:48]MH_SAM_APDU [16:31:48]CAPDU: 80 11 00 00 [16:31:48]Write to MH i2c: E2 08 00 F5 12 80 11 00 00 00 00 00 00 81 [16:31:48]Write i2c OK [16:31:48]MH_I2C_Read... [16:31: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 39 32 4F 00 00 00 00 A1 47 00 7F 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 39 32 10 04 04 00 D7 5F 02 00 F4 03 04 00 EB 1B 1A 67 B6 04 01 00 00 C6 C5 19 2F 35 F4 1E DD [16:31:48]CommunicateWithHost err = 0 [16:31:48]CheckOFDResponse [16:31:48]1017 (14) - 77093643461234 [16:31:48]1041 (16) - 0000000000871792 [16:31:48]1040 (4) - 155607 [16:31:48]1012 (4) - 24.10.2024 10:05 [16:31:48]1206 (1) - 0 [16:31:48]OFD Sender: Remove packet 155607 [16:31:48]ProducePacketName [16:31:48]name=ofd_packets/00155607 [16:31:48]NVStorageDeleteData [16:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:48]Read from MH i2c: E2 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 17 00 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 17 00 F5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D6 [16:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:31:48]wFMCommunicate OK [16:31:48]requested_item fd.num is exist - process it [16:31:48]SAM_PROTO_GetFieldsCounters [16:31:48]wFMCommunicate request_size=4 [16:31:48]MH_SAM_APDU [16:31:48]CAPDU: 80 13 00 00 [16:31:48]Write to MH i2c: E2 08 00 F6 12 80 13 00 00 00 00 00 00 84 [16:31:48]Write i2c OK [16:31:48]MH_I2C_Read... [16:31:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:48]Read from MH i2c: E2 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 62 00 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 62 00 F6 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D7 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [16:31: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D7 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:48]wFMCommunicate OK [16:31:48]SAM_PROTO_GetFieldsCounters done [16:31:48]requested_item shift.num is exist - process it [16:31:48]requested_item shift.opened is exist - process it [16:31:48]req_shift_opened [16:31:48]FM_GetShiftState [16:31:48]SAM_PROTO_GetShiftState [16:31:48]wFMCommunicate request_size=4 [16:31:48]MH_SAM_APDU [16:31:48]CAPDU: 80 13 01 00 [16:31:48]Write to MH i2c: E2 08 00 F7 12 80 13 01 00 00 00 00 00 86 [16:31:48]Write i2c OK [16:31:48]MH_I2C_Read... [16:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:48]Read from MH i2c: E2 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 0E 00 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 0E 00 F7 12 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D3 [16:31:48]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:31:48]wFMCommunicate OK [16:31:48]SAM_PROTO_GetShiftState done [16:31:48]FM_GetShiftState done [16:31:48]req_shift_opened done [16:31:48]requested_item shift.open_date is exist - process it [16:31:48]req_shift_open_date [16:31:48]req_shift_open_date done [16:31:48]produce_requested_data done [16:31:48]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155607,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:31:48]process_action_free close_receipt [16:31:48]json_value_free [16:31:48]json_value_free done [16:31:48]process_json_proto returns [16:31:48]Send response to host [16:31:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155607,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:31:48]free response buf [16:31:48]execute_script done [16:31:48]execute_script returns [16:31:48]free content buf [16:31:48]Sock 9.Close socket [16:31:48]Sock 9.Thread stoped [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:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:03]accept exits with 8 [16:37:03]New connection [16:37:03]New thread 3066637668 created [16:37:03]Thread 3066781028 joined [16:37:03]Waiting for new connection... [16:37:03] Sock 8.Parse request [16:37:03]Sock 8.Check first char [16:37:03]Sock 8.First char is OK [16:37:03]request: POST /json_proto HTTP/1.0 [16:37:03]Method: POST [16:37:03]URL: /json_proto [16:37:03]Method is POST - this is cgi request [16:37:03]url: /json_proto [16:37:03]query_string will be loaded in cgi processing [16:37:03]execute_cgi json_proto POST (null) [16:37:03]execute_cgi path=json_proto method=POST [16:37:03]POST find Content-Length [16:37:03]Host: 172.17.63.3:8080 [16:37:03]Content-Length: 676 [16:37:03]Content-Type: application/json [16:37:03] [16:37:03]POST finish read [16:37:03]Found Content-Length = 676 [16:37:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:03]execute_script... [16:37:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:03]POST & json_proto [16:37:03]process_json_proto [16:37:03]json parsed OK: [16:37:03]protocol is kg_v1.0 [16:37:03]action value=close_receipt [16:37:03]process_action close_receipt [16:37:03]cmd_close_receipt [16:37:03]MH_GetDate [16:37:03]Write to MH i2c: F0 00 00 F8 12 F9 [16:37:03]Write i2c OK [16:37:03]MH_I2C_Read... [16:37:03]Read from MH i2c: F0 [16:37:03]MH_I2C_Read... [16:37:03]Read from MH i2c: F0 09 00 [16:37:03]MH_I2C_Read... [16:37:03]Read from MH i2c: F0 09 00 F8 12 00 B0 77 1A 67 50 D1 6C 64 9B [16:37:03]GetLastDocTimeStamp 1729787506 [16:37:03]current date 1729787824 [16:37:03]FM_GetShiftState [16:37:03]SAM_PROTO_GetShiftState [16:37:03]wFMCommunicate request_size=4 [16:37:03]MH_SAM_APDU [16:37:03]CAPDU: 80 13 01 00 [16:37:03]Write to MH i2c: E2 08 00 F9 12 80 13 01 00 00 00 00 00 88 [16:37:03]Write i2c OK [16:37:03]MH_I2C_Read... [16:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:03]Read from MH i2c: E2 [16:37:03]MH_I2C_Read... [16:37:03]Read from MH i2c: E2 0E 00 [16:37:03]MH_I2C_Read... [16:37:03]Read from MH i2c: E2 0E 00 F9 12 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D5 [16:37:03]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:37:03]wFMCommunicate OK [16:37:03]SAM_PROTO_GetShiftState done [16:37:03]FM_GetShiftState done [16:37:03]opened in 1729729836 [16:37:03]opened+sec_in_day 1729816236 [16:37:03]quantity*price = 40006 [16:37:03]sum+1 = 40007 [16:37:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 233 24.10.2024 16:37 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155608 ФПД: 182586981486976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163704&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155608&fm=182586981486976&tin=02508201610067®Number=0000000000091693&sum=40000 [16:37:04]StoreToDocumentArchive [16:37:04]shift 534 fd 155608 [16:37:04]save to /storage/0534/doc_00155608 [16:37:04]save last doc name /storage/0534/doc_00155608 to /storage/kkm_last_doc_name [16:37:04]save OK [16:37:04]Clear old archive folders... [16:37:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:04]tlvbuf is 01F219F0 [16:37:04]SAM_PROTO_ClearQueue [16:37:04]wFMCommunicate request_size=4 [16:37:04]MH_SAM_APDU [16:37:04]CAPDU: 80 09 00 00 [16:37:04]Write to MH i2c: E2 08 00 06 13 80 09 00 00 00 00 00 00 8B [16:37:04]Write i2c OK [16:37:04]MH_I2C_Read... [16:37:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:04]Read from MH i2c: E2 [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: E2 03 00 [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: E2 03 00 06 13 00 90 00 8D [16:37:04]RAPDU: 90 00 [16:37:04]wFMCommunicate OK [16:37:04]SAM_PROTO_ClearQueue done [16:37:04]KKMCreateOFDPacket [16:37:04]OFDProtocolAddRootSTLVToBuf [16:37:04]FM_MakeSignedData [16:37:04]FM_MakeSignedData [16:37:04]SAM_PROTO_SignData [16:37:04]wFMCommunicate request_size=4 [16:37:04]MH_SAM_APDU [16:37:04]CAPDU: 80 0D 01 02 [16:37:04]Write to MH i2c: E2 08 00 07 13 80 0D 01 02 00 00 00 00 93 [16:37:04]Write i2c OK [16:37:04]MH_I2C_Read... [16:37:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:04]Read from MH i2c: E2 [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: E2 03 00 [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: E2 03 00 07 13 00 90 00 8E [16:37:04]RAPDU: 90 00 [16:37:04]wFMCommunicate OK [16:37:04]wFMCommunicate request_size=255 [16:37:04]MH_SAM_APDU [16:37: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 B0 77 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 5F 02 00 35 04 06 00 A6 [16:37:04]Write to MH i2c: E2 02 01 08 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 B0 77 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 5F 02 00 35 04 06 00 A6 00 00 7E [16:37:04]Write i2c OK [16:37:04]MH_I2C_Read... [16:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:04]Read from MH i2c: E2 [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: E2 03 00 [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: E2 03 00 08 13 00 90 00 8F [16:37:04]RAPDU: 90 00 [16:37:04]wFMCommunicate OK [16:37:04]wFMCommunicate request_size=10 [16:37:04]MH_SAM_APDU [16:37:04]CAPDU: 80 0D 02 02 05 0F D8 2C 11 80 [16:37:04]Write to MH i2c: E2 0D 00 09 13 80 0D 02 02 05 00 0F D8 2C 11 80 00 00 44 [16:37:04]Write i2c OK [16:37:04]MH_I2C_Read... [16:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:04]Read from MH i2c: E2 [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: E2 03 00 [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: E2 03 00 09 13 00 90 00 90 [16:37:04]RAPDU: 90 00 [16:37:04]wFMCommunicate OK [16:37:04]wFMCommunicate request_size=4 [16:37:04]MH_SAM_APDU [16:37:04]CAPDU: 80 0D 03 02 [16:37:04]Write to MH i2c: E2 08 00 0A 13 80 0D 03 02 00 00 00 00 98 [16:37:04]Write i2c OK [16:37:04]MH_I2C_Read... [16:37:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:04]Read from MH i2c: E2 [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: E2 0B 00 [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: E2 0B 00 0A 13 00 CF 91 C6 8F 45 72 2D 13 90 00 45 [16:37:04]RAPDU: CF 91 C6 8F 45 72 2D 13 90 00 [16:37:04]wFMCommunicate OK [16:37:04]SAM_PROTO_SignData done [16:37:04]FM_MakeSignedData done [16:37:04]CreateOFDProtocolMessage [16:37:04]wFMCommunicate request_size=4 [16:37:04]MH_SAM_APDU [16:37:04]CAPDU: 80 11 00 00 [16:37:04]Write to MH i2c: E2 08 00 0B 13 80 11 00 00 00 00 00 00 98 [16:37:04]Write i2c OK [16:37:04]MH_I2C_Read... [16:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:04]Read from MH i2c: E2 [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: E2 17 00 [16:37:04]MH_I2C_Read... [16:37:04]Read from MH i2c: E2 17 00 0B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 ED [16:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:37:04]wFMCommunicate OK [16:37:04]CreateOFDProtocolMessage done [16:37:04]OFDSenderStorePacket 155608 [16:37:04]StoreOFDPacket docnum=155608 [16:37:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0A E3 07 01 53 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 B0 77 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 5F 02 00 35 04 06 00 A6 0F D8 2C 11 80 CF 91 C6 8F 45 72 2D 13 [16:37:04]CheckFolder [16:37:04]dirname=/storage/ofd_packets [16:37:04]CheckFolder done [16:37:04]ProducePacketName [16:37:04]name=ofd_packets/00155608 [16:37:04]NVStorageSaveData ofd_packets/00155608 [16:37:04]File name is /storage/ofd_packets/00155608 [16:37:04]Write 301 bytes [16:37:04]NVStorageSaveData done [16:37:04]OFDSenderStorePacket done [16:37:04]KKMCreateOFDPacket done [16:37:04]NVStorageSaveData kkm_last_timestamp [16:37:04]File name is /storage/kkm_last_timestamp [16:37:04]Write 4 bytes [16:37:04]NVStorageSaveData done [16:37:05]ExternCall_PrintAddStr [16:37:05]wPrintStart [16:37:05]Write to MH i2c: 01 00 00 0C 13 1F [16:37:05]Write i2c OK [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: 01 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: 01 07 00 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: 01 07 00 0C 13 00 00 00 00 00 FF 0F 34 [16:37:05]RasterBufferAndPrint [16:37:05]line Счет N : (1)98414 [16:37:05]line ИНН: 02508201610067 [16:37:05]line Контрольно-Кассовый Чек [16:37:05]line ПРОДАЖА [16:37:05]line ТРК (МРК, ГНК) : 11 [16:37:05]line Товар: 2710124130 [16:37:05]line Аи-92-К-5 [16:37:05]line 5.980 * 66.90 [16:37:05]line = 400.06 [16:37:05]line НДС 12% НСП 1% [16:37:05]line > о реализуемом товаре [16:37:05]line ОКРУГЛЕНИЕ: -0.06 [16:37:05]line ИТОГО: 400.00 [16:37:05]line Внесено: 400.00 [16:37:05]line СДАЧА: 0.00 [16:37:05]line НСП 1% : 3.54 [16:37:05]line НДС 12% : 42.48 [16:37:05]line Наличными: 400.00 [16:37:05]line Безнал.: 0.00 [16:37:05]line Место: АЗС № 143 "Партнер Нефть" [16:37:05]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:37:05]line СНО: Общий режим [16:37:05]line Чек 233 24.10.2024 16:37 [16:37:05]line Смена: 534 ФФД: 1.0 [16:37:05]line ЗНМ: 0300000096 [16:37:05]line РНМ: 0000000000091693 [16:37:05]line Версия ККМ: 001 [16:37:05]line ФМ: 0000000000871792 [16:37:05]line ФД: 155608 [16:37:05]line ФПД: 182586981486976 [16:37:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163704&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155608&fm=182586981486976&tin=02508201610067®Number=0000000000091693&sum=40000 [16:37:05]OFD Sender: Processing packet 155608 [packets to send 31, broken 30] [16:37:05]ProducePacketName [16:37:05]name=ofd_packets/00155608 [16:37:05]OFD Sender: To server: pG, [16:37:05]CommunicateWithHost lk.salyk.kg:30040 [16:37:05]ConnectInit lk.salyk.kg [16:37:05]written 0, free lines is 4095 [16:37:05]Connected sock=10 [16:37: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 39 32 0F 01 00 00 0A E3 07 01 53 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 B0 77 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 5F 02 00 35 04 06 00 A6 0F D8 2C 11 80 CF 91 C6 8F 45 72 2D 13 [16:37: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 39 32 4F 00 00 00 13 2D 47 00 72 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 5F 02 00 F4 03 04 00 28 1D 1A 67 B6 04 01 00 00 E4 43 7E E5 04 6D C8 E4 [16:37:05]CommunicateWithHost err = 0 [16:37:05]CheckOFDResponse [16:37:05]1017 (14) - 77093643461234 [16:37:05]1041 (16) - 0000000000871792 [16:37:05]1040 (4) - 155608 [16:37:05]1012 (4) - 24.10.2024 10:10 [16:37:05]1206 (1) - 0 [16:37:05]OFD Sender: Remove packet 155608 [16:37:05]ProducePacketName [16:37:05]name=ofd_packets/00155608 [16:37:05]NVStorageDeleteData [16:37:05]Write to MH i2c: 01 00 00 37 13 4A [16:37:05]Write i2c OK [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: 01 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: 01 07 00 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: 01 07 00 37 13 00 00 00 00 00 EB 0C 48 [16:37:05]RasterBufferAndPrint [16:37:05]line [16:37:05]line [16:37:05]line [16:37:05]line [16:37:05]line [16:37:05]written 0, free lines is 3314 [16:37:05]process_action close_receipt done [16:37:05]requested_data is exist [16:37:05]produce_requested_data [16:37:05]requested_item fm.sn is exist - process it [16:37:05]wFMCommunicate request_size=4 [16:37:05]MH_SAM_APDU [16:37:05]CAPDU: 80 11 00 00 [16:37:05]Write to MH i2c: E2 08 00 3E 13 80 11 00 00 00 00 00 00 CB [16:37:05]Write i2c OK [16:37:05]MH_I2C_Read... [16:37:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:05]Read from MH i2c: E2 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: E2 17 00 [16:37:05]MH_I2C_Read... [16:37:05]Read from MH i2c: E2 17 00 3E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 20 [16:37:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:37:05]wFMCommunicate OK [16:37:05]requested_item fd.num is exist - process it [16:37:05]SAM_PROTO_GetFieldsCounters [16:37:05]wFMCommunicate request_size=4 [16:37:05]MH_SAM_APDU [16:37:05]CAPDU: 80 13 00 00 [16:37:05]Write to MH i2c: E2 08 00 3F 13 80 13 00 00 00 00 00 00 CE [16:37:05]Write i2c OK [16:37:05]MH_I2C_Read... [16:37:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:06]Read from MH i2c: E2 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 62 00 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 62 00 3F 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D8 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [16:37: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D8 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:06]wFMCommunicate OK [16:37:06]SAM_PROTO_GetFieldsCounters done [16:37:06]requested_item shift.num is exist - process it [16:37:06]requested_item shift.opened is exist - process it [16:37:06]req_shift_opened [16:37:06]FM_GetShiftState [16:37:06]SAM_PROTO_GetShiftState [16:37:06]wFMCommunicate request_size=4 [16:37:06]MH_SAM_APDU [16:37:06]CAPDU: 80 13 01 00 [16:37:06]Write to MH i2c: E2 08 00 40 13 80 13 01 00 00 00 00 00 D0 [16:37:06]Write i2c OK [16:37:06]MH_I2C_Read... [16:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:06]Read from MH i2c: E2 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 0E 00 [16:37:06]MH_I2C_Read... [16:37:06]Read from MH i2c: E2 0E 00 40 13 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1D [16:37:06]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:37:06]wFMCommunicate OK [16:37:06]SAM_PROTO_GetShiftState done [16:37:06]FM_GetShiftState done [16:37:06]req_shift_opened done [16:37:06]requested_item shift.open_date is exist - process it [16:37:06]req_shift_open_date [16:37:06]req_shift_open_date done [16:37:06]produce_requested_data done [16:37:06]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155608,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:37:06]process_action_free close_receipt [16:37:06]json_value_free [16:37:06]json_value_free done [16:37:06]process_json_proto returns [16:37:06]Send response to host [16:37:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155608,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:37:06]free response buf [16:37:06]execute_script done [16:37:06]execute_script returns [16:37:06]free content buf [16:37:06]Sock 8.Close socket [16:37:06]Sock 8.Thread stoped [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:44]accept exits with 9 [16:37:44]New connection [16:37:44]New thread 3066781028 created [16:37:44]Thread 3066637668 joined [16:37:44]Waiting for new connection... [16:37:44] Sock 9.Parse request [16:37:44]Sock 9.Check first char [16:37:44]Sock 9.First char is OK [16:37:44]request: POST /json_proto HTTP/1.0 [16:37:44]Method: POST [16:37:44]URL: /json_proto [16:37:44]Method is POST - this is cgi request [16:37:44]url: /json_proto [16:37:44]query_string will be loaded in cgi processing [16:37:44]execute_cgi json_proto POST (null) [16:37:44]execute_cgi path=json_proto method=POST [16:37:44]POST find Content-Length [16:37:44]Host: 172.17.63.3:8080 [16:37:44]Content-Length: 676 [16:37:44]Content-Type: application/json [16:37:44] [16:37:44]POST finish read [16:37:44]Found Content-Length = 676 [16:37:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:44]execute_script... [16:37: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)98415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:44]POST & json_proto [16:37:44]process_json_proto [16:37:44]json parsed OK: [16:37:44]protocol is kg_v1.0 [16:37:44]action value=close_receipt [16:37:44]process_action close_receipt [16:37:44]cmd_close_receipt [16:37:44]MH_GetDate [16:37:44]Write to MH i2c: F0 00 00 41 13 43 [16:37:44]Write i2c OK [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: F0 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: F0 09 00 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: F0 09 00 41 13 00 D8 77 1A 67 50 D1 6C 64 0D [16:37:44]GetLastDocTimeStamp 1729787824 [16:37:44]current date 1729787864 [16:37:44]FM_GetShiftState [16:37:44]SAM_PROTO_GetShiftState [16:37:44]wFMCommunicate request_size=4 [16:37:44]MH_SAM_APDU [16:37:44]CAPDU: 80 13 01 00 [16:37:44]Write to MH i2c: E2 08 00 42 13 80 13 01 00 00 00 00 00 D2 [16:37:44]Write i2c OK [16:37:44]MH_I2C_Read... [16:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:44]Read from MH i2c: E2 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: E2 0E 00 [16:37:44]MH_I2C_Read... [16:37:44]Read from MH i2c: E2 0E 00 42 13 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1F [16:37:44]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:37:44]wFMCommunicate OK [16:37:44]SAM_PROTO_GetShiftState done [16:37:44]FM_GetShiftState done [16:37:44]opened in 1729729836 [16:37:44]opened+sec_in_day 1729816236 [16:37:44]quantity*price = 60009 [16:37:44]sum+1 = 60010 [16:37:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 234 24.10.2024 16:37 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155609 ФПД: 134704258143514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163744&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155609&fm=134704258143514&tin=02508201610067®Number=0000000000091693&sum=60000 [16:37:45]StoreToDocumentArchive [16:37:45]shift 534 fd 155609 [16:37:45]save to /storage/0534/doc_00155609 [16:37:45]save last doc name /storage/0534/doc_00155609 to /storage/kkm_last_doc_name [16:37:45]save OK [16:37:45]Clear old archive folders... [16:37:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:45]tlvbuf is 01F20B70 [16:37:45]SAM_PROTO_ClearQueue [16:37:45]wFMCommunicate request_size=4 [16:37:45]MH_SAM_APDU [16:37:45]CAPDU: 80 09 00 00 [16:37:45]Write to MH i2c: E2 08 00 4F 13 80 09 00 00 00 00 00 00 D4 [16:37:45]Write i2c OK [16:37:45]MH_I2C_Read... [16:37:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:45]Read from MH i2c: E2 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 03 00 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 03 00 4F 13 00 90 00 D6 [16:37:45]RAPDU: 90 00 [16:37:45]wFMCommunicate OK [16:37:45]SAM_PROTO_ClearQueue done [16:37:45]KKMCreateOFDPacket [16:37:45]OFDProtocolAddRootSTLVToBuf [16:37:45]FM_MakeSignedData [16:37:45]FM_MakeSignedData [16:37:45]SAM_PROTO_SignData [16:37:45]wFMCommunicate request_size=4 [16:37:45]MH_SAM_APDU [16:37:45]CAPDU: 80 0D 01 02 [16:37:45]Write to MH i2c: E2 08 00 50 13 80 0D 01 02 00 00 00 00 DC [16:37:45]Write i2c OK [16:37:45]MH_I2C_Read... [16:37:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:45]Read from MH i2c: E2 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 03 00 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 03 00 50 13 00 90 00 D7 [16:37:45]RAPDU: 90 00 [16:37:45]wFMCommunicate OK [16:37:45]wFMCommunicate request_size=255 [16:37:45]MH_SAM_APDU [16: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 D8 77 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 5F 02 00 35 04 06 00 7A [16:37:45]Write to MH i2c: E2 02 01 51 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 D8 77 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 5F 02 00 35 04 06 00 7A 00 00 D3 [16:37:45]Write i2c OK [16:37:45]MH_I2C_Read... [16:37:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:45]Read from MH i2c: E2 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 03 00 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 03 00 51 13 00 90 00 D8 [16:37:45]RAPDU: 90 00 [16:37:45]wFMCommunicate OK [16:37:45]wFMCommunicate request_size=10 [16:37:45]MH_SAM_APDU [16:37:45]CAPDU: 80 0D 02 02 05 83 47 74 D5 1A [16:37:45]Write to MH i2c: E2 0D 00 52 13 80 0D 02 02 05 00 83 47 74 D5 1A 00 00 16 [16:37:45]Write i2c OK [16:37:45]MH_I2C_Read... [16:37:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:45]Read from MH i2c: E2 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 03 00 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 03 00 52 13 00 90 00 D9 [16:37:45]RAPDU: 90 00 [16:37:45]wFMCommunicate OK [16:37:45]wFMCommunicate request_size=4 [16:37:45]MH_SAM_APDU [16:37:45]CAPDU: 80 0D 03 02 [16:37:45]Write to MH i2c: E2 08 00 53 13 80 0D 03 02 00 00 00 00 E1 [16:37:45]Write i2c OK [16:37:45]MH_I2C_Read... [16:37:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:45]Read from MH i2c: E2 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 0B 00 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 0B 00 53 13 00 64 F2 44 C4 99 C8 30 64 90 00 35 [16:37:45]RAPDU: 64 F2 44 C4 99 C8 30 64 90 00 [16:37:45]wFMCommunicate OK [16:37:45]SAM_PROTO_SignData done [16:37:45]FM_MakeSignedData done [16:37:45]CreateOFDProtocolMessage [16:37:45]wFMCommunicate request_size=4 [16:37:45]MH_SAM_APDU [16:37:45]CAPDU: 80 11 00 00 [16:37:45]Write to MH i2c: E2 08 00 54 13 80 11 00 00 00 00 00 00 E1 [16:37:45]Write i2c OK [16:37:45]MH_I2C_Read... [16:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:45]Read from MH i2c: E2 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 17 00 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: E2 17 00 54 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 36 [16:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:37:45]wFMCommunicate OK [16:37:45]CreateOFDProtocolMessage done [16:37:45]OFDSenderStorePacket 155609 [16:37:45]StoreOFDPacket docnum=155609 [16:37:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D7 A2 07 01 13 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 D8 77 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 5F 02 00 35 04 06 00 7A 83 47 74 D5 1A 64 F2 44 C4 99 C8 30 64 [16:37:45]CheckFolder [16:37:45]dirname=/storage/ofd_packets [16:37:45]CheckFolder done [16:37:45]ProducePacketName [16:37:45]name=ofd_packets/00155609 [16:37:45]NVStorageSaveData ofd_packets/00155609 [16:37:45]File name is /storage/ofd_packets/00155609 [16:37:45]Write 301 bytes [16:37:45]NVStorageSaveData done [16:37:45]OFDSenderStorePacket done [16:37:45]KKMCreateOFDPacket done [16:37:45]NVStorageSaveData kkm_last_timestamp [16:37:45]File name is /storage/kkm_last_timestamp [16:37:45]Write 4 bytes [16:37:45]NVStorageSaveData done [16:37:45]ExternCall_PrintAddStr [16:37:45]wPrintStart [16:37:45]Write to MH i2c: 01 00 00 55 13 68 [16:37:45]Write i2c OK [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: 01 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: 01 07 00 [16:37:45]MH_I2C_Read... [16:37:45]Read from MH i2c: 01 07 00 55 13 00 00 00 00 00 FF 0F 7D [16:37:45]RasterBufferAndPrint [16:37:45]line Счет N : (1)98415 [16:37:45]line ИНН: 02508201610067 [16:37:45]line Контрольно-Кассовый Чек [16:37:45]line ПРОДАЖА [16:37:45]line ТРК (МРК, ГНК) : 21 [16:37:45]line Товар: 2710124130 [16:37:45]line Аи-92-К-5 [16:37:45]line 8.970 * 66.90 [16:37:45]line = 600.09 [16:37:45]line НДС 12% НСП 1% [16:37:45]line > о реализуемом товаре [16:37:45]line ОКРУГЛЕНИЕ: -0.09 [16:37:45]line ИТОГО: 600.00 [16:37:45]line Внесено: 600.00 [16:37:45]line СДАЧА: 0.00 [16:37:45]line НСП 1% : 5.31 [16:37:45]line НДС 12% : 63.73 [16:37:45]line Наличными: 600.00 [16:37:45]line Безнал.: 0.00 [16:37:45]line Место: АЗС № 143 "Партнер Нефть" [16:37:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:37:45]line СНО: Общий режим [16:37:45]line Чек 234 24.10.2024 16:37 [16:37:45]line Смена: 534 ФФД: 1.0 [16:37:45]line ЗНМ: 0300000096 [16:37:45]line РНМ: 0000000000091693 [16:37:45]line Версия ККМ: 001 [16:37:45]line ФМ: 0000000000871792 [16:37:45]line ФД: 155609 [16:37:45]line ФПД: 134704258143514 [16:37:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163744&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155609&fm=134704258143514&tin=02508201610067®Number=0000000000091693&sum=60000 [16:37:46]OFD Sender: Processing packet 155609 [packets to send 31, broken 30] [16:37:46]ProducePacketName [16:37:46]name=ofd_packets/00155609 [16:37:46]OFD Sender: To server: pG, [16:37:46]CommunicateWithHost lk.salyk.kg:30040 [16:37:46]ConnectInit lk.salyk.kg [16:37:46]written 0, free lines is 4095 [16:37:46]Connected sock=10 [16: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 39 32 0F 01 00 00 D7 A2 07 01 13 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 D8 77 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 5F 02 00 35 04 06 00 7A 83 47 74 D5 1A 64 F2 44 C4 99 C8 30 64 [16: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 39 32 4F 00 00 00 32 DD 47 00 47 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 39 32 10 04 04 00 D9 5F 02 00 F4 03 04 00 51 1D 1A 67 B6 04 01 00 00 5F F0 30 C1 D6 3C 28 7B [16:37:46]CommunicateWithHost err = 0 [16:37:46]CheckOFDResponse [16:37:46]1017 (14) - 77093643461234 [16:37:46]1041 (16) - 0000000000871792 [16:37:46]1040 (4) - 155609 [16:37:46]1012 (4) - 24.10.2024 10:11 [16:37:46]1206 (1) - 0 [16:37:46]OFD Sender: Remove packet 155609 [16:37:46]ProducePacketName [16:37:46]name=ofd_packets/00155609 [16:37:46]NVStorageDeleteData [16:37:46]Write to MH i2c: 01 00 00 80 13 93 [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: 01 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: 01 07 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: 01 07 00 80 13 00 00 00 00 00 E4 0C 8A [16:37:46]RasterBufferAndPrint [16:37:46]line [16:37:46]line [16:37:46]line [16:37:46]line [16:37:46]line [16:37:46]written 0, free lines is 3306 [16:37:46]process_action close_receipt done [16:37:46]requested_data is exist [16:37:46]produce_requested_data [16:37:46]requested_item fm.sn is exist - process it [16:37:46]wFMCommunicate request_size=4 [16:37:46]MH_SAM_APDU [16:37:46]CAPDU: 80 11 00 00 [16:37:46]Write to MH i2c: E2 08 00 87 13 80 11 00 00 00 00 00 00 14 [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:46]Read from MH i2c: E2 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 17 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 17 00 87 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 69 [16:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:37:46]wFMCommunicate OK [16:37:46]requested_item fd.num is exist - process it [16:37:46]SAM_PROTO_GetFieldsCounters [16:37:46]wFMCommunicate request_size=4 [16:37:46]MH_SAM_APDU [16:37:46]CAPDU: 80 13 00 00 [16:37:46]Write to MH i2c: E2 08 00 88 13 80 13 00 00 00 00 00 00 17 [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:46]Read from MH i2c: E2 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 62 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 62 00 88 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D9 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [16:37: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D9 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:46]wFMCommunicate OK [16:37:46]SAM_PROTO_GetFieldsCounters done [16:37:46]requested_item shift.num is exist - process it [16:37:46]requested_item shift.opened is exist - process it [16:37:46]req_shift_opened [16:37:46]FM_GetShiftState [16:37:46]SAM_PROTO_GetShiftState [16:37:46]wFMCommunicate request_size=4 [16:37:46]MH_SAM_APDU [16:37:46]CAPDU: 80 13 01 00 [16:37:46]Write to MH i2c: E2 08 00 89 13 80 13 01 00 00 00 00 00 19 [16:37:46]Write i2c OK [16:37:46]MH_I2C_Read... [16:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:46]Read from MH i2c: E2 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 0E 00 [16:37:46]MH_I2C_Read... [16:37:46]Read from MH i2c: E2 0E 00 89 13 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 66 [16:37:46]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:37:46]wFMCommunicate OK [16:37:46]SAM_PROTO_GetShiftState done [16:37:46]FM_GetShiftState done [16:37:46]req_shift_opened done [16:37:46]requested_item shift.open_date is exist - process it [16:37:46]req_shift_open_date [16:37:46]req_shift_open_date done [16:37:46]produce_requested_data done [16:37:46]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155609,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:37:46]process_action_free close_receipt [16:37:46]json_value_free [16:37:46]json_value_free done [16:37:46]process_json_proto returns [16:37:46]Send response to host [16:37:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155609,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:37:46]free response buf [16:37:46]execute_script done [16:37:46]execute_script returns [16:37:46]free content buf [16:37:46]Sock 9.Close socket [16:37:46]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:10]accept exits with 8 [16:39:10]New connection [16:39:10]New thread 3066637668 created [16:39:10]Thread 3066781028 joined [16:39:10]Waiting for new connection... [16:39:10] Sock 8.Parse request [16:39:10]Sock 8.Check first char [16:39:10]Sock 8.First char is OK [16:39:10]request: POST /json_proto HTTP/1.0 [16:39:10]Method: POST [16:39:10]URL: /json_proto [16:39:10]Method is POST - this is cgi request [16:39:10]url: /json_proto [16:39:10]query_string will be loaded in cgi processing [16:39:10]execute_cgi json_proto POST (null) [16:39:10]execute_cgi path=json_proto method=POST [16:39:10]POST find Content-Length [16:39:10]Host: 172.17.63.3:8080 [16:39:10]Content-Length: 791 [16:39:10]Content-Type: application/json [16:39:10] [16:39:10]POST finish read [16:39:10]Found Content-Length = 791 [16:39:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53523", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:10]execute_script... [16:39: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)98416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53523", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:10]POST & json_proto [16:39:10]process_json_proto [16:39:10]json parsed OK: [16:39:10]protocol is kg_v1.0 [16:39:10]action value=close_receipt [16:39:10]process_action close_receipt [16:39:10]cmd_close_receipt [16:39:10]MH_GetDate [16:39:10]Write to MH i2c: F0 00 00 8A 13 8C [16:39:10]Write i2c OK [16:39:10]MH_I2C_Read... [16:39:10]Read from MH i2c: F0 [16:39:10]MH_I2C_Read... [16:39:10]Read from MH i2c: F0 09 00 [16:39:10]MH_I2C_Read... [16:39:10]Read from MH i2c: F0 09 00 8A 13 00 2F 78 1A 67 50 D1 6C 64 AE [16:39:10]GetLastDocTimeStamp 1729787864 [16:39:10]current date 1729787951 [16:39:10]FM_GetShiftState [16:39:10]SAM_PROTO_GetShiftState [16:39:10]wFMCommunicate request_size=4 [16:39:10]MH_SAM_APDU [16:39:10]CAPDU: 80 13 01 00 [16:39:10]Write to MH i2c: E2 08 00 8B 13 80 13 01 00 00 00 00 00 1B [16:39:10]Write i2c OK [16:39:10]MH_I2C_Read... [16:39:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:10]Read from MH i2c: E2 [16:39:10]MH_I2C_Read... [16:39:10]Read from MH i2c: E2 0E 00 [16:39:10]MH_I2C_Read... [16:39:10]Read from MH i2c: E2 0E 00 8B 13 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 68 [16:39:10]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:39:10]wFMCommunicate OK [16:39:10]SAM_PROTO_GetShiftState done [16:39:10]FM_GetShiftState done [16:39:10]opened in 1729729836 [16:39:10]opened+sec_in_day 1729816236 [16:39:10]quantity*price = 0 [16:39:10]sum+1 = 1 [16:39:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 235 24.10.2024 16:39 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливная Карта 53523 ФМ: 0000000000871792 ФД: 155610 ФПД: 267311295368410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163911&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155610&fm=267311295368410&tin=02508201610067®Number=0000000000091693&sum=0 [16:39:11]StoreToDocumentArchive [16:39:11]shift 534 fd 155610 [16:39:11]save to /storage/0534/doc_00155610 [16:39:11]save last doc name /storage/0534/doc_00155610 to /storage/kkm_last_doc_name [16:39:11]save OK [16:39:11]Clear old archive folders... [16:39:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:39:11]tlvbuf is 01F95F40 [16:39:11]SAM_PROTO_ClearQueue [16:39:11]wFMCommunicate request_size=4 [16:39:11]MH_SAM_APDU [16:39:11]CAPDU: 80 09 00 00 [16:39:11]Write to MH i2c: E2 08 00 98 13 80 09 00 00 00 00 00 00 1D [16:39:11]Write i2c OK [16:39:11]MH_I2C_Read... [16:39:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:11]Read from MH i2c: E2 [16:39:11]MH_I2C_Read... [16:39:11]Read from MH i2c: E2 03 00 [16:39:11]MH_I2C_Read... [16:39:11]Read from MH i2c: E2 03 00 98 13 00 90 00 1F [16:39:11]RAPDU: 90 00 [16:39:11]wFMCommunicate OK [16:39:11]SAM_PROTO_ClearQueue done [16:39:11]KKMCreateOFDPacket [16:39:11]OFDProtocolAddRootSTLVToBuf [16:39:11]FM_MakeSignedData [16:39:11]FM_MakeSignedData [16:39:11]SAM_PROTO_SignData [16:39:11]wFMCommunicate request_size=4 [16:39:11]MH_SAM_APDU [16:39:11]CAPDU: 80 0D 01 02 [16:39:11]Write to MH i2c: E2 08 00 99 13 80 0D 01 02 00 00 00 00 25 [16:39:11]Write i2c OK [16:39:11]MH_I2C_Read... [16:39:12]OFD Sender: No OFD packet to send [16:39:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:12]Read from MH i2c: E2 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: E2 03 00 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: E2 03 00 99 13 00 90 00 20 [16:39:12]RAPDU: 90 00 [16:39:12]wFMCommunicate OK [16:39:12]wFMCommunicate request_size=255 [16:39:12]MH_SAM_APDU [16:39: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 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 EB 00 00 00 F4 03 04 00 2F 78 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 5F 02 00 35 04 06 00 F3 [16:39:12]Write to MH i2c: E2 02 01 9A 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 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 EB 00 00 00 F4 03 04 00 2F 78 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 5F 02 00 35 04 06 00 F3 00 00 5F [16:39:12]Write i2c OK [16:39:12]MH_I2C_Read... [16:39:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:12]Read from MH i2c: E2 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: E2 03 00 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: E2 03 00 9A 13 00 90 00 21 [16:39:12]RAPDU: 90 00 [16:39:12]wFMCommunicate OK [16:39:12]wFMCommunicate request_size=10 [16:39:12]MH_SAM_APDU [16:39:12]CAPDU: 80 0D 02 02 05 1E 42 CE 0C DA [16:39:12]Write to MH i2c: E2 0D 00 9B 13 80 0D 02 02 05 00 1E 42 CE 0C DA 00 00 46 [16:39:12]Write i2c OK [16:39:12]MH_I2C_Read... [16:39:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:12]Read from MH i2c: E2 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: E2 03 00 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: E2 03 00 9B 13 00 90 00 22 [16:39:12]RAPDU: 90 00 [16:39:12]wFMCommunicate OK [16:39:12]wFMCommunicate request_size=4 [16:39:12]MH_SAM_APDU [16:39:12]CAPDU: 80 0D 03 02 [16:39:12]Write to MH i2c: E2 08 00 9C 13 80 0D 03 02 00 00 00 00 2A [16:39:12]Write i2c OK [16:39:12]MH_I2C_Read... [16:39:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:12]Read from MH i2c: E2 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: E2 0B 00 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: E2 0B 00 9C 13 00 64 FD 68 BA 21 23 71 23 90 00 86 [16:39:12]RAPDU: 64 FD 68 BA 21 23 71 23 90 00 [16:39:12]wFMCommunicate OK [16:39:12]SAM_PROTO_SignData done [16:39:12]FM_MakeSignedData done [16:39:12]CreateOFDProtocolMessage [16:39:12]wFMCommunicate request_size=4 [16:39:12]MH_SAM_APDU [16:39:12]CAPDU: 80 11 00 00 [16:39:12]Write to MH i2c: E2 08 00 9D 13 80 11 00 00 00 00 00 00 2A [16:39:12]Write i2c OK [16:39:12]MH_I2C_Read... [16:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:12]Read from MH i2c: E2 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: E2 17 00 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: E2 17 00 9D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7F [16:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:39:12]wFMCommunicate OK [16:39:12]CreateOFDProtocolMessage done [16:39:12]OFDSenderStorePacket 155610 [16:39:12]StoreOFDPacket docnum=155610 [16:39:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 51 4B 07 01 8C FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EB 00 00 00 F4 03 04 00 2F 78 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 5F 02 00 35 04 06 00 F3 1E 42 CE 0C DA 64 FD 68 BA 21 23 71 23 [16:39:12]CheckFolder [16:39:12]dirname=/storage/ofd_packets [16:39:12]CheckFolder done [16:39:12]ProducePacketName [16:39:12]name=ofd_packets/00155610 [16:39:12]NVStorageSaveData ofd_packets/00155610 [16:39:12]File name is /storage/ofd_packets/00155610 [16:39:12]Write 301 bytes [16:39:12]NVStorageSaveData done [16:39:12]OFDSenderStorePacket done [16:39:12]KKMCreateOFDPacket done [16:39:12]NVStorageSaveData kkm_last_timestamp [16:39:12]File name is /storage/kkm_last_timestamp [16:39:12]Write 4 bytes [16:39:12]NVStorageSaveData done [16:39:12]ExternCall_PrintAddStr [16:39:12]wPrintStart [16:39:12]Write to MH i2c: 01 00 00 9E 13 B1 [16:39:12]Write i2c OK [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: 01 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: 01 07 00 [16:39:12]MH_I2C_Read... [16:39:12]Read from MH i2c: 01 07 00 9E 13 00 00 00 00 00 FF 0F C6 [16:39:12]RasterBufferAndPrint [16:39:12]line Счет N : (1)98416 [16:39:12]line ИНН: 02508201610067 [16:39:12]line Контрольно-Кассовый Чек [16:39:12]line ПРОДАЖА [16:39:12]line ТРК (МРК, ГНК) : 11 [16:39:12]line Товар: 2710124130 [16:39:12]line Аи-92-К-5 [16:39:12]line 15.000 * 0.00 [16:39:12]line = 0.00 [16:39:12]line НДС 12% НСП 1% [16:39:12]line > о реализуемом товаре [16:39:12]line ИТОГО: 0.00 [16:39:12]line НСП 1% : 0.00 [16:39:12]line НДС 12% : 0.00 [16:39:12]line Наличными: 0.00 [16:39:12]line Безнал.: 0.00 [16:39:12]line Место: АЗС № 143 "Партнер Нефть" [16:39:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:39:12]line СНО: Общий режим [16:39:12]line Чек 235 24.10.2024 16:39 [16:39:12]line Смена: 534 ФФД: 1.0 [16:39:12]line ЗНМ: 0300000096 [16:39:12]line РНМ: 0000000000091693 [16:39:12]line Версия ККМ: 001 [16:39:12]line Талоны: Топливная Карта [16:39:12]line 53523 [16:39:12]line ФМ: 0000000000871792 [16:39:12]line ФД: 155610 [16:39:12]line ФПД: 267311295368410 [16:39:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T163911&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155610&fm=267311295368410&tin=02508201610067®Number=0000000000091693&sum=0 [16:39:12]OFD Sender: Processing packet 155610 [packets to send 31, broken 30] [16:39:12]ProducePacketName [16:39:12]name=ofd_packets/00155610 [16:39:12]OFD Sender: To server: pG, [16:39:12]CommunicateWithHost lk.salyk.kg:30040 [16:39:12]ConnectInit lk.salyk.kg [16:39:12]written 0, free lines is 4095 [16:39:12]Connected sock=10 [16:39: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 39 32 0F 01 00 00 51 4B 07 01 8C FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EB 00 00 00 F4 03 04 00 2F 78 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 5F 02 00 35 04 06 00 F3 1E 42 CE 0C DA 64 FD 68 BA 21 23 71 23 [16:39: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 39 32 4F 00 00 00 3E A0 47 00 07 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 39 32 10 04 04 00 DA 5F 02 00 F4 03 04 00 A8 1D 1A 67 B6 04 01 00 00 E3 B7 D1 D2 51 FA 5B 61 [16:39:13]CommunicateWithHost err = 0 [16:39:13]CheckOFDResponse [16:39:13]1017 (14) - 77093643461234 [16:39:13]1041 (16) - 0000000000871792 [16:39:13]1040 (4) - 155610 [16:39:13]1012 (4) - 24.10.2024 10:12 [16:39:13]1206 (1) - 0 [16:39:13]OFD Sender: Remove packet 155610 [16:39:13]ProducePacketName [16:39:13]name=ofd_packets/00155610 [16:39:13]NVStorageDeleteData [16:39:13]Write to MH i2c: 01 00 00 C8 13 DB [16:39:13]Write i2c OK [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: 01 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: 01 07 00 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: 01 07 00 C8 13 00 00 00 00 00 F8 0C E6 [16:39:13]RasterBufferAndPrint [16:39:13]line [16:39:13]line [16:39:13]line [16:39:13]line [16:39:13]line [16:39:13]written 0, free lines is 3326 [16:39:13]process_action close_receipt done [16:39:13]requested_data is exist [16:39:13]produce_requested_data [16:39:13]requested_item fm.sn is exist - process it [16:39:13]wFMCommunicate request_size=4 [16:39:13]MH_SAM_APDU [16:39:13]CAPDU: 80 11 00 00 [16:39:13]Write to MH i2c: E2 08 00 CF 13 80 11 00 00 00 00 00 00 5C [16:39:13]Write i2c OK [16:39:13]MH_I2C_Read... [16:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:13]Read from MH i2c: E2 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 17 00 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 17 00 CF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B1 [16:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:39:13]wFMCommunicate OK [16:39:13]requested_item fd.num is exist - process it [16:39:13]SAM_PROTO_GetFieldsCounters [16:39:13]wFMCommunicate request_size=4 [16:39:13]MH_SAM_APDU [16:39:13]CAPDU: 80 13 00 00 [16:39:13]Write to MH i2c: E2 08 00 D0 13 80 13 00 00 00 00 00 00 5F [16:39:13]Write i2c OK [16:39:13]MH_I2C_Read... [16:39:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:13]Read from MH i2c: E2 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 62 00 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 62 00 D0 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DA 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [16:39:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DA 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:13]wFMCommunicate OK [16:39:13]SAM_PROTO_GetFieldsCounters done [16:39:13]requested_item shift.num is exist - process it [16:39:13]requested_item shift.opened is exist - process it [16:39:13]req_shift_opened [16:39:13]FM_GetShiftState [16:39:13]SAM_PROTO_GetShiftState [16:39:13]wFMCommunicate request_size=4 [16:39:13]MH_SAM_APDU [16:39:13]CAPDU: 80 13 01 00 [16:39:13]Write to MH i2c: E2 08 00 D1 13 80 13 01 00 00 00 00 00 61 [16:39:13]Write i2c OK [16:39:13]MH_I2C_Read... [16:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:13]Read from MH i2c: E2 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 0E 00 [16:39:13]MH_I2C_Read... [16:39:13]Read from MH i2c: E2 0E 00 D1 13 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AE [16:39:13]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:39:13]wFMCommunicate OK [16:39:13]SAM_PROTO_GetShiftState done [16:39:13]FM_GetShiftState done [16:39:13]req_shift_opened done [16:39:13]requested_item shift.open_date is exist - process it [16:39:13]req_shift_open_date [16:39:13]req_shift_open_date done [16:39:13]produce_requested_data done [16:39:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155610,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:39:13]process_action_free close_receipt [16:39:13]json_value_free [16:39:13]json_value_free done [16:39:13]process_json_proto returns [16:39:13]Send response to host [16:39:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155610,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:39:13]free response buf [16:39:13]execute_script done [16:39:13]execute_script returns [16:39:13]free content buf [16:39:13]Sock 8.Close socket [16:39:13]Sock 8.Thread stoped [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:36]int [16:39:36]Write to MH i2c: 01 00 00 D2 13 E5 [16:39:36]*** FLAG_PRN_KEY set [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: 01 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: 01 07 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: 01 07 00 D2 13 00 08 00 00 00 FF 0F 02 [16:39:36]state=0 [16:39:36]Key pressed [16:39:36]Feed [16:39:36]Write to MH i2c: D8 00 00 D3 13 BD [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: D8 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: D8 01 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: D8 01 00 D3 13 00 BE [16:39:36]int [16:39:36]Write to MH i2c: 01 00 00 D4 13 E7 [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: 01 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: 01 07 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: 01 07 00 D4 13 00 48 00 00 00 3D 00 73 [16:39:36]state=2 [16:39:36]Key pressed [16:39:37]int [16:39:37]Write to MH i2c: 01 00 00 D5 13 E8 [16:39:37]*** FLAG_PRN_KEY reset [16:39:37]Write i2c OK [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: 01 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: 01 07 00 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: 01 07 00 D5 13 00 00 00 00 00 F6 0F F4 [16:39:37]state=2 [16:39:37]Stop feed [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:40:59]accept exits with 9 [16:40:59]New connection [16:40:59]New thread 3066781028 created [16:40:59]Thread 3066637668 joined [16:40:59]Waiting for new connection... [16:40:59] Sock 9.Parse request [16:40:59]Sock 9.Check first char [16:40:59]Sock 9.First char is OK [16:40:59]request: POST /json_proto HTTP/1.0 [16:40:59]Method: POST [16:40:59]URL: /json_proto [16:40:59]Method is POST - this is cgi request [16:40:59]url: /json_proto [16:40:59]query_string will be loaded in cgi processing [16:40:59]execute_cgi json_proto POST (null) [16:40:59]execute_cgi path=json_proto method=POST [16:40:59]POST find Content-Length [16:40:59]Host: 172.17.63.3:8080 [16:40:59]Content-Length: 768 [16:40:59]Content-Type: application/json [16:40:59] [16:40:59]POST finish read [16:40:59]Found Content-Length = 768 [16:40:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:59]execute_script... [16:40:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:59]POST & json_proto [16:40:59]process_json_proto [16:40:59]json parsed OK: [16:40:59]protocol is kg_v1.0 [16:40:59]action value=close_receipt [16:40:59]process_action close_receipt [16:40:59]cmd_close_receipt [16:40:59]MH_GetDate [16:40:59]Write to MH i2c: F0 00 00 D6 13 D8 [16:40:59]Write i2c OK [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: F0 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: F0 09 00 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: F0 09 00 D6 13 00 9C 78 1A 67 50 D1 6C 64 67 [16:40:59]GetLastDocTimeStamp 1729787951 [16:40:59]current date 1729788060 [16:40:59]FM_GetShiftState [16:40:59]SAM_PROTO_GetShiftState [16:40:59]wFMCommunicate request_size=4 [16:40:59]MH_SAM_APDU [16:40:59]CAPDU: 80 13 01 00 [16:40:59]Write to MH i2c: E2 08 00 D7 13 80 13 01 00 00 00 00 00 67 [16:40:59]Write i2c OK [16:40:59]MH_I2C_Read... [16:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:59]Read from MH i2c: E2 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: E2 0E 00 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: E2 0E 00 D7 13 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 B4 [16:40:59]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:40:59]wFMCommunicate OK [16:40:59]SAM_PROTO_GetShiftState done [16:40:59]FM_GetShiftState done [16:40:59]opened in 1729729836 [16:40:59]opened+sec_in_day 1729816236 [16:40:59]quantity*price = 100015 [16:40:59]sum+1 = 100017 [16:40:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 236 24.10.2024 16:41 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155611 ФПД: 124201333475668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164100&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155611&fm=124201333475668&tin=02508201610067®Number=0000000000091693&sum=100016 [16:41:00]StoreToDocumentArchive [16:41:00]shift 534 fd 155611 [16:41:00]save to /storage/0534/doc_00155611 [16:41:00]save last doc name /storage/0534/doc_00155611 to /storage/kkm_last_doc_name [16:41:00]save OK [16:41:00]Clear old archive folders... [16:41:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:41:00]tlvbuf is B6E97720 [16:41:00]SAM_PROTO_ClearQueue [16:41:00]wFMCommunicate request_size=4 [16:41:00]MH_SAM_APDU [16:41:00]CAPDU: 80 09 00 00 [16:41:00]Write to MH i2c: E2 08 00 E4 13 80 09 00 00 00 00 00 00 69 [16:41:00]Write i2c OK [16:41:00]MH_I2C_Read... [16:41:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:00]Read from MH i2c: E2 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 E4 13 00 90 00 6B [16:41:00]RAPDU: 90 00 [16:41:00]wFMCommunicate OK [16:41:00]SAM_PROTO_ClearQueue done [16:41:00]KKMCreateOFDPacket [16:41:00]OFDProtocolAddRootSTLVToBuf [16:41:00]FM_MakeSignedData [16:41:00]FM_MakeSignedData [16:41:00]SAM_PROTO_SignData [16:41:00]wFMCommunicate request_size=4 [16:41:00]MH_SAM_APDU [16:41:00]CAPDU: 80 0D 01 02 [16:41:00]Write to MH i2c: E2 08 00 E5 13 80 0D 01 02 00 00 00 00 71 [16:41:00]Write i2c OK [16:41:00]MH_I2C_Read... [16:41:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:00]Read from MH i2c: E2 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 E5 13 00 90 00 6C [16:41:00]RAPDU: 90 00 [16:41:00]wFMCommunicate OK [16:41:00]wFMCommunicate request_size=255 [16:41:00]MH_SAM_APDU [16:41:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 9C 78 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 5F 02 00 35 04 06 00 70 [16:41:00]Write to MH i2c: E2 02 01 E6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 9C 78 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 5F 02 00 35 04 06 00 70 00 00 64 [16:41:00]Write i2c OK [16:41:00]MH_I2C_Read... [16:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:01]Read from MH i2c: E2 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 03 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 03 00 E6 13 00 90 00 6D [16:41:01]RAPDU: 90 00 [16:41:01]wFMCommunicate OK [16:41:01]wFMCommunicate request_size=10 [16:41:01]MH_SAM_APDU [16:41:01]CAPDU: 80 0D 02 02 05 F5 E0 5C C9 54 [16:41:01]Write to MH i2c: E2 0D 00 E7 13 80 0D 02 02 05 00 F5 E0 5C C9 54 00 00 CC [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:01]Read from MH i2c: E2 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 03 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 03 00 E7 13 00 90 00 6E [16:41:01]RAPDU: 90 00 [16:41:01]wFMCommunicate OK [16:41:01]wFMCommunicate request_size=4 [16:41:01]MH_SAM_APDU [16:41:01]CAPDU: 80 0D 03 02 [16:41:01]Write to MH i2c: E2 08 00 E8 13 80 0D 03 02 00 00 00 00 76 [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:01]Read from MH i2c: E2 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 0B 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 0B 00 E8 13 00 25 2D D3 24 4E 58 AB 13 90 00 24 [16:41:01]RAPDU: 25 2D D3 24 4E 58 AB 13 90 00 [16:41:01]wFMCommunicate OK [16:41:01]SAM_PROTO_SignData done [16:41:01]FM_MakeSignedData done [16:41:01]CreateOFDProtocolMessage [16:41:01]wFMCommunicate request_size=4 [16:41:01]MH_SAM_APDU [16:41:01]CAPDU: 80 11 00 00 [16:41:01]Write to MH i2c: E2 08 00 E9 13 80 11 00 00 00 00 00 00 76 [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:01]Read from MH i2c: E2 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 17 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 17 00 E9 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CB [16:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:41:01]wFMCommunicate OK [16:41:01]CreateOFDProtocolMessage done [16:41:01]OFDSenderStorePacket 155611 [16:41:01]StoreOFDPacket docnum=155611 [16:41:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1C 69 07 01 A7 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 9C 78 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 5F 02 00 35 04 06 00 70 F5 E0 5C C9 54 25 2D D3 24 4E 58 AB 13 [16:41:01]CheckFolder [16:41:01]dirname=/storage/ofd_packets [16:41:01]CheckFolder done [16:41:01]ProducePacketName [16:41:01]name=ofd_packets/00155611 [16:41:01]NVStorageSaveData ofd_packets/00155611 [16:41:01]File name is /storage/ofd_packets/00155611 [16:41:01]Write 301 bytes [16:41:01]NVStorageSaveData done [16:41:01]OFDSenderStorePacket done [16:41:01]KKMCreateOFDPacket done [16:41:01]NVStorageSaveData kkm_last_timestamp [16:41:01]File name is /storage/kkm_last_timestamp [16:41:01]Write 4 bytes [16:41:01]NVStorageSaveData done [16:41:01]ExternCall_PrintAddStr [16:41:01]wPrintStart [16:41:01]Write to MH i2c: 01 00 00 EA 13 FD [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 07 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 07 00 EA 13 00 00 00 00 00 FF 0F 12 [16:41:01]RasterBufferAndPrint [16:41:01]line Счет N : (1)98417 [16:41:01]line ИНН: 02508201610067 [16:41:01]line Контрольно-Кассовый Чек [16:41:01]line ПРОДАЖА [16:41:01]line ТРК (МРК, ГНК) : 21 [16:41:01]line Товар: 2710124130 [16:41:01]line Аи-92-К-5 [16:41:01]line 14.950 * 66.90 [16:41:01]line = 1000.16 [16:41:01]line НДС 12% НСП 1% [16:41:01]line > о реализуемом товаре [16:41:01]line ИТОГО: 1000.16 [16:41:01]line НСП 1% : 8.85 [16:41:01]line НДС 12% : 106.21 [16:41:01]line Наличными: 0.00 [16:41:01]line Безнал.: 1000.16 [16:41:01]line Место: АЗС № 143 "Партнер Нефть" [16:41:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:41:01]line СНО: Общий режим [16:41:01]line Чек 236 24.10.2024 16:41 [16:41:01]line Смена: 534 ФФД: 1.0 [16:41:01]line ЗНМ: 0300000096 [16:41:01]line РНМ: 0000000000091693 [16:41:01]line Версия ККМ: 001 [16:41:01]line Платежная система: Mbank [16:41:01]line ФМ: 0000000000871792 [16:41:01]line ФД: 155611 [16:41:01]line ФПД: 124201333475668 [16:41:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164100&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155611&fm=124201333475668&tin=02508201610067®Number=0000000000091693&sum=100016 [16:41:01]OFD Sender: Processing packet 155611 [packets to send 31, broken 30] [16:41:01]ProducePacketName [16:41:01]name=ofd_packets/00155611 [16:41:01]OFD Sender: To server: pG, [16:41:01]CommunicateWithHost lk.salyk.kg:30040 [16:41:01]ConnectInit lk.salyk.kg [16:41:01]written 0, free lines is 4095 [16:41:01]Connected sock=10 [16:41:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1C 69 07 01 A7 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 9C 78 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 5F 02 00 35 04 06 00 70 F5 E0 5C C9 54 25 2D D3 24 4E 58 AB 13 [16:41:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A6 92 47 00 69 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 5F 02 00 F4 03 04 00 14 1E 1A 67 B6 04 01 00 00 18 FC 6C 5A EF D7 C4 90 [16:41:01]CommunicateWithHost err = 0 [16:41:01]CheckOFDResponse [16:41:01]1017 (14) - 77093643461234 [16:41:01]1041 (16) - 0000000000871792 [16:41:01]1040 (4) - 155611 [16:41:01]1012 (4) - 24.10.2024 10:14 [16:41:01]1206 (1) - 0 [16:41:01]OFD Sender: Remove packet 155611 [16:41:01]ProducePacketName [16:41:01]name=ofd_packets/00155611 [16:41:01]NVStorageDeleteData [16:41:02]Write to MH i2c: 01 00 00 13 14 27 [16:41:02]Write i2c OK [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: 01 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: 01 07 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: 01 07 00 13 14 00 00 00 00 00 1F 0D 5A [16:41:02]RasterBufferAndPrint [16:41:02]line [16:41:02]line [16:41:02]line [16:41:02]line [16:41:02]line [16:41:02]written 0, free lines is 3365 [16:41:02]process_action close_receipt done [16:41:02]requested_data is exist [16:41:02]produce_requested_data [16:41:02]requested_item fm.sn is exist - process it [16:41:02]wFMCommunicate request_size=4 [16:41:02]MH_SAM_APDU [16:41:02]CAPDU: 80 11 00 00 [16:41:02]Write to MH i2c: E2 08 00 1A 14 80 11 00 00 00 00 00 00 A8 [16:41:02]Write i2c OK [16:41:02]MH_I2C_Read... [16:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:02]Read from MH i2c: E2 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 17 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 17 00 1A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FD [16:41:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:41:02]wFMCommunicate OK [16:41:02]requested_item fd.num is exist - process it [16:41:02]SAM_PROTO_GetFieldsCounters [16:41:02]wFMCommunicate request_size=4 [16:41:02]MH_SAM_APDU [16:41:02]CAPDU: 80 13 00 00 [16:41:02]Write to MH i2c: E2 08 00 1B 14 80 13 00 00 00 00 00 00 AB [16:41:02]Write i2c OK [16:41:02]MH_I2C_Read... [16:41:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:02]Read from MH i2c: E2 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 62 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 62 00 1B 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DB 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [16:41:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DB 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:02]wFMCommunicate OK [16:41:02]SAM_PROTO_GetFieldsCounters done [16:41:02]requested_item shift.num is exist - process it [16:41:02]requested_item shift.opened is exist - process it [16:41:02]req_shift_opened [16:41:02]FM_GetShiftState [16:41:02]SAM_PROTO_GetShiftState [16:41:02]wFMCommunicate request_size=4 [16:41:02]MH_SAM_APDU [16:41:02]CAPDU: 80 13 01 00 [16:41:02]Write to MH i2c: E2 08 00 1C 14 80 13 01 00 00 00 00 00 AD [16:41:02]Write i2c OK [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 [16:41:02]MH_I2C_Read... [16:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:02]Read from MH i2c: E2 0E 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 0E 00 1C 14 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 FA [16:41:02]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:41:02]wFMCommunicate OK [16:41:02]SAM_PROTO_GetShiftState done [16:41:02]FM_GetShiftState done [16:41:02]req_shift_opened done [16:41:02]requested_item shift.open_date is exist - process it [16:41:02]req_shift_open_date [16:41:02]req_shift_open_date done [16:41:02]produce_requested_data done [16:41:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155611,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:41:02]process_action_free close_receipt [16:41:02]json_value_free [16:41:02]json_value_free done [16:41:02]process_json_proto returns [16:41:02]Send response to host [16:41:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155611,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:41:02]free response buf [16:41:02]execute_script done [16:41:02]execute_script returns [16:41:02]free content buf [16:41:02]Sock 9.Close socket [16:41:02]Sock 9.Thread stoped [16:41:02]OFD Sender: No OFD packet to send [16:41:02]accept exits with 8 [16:41:02]New connection [16:41:02]New thread 3066637668 created [16:41:02]Thread 3066781028 joined [16:41:02]Waiting for new connection... [16:41:02] Sock 8.Parse request [16:41:02]Sock 8.Check first char [16:41:02]Sock 8.First char is OK [16:41:02]request: POST /json_proto HTTP/1.0 [16:41:02]Method: POST [16:41:02]URL: /json_proto [16:41:02]Method is POST - this is cgi request [16:41:02]url: /json_proto [16:41:02]query_string will be loaded in cgi processing [16:41:02]execute_cgi json_proto POST (null) [16:41:02]execute_cgi path=json_proto method=POST [16:41:02]POST find Content-Length [16:41:02]Host: 172.17.63.3:8080 [16:41:02]Content-Length: 676 [16:41:02]Content-Type: application/json [16:41:02] [16:41:02]POST finish read [16:41:02]Found Content-Length = 676 [16:41:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:02]execute_script... [16:41: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)98418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:02]POST & json_proto [16:41:02]process_json_proto [16:41:02]json parsed OK: [16:41:02]protocol is kg_v1.0 [16:41:02]action value=close_receipt [16:41:02]process_action close_receipt [16:41:02]cmd_close_receipt [16:41:02]MH_GetDate [16:41:02]Write to MH i2c: F0 00 00 1D 14 20 [16:41:02]Write i2c OK [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: F0 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: F0 09 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: F0 09 00 1D 14 00 9F 78 1A 67 50 D1 6C 64 B2 [16:41:02]GetLastDocTimeStamp 1729788060 [16:41:02]current date 1729788063 [16:41:02]FM_GetShiftState [16:41:02]SAM_PROTO_GetShiftState [16:41:02]wFMCommunicate request_size=4 [16:41:02]MH_SAM_APDU [16:41:02]CAPDU: 80 13 01 00 [16:41:02]Write to MH i2c: E2 08 00 1E 14 80 13 01 00 00 00 00 00 AF [16:41:02]Write i2c OK [16:41:02]MH_I2C_Read... [16:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:02]Read from MH i2c: E2 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 0E 00 [16:41:02]MH_I2C_Read... [16:41:02]Read from MH i2c: E2 0E 00 1E 14 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 FC [16:41:02]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:41:02]wFMCommunicate OK [16:41:02]SAM_PROTO_GetShiftState done [16:41:02]FM_GetShiftState done [16:41:02]opened in 1729729836 [16:41:02]opened+sec_in_day 1729816236 [16:41:02]quantity*price = 50041 [16:41:02]sum+1 = 50042 [16:41:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 237 24.10.2024 16:41 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155612 ФПД: 40797932131582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164103&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155612&fm=40797932131582&tin=02508201610067®Number=0000000000091693&sum=50000 [16:41:04]StoreToDocumentArchive [16:41:04]shift 534 fd 155612 [16:41:04]save to /storage/0534/doc_00155612 [16:41:04]save last doc name /storage/0534/doc_00155612 to /storage/kkm_last_doc_name [16:41:04]save OK [16:41:04]Clear old archive folders... [16:41:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:41:04]tlvbuf is 01FDCDB0 [16:41:04]SAM_PROTO_ClearQueue [16:41:04]wFMCommunicate request_size=4 [16:41:04]MH_SAM_APDU [16:41:04]CAPDU: 80 09 00 00 [16:41:04]Write to MH i2c: E2 08 00 2B 14 80 09 00 00 00 00 00 00 B1 [16:41:04]Write i2c OK [16:41:04]MH_I2C_Read... [16:41:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:04]Read from MH i2c: E2 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: E2 03 00 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: E2 03 00 2B 14 00 90 00 B3 [16:41:04]RAPDU: 90 00 [16:41:04]wFMCommunicate OK [16:41:04]SAM_PROTO_ClearQueue done [16:41:04]KKMCreateOFDPacket [16:41:04]OFDProtocolAddRootSTLVToBuf [16:41:04]FM_MakeSignedData [16:41:04]FM_MakeSignedData [16:41:04]SAM_PROTO_SignData [16:41:04]wFMCommunicate request_size=4 [16:41:04]MH_SAM_APDU [16:41:04]CAPDU: 80 0D 01 02 [16:41:04]Write to MH i2c: E2 08 00 2C 14 80 0D 01 02 00 00 00 00 B9 [16:41:04]Write i2c OK [16:41:04]MH_I2C_Read... [16:41:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:04]Read from MH i2c: E2 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: E2 03 00 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: E2 03 00 2C 14 00 90 00 B4 [16:41:04]RAPDU: 90 00 [16:41:04]wFMCommunicate OK [16:41:04]wFMCommunicate request_size=255 [16:41:04]MH_SAM_APDU [16:41: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 9F 78 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 5F 02 00 35 04 06 00 25 [16:41:04]Write to MH i2c: E2 02 01 2D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 9F 78 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 5F 02 00 35 04 06 00 25 00 00 4C [16:41:04]Write i2c OK [16:41:04]MH_I2C_Read... [16:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:04]Read from MH i2c: E2 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: E2 03 00 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: E2 03 00 2D 14 00 90 00 B5 [16:41:04]RAPDU: 90 00 [16:41:04]wFMCommunicate OK [16:41:04]wFMCommunicate request_size=10 [16:41:04]MH_SAM_APDU [16:41:04]CAPDU: 80 0D 02 02 05 1B 02 40 94 FE [16:41:04]Write to MH i2c: E2 0D 00 2E 14 80 0D 02 02 05 00 1B 02 40 94 FE 00 00 B5 [16:41:04]Write i2c OK [16:41:04]MH_I2C_Read... [16:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:04]Read from MH i2c: E2 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: E2 03 00 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: E2 03 00 2E 14 00 90 00 B6 [16:41:04]RAPDU: 90 00 [16:41:04]wFMCommunicate OK [16:41:04]wFMCommunicate request_size=4 [16:41:04]MH_SAM_APDU [16:41:04]CAPDU: 80 0D 03 02 [16:41:04]Write to MH i2c: E2 08 00 2F 14 80 0D 03 02 00 00 00 00 BE [16:41:04]Write i2c OK [16:41:04]MH_I2C_Read... [16:41:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:04]Read from MH i2c: E2 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: E2 0B 00 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: E2 0B 00 2F 14 00 7B A2 59 06 C5 79 4F F8 90 00 C0 [16:41:04]RAPDU: 7B A2 59 06 C5 79 4F F8 90 00 [16:41:04]wFMCommunicate OK [16:41:04]SAM_PROTO_SignData done [16:41:04]FM_MakeSignedData done [16:41:04]CreateOFDProtocolMessage [16:41:04]wFMCommunicate request_size=4 [16:41:04]MH_SAM_APDU [16:41:04]CAPDU: 80 11 00 00 [16:41:04]Write to MH i2c: E2 08 00 30 14 80 11 00 00 00 00 00 00 BE [16:41:04]Write i2c OK [16:41:04]MH_I2C_Read... [16:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:04]Read from MH i2c: E2 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: E2 17 00 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: E2 17 00 30 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 13 [16:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:41:04]wFMCommunicate OK [16:41:04]CreateOFDProtocolMessage done [16:41:04]OFDSenderStorePacket 155612 [16:41:04]StoreOFDPacket docnum=155612 [16:41:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BB AD 07 01 8E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 9F 78 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 5F 02 00 35 04 06 00 25 1B 02 40 94 FE 7B A2 59 06 C5 79 4F F8 [16:41:04]CheckFolder [16:41:04]dirname=/storage/ofd_packets [16:41:04]CheckFolder done [16:41:04]ProducePacketName [16:41:04]name=ofd_packets/00155612 [16:41:04]NVStorageSaveData ofd_packets/00155612 [16:41:04]File name is /storage/ofd_packets/00155612 [16:41:04]Write 301 bytes [16:41:04]NVStorageSaveData done [16:41:04]OFDSenderStorePacket done [16:41:04]KKMCreateOFDPacket done [16:41:04]NVStorageSaveData kkm_last_timestamp [16:41:04]File name is /storage/kkm_last_timestamp [16:41:04]Write 4 bytes [16:41:04]NVStorageSaveData done [16:41:04]ExternCall_PrintAddStr [16:41:04]wPrintStart [16:41:04]Write to MH i2c: 01 00 00 31 14 45 [16:41:04]Write i2c OK [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: 01 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: 01 07 00 [16:41:04]MH_I2C_Read... [16:41:04]Read from MH i2c: 01 07 00 31 14 00 00 00 00 00 FF 0F 5A [16:41:04]RasterBufferAndPrint [16:41:04]line Счет N : (1)98418 [16:41:04]line ИНН: 02508201610067 [16:41:04]line Контрольно-Кассовый Чек [16:41:04]line ПРОДАЖА [16:41:04]line ТРК (МРК, ГНК) : 11 [16:41:04]line Товар: 2710124130 [16:41:04]line Аи-92-К-5 [16:41:04]line 7.480 * 66.90 [16:41:04]line = 500.41 [16:41:04]line НДС 12% НСП 1% [16:41:04]line > о реализуемом товаре [16:41:04]line ОКРУГЛЕНИЕ: -0.41 [16:41:04]line ИТОГО: 500.00 [16:41:04]line Внесено: 500.00 [16:41:04]line СДАЧА: 0.00 [16:41:04]line НСП 1% : 4.43 [16:41:04]line НДС 12% : 53.14 [16:41:04]line Наличными: 500.00 [16:41:04]line Безнал.: 0.00 [16:41:04]line Место: АЗС № 143 "Партнер Нефть" [16:41:04]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:41:04]line СНО: Общий режим [16:41:04]line Чек 237 24.10.2024 16:41 [16:41:04]line Смена: 534 ФФД: 1.0 [16:41:04]line ЗНМ: 0300000096 [16:41:04]line РНМ: 0000000000091693 [16:41:04]line Версия ККМ: 001 [16:41:04]line ФМ: 0000000000871792 [16:41:04]line ФД: 155612 [16:41:04]line ФПД: 40797932131582 [16:41:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164103&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155612&fm=40797932131582&tin=02508201610067®Number=0000000000091693&sum=50000 [16:41:04]written 0, free lines is 4095 [16:41:04]OFD Sender: Processing packet 155612 [packets to send 31, broken 30] [16:41:04]ProducePacketName [16:41:04]name=ofd_packets/00155612 [16:41:04]OFD Sender: To server: pG, [16:41:04]CommunicateWithHost lk.salyk.kg:30040 [16:41:04]ConnectInit lk.salyk.kg [16:41:05]Connected sock=10 [16:41: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 39 32 0F 01 00 00 BB AD 07 01 8E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 9F 78 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 5F 02 00 35 04 06 00 25 1B 02 40 94 FE 7B A2 59 06 C5 79 4F F8 [16:41: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 39 32 4F 00 00 00 E9 BD 47 00 EF 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 39 32 10 04 04 00 DC 5F 02 00 F4 03 04 00 18 1E 1A 67 B6 04 01 00 00 04 48 39 F8 65 F5 6A A7 [16:41:05]CommunicateWithHost err = 0 [16:41:05]CheckOFDResponse [16:41:05]1017 (14) - 77093643461234 [16:41:05]1041 (16) - 0000000000871792 [16:41:05]1040 (4) - 155612 [16:41:05]1012 (4) - 24.10.2024 10:14 [16:41:05]1206 (1) - 0 [16:41:05]OFD Sender: Remove packet 155612 [16:41:05]ProducePacketName [16:41:05]name=ofd_packets/00155612 [16:41:05]NVStorageDeleteData [16:41:05]Write to MH i2c: 01 00 00 5C 14 70 [16:41:05]Write i2c OK [16:41:05]MH_I2C_Read... [16:41:05]Read from MH i2c: 01 [16:41:05]MH_I2C_Read... [16:41:05]Read from MH i2c: 01 07 00 [16:41:05]MH_I2C_Read... [16:41:05]Read from MH i2c: 01 07 00 5C 14 00 00 00 00 00 EB 0C 6E [16:41:05]RasterBufferAndPrint [16:41:05]line [16:41:05]line [16:41:05]line [16:41:05]line [16:41:05]line [16:41:05]written 0, free lines is 3319 [16:41:05]process_action close_receipt done [16:41:05]requested_data is exist [16:41:05]produce_requested_data [16:41:05]requested_item fm.sn is exist - process it [16:41:05]wFMCommunicate request_size=4 [16:41:05]MH_SAM_APDU [16:41:05]CAPDU: 80 11 00 00 [16:41:05]Write to MH i2c: E2 08 00 63 14 80 11 00 00 00 00 00 00 F1 [16:41:05]Write i2c OK [16:41:05]MH_I2C_Read... [16:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:05]Read from MH i2c: E2 [16:41:05]MH_I2C_Read... [16:41:05]Read from MH i2c: E2 17 00 [16:41:05]MH_I2C_Read... [16:41:05]Read from MH i2c: E2 17 00 63 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 46 [16:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:41:05]wFMCommunicate OK [16:41:05]requested_item fd.num is exist - process it [16:41:05]SAM_PROTO_GetFieldsCounters [16:41:05]wFMCommunicate request_size=4 [16:41:05]MH_SAM_APDU [16:41:05]CAPDU: 80 13 00 00 [16:41:05]Write to MH i2c: E2 08 00 64 14 80 13 00 00 00 00 00 00 F4 [16:41:05]Write i2c OK [16:41:05]MH_I2C_Read... [16:41:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:05]Read from MH i2c: E2 [16:41:05]MH_I2C_Read... [16:41:05]Read from MH i2c: E2 62 00 [16:41:05]MH_I2C_Read... [16:41:05]Read from MH i2c: E2 62 00 64 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DC 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [16:41:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DC 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:05]wFMCommunicate OK [16:41:05]SAM_PROTO_GetFieldsCounters done [16:41:05]requested_item shift.num is exist - process it [16:41:05]requested_item shift.opened is exist - process it [16:41:05]req_shift_opened [16:41:05]FM_GetShiftState [16:41:05]SAM_PROTO_GetShiftState [16:41:05]wFMCommunicate request_size=4 [16:41:05]MH_SAM_APDU [16:41:05]CAPDU: 80 13 01 00 [16:41:05]Write to MH i2c: E2 08 00 65 14 80 13 01 00 00 00 00 00 F6 [16:41:05]Write i2c OK [16:41:05]MH_I2C_Read... [16:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:05]Read from MH i2c: E2 [16:41:05]MH_I2C_Read... [16:41:05]Read from MH i2c: E2 0E 00 [16:41:05]MH_I2C_Read... [16:41:05]Read from MH i2c: E2 0E 00 65 14 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 43 [16:41:05]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:41:05]wFMCommunicate OK [16:41:05]SAM_PROTO_GetShiftState done [16:41:05]FM_GetShiftState done [16:41:05]req_shift_opened done [16:41:05]requested_item shift.open_date is exist - process it [16:41:05]req_shift_open_date [16:41:05]req_shift_open_date done [16:41:05]produce_requested_data done [16:41:05]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155612,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:41:05]process_action_free close_receipt [16:41:05]json_value_free [16:41:05]json_value_free done [16:41:05]process_json_proto returns [16:41:05]Send response to host [16:41:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155612,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:41:05]free response buf [16:41:05]execute_script done [16:41:05]execute_script returns [16:41:05]free content buf [16:41:05]Sock 8.Close socket [16:41:05]Sock 8.Thread stoped [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:32]accept exits with 9 [16:42:32]New connection [16:42:32]New thread 3066781028 created [16:42:32]Thread 3066637668 joined [16:42:32]Waiting for new connection... [16:42:32] Sock 9.Parse request [16:42:32]Sock 9.Check first char [16:42:32]Sock 9.First char is OK [16:42:32]request: POST /json_proto HTTP/1.0 [16:42:32]Method: POST [16:42:32]URL: /json_proto [16:42:32]Method is POST - this is cgi request [16:42:32]url: /json_proto [16:42:32]query_string will be loaded in cgi processing [16:42:32]execute_cgi json_proto POST (null) [16:42:32]execute_cgi path=json_proto method=POST [16:42:32]POST find Content-Length [16:42:32]Host: 172.17.63.3:8080 [16:42:32]Content-Length: 676 [16:42:32]Content-Type: application/json [16:42:32] [16:42:32]POST finish read [16:42:32]Found Content-Length = 676 [16:42:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:32]execute_script... [16:42:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:32]POST & json_proto [16:42:32]process_json_proto [16:42:32]json parsed OK: [16:42:32]protocol is kg_v1.0 [16:42:32]action value=close_receipt [16:42:32]process_action close_receipt [16:42:32]cmd_close_receipt [16:42:32]MH_GetDate [16:42:32]Write to MH i2c: F0 00 00 66 14 69 [16:42:32]Write i2c OK [16:42:32]MH_I2C_Read... [16:42:32]Read from MH i2c: F0 [16:42:32]MH_I2C_Read... [16:42:32]Read from MH i2c: F0 09 00 [16:42:32]MH_I2C_Read... [16:42:32]Read from MH i2c: F0 09 00 66 14 00 F9 78 1A 67 50 D1 6C 64 55 [16:42:32]GetLastDocTimeStamp 1729788063 [16:42:32]current date 1729788153 [16:42:32]FM_GetShiftState [16:42:32]SAM_PROTO_GetShiftState [16:42:32]wFMCommunicate request_size=4 [16:42:32]MH_SAM_APDU [16:42:32]CAPDU: 80 13 01 00 [16:42:32]Write to MH i2c: E2 08 00 67 14 80 13 01 00 00 00 00 00 F8 [16:42:32]Write i2c OK [16:42:32]MH_I2C_Read... [16:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:32]Read from MH i2c: E2 [16:42:32]MH_I2C_Read... [16:42:32]Read from MH i2c: E2 0E 00 [16:42:32]MH_I2C_Read... [16:42:32]Read from MH i2c: E2 0E 00 67 14 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 45 [16:42:32]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:42:32]wFMCommunicate OK [16:42:32]SAM_PROTO_GetShiftState done [16:42:32]FM_GetShiftState done [16:42:32]opened in 1729729836 [16:42:32]opened+sec_in_day 1729816236 [16:42:32]quantity*price = 50041 [16:42:32]sum+1 = 50042 [16:42:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 238 24.10.2024 16:42 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155613 ФПД: 196251111431918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164233&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155613&fm=196251111431918&tin=02508201610067®Number=0000000000091693&sum=50000 [16:42:33]StoreToDocumentArchive [16:42:33]shift 534 fd 155613 [16:42:33]save to /storage/0534/doc_00155613 [16:42:33]save last doc name /storage/0534/doc_00155613 to /storage/kkm_last_doc_name [16:42:33]save OK [16:42:33]Clear old archive folders... [16:42:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:33]tlvbuf is 01F78880 [16:42:33]SAM_PROTO_ClearQueue [16:42:33]wFMCommunicate request_size=4 [16:42:33]MH_SAM_APDU [16:42:33]CAPDU: 80 09 00 00 [16:42:33]Write to MH i2c: E2 08 00 74 14 80 09 00 00 00 00 00 00 FA [16:42:33]Write i2c OK [16:42:33]MH_I2C_Read... [16:42:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:34]Read from MH i2c: E2 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 03 00 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 03 00 74 14 00 90 00 FC [16:42:34]RAPDU: 90 00 [16:42:34]wFMCommunicate OK [16:42:34]SAM_PROTO_ClearQueue done [16:42:34]KKMCreateOFDPacket [16:42:34]OFDProtocolAddRootSTLVToBuf [16:42:34]FM_MakeSignedData [16:42:34]FM_MakeSignedData [16:42:34]SAM_PROTO_SignData [16:42:34]wFMCommunicate request_size=4 [16:42:34]MH_SAM_APDU [16:42:34]CAPDU: 80 0D 01 02 [16:42:34]Write to MH i2c: E2 08 00 75 14 80 0D 01 02 00 00 00 00 02 [16:42:34]Write i2c OK [16:42:34]MH_I2C_Read... [16:42:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:34]Read from MH i2c: E2 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 03 00 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 03 00 75 14 00 90 00 FD [16:42:34]RAPDU: 90 00 [16:42:34]wFMCommunicate OK [16:42:34]wFMCommunicate request_size=255 [16:42:34]MH_SAM_APDU [16:42: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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 F9 78 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 5F 02 00 35 04 06 00 B2 [16:42:34]Write to MH i2c: E2 02 01 76 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 F9 78 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 5F 02 00 35 04 06 00 B2 00 00 7E [16:42:34]Write i2c OK [16:42:34]MH_I2C_Read... [16:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:34]Read from MH i2c: E2 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 03 00 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 03 00 76 14 00 90 00 FE [16:42:34]RAPDU: 90 00 [16:42:34]wFMCommunicate OK [16:42:34]wFMCommunicate request_size=10 [16:42:34]MH_SAM_APDU [16:42:34]CAPDU: 80 0D 02 02 05 7D 45 C8 9E EE [16:42:34]Write to MH i2c: E2 0D 00 77 14 80 0D 02 02 05 00 7D 45 C8 9E EE 00 00 25 [16:42:34]Write i2c OK [16:42:34]MH_I2C_Read... [16:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:34]Read from MH i2c: E2 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 03 00 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 03 00 77 14 00 90 00 FF [16:42:34]RAPDU: 90 00 [16:42:34]wFMCommunicate OK [16:42:34]wFMCommunicate request_size=4 [16:42:34]MH_SAM_APDU [16:42:34]CAPDU: 80 0D 03 02 [16:42:34]Write to MH i2c: E2 08 00 78 14 80 0D 03 02 00 00 00 00 07 [16:42:34]Write i2c OK [16:42:34]MH_I2C_Read... [16:42:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:34]Read from MH i2c: E2 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 0B 00 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 0B 00 78 14 00 D0 FA FB 44 36 78 C0 D9 90 00 58 [16:42:34]RAPDU: D0 FA FB 44 36 78 C0 D9 90 00 [16:42:34]wFMCommunicate OK [16:42:34]SAM_PROTO_SignData done [16:42:34]FM_MakeSignedData done [16:42:34]CreateOFDProtocolMessage [16:42:34]wFMCommunicate request_size=4 [16:42:34]MH_SAM_APDU [16:42:34]CAPDU: 80 11 00 00 [16:42:34]Write to MH i2c: E2 08 00 79 14 80 11 00 00 00 00 00 00 07 [16:42:34]Write i2c OK [16:42:34]MH_I2C_Read... [16:42:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:34]Read from MH i2c: E2 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 17 00 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: E2 17 00 79 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5C [16:42:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:42:34]wFMCommunicate OK [16:42:34]CreateOFDProtocolMessage done [16:42:34]OFDSenderStorePacket 155613 [16:42:34]StoreOFDPacket docnum=155613 [16:42:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E5 C5 07 01 67 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 F9 78 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 5F 02 00 35 04 06 00 B2 7D 45 C8 9E EE D0 FA FB 44 36 78 C0 D9 [16:42:34]CheckFolder [16:42:34]dirname=/storage/ofd_packets [16:42:34]CheckFolder done [16:42:34]ProducePacketName [16:42:34]name=ofd_packets/00155613 [16:42:34]NVStorageSaveData ofd_packets/00155613 [16:42:34]File name is /storage/ofd_packets/00155613 [16:42:34]Write 301 bytes [16:42:34]NVStorageSaveData done [16:42:34]OFDSenderStorePacket done [16:42:34]KKMCreateOFDPacket done [16:42:34]NVStorageSaveData kkm_last_timestamp [16:42:34]File name is /storage/kkm_last_timestamp [16:42:34]Write 4 bytes [16:42:34]NVStorageSaveData done [16:42:34]ExternCall_PrintAddStr [16:42:34]wPrintStart [16:42:34]Write to MH i2c: 01 00 00 7A 14 8E [16:42:34]Write i2c OK [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: 01 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: 01 07 00 [16:42:34]MH_I2C_Read... [16:42:34]Read from MH i2c: 01 07 00 7A 14 00 00 00 00 00 FF 0F A3 [16:42:34]RasterBufferAndPrint [16:42:34]line Счет N : (1)98419 [16:42:34]line ИНН: 02508201610067 [16:42:34]line Контрольно-Кассовый Чек [16:42:34]line ПРОДАЖА [16:42:34]line ТРК (МРК, ГНК) : 11 [16:42:34]line Товар: 2710124130 [16:42:34]line Аи-92-К-5 [16:42:34]line 7.480 * 66.90 [16:42:34]line = 500.41 [16:42:34]line НДС 12% НСП 1% [16:42:34]line > о реализуемом товаре [16:42:34]line ОКРУГЛЕНИЕ: -0.41 [16:42:34]line ИТОГО: 500.00 [16:42:34]line Внесено: 500.00 [16:42:34]line СДАЧА: 0.00 [16:42:34]line НСП 1% : 4.43 [16:42:34]line НДС 12% : 53.14 [16:42:34]line Наличными: 500.00 [16:42:34]line Безнал.: 0.00 [16:42:34]line Место: АЗС № 143 "Партнер Нефть" [16:42:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:42:34]line СНО: Общий режим [16:42:34]line Чек 238 24.10.2024 16:42 [16:42:34]line Смена: 534 ФФД: 1.0 [16:42:34]line ЗНМ: 0300000096 [16:42:34]line РНМ: 0000000000091693 [16:42:34]line Версия ККМ: 001 [16:42:34]line ФМ: 0000000000871792 [16:42:34]line ФД: 155613 [16:42:34]line ФПД: 196251111431918 [16:42:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164233&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155613&fm=196251111431918&tin=02508201610067®Number=0000000000091693&sum=50000 [16:42:34]OFD Sender: Processing packet 155613 [packets to send 31, broken 30] [16:42:34]ProducePacketName [16:42:34]name=ofd_packets/00155613 [16:42:34]OFD Sender: To server: pG, [16:42:34]CommunicateWithHost lk.salyk.kg:30040 [16:42:34]ConnectInit lk.salyk.kg [16:42:34]written 0, free lines is 4095 [16:42:35]Connected sock=10 [16:42: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 39 32 0F 01 00 00 E5 C5 07 01 67 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 F9 78 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 5F 02 00 35 04 06 00 B2 7D 45 C8 9E EE D0 FA FB 44 36 78 C0 D9 [16:42: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 39 32 4F 00 00 00 40 66 47 00 43 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 5F 02 00 F4 03 04 00 72 1E 1A 67 B6 04 01 00 00 51 DA FA 55 06 37 D8 C8 [16:42:35]CommunicateWithHost err = 0 [16:42:35]CheckOFDResponse [16:42:35]1017 (14) - 77093643461234 [16:42:35]1041 (16) - 0000000000871792 [16:42:35]1040 (4) - 155613 [16:42:35]1012 (4) - 24.10.2024 10:16 [16:42:35]1206 (1) - 0 [16:42:35]OFD Sender: Remove packet 155613 [16:42:35]ProducePacketName [16:42:35]name=ofd_packets/00155613 [16:42:35]NVStorageDeleteData [16:42:35]Write to MH i2c: 01 00 00 A5 14 B9 [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: 01 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: 01 07 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: 01 07 00 A5 14 00 00 00 00 00 F4 0C C0 [16:42:35]RasterBufferAndPrint [16:42:35]line [16:42:35]line [16:42:35]line [16:42:35]line [16:42:35]line [16:42:35]written 0, free lines is 3322 [16:42:35]process_action close_receipt done [16:42:35]requested_data is exist [16:42:35]produce_requested_data [16:42:35]requested_item fm.sn is exist - process it [16:42:35]wFMCommunicate request_size=4 [16:42:35]MH_SAM_APDU [16:42:35]CAPDU: 80 11 00 00 [16:42:35]Write to MH i2c: E2 08 00 AC 14 80 11 00 00 00 00 00 00 3A [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:35]Read from MH i2c: E2 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 17 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 17 00 AC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8F [16:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:42:35]wFMCommunicate OK [16:42:35]requested_item fd.num is exist - process it [16:42:35]SAM_PROTO_GetFieldsCounters [16:42:35]wFMCommunicate request_size=4 [16:42:35]MH_SAM_APDU [16:42:35]CAPDU: 80 13 00 00 [16:42:35]Write to MH i2c: E2 08 00 AD 14 80 13 00 00 00 00 00 00 3D [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:35]Read from MH i2c: E2 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 62 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 62 00 AD 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DD 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [16:42: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DD 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:35]wFMCommunicate OK [16:42:35]SAM_PROTO_GetFieldsCounters done [16:42:35]requested_item shift.num is exist - process it [16:42:35]requested_item shift.opened is exist - process it [16:42:35]req_shift_opened [16:42:35]FM_GetShiftState [16:42:35]SAM_PROTO_GetShiftState [16:42:35]wFMCommunicate request_size=4 [16:42:35]MH_SAM_APDU [16:42:35]CAPDU: 80 13 01 00 [16:42:35]Write to MH i2c: E2 08 00 AE 14 80 13 01 00 00 00 00 00 3F [16:42:35]Write i2c OK [16:42:35]MH_I2C_Read... [16:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:35]Read from MH i2c: E2 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 0E 00 [16:42:35]MH_I2C_Read... [16:42:35]Read from MH i2c: E2 0E 00 AE 14 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8C [16:42:35]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:42:35]wFMCommunicate OK [16:42:35]SAM_PROTO_GetShiftState done [16:42:35]FM_GetShiftState done [16:42:35]req_shift_opened done [16:42:35]requested_item shift.open_date is exist - process it [16:42:35]req_shift_open_date [16:42:35]req_shift_open_date done [16:42:35]produce_requested_data done [16:42:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155613,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:42:35]process_action_free close_receipt [16:42:35]json_value_free [16:42:35]json_value_free done [16:42:35]process_json_proto returns [16:42:35]Send response to host [16:42:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155613,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:42:35]free response buf [16:42:35]execute_script done [16:42:35]execute_script returns [16:42:35]free content buf [16:42:35]Sock 9.Close socket [16:42:35]Sock 9.Thread stoped [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [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:51]accept exits with 8 [16:44:51]New connection [16:44:51]New thread 3066637668 created [16:44:51]Thread 3066781028 joined [16:44:51]Waiting for new connection... [16:44:51] Sock 8.Parse request [16:44:51]Sock 8.Check first char [16:44:51]Sock 8.First char is OK [16:44:51]request: POST /json_proto HTTP/1.0 [16:44:51]Method: POST [16:44:51]URL: /json_proto [16:44:51]Method is POST - this is cgi request [16:44:51]url: /json_proto [16:44:51]query_string will be loaded in cgi processing [16:44:51]execute_cgi json_proto POST (null) [16:44:51]execute_cgi path=json_proto method=POST [16:44:51]POST find Content-Length [16:44:51]Host: 172.17.63.3:8080 [16:44:51]Content-Length: 765 [16:44:51]Content-Type: application/json [16:44:51] [16:44:51]POST finish read [16:44:51]Found Content-Length = 765 [16:44:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:51]execute_script... [16:44: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)98420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:51]POST & json_proto [16:44:51]process_json_proto [16:44:51]json parsed OK: [16:44:51]protocol is kg_v1.0 [16:44:51]action value=close_receipt [16:44:51]process_action close_receipt [16:44:51]cmd_close_receipt [16:44:51]MH_GetDate [16:44:51]Write to MH i2c: F0 00 00 AF 14 B2 [16:44:51]Write i2c OK [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: F0 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: F0 09 00 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: F0 09 00 AF 14 00 84 79 1A 67 50 D1 6C 64 2A [16:44:51]GetLastDocTimeStamp 1729788153 [16:44:51]current date 1729788292 [16:44:51]FM_GetShiftState [16:44:51]SAM_PROTO_GetShiftState [16:44:51]wFMCommunicate request_size=4 [16:44:51]MH_SAM_APDU [16:44:51]CAPDU: 80 13 01 00 [16:44:51]Write to MH i2c: E2 08 00 B0 14 80 13 01 00 00 00 00 00 41 [16:44:51]Write i2c OK [16:44:51]MH_I2C_Read... [16:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:51]Read from MH i2c: E2 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 0E 00 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 0E 00 B0 14 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8E [16:44:51]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:44:51]wFMCommunicate OK [16:44:51]SAM_PROTO_GetShiftState done [16:44:51]FM_GetShiftState done [16:44:51]opened in 1729729836 [16:44:51]opened+sec_in_day 1729816236 [16:44:51]quantity*price = 20003 [16:44:51]sum+1 = 20004 [16:44:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 239 24.10.2024 16:44 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155614 ФПД: 248704102867746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164452&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155614&fm=248704102867746&tin=02508201610067®Number=0000000000091693&sum=20003 [16:44:52]StoreToDocumentArchive [16:44:52]shift 534 fd 155614 [16:44:52]save to /storage/0534/doc_00155614 [16:44:52]save last doc name /storage/0534/doc_00155614 to /storage/kkm_last_doc_name [16:44:52]save OK [16:44:52]Clear old archive folders... [16:44:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:52]tlvbuf is 01F78440 [16:44:52]SAM_PROTO_ClearQueue [16:44:52]wFMCommunicate request_size=4 [16:44:52]MH_SAM_APDU [16:44:52]CAPDU: 80 09 00 00 [16:44:52]Write to MH i2c: E2 08 00 BD 14 80 09 00 00 00 00 00 00 43 [16:44:52]Write i2c OK [16:44:52]MH_I2C_Read... [16:44:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:52]Read from MH i2c: E2 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: E2 03 00 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: E2 03 00 BD 14 00 90 00 45 [16:44:52]RAPDU: 90 00 [16:44:52]wFMCommunicate OK [16:44:52]SAM_PROTO_ClearQueue done [16:44:52]KKMCreateOFDPacket [16:44:52]OFDProtocolAddRootSTLVToBuf [16:44:52]FM_MakeSignedData [16:44:52]FM_MakeSignedData [16:44:52]SAM_PROTO_SignData [16:44:52]wFMCommunicate request_size=4 [16:44:52]MH_SAM_APDU [16:44:52]CAPDU: 80 0D 01 02 [16:44:52]Write to MH i2c: E2 08 00 BE 14 80 0D 01 02 00 00 00 00 4B [16:44:52]Write i2c OK [16:44:52]MH_I2C_Read... [16:44:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:52]Read from MH i2c: E2 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: E2 03 00 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: E2 03 00 BE 14 00 90 00 46 [16:44:52]RAPDU: 90 00 [16:44:52]wFMCommunicate OK [16:44:52]wFMCommunicate request_size=255 [16:44:52]MH_SAM_APDU [16:44: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 84 79 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 5F 02 00 35 04 06 00 E2 [16:44:52]Write to MH i2c: E2 02 01 BF 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 84 79 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 5F 02 00 35 04 06 00 E2 00 00 4D [16:44:52]Write i2c OK [16:44:52]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 03 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 03 00 BF 14 00 90 00 47 [16:44:53]RAPDU: 90 00 [16:44:53]wFMCommunicate OK [16:44:53]wFMCommunicate request_size=10 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 0D 02 02 05 31 EF B4 A3 22 [16:44:53]Write to MH i2c: E2 0D 00 C0 14 80 0D 02 02 05 00 31 EF B4 A3 22 00 00 F1 [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 03 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 03 00 C0 14 00 90 00 48 [16:44:53]RAPDU: 90 00 [16:44:53]wFMCommunicate OK [16:44:53]wFMCommunicate request_size=4 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 0D 03 02 [16:44:53]Write to MH i2c: E2 08 00 C1 14 80 0D 03 02 00 00 00 00 50 [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 0B 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 0B 00 C1 14 00 B7 6F 16 67 90 37 B8 DE 90 00 51 [16:44:53]RAPDU: B7 6F 16 67 90 37 B8 DE 90 00 [16:44:53]wFMCommunicate OK [16:44:53]SAM_PROTO_SignData done [16:44:53]FM_MakeSignedData done [16:44:53]CreateOFDProtocolMessage [16:44:53]wFMCommunicate request_size=4 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 11 00 00 [16:44:53]Write to MH i2c: E2 08 00 C2 14 80 11 00 00 00 00 00 00 50 [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 17 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 17 00 C2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A5 [16:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:44:53]wFMCommunicate OK [16:44:53]CreateOFDProtocolMessage done [16:44:53]OFDSenderStorePacket 155614 [16:44:53]StoreOFDPacket docnum=155614 [16:44:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 30 58 07 01 D8 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 84 79 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 5F 02 00 35 04 06 00 E2 31 EF B4 A3 22 B7 6F 16 67 90 37 B8 DE [16:44:53]CheckFolder [16:44:53]dirname=/storage/ofd_packets [16:44:53]CheckFolder done [16:44:53]ProducePacketName [16:44:53]name=ofd_packets/00155614 [16:44:53]NVStorageSaveData ofd_packets/00155614 [16:44:53]File name is /storage/ofd_packets/00155614 [16:44:53]Write 301 bytes [16:44:53]NVStorageSaveData done [16:44:53]OFDSenderStorePacket done [16:44:53]KKMCreateOFDPacket done [16:44:53]NVStorageSaveData kkm_last_timestamp [16:44:53]File name is /storage/kkm_last_timestamp [16:44:53]Write 4 bytes [16:44:53]NVStorageSaveData done [16:44:53]ExternCall_PrintAddStr [16:44:53]wPrintStart [16:44:53]Write to MH i2c: 01 00 00 C3 14 D7 [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: 01 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: 01 07 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: 01 07 00 C3 14 00 00 00 00 00 FF 0F EC [16:44:53]RasterBufferAndPrint [16:44:53]line Счет N : (1)98420 [16:44:53]line ИНН: 02508201610067 [16:44:53]line Контрольно-Кассовый Чек [16:44:53]line ПРОДАЖА [16:44:53]line ТРК (МРК, ГНК) : 31 [16:44:53]line Товар: 2710124130 [16:44:53]line Аи-92-К-5 [16:44:53]line 2.990 * 66.90 [16:44:53]line = 200.03 [16:44:53]line НДС 12% НСП 1% [16:44:53]line > о реализуемом товаре [16:44:53]line ИТОГО: 200.03 [16:44:53]line НСП 1% : 1.77 [16:44:53]line НДС 12% : 21.24 [16:44:53]line Наличными: 0.00 [16:44:53]line Безнал.: 200.03 [16:44:53]line Место: АЗС № 143 "Партнер Нефть" [16:44:53]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:44:53]line СНО: Общий режим [16:44:53]line Чек 239 24.10.2024 16:44 [16:44:53]line Смена: 534 ФФД: 1.0 [16:44:53]line ЗНМ: 0300000096 [16:44:53]line РНМ: 0000000000091693 [16:44:53]line Версия ККМ: 001 [16:44:53]line Платежная система: Mbank [16:44:53]line ФМ: 0000000000871792 [16:44:53]line ФД: 155614 [16:44:53]line ФПД: 248704102867746 [16:44:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164452&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155614&fm=248704102867746&tin=02508201610067®Number=0000000000091693&sum=20003 [16:44:53]OFD Sender: Processing packet 155614 [packets to send 31, broken 30] [16:44:53]ProducePacketName [16:44:53]name=ofd_packets/00155614 [16:44:53]OFD Sender: To server: pG, [16:44:53]CommunicateWithHost lk.salyk.kg:30040 [16:44:53]ConnectInit lk.salyk.kg [16:44:53]written 0, free lines is 4095 [16:44:53]Connected sock=11 [16:44: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 39 32 0F 01 00 00 30 58 07 01 D8 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 84 79 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 5F 02 00 35 04 06 00 E2 31 EF B4 A3 22 B7 6F 16 67 90 37 B8 DE [16:44: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 39 32 4F 00 00 00 E0 8D 47 00 B8 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 39 32 10 04 04 00 DE 5F 02 00 F4 03 04 00 FC 1E 1A 67 B6 04 01 00 00 64 59 B0 6E 63 23 CF 58 [16:44:53]CommunicateWithHost err = 0 [16:44:53]CheckOFDResponse [16:44:53]1017 (14) - 77093643461234 [16:44:53]1041 (16) - 0000000000871792 [16:44:53]1040 (4) - 155614 [16:44:53]1012 (4) - 24.10.2024 10:18 [16:44:53]1206 (1) - 0 [16:44:53]OFD Sender: Remove packet 155614 [16:44:53]ProducePacketName [16:44:53]name=ofd_packets/00155614 [16:44:53]NVStorageDeleteData [16:44:54]Write to MH i2c: 01 00 00 EC 14 00 [16:44:54]Write i2c OK [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: 01 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: 01 07 00 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: 01 07 00 EC 14 00 00 00 00 00 1D 0D 31 [16:44:54]RasterBufferAndPrint [16:44:54]line [16:44:54]line [16:44:54]line [16:44:54]line [16:44:54]line [16:44:54]written 0, free lines is 3363 [16:44:54]process_action close_receipt done [16:44:54]requested_data is exist [16:44:54]produce_requested_data [16:44:54]requested_item fm.sn is exist - process it [16:44:54]wFMCommunicate request_size=4 [16:44:54]MH_SAM_APDU [16:44:54]CAPDU: 80 11 00 00 [16:44:54]Write to MH i2c: E2 08 00 F3 14 80 11 00 00 00 00 00 00 81 [16:44:54]Write i2c OK [16:44:54]MH_I2C_Read... [16:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:54]Read from MH i2c: E2 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 17 00 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 17 00 F3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D6 [16:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:44:54]wFMCommunicate OK [16:44:54]requested_item fd.num is exist - process it [16:44:54]SAM_PROTO_GetFieldsCounters [16:44:54]wFMCommunicate request_size=4 [16:44:54]MH_SAM_APDU [16:44:54]CAPDU: 80 13 00 00 [16:44:54]Write to MH i2c: E2 08 00 F4 14 80 13 00 00 00 00 00 00 84 [16:44:54]Write i2c OK [16:44:54]MH_I2C_Read... [16:44:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:54]Read from MH i2c: E2 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 62 00 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 62 00 F4 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DE 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [16:44: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DE 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:54]wFMCommunicate OK [16:44:54]SAM_PROTO_GetFieldsCounters done [16:44:54]requested_item shift.num is exist - process it [16:44:54]requested_item shift.opened is exist - process it [16:44:54]req_shift_opened [16:44:54]FM_GetShiftState [16:44:54]SAM_PROTO_GetShiftState [16:44:54]wFMCommunicate request_size=4 [16:44:54]MH_SAM_APDU [16:44:54]CAPDU: 80 13 01 00 [16:44:54]Write to MH i2c: E2 08 00 F5 14 80 13 01 00 00 00 00 00 86 [16:44:54]Write i2c OK [16:44:54]MH_I2C_Read... [16:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:54]Read from MH i2c: E2 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 0E 00 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: E2 0E 00 F5 14 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D3 [16:44:54]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:44:54]wFMCommunicate OK [16:44:54]SAM_PROTO_GetShiftState done [16:44:54]FM_GetShiftState done [16:44:54]req_shift_opened done [16:44:54]requested_item shift.open_date is exist - process it [16:44:54]req_shift_open_date [16:44:54]req_shift_open_date done [16:44:54]produce_requested_data done [16:44:54]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155614,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:44:54]process_action_free close_receipt [16:44:54]json_value_free [16:44:54]json_value_free done [16:44:54]process_json_proto returns [16:44:54]Send response to host [16:44:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155614,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:44:54]free response buf [16:44:54]execute_script done [16:44:54]execute_script returns [16:44:54]free content buf [16:44:54]Sock 8.Close socket [16:44:54]Sock 8.Thread stoped [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:36]accept exits with 9 [16:47:36]New connection [16:47:36]New thread 3066781028 created [16:47:36]Thread 3066637668 joined [16:47:36]Waiting for new connection... [16:47:36] Sock 9.Parse request [16:47:36]Sock 9.Check first char [16:47:36]Sock 9.First char is OK [16:47:36]request: POST /json_proto HTTP/1.0 [16:47:36]Method: POST [16:47:36]URL: /json_proto [16:47:36]Method is POST - this is cgi request [16:47:36]url: /json_proto [16:47:36]query_string will be loaded in cgi processing [16:47:36]execute_cgi json_proto POST (null) [16:47:36]execute_cgi path=json_proto method=POST [16:47:36]POST find Content-Length [16:47:36]Host: 172.17.63.3:8080 [16:47:36]Content-Length: 681 [16:47:36]Content-Type: application/json [16:47:36] [16:47:36]POST finish read [16:47:36]Found Content-Length = 681 [16:47:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:36]execute_script... [16:47: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)98421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:36]POST & json_proto [16:47:36]process_json_proto [16:47:36]json parsed OK: [16:47:36]protocol is kg_v1.0 [16:47:36]action value=close_receipt [16:47:36]process_action close_receipt [16:47:36]cmd_close_receipt [16:47:36]MH_GetDate [16:47:36]Write to MH i2c: F0 00 00 F6 14 F9 [16:47:36]Write i2c OK [16:47:36]MH_I2C_Read... [16:47:36]Read from MH i2c: F0 [16:47:36]MH_I2C_Read... [16:47:36]Read from MH i2c: F0 09 00 [16:47:36]MH_I2C_Read... [16:47:36]Read from MH i2c: F0 09 00 F6 14 00 29 7A 1A 67 50 D1 6C 64 17 [16:47:36]GetLastDocTimeStamp 1729788292 [16:47:36]current date 1729788457 [16:47:36]FM_GetShiftState [16:47:36]SAM_PROTO_GetShiftState [16:47:36]wFMCommunicate request_size=4 [16:47:36]MH_SAM_APDU [16:47:36]CAPDU: 80 13 01 00 [16:47:36]Write to MH i2c: E2 08 00 F7 14 80 13 01 00 00 00 00 00 88 [16:47:36]Write i2c OK [16:47:36]MH_I2C_Read... [16:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:36]Read from MH i2c: E2 [16:47:36]MH_I2C_Read... [16:47:36]Read from MH i2c: E2 0E 00 [16:47:36]MH_I2C_Read... [16:47:36]Read from MH i2c: E2 0E 00 F7 14 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D5 [16:47:36]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:47:36]wFMCommunicate OK [16:47:36]SAM_PROTO_GetShiftState done [16:47:36]FM_GetShiftState done [16:47:36]opened in 1729729836 [16:47:36]opened+sec_in_day 1729816236 [16:47:36]quantity*price = 100015 [16:47:36]sum+1 = 100017 [16:47:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 240 24.10.2024 16:47 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155615 ФПД: 186017773020960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164737&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155615&fm=186017773020960&tin=02508201610067®Number=0000000000091693&sum=100000 [16:47:37]StoreToDocumentArchive [16:47:37]shift 534 fd 155615 [16:47:37]save to /storage/0534/doc_00155615 [16:47:37]save last doc name /storage/0534/doc_00155615 to /storage/kkm_last_doc_name [16:47:37]save OK [16:47:37]Clear old archive folders... [16:47:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:37]tlvbuf is 01F90510 [16:47:37]SAM_PROTO_ClearQueue [16:47:37]wFMCommunicate request_size=4 [16:47:37]MH_SAM_APDU [16:47:37]CAPDU: 80 09 00 00 [16:47:37]Write to MH i2c: E2 08 00 04 15 80 09 00 00 00 00 00 00 8B [16:47:37]Write i2c OK [16:47:37]MH_I2C_Read... [16:47:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:37]Read from MH i2c: E2 [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: E2 03 00 [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: E2 03 00 04 15 00 90 00 8D [16:47:37]RAPDU: 90 00 [16:47:37]wFMCommunicate OK [16:47:37]SAM_PROTO_ClearQueue done [16:47:37]KKMCreateOFDPacket [16:47:37]OFDProtocolAddRootSTLVToBuf [16:47:37]FM_MakeSignedData [16:47:37]FM_MakeSignedData [16:47:37]SAM_PROTO_SignData [16:47:37]wFMCommunicate request_size=4 [16:47:37]MH_SAM_APDU [16:47:37]CAPDU: 80 0D 01 02 [16:47:37]Write to MH i2c: E2 08 00 05 15 80 0D 01 02 00 00 00 00 93 [16:47:37]Write i2c OK [16:47:37]MH_I2C_Read... [16:47:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:37]Read from MH i2c: E2 [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: E2 03 00 [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: E2 03 00 05 15 00 90 00 8E [16:47:37]RAPDU: 90 00 [16:47:37]wFMCommunicate OK [16:47:37]wFMCommunicate request_size=255 [16:47:37]MH_SAM_APDU [16:47: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 29 7A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 5F 02 00 35 04 06 00 A9 [16:47:37]Write to MH i2c: E2 02 01 06 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 29 7A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 5F 02 00 35 04 06 00 A9 00 00 36 [16:47:37]Write i2c OK [16:47:37]MH_I2C_Read... [16:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:37]Read from MH i2c: E2 [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: E2 03 00 [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: E2 03 00 06 15 00 90 00 8F [16:47:37]RAPDU: 90 00 [16:47:37]wFMCommunicate OK [16:47:37]wFMCommunicate request_size=10 [16:47:37]MH_SAM_APDU [16:47:37]CAPDU: 80 0D 02 02 05 2E A3 48 67 20 [16:47:37]Write to MH i2c: E2 0D 00 07 15 80 0D 02 02 05 00 2E A3 48 67 20 00 00 40 [16:47:37]Write i2c OK [16:47:37]MH_I2C_Read... [16:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:37]Read from MH i2c: E2 [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: E2 03 00 [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: E2 03 00 07 15 00 90 00 90 [16:47:37]RAPDU: 90 00 [16:47:37]wFMCommunicate OK [16:47:37]wFMCommunicate request_size=4 [16:47:37]MH_SAM_APDU [16:47:37]CAPDU: 80 0D 03 02 [16:47:37]Write to MH i2c: E2 08 00 08 15 80 0D 03 02 00 00 00 00 98 [16:47:37]Write i2c OK [16:47:37]MH_I2C_Read... [16:47:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:38]Read from MH i2c: E2 [16:47:38]MH_I2C_Read... [16:47:38]Read from MH i2c: E2 0B 00 [16:47:38]MH_I2C_Read... [16:47:38]Read from MH i2c: E2 0B 00 08 15 00 9D B9 29 50 DA 13 1C 95 90 00 06 [16:47:38]RAPDU: 9D B9 29 50 DA 13 1C 95 90 00 [16:47:38]wFMCommunicate OK [16:47:38]SAM_PROTO_SignData done [16:47:38]FM_MakeSignedData done [16:47:38]CreateOFDProtocolMessage [16:47:38]wFMCommunicate request_size=4 [16:47:38]MH_SAM_APDU [16:47:38]CAPDU: 80 11 00 00 [16:47:38]Write to MH i2c: E2 08 00 09 15 80 11 00 00 00 00 00 00 98 [16:47:38]Write i2c OK [16:47:38]MH_I2C_Read... [16:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:38]Read from MH i2c: E2 [16:47:38]MH_I2C_Read... [16:47:38]Read from MH i2c: E2 17 00 [16:47:38]MH_I2C_Read... [16:47:38]Read from MH i2c: E2 17 00 09 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 ED [16:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:47:38]wFMCommunicate OK [16:47:38]CreateOFDProtocolMessage done [16:47:38]OFDSenderStorePacket 155615 [16:47:38]StoreOFDPacket docnum=155615 [16:47:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EB 64 07 01 A5 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 29 7A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 5F 02 00 35 04 06 00 A9 2E A3 48 67 20 9D B9 29 50 DA 13 1C 95 [16:47:38]CheckFolder [16:47:38]dirname=/storage/ofd_packets [16:47:38]CheckFolder done [16:47:38]ProducePacketName [16:47:38]name=ofd_packets/00155615 [16:47:38]NVStorageSaveData ofd_packets/00155615 [16:47:38]File name is /storage/ofd_packets/00155615 [16:47:38]Write 301 bytes [16:47:38]NVStorageSaveData done [16:47:38]OFDSenderStorePacket done [16:47:38]KKMCreateOFDPacket done [16:47:38]NVStorageSaveData kkm_last_timestamp [16:47:38]File name is /storage/kkm_last_timestamp [16:47:38]Write 4 bytes [16:47:38]NVStorageSaveData done [16:47:38]ExternCall_PrintAddStr [16:47:38]wPrintStart [16:47:38]Write to MH i2c: 01 00 00 0A 15 1F [16:47:38]Write i2c OK [16:47:38]MH_I2C_Read... [16:47:38]Read from MH i2c: 01 [16:47:38]MH_I2C_Read... [16:47:38]Read from MH i2c: 01 07 00 [16:47:38]MH_I2C_Read... [16:47:38]Read from MH i2c: 01 07 00 0A 15 00 00 00 00 00 FF 0F 34 [16:47:38]RasterBufferAndPrint [16:47:38]line Счет N : (1)98421 [16:47:38]line ИНН: 02508201610067 [16:47:38]line Контрольно-Кассовый Чек [16:47:38]line ПРОДАЖА [16:47:38]line ТРК (МРК, ГНК) : 11 [16:47:38]line Товар: 2710124130 [16:47:38]line Аи-92-К-5 [16:47:38]line 14.950 * 66.90 [16:47:38]line = 1000.16 [16:47:38]line НДС 12% НСП 1% [16:47:38]line > о реализуемом товаре [16:47:38]line ОКРУГЛЕНИЕ: -0.16 [16:47:38]line ИТОГО: 1000.00 [16:47:38]line Внесено: 1000.00 [16:47:38]line СДАЧА: 0.00 [16:47:38]line НСП 1% : 8.85 [16:47:38]line НДС 12% : 106.21 [16:47:38]line Наличными: 1000.00 [16:47:38]line Безнал.: 0.00 [16:47:38]line Место: АЗС № 143 "Партнер Нефть" [16:47:38]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:47:38]line СНО: Общий режим [16:47:38]line Чек 240 24.10.2024 16:47 [16:47:38]line Смена: 534 ФФД: 1.0 [16:47:38]line ЗНМ: 0300000096 [16:47:38]line РНМ: 0000000000091693 [16:47:38]line Версия ККМ: 001 [16:47:38]line ФМ: 0000000000871792 [16:47:38]line ФД: 155615 [16:47:38]line ФПД: 186017773020960 [16:47:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T164737&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155615&fm=186017773020960&tin=02508201610067®Number=0000000000091693&sum=100000 [16:47:38]OFD Sender: Processing packet 155615 [packets to send 31, broken 30] [16:47:38]ProducePacketName [16:47:38]name=ofd_packets/00155615 [16:47:38]OFD Sender: To server: pG, [16:47:38]CommunicateWithHost lk.salyk.kg:30040 [16:47:38]ConnectInit lk.salyk.kg [16:47:38]written 0, free lines is 4095 [16:47:38]Connected sock=11 [16:47: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 39 32 0F 01 00 00 EB 64 07 01 A5 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 29 7A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 5F 02 00 35 04 06 00 A9 2E A3 48 67 20 9D B9 29 50 DA 13 1C 95 [16:47: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 39 32 4F 00 00 00 20 6C 47 00 4B 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 39 32 10 04 04 00 DF 5F 02 00 F4 03 04 00 A1 1F 1A 67 B6 04 01 00 00 AC D4 52 D4 E6 95 63 44 [16:47:38]CommunicateWithHost err = 0 [16:47:38]CheckOFDResponse [16:47:38]1017 (14) - 77093643461234 [16:47:38]1041 (16) - 0000000000871792 [16:47:38]1040 (4) - 155615 [16:47:38]1012 (4) - 24.10.2024 10:21 [16:47:38]1206 (1) - 0 [16:47:38]OFD Sender: Remove packet 155615 [16:47:38]ProducePacketName [16:47:38]name=ofd_packets/00155615 [16:47:38]NVStorageDeleteData [16:47:38]Write to MH i2c: 01 00 00 35 15 4A [16:47:38]Write i2c OK [16:47:38]MH_I2C_Read... [16:47:38]Read from MH i2c: 01 [16:47:38]MH_I2C_Read... [16:47:38]Read from MH i2c: 01 07 00 [16:47:38]MH_I2C_Read... [16:47:38]Read from MH i2c: 01 07 00 35 15 00 00 00 00 00 E4 0C 41 [16:47:38]RasterBufferAndPrint [16:47:38]line [16:47:38]line [16:47:38]line [16:47:38]line [16:47:38]line [16:47:38]written 0, free lines is 3306 [16:47:38]process_action close_receipt done [16:47:38]requested_data is exist [16:47:38]produce_requested_data [16:47:38]requested_item fm.sn is exist - process it [16:47:38]wFMCommunicate request_size=4 [16:47:38]MH_SAM_APDU [16:47:38]CAPDU: 80 11 00 00 [16:47:38]Write to MH i2c: E2 08 00 3C 15 80 11 00 00 00 00 00 00 CB [16:47:38]Write i2c OK [16:47:38]MH_I2C_Read... [16:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:38]Read from MH i2c: E2 [16:47:38]MH_I2C_Read... [16:47:38]Read from MH i2c: E2 17 00 [16:47:38]MH_I2C_Read... [16:47:38]Read from MH i2c: E2 17 00 3C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 20 [16:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:47:38]wFMCommunicate OK [16:47:38]requested_item fd.num is exist - process it [16:47:38]SAM_PROTO_GetFieldsCounters [16:47:38]wFMCommunicate request_size=4 [16:47:38]MH_SAM_APDU [16:47:38]CAPDU: 80 13 00 00 [16:47:38]Write to MH i2c: E2 08 00 3D 15 80 13 00 00 00 00 00 00 CE [16:47:38]Write i2c OK [16:47:38]MH_I2C_Read... [16:47:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:38]Read from MH i2c: E2 [16:47:38]MH_I2C_Read... [16:47:38]Read from MH i2c: E2 62 00 [16:47:38]MH_I2C_Read... [16:47:38]Read from MH i2c: E2 62 00 3D 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DF 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [16:47: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DF 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:38]wFMCommunicate OK [16:47:38]SAM_PROTO_GetFieldsCounters done [16:47:38]requested_item shift.num is exist - process it [16:47:38]requested_item shift.opened is exist - process it [16:47:38]req_shift_opened [16:47:38]FM_GetShiftState [16:47:38]SAM_PROTO_GetShiftState [16:47:38]wFMCommunicate request_size=4 [16:47:38]MH_SAM_APDU [16:47:38]CAPDU: 80 13 01 00 [16:47:38]Write to MH i2c: E2 08 00 3E 15 80 13 01 00 00 00 00 00 D0 [16:47:38]Write i2c OK [16:47:38]MH_I2C_Read... [16:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:38]Read from MH i2c: E2 [16:47:38]MH_I2C_Read... [16:47:38]Read from MH i2c: E2 0E 00 [16:47:38]MH_I2C_Read... [16:47:38]Read from MH i2c: E2 0E 00 3E 15 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1D [16:47:38]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:47:38]wFMCommunicate OK [16:47:38]SAM_PROTO_GetShiftState done [16:47:38]FM_GetShiftState done [16:47:38]req_shift_opened done [16:47:38]requested_item shift.open_date is exist - process it [16:47:38]req_shift_open_date [16:47:38]req_shift_open_date done [16:47:38]produce_requested_data done [16:47:38]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155615,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:47:38]process_action_free close_receipt [16:47:38]json_value_free [16:47:38]json_value_free done [16:47:38]process_json_proto returns [16:47:38]Send response to host [16:47:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155615,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:47:38]free response buf [16:47:38]execute_script done [16:47:38]execute_script returns [16:47:38]free content buf [16:47:38]Sock 9.Close socket [16:47:38]Sock 9.Thread stoped [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:02]accept exits with 8 [16:50:02]New connection [16:50:02]New thread 3066637668 created [16:50:02]Thread 3066781028 joined [16:50:02]Waiting for new connection... [16:50:02] Sock 8.Parse request [16:50:02]Sock 8.Check first char [16:50:02]Sock 8.First char is OK [16:50:02]request: POST /json_proto HTTP/1.0 [16:50:02]Method: POST [16:50:02]URL: /json_proto [16:50:02]Method is POST - this is cgi request [16:50:02]url: /json_proto [16:50:02]query_string will be loaded in cgi processing [16:50:02]execute_cgi json_proto POST (null) [16:50:02]execute_cgi path=json_proto method=POST [16:50:02]POST find Content-Length [16:50:02]Host: 172.17.63.3:8080 [16:50:02]Content-Length: 678 [16:50:02]Content-Type: application/json [16:50:02] [16:50:02]POST finish read [16:50:02]Found Content-Length = 678 [16:50:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:02]execute_script... [16:50:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:02]POST & json_proto [16:50:02]process_json_proto [16:50:02]json parsed OK: [16:50:02]protocol is kg_v1.0 [16:50:02]action value=close_receipt [16:50:02]process_action close_receipt [16:50:02]cmd_close_receipt [16:50:02]MH_GetDate [16:50:02]Write to MH i2c: F0 00 00 3F 15 43 [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: F0 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: F0 09 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: F0 09 00 3F 15 00 BB 7A 1A 67 50 D1 6C 64 F3 [16:50:02]GetLastDocTimeStamp 1729788457 [16:50:02]current date 1729788603 [16:50:02]FM_GetShiftState [16:50:02]SAM_PROTO_GetShiftState [16:50:02]wFMCommunicate request_size=4 [16:50:02]MH_SAM_APDU [16:50:02]CAPDU: 80 13 01 00 [16:50:02]Write to MH i2c: E2 08 00 40 15 80 13 01 00 00 00 00 00 D2 [16:50:02]Write i2c OK [16:50:02]MH_I2C_Read... [16:50:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:02]Read from MH i2c: E2 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 0E 00 [16:50:02]MH_I2C_Read... [16:50:02]Read from MH i2c: E2 0E 00 40 15 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1F [16:50:02]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:50:02]wFMCommunicate OK [16:50:02]SAM_PROTO_GetShiftState done [16:50:02]FM_GetShiftState done [16:50:02]opened in 1729729836 [16:50:02]opened+sec_in_day 1729816236 [16:50:02]quantity*price = 100050 [16:50:02]sum+1 = 100052 [16:50:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 241 24.10.2024 16:50 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155616 ФПД: 249578438091448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T165003&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155616&fm=249578438091448&tin=02508201610067®Number=0000000000091693&sum=100000 [16:50:03]StoreToDocumentArchive [16:50:03]shift 534 fd 155616 [16:50:03]save to /storage/0534/doc_00155616 [16:50:03]save last doc name /storage/0534/doc_00155616 to /storage/kkm_last_doc_name [16:50:03]save OK [16:50:03]Clear old archive folders... [16:50:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:50:03]tlvbuf is B6E7E9E0 [16:50:03]SAM_PROTO_ClearQueue [16:50:03]wFMCommunicate request_size=4 [16:50:03]MH_SAM_APDU [16:50:03]CAPDU: 80 09 00 00 [16:50:03]Write to MH i2c: E2 08 00 4D 15 80 09 00 00 00 00 00 00 D4 [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 4D 15 00 90 00 D6 [16:50:03]RAPDU: 90 00 [16:50:03]wFMCommunicate OK [16:50:03]SAM_PROTO_ClearQueue done [16:50:03]KKMCreateOFDPacket [16:50:03]OFDProtocolAddRootSTLVToBuf [16:50:03]FM_MakeSignedData [16:50:03]FM_MakeSignedData [16:50:03]SAM_PROTO_SignData [16:50:03]wFMCommunicate request_size=4 [16:50:03]MH_SAM_APDU [16:50:03]CAPDU: 80 0D 01 02 [16:50:03]Write to MH i2c: E2 08 00 4E 15 80 0D 01 02 00 00 00 00 DC [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:03]Read from MH i2c: E2 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 [16:50:03]MH_I2C_Read... [16:50:03]Read from MH i2c: E2 03 00 4E 15 00 90 00 D7 [16:50:03]RAPDU: 90 00 [16:50:03]wFMCommunicate OK [16:50:03]wFMCommunicate request_size=255 [16:50:03]MH_SAM_APDU [16:50:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 BB 7A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 5F 02 00 35 04 06 00 E2 FD 82 25 [16:50:03]Write to MH i2c: E2 02 01 4F 15 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 BB 7A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 5F 02 00 35 04 06 00 E2 FD 82 25 00 00 EC [16:50:03]Write i2c OK [16:50:03]MH_I2C_Read... [16:50:04]OFD Sender: No OFD packet to send [16:50:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:04]Read from MH i2c: E2 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 03 00 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 03 00 4F 15 00 90 00 D8 [16:50:04]RAPDU: 90 00 [16:50:04]wFMCommunicate OK [16:50:04]wFMCommunicate request_size=7 [16:50:04]MH_SAM_APDU [16:50:04]CAPDU: 80 0D 02 02 02 62 B8 [16:50:04]Write to MH i2c: E2 0A 00 50 15 80 0D 02 02 02 00 62 B8 00 00 FD [16:50:04]Write i2c OK [16:50:04]MH_I2C_Read... [16:50:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:04]Read from MH i2c: E2 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 03 00 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 03 00 50 15 00 90 00 D9 [16:50:04]RAPDU: 90 00 [16:50:04]wFMCommunicate OK [16:50:04]wFMCommunicate request_size=4 [16:50:04]MH_SAM_APDU [16:50:04]CAPDU: 80 0D 03 02 [16:50:04]Write to MH i2c: E2 08 00 51 15 80 0D 03 02 00 00 00 00 E1 [16:50:04]Write i2c OK [16:50:04]MH_I2C_Read... [16:50:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:04]Read from MH i2c: E2 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 0B 00 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 0B 00 51 15 00 FC CC 08 60 F2 EB BE C8 90 00 75 [16:50:04]RAPDU: FC CC 08 60 F2 EB BE C8 90 00 [16:50:04]wFMCommunicate OK [16:50:04]SAM_PROTO_SignData done [16:50:04]FM_MakeSignedData done [16:50:04]CreateOFDProtocolMessage [16:50:04]wFMCommunicate request_size=4 [16:50:04]MH_SAM_APDU [16:50:04]CAPDU: 80 11 00 00 [16:50:04]Write to MH i2c: E2 08 00 52 15 80 11 00 00 00 00 00 00 E1 [16:50:04]Write i2c OK [16:50:04]MH_I2C_Read... [16:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:04]Read from MH i2c: E2 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 17 00 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: E2 17 00 52 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 36 [16:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:50:04]wFMCommunicate OK [16:50:04]CreateOFDProtocolMessage done [16:50:04]OFDSenderStorePacket 155616 [16:50:04]StoreOFDPacket docnum=155616 [16:50:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 81 AE 04 01 24 98 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 BB 7A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 5F 02 00 35 04 06 00 E2 FD 82 25 62 B8 FC CC 08 60 F2 EB BE C8 [16:50:04]CheckFolder [16:50:04]dirname=/storage/ofd_packets [16:50:04]CheckFolder done [16:50:04]ProducePacketName [16:50:04]name=ofd_packets/00155616 [16:50:04]NVStorageSaveData ofd_packets/00155616 [16:50:04]File name is /storage/ofd_packets/00155616 [16:50:04]Write 298 bytes [16:50:04]NVStorageSaveData done [16:50:04]OFDSenderStorePacket done [16:50:04]KKMCreateOFDPacket done [16:50:04]NVStorageSaveData kkm_last_timestamp [16:50:04]File name is /storage/kkm_last_timestamp [16:50:04]Write 4 bytes [16:50:04]NVStorageSaveData done [16:50:04]ExternCall_PrintAddStr [16:50:04]wPrintStart [16:50:04]Write to MH i2c: 01 00 00 53 15 68 [16:50:04]Write i2c OK [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: 01 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: 01 07 00 [16:50:04]MH_I2C_Read... [16:50:04]Read from MH i2c: 01 07 00 53 15 00 00 00 00 00 FF 0F 7D [16:50:04]RasterBufferAndPrint [16:50:04]line Счет N : (1)98422 [16:50:04]line ИНН: 02508201610067 [16:50:04]line Контрольно-Кассовый Чек [16:50:04]line ПРОДАЖА [16:50:04]line ТРК (МРК, ГНК) : 32 [16:50:04]line Товар: 2710194210 [16:50:04]line ДТ-К-5 [16:50:04]line 13.130 * 76.20 [16:50:04]line = 1000.51 [16:50:04]line НДС 12% НСП 1% [16:50:04]line > о реализуемом товаре [16:50:04]line ОКРУГЛЕНИЕ: -0.51 [16:50:04]line ИТОГО: 1000.00 [16:50:04]line Внесено: 1000.00 [16:50:04]line СДАЧА: 0.00 [16:50:04]line НСП 1% : 8.85 [16:50:04]line НДС 12% : 106.25 [16:50:04]line Наличными: 1000.00 [16:50:04]line Безнал.: 0.00 [16:50:04]line Место: АЗС № 143 "Партнер Нефть" [16:50:04]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:50:04]line СНО: Общий режим [16:50:04]line Чек 241 24.10.2024 16:50 [16:50:04]line Смена: 534 ФФД: 1.0 [16:50:04]line ЗНМ: 0300000096 [16:50:04]line РНМ: 0000000000091693 [16:50:04]line Версия ККМ: 001 [16:50:04]line ФМ: 0000000000871792 [16:50:04]line ФД: 155616 [16:50:04]line ФПД: 249578438091448 [16:50:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T165003&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155616&fm=249578438091448&tin=02508201610067®Number=0000000000091693&sum=100000 [16:50:04]OFD Sender: Processing packet 155616 [packets to send 31, broken 30] [16:50:04]ProducePacketName [16:50:04]name=ofd_packets/00155616 [16:50:04]OFD Sender: To server: pG, [16:50:04]CommunicateWithHost lk.salyk.kg:30040 [16:50:04]ConnectInit lk.salyk.kg [16:50:04]written 0, free lines is 4095 [16:50:04]Connected sock=10 [16:50: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 39 32 0C 01 00 00 81 AE 04 01 24 98 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 BB 7A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 5F 02 00 35 04 06 00 E2 FD 82 25 62 B8 FC CC 08 60 F2 EB BE C8 [16:50: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 39 32 4F 00 00 00 99 68 47 00 48 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 5F 02 00 F4 03 04 00 33 20 1A 67 B6 04 01 00 00 1C 88 C5 BD EA 72 DA 83 [16:50:04]CommunicateWithHost err = 0 [16:50:04]CheckOFDResponse [16:50:04]1017 (14) - 77093643461234 [16:50:04]1041 (16) - 0000000000871792 [16:50:05]1040 (4) - 155616 [16:50:05]1012 (4) - 24.10.2024 10:23 [16:50:05]1206 (1) - 0 [16:50:05]OFD Sender: Remove packet 155616 [16:50:05]ProducePacketName [16:50:05]name=ofd_packets/00155616 [16:50:05]NVStorageDeleteData [16:50:05]Write to MH i2c: 01 00 00 7E 15 93 [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: 01 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: 01 07 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: 01 07 00 7E 15 00 00 00 00 00 E6 0C 8C [16:50:05]RasterBufferAndPrint [16:50:05]line [16:50:05]line [16:50:05]line [16:50:05]line [16:50:05]line [16:50:05]written 0, free lines is 3308 [16:50:05]process_action close_receipt done [16:50:05]requested_data is exist [16:50:05]produce_requested_data [16:50:05]requested_item fm.sn is exist - process it [16:50:05]wFMCommunicate request_size=4 [16:50:05]MH_SAM_APDU [16:50:05]CAPDU: 80 11 00 00 [16:50:05]Write to MH i2c: E2 08 00 85 15 80 11 00 00 00 00 00 00 14 [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:05]Read from MH i2c: E2 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 17 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 17 00 85 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 69 [16:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:50:05]wFMCommunicate OK [16:50:05]requested_item fd.num is exist - process it [16:50:05]SAM_PROTO_GetFieldsCounters [16:50:05]wFMCommunicate request_size=4 [16:50:05]MH_SAM_APDU [16:50:05]CAPDU: 80 13 00 00 [16:50:05]Write to MH i2c: E2 08 00 86 15 80 13 00 00 00 00 00 00 17 [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:05]Read from MH i2c: E2 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 62 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 62 00 86 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E0 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [16: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E0 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:05]wFMCommunicate OK [16:50:05]SAM_PROTO_GetFieldsCounters done [16:50:05]requested_item shift.num is exist - process it [16:50:05]requested_item shift.opened is exist - process it [16:50:05]req_shift_opened [16:50:05]FM_GetShiftState [16:50:05]SAM_PROTO_GetShiftState [16:50:05]wFMCommunicate request_size=4 [16:50:05]MH_SAM_APDU [16:50:05]CAPDU: 80 13 01 00 [16:50:05]Write to MH i2c: E2 08 00 87 15 80 13 01 00 00 00 00 00 19 [16:50:05]Write i2c OK [16:50:05]MH_I2C_Read... [16:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:05]Read from MH i2c: E2 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 0E 00 [16:50:05]MH_I2C_Read... [16:50:05]Read from MH i2c: E2 0E 00 87 15 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 66 [16:50:05]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:50:05]wFMCommunicate OK [16:50:05]SAM_PROTO_GetShiftState done [16:50:05]FM_GetShiftState done [16:50:05]req_shift_opened done [16:50:05]requested_item shift.open_date is exist - process it [16:50:05]req_shift_open_date [16:50:05]req_shift_open_date done [16:50:05]produce_requested_data done [16:50:05]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155616,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:50:05]process_action_free close_receipt [16:50:05]json_value_free [16:50:05]json_value_free done [16:50:05]process_json_proto returns [16:50:05]Send response to host [16:50:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155616,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:50:05]free response buf [16:50:05]execute_script done [16:50:05]execute_script returns [16:50:05]free content buf [16:50:05]Sock 8.Close socket [16:50:05]Sock 8.Thread stoped [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:47]accept exits with 9 [16:50:47]New connection [16:50:47]New thread 3066781028 created [16:50:47]Thread 3066637668 joined [16:50:47]Waiting for new connection... [16:50:47] Sock 9.Parse request [16:50:47]Sock 9.Check first char [16:50:47]Sock 9.First char is OK [16:50:47]request: POST /json_proto HTTP/1.0 [16:50:47]Method: POST [16:50:47]URL: /json_proto [16:50:47]Method is POST - this is cgi request [16:50:47]url: /json_proto [16:50:47]query_string will be loaded in cgi processing [16:50:47]execute_cgi json_proto POST (null) [16:50:47]execute_cgi path=json_proto method=POST [16:50:47]POST find Content-Length [16:50:47]Host: 172.17.63.3:8080 [16:50:47]Content-Length: 768 [16:50:47]Content-Type: application/json [16:50:47] [16:50:47]POST finish read [16:50:47]Found Content-Length = 768 [16:50:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:47]execute_script... [16: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)98423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:47]POST & json_proto [16:50:47]process_json_proto [16:50:47]json parsed OK: [16:50:47]protocol is kg_v1.0 [16:50:47]action value=close_receipt [16:50:47]process_action close_receipt [16:50:47]cmd_close_receipt [16:50:47]MH_GetDate [16:50:47]Write to MH i2c: F0 00 00 88 15 8C [16:50:47]Write i2c OK [16:50:47]MH_I2C_Read... [16:50:47]Read from MH i2c: F0 [16:50:47]MH_I2C_Read... [16:50:47]Read from MH i2c: F0 09 00 [16:50:47]MH_I2C_Read... [16:50:47]Read from MH i2c: F0 09 00 88 15 00 E8 7A 1A 67 50 D1 6C 64 69 [16:50:47]GetLastDocTimeStamp 1729788603 [16:50:47]current date 1729788648 [16:50:47]FM_GetShiftState [16:50:47]SAM_PROTO_GetShiftState [16:50:47]wFMCommunicate request_size=4 [16:50:47]MH_SAM_APDU [16:50:47]CAPDU: 80 13 01 00 [16:50:47]Write to MH i2c: E2 08 00 89 15 80 13 01 00 00 00 00 00 1B [16:50:47]Write i2c OK [16:50:47]MH_I2C_Read... [16:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:47]Read from MH i2c: E2 [16:50:47]MH_I2C_Read... [16:50:47]Read from MH i2c: E2 0E 00 [16:50:47]MH_I2C_Read... [16:50:47]Read from MH i2c: E2 0E 00 89 15 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 68 [16:50:47]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:50:47]wFMCommunicate OK [16:50:47]SAM_PROTO_GetShiftState done [16:50:47]FM_GetShiftState done [16:50:47]opened in 1729729836 [16:50:47]opened+sec_in_day 1729816236 [16:50:47]quantity*price = 100015 [16:50:47]sum+1 = 100017 [16:50:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 242 24.10.2024 16:50 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155617 ФПД: 74449004461039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T165048&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155617&fm=74449004461039&tin=02508201610067®Number=0000000000091693&sum=100016 [16:50:48]StoreToDocumentArchive [16:50:48]shift 534 fd 155617 [16:50:48]save to /storage/0534/doc_00155617 [16:50:48]save last doc name /storage/0534/doc_00155617 to /storage/kkm_last_doc_name [16:50:48]save OK [16:50:48]Clear old archive folders... [16:50:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:48]tlvbuf is 01F59FA0 [16:50:48]SAM_PROTO_ClearQueue [16:50:48]wFMCommunicate request_size=4 [16:50:48]MH_SAM_APDU [16:50:48]CAPDU: 80 09 00 00 [16:50:48]Write to MH i2c: E2 08 00 96 15 80 09 00 00 00 00 00 00 1D [16:50:48]Write i2c OK [16:50:48]MH_I2C_Read... [16:50:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:48]Read from MH i2c: E2 [16:50:48]MH_I2C_Read... [16:50:48]Read from MH i2c: E2 03 00 [16:50:48]MH_I2C_Read... [16:50:48]Read from MH i2c: E2 03 00 96 15 00 90 00 1F [16:50:48]RAPDU: 90 00 [16:50:48]wFMCommunicate OK [16:50:48]SAM_PROTO_ClearQueue done [16:50:48]KKMCreateOFDPacket [16:50:48]OFDProtocolAddRootSTLVToBuf [16:50:48]FM_MakeSignedData [16:50:48]FM_MakeSignedData [16:50:48]SAM_PROTO_SignData [16:50:48]wFMCommunicate request_size=4 [16:50:48]MH_SAM_APDU [16:50:48]CAPDU: 80 0D 01 02 [16:50:48]Write to MH i2c: E2 08 00 97 15 80 0D 01 02 00 00 00 00 25 [16:50:48]Write i2c OK [16:50:48]MH_I2C_Read... [16:50:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:48]Read from MH i2c: E2 [16:50:48]MH_I2C_Read... [16:50:48]Read from MH i2c: E2 03 00 [16:50:48]MH_I2C_Read... [16:50:48]Read from MH i2c: E2 03 00 97 15 00 90 00 20 [16:50:48]RAPDU: 90 00 [16:50:48]wFMCommunicate OK [16:50:48]wFMCommunicate request_size=255 [16:50:48]MH_SAM_APDU [16: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E8 7A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 5F 02 00 35 04 06 00 43 [16:50:48]Write to MH i2c: E2 02 01 98 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E8 7A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 5F 02 00 35 04 06 00 43 00 00 45 [16:50:48]Write i2c OK [16:50:48]MH_I2C_Read... [16:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 03 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 03 00 98 15 00 90 00 21 [16:50:49]RAPDU: 90 00 [16:50:49]wFMCommunicate OK [16:50:49]wFMCommunicate request_size=10 [16:50:49]MH_SAM_APDU [16:50:49]CAPDU: 80 0D 02 02 05 B6 02 76 FB EF [16:50:49]Write to MH i2c: E2 0D 00 99 15 80 0D 02 02 05 00 B6 02 76 FB EF 00 00 4A [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 03 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 03 00 99 15 00 90 00 22 [16:50:49]RAPDU: 90 00 [16:50:49]wFMCommunicate OK [16:50:49]wFMCommunicate request_size=4 [16:50:49]MH_SAM_APDU [16:50:49]CAPDU: 80 0D 03 02 [16:50:49]Write to MH i2c: E2 08 00 9A 15 80 0D 03 02 00 00 00 00 2A [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 0B 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 0B 00 9A 15 00 34 DA DB 93 39 EE 9B A2 90 00 0B [16:50:49]RAPDU: 34 DA DB 93 39 EE 9B A2 90 00 [16:50:49]wFMCommunicate OK [16:50:49]SAM_PROTO_SignData done [16:50:49]FM_MakeSignedData done [16:50:49]CreateOFDProtocolMessage [16:50:49]wFMCommunicate request_size=4 [16:50:49]MH_SAM_APDU [16:50:49]CAPDU: 80 11 00 00 [16:50:49]Write to MH i2c: E2 08 00 9B 15 80 11 00 00 00 00 00 00 2A [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 17 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 17 00 9B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7F [16:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:50:49]wFMCommunicate OK [16:50:49]CreateOFDProtocolMessage done [16:50:49]OFDSenderStorePacket 155617 [16:50:49]StoreOFDPacket docnum=155617 [16:50:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4E 52 07 01 14 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E8 7A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 5F 02 00 35 04 06 00 43 B6 02 76 FB EF 34 DA DB 93 39 EE 9B A2 [16:50:49]CheckFolder [16:50:49]dirname=/storage/ofd_packets [16:50:49]CheckFolder done [16:50:49]ProducePacketName [16:50:49]name=ofd_packets/00155617 [16:50:49]NVStorageSaveData ofd_packets/00155617 [16:50:49]File name is /storage/ofd_packets/00155617 [16:50:49]Write 301 bytes [16:50:49]NVStorageSaveData done [16:50:49]OFDSenderStorePacket done [16:50:49]KKMCreateOFDPacket done [16:50:49]NVStorageSaveData kkm_last_timestamp [16:50:49]File name is /storage/kkm_last_timestamp [16:50:49]Write 4 bytes [16:50:49]NVStorageSaveData done [16:50:49]ExternCall_PrintAddStr [16:50:49]wPrintStart [16:50:49]Write to MH i2c: 01 00 00 9C 15 B1 [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: 01 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: 01 07 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: 01 07 00 9C 15 00 00 00 00 00 FF 0F C6 [16:50:49]RasterBufferAndPrint [16:50:49]line Счет N : (1)98423 [16:50:49]line ИНН: 02508201610067 [16:50:49]line Контрольно-Кассовый Чек [16:50:49]line ПРОДАЖА [16:50:49]line ТРК (МРК, ГНК) : 21 [16:50:49]line Товар: 2710124130 [16:50:49]line Аи-92-К-5 [16:50:49]line 14.950 * 66.90 [16:50:49]line = 1000.16 [16:50:49]line НДС 12% НСП 1% [16:50:49]line > о реализуемом товаре [16:50:49]line ИТОГО: 1000.16 [16:50:49]line НСП 1% : 8.85 [16:50:49]line НДС 12% : 106.21 [16:50:49]line Наличными: 0.00 [16:50:49]line Безнал.: 1000.16 [16:50:49]line Место: АЗС № 143 "Партнер Нефть" [16:50:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:50:49]line СНО: Общий режим [16:50:49]line Чек 242 24.10.2024 16:50 [16:50:49]line Смена: 534 ФФД: 1.0 [16:50:49]line ЗНМ: 0300000096 [16:50:49]line РНМ: 0000000000091693 [16:50:49]line Версия ККМ: 001 [16:50:49]line Платежная система: Mbank [16:50:49]line ФМ: 0000000000871792 [16:50:49]line ФД: 155617 [16:50:49]line ФПД: 74449004461039 [16:50:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T165048&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155617&fm=74449004461039&tin=02508201610067®Number=0000000000091693&sum=100016 [16:50:49]written 0, free lines is 4095 [16:50:49]OFD Sender: Processing packet 155617 [packets to send 31, broken 30] [16:50:49]ProducePacketName [16:50:49]name=ofd_packets/00155617 [16:50:49]OFD Sender: To server: pG, [16:50:49]CommunicateWithHost lk.salyk.kg:30040 [16:50:49]ConnectInit lk.salyk.kg [16:50:49]Connected sock=10 [16: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 39 32 0F 01 00 00 4E 52 07 01 14 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 E8 7A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 5F 02 00 35 04 06 00 43 B6 02 76 FB EF 34 DA DB 93 39 EE 9B A2 [16: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 39 32 4F 00 00 00 11 CE 47 00 B9 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 39 32 10 04 04 00 E1 5F 02 00 F4 03 04 00 60 20 1A 67 B6 04 01 00 00 F5 45 9D A8 B3 13 6E 43 [16:50:49]CommunicateWithHost err = 0 [16:50:49]CheckOFDResponse [16:50:49]1017 (14) - 77093643461234 [16:50:49]1041 (16) - 0000000000871792 [16:50:49]1040 (4) - 155617 [16:50:49]1012 (4) - 24.10.2024 10:24 [16:50:49]1206 (1) - 0 [16:50:49]OFD Sender: Remove packet 155617 [16:50:49]ProducePacketName [16:50:49]name=ofd_packets/00155617 [16:50:49]NVStorageDeleteData [16:50:49]Write to MH i2c: 01 00 00 C5 15 DA [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: 01 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: 01 07 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: 01 07 00 C5 15 00 00 00 00 00 11 0D FF [16:50:49]RasterBufferAndPrint [16:50:49]line [16:50:49]line [16:50:49]line [16:50:49]line [16:50:49]line [16:50:49]written 0, free lines is 3351 [16:50:49]process_action close_receipt done [16:50:49]requested_data is exist [16:50:49]produce_requested_data [16:50:49]requested_item fm.sn is exist - process it [16:50:49]wFMCommunicate request_size=4 [16:50:49]MH_SAM_APDU [16:50:49]CAPDU: 80 11 00 00 [16:50:49]Write to MH i2c: E2 08 00 CC 15 80 11 00 00 00 00 00 00 5B [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 17 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 17 00 CC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B0 [16:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:50:49]wFMCommunicate OK [16:50:49]requested_item fd.num is exist - process it [16:50:49]SAM_PROTO_GetFieldsCounters [16:50:49]wFMCommunicate request_size=4 [16:50:49]MH_SAM_APDU [16:50:49]CAPDU: 80 13 00 00 [16:50:49]Write to MH i2c: E2 08 00 CD 15 80 13 00 00 00 00 00 00 5E [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 62 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 62 00 CD 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E1 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [16:50: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E1 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:49]wFMCommunicate OK [16:50:49]SAM_PROTO_GetFieldsCounters done [16:50:49]requested_item shift.num is exist - process it [16:50:49]requested_item shift.opened is exist - process it [16:50:49]req_shift_opened [16:50:49]FM_GetShiftState [16:50:49]SAM_PROTO_GetShiftState [16:50:49]wFMCommunicate request_size=4 [16:50:49]MH_SAM_APDU [16:50:49]CAPDU: 80 13 01 00 [16:50:49]Write to MH i2c: E2 08 00 CE 15 80 13 01 00 00 00 00 00 60 [16:50:49]Write i2c OK [16:50:49]MH_I2C_Read... [16:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:49]Read from MH i2c: E2 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 0E 00 [16:50:49]MH_I2C_Read... [16:50:49]Read from MH i2c: E2 0E 00 CE 15 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AD [16:50:49]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:50:49]wFMCommunicate OK [16:50:49]SAM_PROTO_GetShiftState done [16:50:49]FM_GetShiftState done [16:50:49]req_shift_opened done [16:50:49]requested_item shift.open_date is exist - process it [16:50:49]req_shift_open_date [16:50:49]req_shift_open_date done [16:50:49]produce_requested_data done [16:50:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155617,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:50:49]process_action_free close_receipt [16:50:49]json_value_free [16:50:49]json_value_free done [16:50:49]process_json_proto returns [16:50:49]Send response to host [16:50:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155617,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:50:49]free response buf [16:50:49]execute_script done [16:50:49]execute_script returns [16:50:49]free content buf [16:50:49]Sock 9.Close socket [16:50:49]Sock 9.Thread stoped [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:35]OFD Sender: No OFD packet to send [16:51:39]accept exits with 8 [16:51:39]New connection [16:51:39]New thread 3066637668 created [16:51:39]Thread 3066781028 joined [16:51:39]Waiting for new connection... [16:51:39] Sock 8.Parse request [16:51:39]Sock 8.Check first char [16:51:39]Sock 8.First char is OK [16:51:39]request: POST /json_proto HTTP/1.0 [16:51:39]Method: POST [16:51:39]URL: /json_proto [16:51:39]Method is POST - this is cgi request [16:51:39]url: /json_proto [16:51:39]query_string will be loaded in cgi processing [16:51:39]execute_cgi json_proto POST (null) [16:51:39]execute_cgi path=json_proto method=POST [16:51:39]POST find Content-Length [16:51:39]Host: 172.17.63.3:8080 [16:51:39]Content-Length: 677 [16:51:39]Content-Type: application/json [16:51:39] [16:51:39]POST finish read [16:51:39]Found Content-Length = 677 [16:51:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:39]execute_script... [16:51: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)98424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:39]POST & json_proto [16:51:39]process_json_proto [16:51:39]json parsed OK: [16:51:39]protocol is kg_v1.0 [16:51:39]action value=close_receipt [16:51:39]process_action close_receipt [16:51:39]cmd_close_receipt [16:51:39]MH_GetDate [16:51:39]Write to MH i2c: F0 00 00 CF 15 D3 [16:51:39]Write i2c OK [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: F0 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: F0 09 00 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: F0 09 00 CF 15 00 1C 7B 1A 67 50 D1 6C 64 E5 [16:51:39]GetLastDocTimeStamp 1729788648 [16:51:39]current date 1729788700 [16:51:39]FM_GetShiftState [16:51:39]SAM_PROTO_GetShiftState [16:51:39]wFMCommunicate request_size=4 [16:51:39]MH_SAM_APDU [16:51:39]CAPDU: 80 13 01 00 [16:51:39]Write to MH i2c: E2 08 00 D0 15 80 13 01 00 00 00 00 00 62 [16:51:39]Write i2c OK [16:51:39]MH_I2C_Read... [16:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:39]Read from MH i2c: E2 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: E2 0E 00 [16:51:39]MH_I2C_Read... [16:51:39]Read from MH i2c: E2 0E 00 D0 15 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AF [16:51:39]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:51:39]wFMCommunicate OK [16:51:39]SAM_PROTO_GetShiftState done [16:51:39]FM_GetShiftState done [16:51:39]opened in 1729729836 [16:51:39]opened+sec_in_day 1729816236 [16:51:39]quantity*price = 90047 [16:51:39]sum+1 = 90048 [16:51:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 243 24.10.2024 16:51 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155618 ФПД: 98802721747086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T165140&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155618&fm=98802721747086&tin=02508201610067®Number=0000000000091693&sum=90000 [16:51:40]StoreToDocumentArchive [16:51:40]shift 534 fd 155618 [16:51:40]save to /storage/0534/doc_00155618 [16:51:40]save last doc name /storage/0534/doc_00155618 to /storage/kkm_last_doc_name [16:51:40]save OK [16:51:40]Clear old archive folders... [16:51:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:51:40]tlvbuf is 01F57700 [16:51:40]SAM_PROTO_ClearQueue [16:51:40]wFMCommunicate request_size=4 [16:51:40]MH_SAM_APDU [16:51:40]CAPDU: 80 09 00 00 [16:51:40]Write to MH i2c: E2 08 00 DD 15 80 09 00 00 00 00 00 00 64 [16:51:40]Write i2c OK [16:51:40]MH_I2C_Read... [16:51:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:40]Read from MH i2c: E2 [16:51:40]MH_I2C_Read... [16:51:40]Read from MH i2c: E2 03 00 [16:51:40]MH_I2C_Read... [16:51:40]Read from MH i2c: E2 03 00 DD 15 00 90 00 66 [16:51:40]RAPDU: 90 00 [16:51:40]wFMCommunicate OK [16:51:40]SAM_PROTO_ClearQueue done [16:51:40]KKMCreateOFDPacket [16:51:40]OFDProtocolAddRootSTLVToBuf [16:51:40]FM_MakeSignedData [16:51:40]FM_MakeSignedData [16:51:40]SAM_PROTO_SignData [16:51:40]wFMCommunicate request_size=4 [16:51:40]MH_SAM_APDU [16:51:40]CAPDU: 80 0D 01 02 [16:51:40]Write to MH i2c: E2 08 00 DE 15 80 0D 01 02 00 00 00 00 6C [16:51:40]Write i2c OK [16:51:40]MH_I2C_Read... [16:51:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:40]Read from MH i2c: E2 [16:51:40]MH_I2C_Read... [16:51:40]Read from MH i2c: E2 03 00 [16:51:40]MH_I2C_Read... [16:51:40]Read from MH i2c: E2 03 00 DE 15 00 90 00 67 [16:51:40]RAPDU: 90 00 [16:51:40]wFMCommunicate OK [16:51:40]wFMCommunicate request_size=255 [16:51:40]MH_SAM_APDU [16:51: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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 1C 7B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 5F 02 00 35 04 06 00 59 [16:51:40]Write to MH i2c: E2 02 01 DF 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 1C 7B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 5F 02 00 35 04 06 00 59 00 00 DC [16:51:40]Write i2c OK [16:51:40]MH_I2C_Read... [16:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:40]Read from MH i2c: E2 [16:51:40]MH_I2C_Read... [16:51:40]Read from MH i2c: E2 03 00 [16:51:40]MH_I2C_Read... [16:51:40]Read from MH i2c: E2 03 00 DF 15 00 90 00 68 [16:51:40]RAPDU: 90 00 [16:51:40]wFMCommunicate OK [16:51:40]wFMCommunicate request_size=10 [16:51:40]MH_SAM_APDU [16:51:40]CAPDU: 80 0D 02 02 05 DC 4D 21 F0 8E [16:51:40]Write to MH i2c: E2 0D 00 E0 15 80 0D 02 02 05 00 DC 4D 21 F0 8E 00 00 41 [16:51:40]Write i2c OK [16:51:40]MH_I2C_Read... [16:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:40]Read from MH i2c: E2 [16:51:40]MH_I2C_Read... [16:51:40]Read from MH i2c: E2 03 00 [16:51:40]MH_I2C_Read... [16:51:40]Read from MH i2c: E2 03 00 E0 15 00 90 00 69 [16:51:40]RAPDU: 90 00 [16:51:40]wFMCommunicate OK [16:51:40]wFMCommunicate request_size=4 [16:51:40]MH_SAM_APDU [16:51:40]CAPDU: 80 0D 03 02 [16:51:40]Write to MH i2c: E2 08 00 E1 15 80 0D 03 02 00 00 00 00 71 [16:51:40]Write i2c OK [16:51:40]MH_I2C_Read... [16:51:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:40]Read from MH i2c: E2 [16:51:40]MH_I2C_Read... [16:51:40]Read from MH i2c: E2 0B 00 [16:51:40]MH_I2C_Read... [16:51:40]Read from MH i2c: E2 0B 00 E1 15 00 DB 55 6C 61 BB 0E 16 FD 90 00 4B [16:51:40]RAPDU: DB 55 6C 61 BB 0E 16 FD 90 00 [16:51:40]wFMCommunicate OK [16:51:40]SAM_PROTO_SignData done [16:51:40]FM_MakeSignedData done [16:51:40]CreateOFDProtocolMessage [16:51:40]wFMCommunicate request_size=4 [16:51:40]MH_SAM_APDU [16:51:40]CAPDU: 80 11 00 00 [16:51:40]Write to MH i2c: E2 08 00 E2 15 80 11 00 00 00 00 00 00 71 [16:51:40]Write i2c OK [16:51:40]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 E2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C6 [16:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:51:41]wFMCommunicate OK [16:51:41]CreateOFDProtocolMessage done [16:51:41]OFDSenderStorePacket 155618 [16:51:41]StoreOFDPacket docnum=155618 [16:51:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B5 27 07 01 0F 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 1C 7B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 5F 02 00 35 04 06 00 59 DC 4D 21 F0 8E DB 55 6C 61 BB 0E 16 FD [16:51:41]CheckFolder [16:51:41]dirname=/storage/ofd_packets [16:51:41]CheckFolder done [16:51:41]ProducePacketName [16:51:41]name=ofd_packets/00155618 [16:51:41]NVStorageSaveData ofd_packets/00155618 [16:51:41]File name is /storage/ofd_packets/00155618 [16:51:41]Write 301 bytes [16:51:41]NVStorageSaveData done [16:51:41]OFDSenderStorePacket done [16:51:41]KKMCreateOFDPacket done [16:51:41]NVStorageSaveData kkm_last_timestamp [16:51:41]File name is /storage/kkm_last_timestamp [16:51:41]Write 4 bytes [16:51:41]NVStorageSaveData done [16:51:41]ExternCall_PrintAddStr [16:51:41]wPrintStart [16:51:41]Write to MH i2c: 01 00 00 E3 15 F8 [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [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 E3 15 00 00 00 00 00 FF 0F 0D [16:51:41]RasterBufferAndPrint [16:51:41]line Счет N : (1)98424 [16:51:41]line ИНН: 02508201610067 [16:51:41]line Контрольно-Кассовый Чек [16:51:41]line ПРОДАЖА [16:51:41]line ТРК (МРК, ГНК) : 21 [16:51:41]line Товар: 2710124130 [16:51:41]line Аи-92-К-5 [16:51:41]line 13.460 * 66.90 [16:51:41]line = 900.47 [16:51:41]line НДС 12% НСП 1% [16:51:41]line > о реализуемом товаре [16:51:41]line ОКРУГЛЕНИЕ: -0.47 [16:51:41]line ИТОГО: 900.00 [16:51:41]line Внесено: 900.00 [16:51:41]line СДАЧА: 0.00 [16:51:41]line НСП 1% : 7.97 [16:51:41]line НДС 12% : 95.62 [16:51:41]line Наличными: 900.00 [16:51:41]line Безнал.: 0.00 [16:51:41]line Место: АЗС № 143 "Партнер Нефть" [16:51:41]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:51:41]line СНО: Общий режим [16:51:41]line Чек 243 24.10.2024 16:51 [16:51:41]line Смена: 534 ФФД: 1.0 [16:51:41]line ЗНМ: 0300000096 [16:51:41]line РНМ: 0000000000091693 [16:51:41]line Версия ККМ: 001 [16:51:41]line ФМ: 0000000000871792 [16:51:41]line ФД: 155618 [16:51:41]line ФПД: 98802721747086 [16:51:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T165140&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155618&fm=98802721747086&tin=02508201610067®Number=0000000000091693&sum=90000 [16:51:41]OFD Sender: Processing packet 155618 [packets to send 31, broken 30] [16:51:41]ProducePacketName [16:51:41]name=ofd_packets/00155618 [16:51:41]OFD Sender: To server: pG, [16:51:41]CommunicateWithHost lk.salyk.kg:30040 [16:51:41]ConnectInit lk.salyk.kg [16:51:41]written 0, free lines is 4095 [16:51:41]Connected sock=10 [16:51: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 39 32 0F 01 00 00 B5 27 07 01 0F 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 1C 7B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 5F 02 00 35 04 06 00 59 DC 4D 21 F0 8E DB 55 6C 61 BB 0E 16 FD [16:51: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 39 32 4F 00 00 00 55 E3 47 00 64 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 39 32 10 04 04 00 E2 5F 02 00 F4 03 04 00 94 20 1A 67 B6 04 01 00 00 E7 B7 0E 65 4B 55 1D AD [16:51:41]CommunicateWithHost err = 0 [16:51:41]CheckOFDResponse [16:51:41]1017 (14) - 77093643461234 [16:51:41]1041 (16) - 0000000000871792 [16:51:41]1040 (4) - 155618 [16:51:41]1012 (4) - 24.10.2024 10:25 [16:51:41]1206 (1) - 0 [16:51:41]OFD Sender: Remove packet 155618 [16:51:41]ProducePacketName [16:51:41]name=ofd_packets/00155618 [16:51:41]NVStorageDeleteData [16:51:41]Write to MH i2c: 01 00 00 0E 16 24 [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:41]Read from MH i2c: 01 [16:51:41]MH_I2C_Read... [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 0E 16 00 00 00 00 00 F7 0C 2E [16:51:41]RasterBufferAndPrint [16:51:41]line [16:51:41]line [16:51:41]line [16:51:41]line [16:51:41]line [16:51:41]written 0, free lines is 3330 [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 15 16 80 11 00 00 00 00 00 00 A5 [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 15 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FA [16:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 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 16 16 80 13 00 00 00 00 00 00 A8 [16:51:41]Write i2c OK [16:51:41]MH_I2C_Read... [16:51:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:42]Read from MH i2c: E2 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 62 00 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 62 00 16 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E2 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [16:51: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E2 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:51:42]wFMCommunicate OK [16:51:42]SAM_PROTO_GetFieldsCounters done [16:51:42]requested_item shift.num is exist - process it [16:51:42]requested_item shift.opened is exist - process it [16:51:42]req_shift_opened [16:51:42]FM_GetShiftState [16:51:42]SAM_PROTO_GetShiftState [16:51:42]wFMCommunicate request_size=4 [16:51:42]MH_SAM_APDU [16:51:42]CAPDU: 80 13 01 00 [16:51:42]Write to MH i2c: E2 08 00 17 16 80 13 01 00 00 00 00 00 AA [16:51:42]Write i2c OK [16:51:42]MH_I2C_Read... [16:51:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:42]Read from MH i2c: E2 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 0E 00 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 0E 00 17 16 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F7 [16:51:42]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:51:42]wFMCommunicate OK [16:51:42]SAM_PROTO_GetShiftState done [16:51:42]FM_GetShiftState done [16:51:42]req_shift_opened done [16:51:42]requested_item shift.open_date is exist - process it [16:51:42]req_shift_open_date [16:51:42]req_shift_open_date done [16:51:42]produce_requested_data done [16:51:42]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155618,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:51:42]process_action_free close_receipt [16:51:42]json_value_free [16:51:42]json_value_free done [16:51:42]process_json_proto returns [16:51:42]Send response to host [16:51:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155618,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:51:42]free response buf [16:51:42]execute_script done [16:51:42]execute_script returns [16:51:42]free content buf [16:51:42]Sock 8.Close socket [16:51:42]Sock 8.Thread stoped [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:02]OFD Sender: No OFD packet to send [16:52:07]OFD Sender: No OFD packet to send [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:55]accept exits with 9 [16:56:55]New connection [16:56:55]New thread 3066781028 created [16:56:55]Thread 3066637668 joined [16:56:55]Waiting for new connection... [16:56:55] Sock 9.Parse request [16:56:55]Sock 9.Check first char [16:56:55]Sock 9.First char is OK [16:56:55]request: POST /json_proto HTTP/1.0 [16:56:55]Method: POST [16:56:55]URL: /json_proto [16:56:55]Method is POST - this is cgi request [16:56:55]url: /json_proto [16:56:55]query_string will be loaded in cgi processing [16:56:55]execute_cgi json_proto POST (null) [16:56:55]execute_cgi path=json_proto method=POST [16:56:55]POST find Content-Length [16:56:55]Host: 172.17.63.3:8080 [16:56:55]Content-Length: 676 [16:56:55]Content-Type: application/json [16:56:55] [16:56:55]POST finish read [16:56:55]Found Content-Length = 676 [16:56:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:55]execute_script... [16:56: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)98425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:55]POST & json_proto [16:56:55]process_json_proto [16:56:55]json parsed OK: [16:56:55]protocol is kg_v1.0 [16:56:55]action value=close_receipt [16:56:55]process_action close_receipt [16:56:55]cmd_close_receipt [16:56:55]MH_GetDate [16:56:55]Write to MH i2c: F0 00 00 18 16 1D [16:56:55]Write i2c OK [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: F0 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: F0 09 00 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: F0 09 00 18 16 00 58 7C 1A 67 50 D1 6C 64 6C [16:56:55]GetLastDocTimeStamp 1729788700 [16:56:55]current date 1729789016 [16:56:55]FM_GetShiftState [16:56:55]SAM_PROTO_GetShiftState [16:56:55]wFMCommunicate request_size=4 [16:56:55]MH_SAM_APDU [16:56:55]CAPDU: 80 13 01 00 [16:56:55]Write to MH i2c: E2 08 00 19 16 80 13 01 00 00 00 00 00 AC [16:56:55]Write i2c OK [16:56:55]MH_I2C_Read... [16:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:55]Read from MH i2c: E2 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 0E 00 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 0E 00 19 16 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F9 [16:56:55]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:56:55]wFMCommunicate OK [16:56:55]SAM_PROTO_GetShiftState done [16:56:55]FM_GetShiftState done [16:56:55]opened in 1729729836 [16:56:55]opened+sec_in_day 1729816236 [16:56:55]quantity*price = 50041 [16:56:55]sum+1 = 50042 [16:56:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 244 24.10.2024 16:56 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155619 ФПД: 245745815260657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T165656&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155619&fm=245745815260657&tin=02508201610067®Number=0000000000091693&sum=50000 [16:56:56]StoreToDocumentArchive [16:56:56]shift 534 fd 155619 [16:56:56]save to /storage/0534/doc_00155619 [16:56:56]save last doc name /storage/0534/doc_00155619 to /storage/kkm_last_doc_name [16:56:56]save OK [16:56:56]Clear old archive folders... [16:56:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:56]tlvbuf is 01F3DEC0 [16:56:56]SAM_PROTO_ClearQueue [16:56:56]wFMCommunicate request_size=4 [16:56:56]MH_SAM_APDU [16:56:56]CAPDU: 80 09 00 00 [16:56:56]Write to MH i2c: E2 08 00 26 16 80 09 00 00 00 00 00 00 AE [16:56:56]Write i2c OK [16:56:56]MH_I2C_Read... [16:56:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:57]Read from MH i2c: E2 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 26 16 00 90 00 B0 [16:56:57]RAPDU: 90 00 [16:56:57]wFMCommunicate OK [16:56:57]SAM_PROTO_ClearQueue done [16:56:57]KKMCreateOFDPacket [16:56:57]OFDProtocolAddRootSTLVToBuf [16:56:57]FM_MakeSignedData [16:56:57]FM_MakeSignedData [16:56:57]SAM_PROTO_SignData [16:56:57]wFMCommunicate request_size=4 [16:56:57]MH_SAM_APDU [16:56:57]CAPDU: 80 0D 01 02 [16:56:57]Write to MH i2c: E2 08 00 27 16 80 0D 01 02 00 00 00 00 B6 [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:57]Read from MH i2c: E2 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 27 16 00 90 00 B1 [16:56:57]RAPDU: 90 00 [16:56:57]wFMCommunicate OK [16:56:57]wFMCommunicate request_size=255 [16:56:57]MH_SAM_APDU [16:56: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 58 7C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 5F 02 00 35 04 06 00 DF [16:56:57]Write to MH i2c: E2 02 01 28 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 58 7C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 5F 02 00 35 04 06 00 DF 00 00 CE [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:57]Read from MH i2c: E2 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 28 16 00 90 00 B2 [16:56:57]RAPDU: 90 00 [16:56:57]wFMCommunicate OK [16:56:57]wFMCommunicate request_size=10 [16:56:57]MH_SAM_APDU [16:56:57]CAPDU: 80 0D 02 02 05 81 28 06 0D F1 [16:56:57]Write to MH i2c: E2 0D 00 29 16 80 0D 02 02 05 00 81 28 06 0D F1 00 00 70 [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:57]Read from MH i2c: E2 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 03 00 29 16 00 90 00 B3 [16:56:57]RAPDU: 90 00 [16:56:57]wFMCommunicate OK [16:56:57]wFMCommunicate request_size=4 [16:56:57]MH_SAM_APDU [16:56:57]CAPDU: 80 0D 03 02 [16:56:57]Write to MH i2c: E2 08 00 2A 16 80 0D 03 02 00 00 00 00 BB [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:57]Read from MH i2c: E2 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 0B 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 0B 00 2A 16 00 CE 37 9B 3F F6 B3 D2 CA 90 00 E0 [16:56:57]RAPDU: CE 37 9B 3F F6 B3 D2 CA 90 00 [16:56:57]wFMCommunicate OK [16:56:57]SAM_PROTO_SignData done [16:56:57]FM_MakeSignedData done [16:56:57]CreateOFDProtocolMessage [16:56:57]wFMCommunicate request_size=4 [16:56:57]MH_SAM_APDU [16:56:57]CAPDU: 80 11 00 00 [16:56:57]Write to MH i2c: E2 08 00 2B 16 80 11 00 00 00 00 00 00 BB [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:57]Read from MH i2c: E2 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 17 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: E2 17 00 2B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 10 [16:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:56:57]wFMCommunicate OK [16:56:57]CreateOFDProtocolMessage done [16:56:57]OFDSenderStorePacket 155619 [16:56:57]StoreOFDPacket docnum=155619 [16:56:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D6 E7 07 01 E8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 58 7C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 5F 02 00 35 04 06 00 DF 81 28 06 0D F1 CE 37 9B 3F F6 B3 D2 CA [16:56:57]CheckFolder [16:56:57]dirname=/storage/ofd_packets [16:56:57]CheckFolder done [16:56:57]ProducePacketName [16:56:57]name=ofd_packets/00155619 [16:56:57]NVStorageSaveData ofd_packets/00155619 [16:56:57]File name is /storage/ofd_packets/00155619 [16:56:57]Write 301 bytes [16:56:57]NVStorageSaveData done [16:56:57]OFDSenderStorePacket done [16:56:57]KKMCreateOFDPacket done [16:56:57]NVStorageSaveData kkm_last_timestamp [16:56:57]File name is /storage/kkm_last_timestamp [16:56:57]Write 4 bytes [16:56:57]NVStorageSaveData done [16:56:57]ExternCall_PrintAddStr [16:56:57]wPrintStart [16:56:57]Write to MH i2c: 01 00 00 2C 16 42 [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: 01 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: 01 07 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: 01 07 00 2C 16 00 00 00 00 00 FF 0F 57 [16:56:57]RasterBufferAndPrint [16:56:57]line Счет N : (1)98425 [16:56:57]line ИНН: 02508201610067 [16:56:57]line Контрольно-Кассовый Чек [16:56:57]line ПРОДАЖА [16:56:57]line ТРК (МРК, ГНК) : 31 [16:56:57]line Товар: 2710124130 [16:56:57]line Аи-92-К-5 [16:56:57]line 7.480 * 66.90 [16:56:57]line = 500.41 [16:56:57]line НДС 12% НСП 1% [16:56:57]line > о реализуемом товаре [16:56:57]line ОКРУГЛЕНИЕ: -0.41 [16:56:57]line ИТОГО: 500.00 [16:56:57]line Внесено: 500.00 [16:56:57]line СДАЧА: 0.00 [16:56:57]line НСП 1% : 4.43 [16:56:57]line НДС 12% : 53.14 [16:56:57]line Наличными: 500.00 [16:56:57]line Безнал.: 0.00 [16:56:57]line Место: АЗС № 143 "Партнер Нефть" [16:56:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:56:57]line СНО: Общий режим [16:56:57]line Чек 244 24.10.2024 16:56 [16:56:57]line Смена: 534 ФФД: 1.0 [16:56:57]line ЗНМ: 0300000096 [16:56:57]line РНМ: 0000000000091693 [16:56:57]line Версия ККМ: 001 [16:56:57]line ФМ: 0000000000871792 [16:56:57]line ФД: 155619 [16:56:57]line ФПД: 245745815260657 [16:56:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T165656&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155619&fm=245745815260657&tin=02508201610067®Number=0000000000091693&sum=50000 [16:56:57]written 0, free lines is 4095 [16:56:57]OFD Sender: Processing packet 155619 [packets to send 31, broken 30] [16:56:57]ProducePacketName [16:56:57]name=ofd_packets/00155619 [16:56:57]OFD Sender: To server: pG, [16:56:57]CommunicateWithHost lk.salyk.kg:30040 [16:56:57]ConnectInit lk.salyk.kg [16:56:57]Connected sock=10 [16:56: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 39 32 0F 01 00 00 D6 E7 07 01 E8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 58 7C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 5F 02 00 35 04 06 00 DF 81 28 06 0D F1 CE 37 9B 3F F6 B3 D2 CA [16:56: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 39 32 4F 00 00 00 DD 9B 47 00 FB 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 5F 02 00 F4 03 04 00 D0 21 1A 67 B6 04 01 00 00 52 12 B7 95 43 B2 C7 3A [16:56:57]CommunicateWithHost err = 0 [16:56:57]CheckOFDResponse [16:56:57]1017 (14) - 77093643461234 [16:56:57]1041 (16) - 0000000000871792 [16:56:57]1040 (4) - 155619 [16:56:57]1012 (4) - 24.10.2024 10:30 [16:56:57]1206 (1) - 0 [16:56:57]OFD Sender: Remove packet 155619 [16:56:57]ProducePacketName [16:56:57]name=ofd_packets/00155619 [16:56:57]NVStorageDeleteData [16:56:57]Write to MH i2c: 01 00 00 57 16 6D [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: 01 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: 01 07 00 [16:56:57]MH_I2C_Read... [16:56:57]Read from MH i2c: 01 07 00 57 16 00 00 00 00 00 E4 0C 64 [16:56:57]RasterBufferAndPrint [16:56:57]line [16:56:57]line [16:56:57]line [16:56:57]line [16:56:57]line [16:56:57]written 0, free lines is 3306 [16:56:57]process_action close_receipt done [16:56:57]requested_data is exist [16:56:57]produce_requested_data [16:56:57]requested_item fm.sn is exist - process it [16:56:57]wFMCommunicate request_size=4 [16:56:57]MH_SAM_APDU [16:56:57]CAPDU: 80 11 00 00 [16:56:57]Write to MH i2c: E2 08 00 5E 16 80 11 00 00 00 00 00 00 EE [16:56:57]Write i2c OK [16:56:57]MH_I2C_Read... [16:56:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:58]Read from MH i2c: E2 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 17 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 17 00 5E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 43 [16:56:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:56:58]wFMCommunicate OK [16:56:58]requested_item fd.num is exist - process it [16:56:58]SAM_PROTO_GetFieldsCounters [16:56:58]wFMCommunicate request_size=4 [16:56:58]MH_SAM_APDU [16:56:58]CAPDU: 80 13 00 00 [16:56:58]Write to MH i2c: E2 08 00 5F 16 80 13 00 00 00 00 00 00 F1 [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:58]Read from MH i2c: E2 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 62 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 62 00 5F 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E3 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [16:56: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E3 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:58]wFMCommunicate OK [16:56:58]SAM_PROTO_GetFieldsCounters done [16:56:58]requested_item shift.num is exist - process it [16:56:58]requested_item shift.opened is exist - process it [16:56:58]req_shift_opened [16:56:58]FM_GetShiftState [16:56:58]SAM_PROTO_GetShiftState [16:56:58]wFMCommunicate request_size=4 [16:56:58]MH_SAM_APDU [16:56:58]CAPDU: 80 13 01 00 [16:56:58]Write to MH i2c: E2 08 00 60 16 80 13 01 00 00 00 00 00 F3 [16:56:58]Write i2c OK [16:56:58]MH_I2C_Read... [16:56:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:58]Read from MH i2c: E2 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 0E 00 [16:56:58]MH_I2C_Read... [16:56:58]Read from MH i2c: E2 0E 00 60 16 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 40 [16:56:58]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [16:56:58]wFMCommunicate OK [16:56:58]SAM_PROTO_GetShiftState done [16:56:58]FM_GetShiftState done [16:56:58]req_shift_opened done [16:56:58]requested_item shift.open_date is exist - process it [16:56:58]req_shift_open_date [16:56:58]req_shift_open_date done [16:56:58]produce_requested_data done [16:56:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155619,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [16:56:58]process_action_free close_receipt [16:56:58]json_value_free [16:56:58]json_value_free done [16:56:58]process_json_proto returns [16:56:58]Send response to host [16:56:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155619,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [16:56:58]free response buf [16:56:58]execute_script done [16:56:58]execute_script returns [16:56:58]free content buf [16:56:58]Sock 9.Close socket [16:56:58]Sock 9.Thread stoped [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [17:00:33]OFD Sender: No OFD packet to send [17:00:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:58]OFD Sender: No OFD packet to send [17:00:59]accept exits with 8 [17:00:59]New connection [17:00:59]New thread 3066637668 created [17:00:59]Thread 3066781028 joined [17:00:59]Waiting for new connection... [17:00:59] Sock 8.Parse request [17:00:59]Sock 8.Check first char [17:00:59]Sock 8.First char is OK [17:00:59]request: POST /json_proto HTTP/1.0 [17:00:59]Method: POST [17:00:59]URL: /json_proto [17:00:59]Method is POST - this is cgi request [17:00:59]url: /json_proto [17:00:59]query_string will be loaded in cgi processing [17:00:59]execute_cgi json_proto POST (null) [17:00:59]execute_cgi path=json_proto method=POST [17:00:59]POST find Content-Length [17:00:59]Host: 172.17.63.3:8080 [17:00:59]Content-Length: 676 [17:00:59]Content-Type: application/json [17:00:59] [17:00:59]POST finish read [17:00:59]Found Content-Length = 676 [17:00:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:59]execute_script... [17: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)98426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:59]POST & json_proto [17:00:59]process_json_proto [17:00:59]json parsed OK: [17:00:59]protocol is kg_v1.0 [17:00:59]action value=close_receipt [17:00:59]process_action close_receipt [17:00:59]cmd_close_receipt [17:00:59]MH_GetDate [17:00:59]Write to MH i2c: F0 00 00 61 16 66 [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: F0 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: F0 09 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: F0 09 00 61 16 00 4C 7D 1A 67 50 D1 6C 64 AA [17:00:59]GetLastDocTimeStamp 1729789016 [17:00:59]current date 1729789260 [17:00:59]FM_GetShiftState [17:00:59]SAM_PROTO_GetShiftState [17:00:59]wFMCommunicate request_size=4 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 13 01 00 [17:00:59]Write to MH i2c: E2 08 00 62 16 80 13 01 00 00 00 00 00 F5 [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:00]Read from MH i2c: E2 [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: E2 0E 00 [17:01:00]MH_I2C_Read... [17:01:00]Read from MH i2c: E2 0E 00 62 16 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 42 [17:01:00]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:01:00]wFMCommunicate OK [17:01:00]SAM_PROTO_GetShiftState done [17:01:00]FM_GetShiftState done [17:01:00]opened in 1729729836 [17:01:00]opened+sec_in_day 1729816236 [17:01:00]quantity*price = 30038 [17:01:00]sum+1 = 30039 [17:01:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 245 24.10.2024 17:01 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155620 ФПД: 61533347027720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170100&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155620&fm=61533347027720&tin=02508201610067®Number=0000000000091693&sum=30000 [17:01:01]StoreToDocumentArchive [17:01:01]shift 534 fd 155620 [17:01:01]save to /storage/0534/doc_00155620 [17:01:01]save last doc name /storage/0534/doc_00155620 to /storage/kkm_last_doc_name [17:01:01]save OK [17:01:01]Clear old archive folders... [17:01:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:01]tlvbuf is 01F3E4D0 [17:01:01]SAM_PROTO_ClearQueue [17:01:01]wFMCommunicate request_size=4 [17:01:01]MH_SAM_APDU [17:01:01]CAPDU: 80 09 00 00 [17:01:01]Write to MH i2c: E2 08 00 6F 16 80 09 00 00 00 00 00 00 F7 [17:01:01]Write i2c OK [17:01:01]MH_I2C_Read... [17:01:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:01]Read from MH i2c: E2 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 03 00 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 03 00 6F 16 00 90 00 F9 [17:01:01]RAPDU: 90 00 [17:01:01]wFMCommunicate OK [17:01:01]SAM_PROTO_ClearQueue done [17:01:01]KKMCreateOFDPacket [17:01:01]OFDProtocolAddRootSTLVToBuf [17:01:01]FM_MakeSignedData [17:01:01]FM_MakeSignedData [17:01:01]SAM_PROTO_SignData [17:01:01]wFMCommunicate request_size=4 [17:01:01]MH_SAM_APDU [17:01:01]CAPDU: 80 0D 01 02 [17:01:01]Write to MH i2c: E2 08 00 70 16 80 0D 01 02 00 00 00 00 FF [17:01:01]Write i2c OK [17:01:01]MH_I2C_Read... [17:01:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:01]Read from MH i2c: E2 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 03 00 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 03 00 70 16 00 90 00 FA [17:01:01]RAPDU: 90 00 [17:01:01]wFMCommunicate OK [17:01:01]wFMCommunicate request_size=255 [17:01:01]MH_SAM_APDU [17:01: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 4C 7D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 5F 02 00 35 04 06 00 37 [17:01:01]Write to MH i2c: E2 02 01 71 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 4C 7D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 5F 02 00 35 04 06 00 37 00 00 5A [17:01:01]Write i2c OK [17:01:01]MH_I2C_Read... [17:01:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:01]Read from MH i2c: E2 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 03 00 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 03 00 71 16 00 90 00 FB [17:01:01]RAPDU: 90 00 [17:01:01]wFMCommunicate OK [17:01:01]wFMCommunicate request_size=10 [17:01:01]MH_SAM_APDU [17:01:01]CAPDU: 80 0D 02 02 05 F6 D9 4A 9B 08 [17:01:01]Write to MH i2c: E2 0D 00 72 16 80 0D 02 02 05 00 F6 D9 4A 9B 08 00 00 C8 [17:01:01]Write i2c OK [17:01:01]MH_I2C_Read... [17:01:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:01]Read from MH i2c: E2 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 03 00 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 03 00 72 16 00 90 00 FC [17:01:01]RAPDU: 90 00 [17:01:01]wFMCommunicate OK [17:01:01]wFMCommunicate request_size=4 [17:01:01]MH_SAM_APDU [17:01:01]CAPDU: 80 0D 03 02 [17:01:01]Write to MH i2c: E2 08 00 73 16 80 0D 03 02 00 00 00 00 04 [17:01:01]Write i2c OK [17:01:01]MH_I2C_Read... [17:01:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:01]Read from MH i2c: E2 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 0B 00 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 0B 00 73 16 00 E2 E7 61 CD 10 92 18 32 90 00 E8 [17:01:01]RAPDU: E2 E7 61 CD 10 92 18 32 90 00 [17:01:01]wFMCommunicate OK [17:01:01]SAM_PROTO_SignData done [17:01:01]FM_MakeSignedData done [17:01:01]CreateOFDProtocolMessage [17:01:01]wFMCommunicate request_size=4 [17:01:01]MH_SAM_APDU [17:01:01]CAPDU: 80 11 00 00 [17:01:01]Write to MH i2c: E2 08 00 74 16 80 11 00 00 00 00 00 00 04 [17:01:01]Write i2c OK [17:01:01]MH_I2C_Read... [17:01:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:01]Read from MH i2c: E2 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 17 00 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: E2 17 00 74 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 59 [17:01:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:01:01]wFMCommunicate OK [17:01:01]CreateOFDProtocolMessage done [17:01:01]OFDSenderStorePacket 155620 [17:01:01]StoreOFDPacket docnum=155620 [17:01:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CF 07 07 01 3E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 4C 7D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 5F 02 00 35 04 06 00 37 F6 D9 4A 9B 08 E2 E7 61 CD 10 92 18 32 [17:01:01]CheckFolder [17:01:01]dirname=/storage/ofd_packets [17:01:01]CheckFolder done [17:01:01]ProducePacketName [17:01:01]name=ofd_packets/00155620 [17:01:01]NVStorageSaveData ofd_packets/00155620 [17:01:01]File name is /storage/ofd_packets/00155620 [17:01:01]Write 301 bytes [17:01:01]NVStorageSaveData done [17:01:01]OFDSenderStorePacket done [17:01:01]KKMCreateOFDPacket done [17:01:01]NVStorageSaveData kkm_last_timestamp [17:01:01]File name is /storage/kkm_last_timestamp [17:01:01]Write 4 bytes [17:01:01]NVStorageSaveData done [17:01:01]ExternCall_PrintAddStr [17:01:01]wPrintStart [17:01:01]Write to MH i2c: 01 00 00 75 16 8B [17:01:01]Write i2c OK [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: 01 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: 01 07 00 [17:01:01]MH_I2C_Read... [17:01:01]Read from MH i2c: 01 07 00 75 16 00 00 00 00 00 FF 0F A0 [17:01:01]RasterBufferAndPrint [17:01:01]line Счет N : (1)98426 [17:01:01]line ИНН: 02508201610067 [17:01:01]line Контрольно-Кассовый Чек [17:01:01]line ПРОДАЖА [17:01:01]line ТРК (МРК, ГНК) : 11 [17:01:01]line Товар: 2710124130 [17:01:01]line Аи-92-К-5 [17:01:01]line 4.490 * 66.90 [17:01:01]line = 300.38 [17:01:01]line НДС 12% НСП 1% [17:01:01]line > о реализуемом товаре [17:01:01]line ОКРУГЛЕНИЕ: -0.38 [17:01:01]line ИТОГО: 300.00 [17:01:01]line Внесено: 300.00 [17:01:01]line СДАЧА: 0.00 [17:01:01]line НСП 1% : 2.66 [17:01:01]line НДС 12% : 31.90 [17:01:01]line Наличными: 300.00 [17:01:01]line Безнал.: 0.00 [17:01:01]line Место: АЗС № 143 "Партнер Нефть" [17:01:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:01:01]line СНО: Общий режим [17:01:01]line Чек 245 24.10.2024 17:01 [17:01:01]line Смена: 534 ФФД: 1.0 [17:01:01]line ЗНМ: 0300000096 [17:01:01]line РНМ: 0000000000091693 [17:01:01]line Версия ККМ: 001 [17:01:01]line ФМ: 0000000000871792 [17:01:01]line ФД: 155620 [17:01:01]line ФПД: 61533347027720 [17:01:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170100&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155620&fm=61533347027720&tin=02508201610067®Number=0000000000091693&sum=30000 [17:01:01]written 0, free lines is 4095 [17:01:01]OFD Sender: Processing packet 155620 [packets to send 31, broken 30] [17:01:01]ProducePacketName [17:01:01]name=ofd_packets/00155620 [17:01:01]OFD Sender: To server: pG, [17:01:01]CommunicateWithHost lk.salyk.kg:30040 [17:01:01]ConnectInit lk.salyk.kg [17:01:01]Connected sock=10 [17: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 39 32 0F 01 00 00 CF 07 07 01 3E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 4C 7D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 5F 02 00 35 04 06 00 37 F6 D9 4A 9B 08 E2 E7 61 CD 10 92 18 32 [17: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 39 32 4F 00 00 00 DC D2 47 00 49 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 39 32 10 04 04 00 E4 5F 02 00 F4 03 04 00 C4 22 1A 67 B6 04 01 00 00 D4 DD 10 78 72 6A AA 50 [17:01:02]CommunicateWithHost err = 0 [17:01:02]CheckOFDResponse [17:01:02]1017 (14) - 77093643461234 [17:01:02]1041 (16) - 0000000000871792 [17:01:02]1040 (4) - 155620 [17:01:02]1012 (4) - 24.10.2024 10:34 [17:01:02]1206 (1) - 0 [17:01:02]OFD Sender: Remove packet 155620 [17:01:02]ProducePacketName [17:01:02]name=ofd_packets/00155620 [17:01:02]NVStorageDeleteData [17:01:02]Write to MH i2c: 01 00 00 A0 16 B6 [17:01:02]Write i2c OK [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: 01 [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: 01 07 00 [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: 01 07 00 A0 16 00 00 00 00 00 09 0D D3 [17:01:02]RasterBufferAndPrint [17:01:02]line [17:01:02]line [17:01:02]line [17:01:02]line [17:01:02]line [17:01:02]written 0, free lines is 3343 [17:01:02]process_action close_receipt done [17:01:02]requested_data is exist [17:01:02]produce_requested_data [17:01:02]requested_item fm.sn is exist - process it [17:01:02]wFMCommunicate request_size=4 [17:01:02]MH_SAM_APDU [17:01:02]CAPDU: 80 11 00 00 [17:01:02]Write to MH i2c: E2 08 00 A7 16 80 11 00 00 00 00 00 00 37 [17:01:02]Write i2c OK [17:01:02]MH_I2C_Read... [17:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:02]Read from MH i2c: E2 [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: E2 17 00 [17:01:02]MH_I2C_Read... [17:01:02]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 39 32 90 00 8C [17:01:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:01:02]wFMCommunicate OK [17:01:02]requested_item fd.num is exist - process it [17:01:02]SAM_PROTO_GetFieldsCounters [17:01:02]wFMCommunicate request_size=4 [17:01:02]MH_SAM_APDU [17:01:02]CAPDU: 80 13 00 00 [17:01:02]Write to MH i2c: E2 08 00 A8 16 80 13 00 00 00 00 00 00 3A [17:01:02]Write i2c OK [17:01:02]MH_I2C_Read... [17:01:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:02]Read from MH i2c: E2 [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: E2 62 00 [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: E2 62 00 A8 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E4 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [17:01: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E4 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:02]wFMCommunicate OK [17:01:02]SAM_PROTO_GetFieldsCounters done [17:01:02]requested_item shift.num is exist - process it [17:01:02]requested_item shift.opened is exist - process it [17:01:02]req_shift_opened [17:01:02]FM_GetShiftState [17:01:02]SAM_PROTO_GetShiftState [17:01:02]wFMCommunicate request_size=4 [17:01:02]MH_SAM_APDU [17:01:02]CAPDU: 80 13 01 00 [17:01:02]Write to MH i2c: E2 08 00 A9 16 80 13 01 00 00 00 00 00 3C [17:01:02]Write i2c OK [17:01:02]MH_I2C_Read... [17:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:02]Read from MH i2c: E2 [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: E2 0E 00 [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: E2 0E 00 A9 16 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 89 [17:01:02]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:01:02]wFMCommunicate OK [17:01:02]SAM_PROTO_GetShiftState done [17:01:02]FM_GetShiftState done [17:01:02]req_shift_opened done [17:01:02]requested_item shift.open_date is exist - process it [17:01:02]req_shift_open_date [17:01:02]req_shift_open_date done [17:01:02]produce_requested_data done [17:01:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155620,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:01:02]process_action_free close_receipt [17:01:02]json_value_free [17:01:02]json_value_free done [17:01:02]process_json_proto returns [17:01:02]Send response to host [17:01:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155620,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:01:02]free response buf [17:01:02]execute_script done [17:01:02]execute_script returns [17:01:02]free content buf [17:01:02]Sock 8.Close socket [17:01:02]Sock 8.Thread stoped [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:16]accept exits with 9 [17:03:16]New connection [17:03:16]New thread 3066781028 created [17:03:16]Thread 3066637668 joined [17:03:16]Waiting for new connection... [17:03:16] Sock 9.Parse request [17:03:16]Sock 9.Check first char [17:03:16]Sock 9.First char is OK [17:03:16]request: POST /json_proto HTTP/1.0 [17:03:16]Method: POST [17:03:16]URL: /json_proto [17:03:16]Method is POST - this is cgi request [17:03:16]url: /json_proto [17:03:16]query_string will be loaded in cgi processing [17:03:16]execute_cgi json_proto POST (null) [17:03:16]execute_cgi path=json_proto method=POST [17:03:16]POST find Content-Length [17:03:16]Host: 172.17.63.3:8080 [17:03:16]Content-Length: 677 [17:03:16]Content-Type: application/json [17:03:16] [17:03:16]POST finish read [17:03:16]Found Content-Length = 677 [17:03:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:16]execute_script... [17:03:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:16]POST & json_proto [17:03:16]process_json_proto [17:03:16]json parsed OK: [17:03:16]protocol is kg_v1.0 [17:03:16]action value=close_receipt [17:03:16]process_action close_receipt [17:03:16]cmd_close_receipt [17:03:16]MH_GetDate [17:03:16]Write to MH i2c: F0 00 00 AA 16 AF [17:03:16]Write i2c OK [17:03:16]MH_I2C_Read... [17:03:16]Read from MH i2c: F0 [17:03:16]MH_I2C_Read... [17:03:16]Read from MH i2c: F0 09 00 [17:03:16]MH_I2C_Read... [17:03:16]Read from MH i2c: F0 09 00 AA 16 00 D5 7D 1A 67 50 D1 6C 64 7C [17:03:16]GetLastDocTimeStamp 1729789260 [17:03:16]current date 1729789397 [17:03:16]FM_GetShiftState [17:03:16]SAM_PROTO_GetShiftState [17:03:16]wFMCommunicate request_size=4 [17:03:16]MH_SAM_APDU [17:03:16]CAPDU: 80 13 01 00 [17:03:16]Write to MH i2c: E2 08 00 AB 16 80 13 01 00 00 00 00 00 3E [17:03:16]Write i2c OK [17:03:16]MH_I2C_Read... [17:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:16]Read from MH i2c: E2 [17:03:16]MH_I2C_Read... [17:03:16]Read from MH i2c: E2 0E 00 [17:03:16]MH_I2C_Read... [17:03:16]Read from MH i2c: E2 0E 00 AB 16 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8B [17:03:16]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:03:16]wFMCommunicate OK [17:03:16]SAM_PROTO_GetShiftState done [17:03:16]FM_GetShiftState done [17:03:16]opened in 1729729836 [17:03:16]opened+sec_in_day 1729816236 [17:03:16]quantity*price = 67033 [17:03:16]sum+1 = 67035 [17:03:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 246 24.10.2024 17:03 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155621 ФПД: 122095386908338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170317&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155621&fm=122095386908338&tin=02508201610067®Number=0000000000091693&sum=67000 [17:03:17]StoreToDocumentArchive [17:03:17]shift 534 fd 155621 [17:03:17]save to /storage/0534/doc_00155621 [17:03:17]save last doc name /storage/0534/doc_00155621 to /storage/kkm_last_doc_name [17:03:17]save OK [17:03:17]Clear old archive folders... [17:03:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:17]tlvbuf is 01F664E0 [17:03:17]SAM_PROTO_ClearQueue [17:03:17]wFMCommunicate request_size=4 [17:03:17]MH_SAM_APDU [17:03:17]CAPDU: 80 09 00 00 [17:03:17]Write to MH i2c: E2 08 00 B8 16 80 09 00 00 00 00 00 00 40 [17:03:17]Write i2c OK [17:03:17]MH_I2C_Read... [17:03:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:17]Read from MH i2c: E2 [17:03:17]MH_I2C_Read... [17:03:17]Read from MH i2c: E2 03 00 [17:03:17]MH_I2C_Read... [17:03:17]Read from MH i2c: E2 03 00 B8 16 00 90 00 42 [17:03:17]RAPDU: 90 00 [17:03:17]wFMCommunicate OK [17:03:17]SAM_PROTO_ClearQueue done [17:03:17]KKMCreateOFDPacket [17:03:17]OFDProtocolAddRootSTLVToBuf [17:03:17]FM_MakeSignedData [17:03:17]FM_MakeSignedData [17:03:17]SAM_PROTO_SignData [17:03:17]wFMCommunicate request_size=4 [17:03:17]MH_SAM_APDU [17:03:17]CAPDU: 80 0D 01 02 [17:03:17]Write to MH i2c: E2 08 00 B9 16 80 0D 01 02 00 00 00 00 48 [17:03:17]Write i2c OK [17:03:17]MH_I2C_Read... [17:03:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:17]Read from MH i2c: E2 [17:03:17]MH_I2C_Read... [17:03:17]Read from MH i2c: E2 03 00 [17:03:17]MH_I2C_Read... [17:03:17]Read from MH i2c: E2 03 00 B9 16 00 90 00 43 [17:03:17]RAPDU: 90 00 [17:03:17]wFMCommunicate OK [17:03:17]wFMCommunicate request_size=255 [17:03:17]MH_SAM_APDU [17:03: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 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 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 D5 7D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 5F 02 00 35 04 06 00 6F [17:03:17]Write to MH i2c: E2 02 01 BA 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 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 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 D5 7D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 5F 02 00 35 04 06 00 6F 00 00 0D [17:03:17]Write i2c OK [17:03:17]MH_I2C_Read... [17:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:18]Read from MH i2c: E2 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 03 00 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 03 00 BA 16 00 90 00 44 [17:03:18]RAPDU: 90 00 [17:03:18]wFMCommunicate OK [17:03:18]wFMCommunicate request_size=10 [17:03:18]MH_SAM_APDU [17:03:18]CAPDU: 80 0D 02 02 05 0B 8C 2A 56 B2 [17:03:18]Write to MH i2c: E2 0D 00 BB 16 80 0D 02 02 05 00 0B 8C 2A 56 B2 00 00 1E [17:03:18]Write i2c OK [17:03:18]MH_I2C_Read... [17:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:18]Read from MH i2c: E2 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 03 00 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 03 00 BB 16 00 90 00 45 [17:03:18]RAPDU: 90 00 [17:03:18]wFMCommunicate OK [17:03:18]wFMCommunicate request_size=4 [17:03:18]MH_SAM_APDU [17:03:18]CAPDU: 80 0D 03 02 [17:03:18]Write to MH i2c: E2 08 00 BC 16 80 0D 03 02 00 00 00 00 4D [17:03:18]Write i2c OK [17:03:18]MH_I2C_Read... [17:03:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:18]Read from MH i2c: E2 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 0B 00 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 0B 00 BC 16 00 F0 AD 88 B8 C6 2D A2 9A 90 00 5A [17:03:18]RAPDU: F0 AD 88 B8 C6 2D A2 9A 90 00 [17:03:18]wFMCommunicate OK [17:03:18]SAM_PROTO_SignData done [17:03:18]FM_MakeSignedData done [17:03:18]CreateOFDProtocolMessage [17:03:18]wFMCommunicate request_size=4 [17:03:18]MH_SAM_APDU [17:03:18]CAPDU: 80 11 00 00 [17:03:18]Write to MH i2c: E2 08 00 BD 16 80 11 00 00 00 00 00 00 4D [17:03:18]Write i2c OK [17:03:18]MH_I2C_Read... [17:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:18]Read from MH i2c: E2 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 17 00 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: E2 17 00 BD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A2 [17:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:03:18]wFMCommunicate OK [17:03:18]CreateOFDProtocolMessage done [17:03:18]OFDSenderStorePacket 155621 [17:03:18]StoreOFDPacket docnum=155621 [17:03:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 51 FA 07 01 28 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 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 D5 7D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 5F 02 00 35 04 06 00 6F 0B 8C 2A 56 B2 F0 AD 88 B8 C6 2D A2 9A [17:03:18]CheckFolder [17:03:18]dirname=/storage/ofd_packets [17:03:18]CheckFolder done [17:03:18]ProducePacketName [17:03:18]name=ofd_packets/00155621 [17:03:18]NVStorageSaveData ofd_packets/00155621 [17:03:18]File name is /storage/ofd_packets/00155621 [17:03:18]Write 301 bytes [17:03:18]NVStorageSaveData done [17:03:18]OFDSenderStorePacket done [17:03:18]KKMCreateOFDPacket done [17:03:18]NVStorageSaveData kkm_last_timestamp [17:03:18]File name is /storage/kkm_last_timestamp [17:03:18]Write 4 bytes [17:03:18]NVStorageSaveData done [17:03:18]ExternCall_PrintAddStr [17:03:18]wPrintStart [17:03:18]Write to MH i2c: 01 00 00 BE 16 D4 [17:03:18]Write i2c OK [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: 01 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: 01 07 00 [17:03:18]MH_I2C_Read... [17:03:18]Read from MH i2c: 01 07 00 BE 16 00 00 00 00 00 FF 0F E9 [17:03:18]RasterBufferAndPrint [17:03:18]line Счет N : (1)98427 [17:03:18]line ИНН: 02508201610067 [17:03:18]line Контрольно-Кассовый Чек [17:03:18]line ПРОДАЖА [17:03:18]line ТРК (МРК, ГНК) : 31 [17:03:18]line Товар: 2710124130 [17:03:18]line Аи-92-К-5 [17:03:18]line 10.020 * 66.90 [17:03:18]line = 670.34 [17:03:18]line НДС 12% НСП 1% [17:03:18]line > о реализуемом товаре [17:03:18]line ОКРУГЛЕНИЕ: -0.34 [17:03:18]line ИТОГО: 670.00 [17:03:18]line Внесено: 670.00 [17:03:18]line СДАЧА: 0.00 [17:03:18]line НСП 1% : 5.93 [17:03:18]line НДС 12% : 71.19 [17:03:18]line Наличными: 670.00 [17:03:18]line Безнал.: 0.00 [17:03:18]line Место: АЗС № 143 "Партнер Нефть" [17:03:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:03:18]line СНО: Общий режим [17:03:18]line Чек 246 24.10.2024 17:03 [17:03:18]line Смена: 534 ФФД: 1.0 [17:03:18]line ЗНМ: 0300000096 [17:03:18]line РНМ: 0000000000091693 [17:03:18]line Версия ККМ: 001 [17:03:18]line ФМ: 0000000000871792 [17:03:18]line ФД: 155621 [17:03:18]line ФПД: 122095386908338 [17:03:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170317&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155621&fm=122095386908338&tin=02508201610067®Number=0000000000091693&sum=67000 [17:03:18]OFD Sender: Processing packet 155621 [packets to send 31, broken 30] [17:03:18]ProducePacketName [17:03:18]name=ofd_packets/00155621 [17:03:18]OFD Sender: To server: pG, [17:03:18]CommunicateWithHost lk.salyk.kg:30040 [17:03:18]ConnectInit lk.salyk.kg [17:03:18]written 0, free lines is 4095 [17:03:18]Connected sock=10 [17:03: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 39 32 0F 01 00 00 51 FA 07 01 28 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 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 D5 7D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 5F 02 00 35 04 06 00 6F 0B 8C 2A 56 B2 F0 AD 88 B8 C6 2D A2 9A [17:03:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 92 12 47 00 FD 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 39 32 10 04 04 00 E5 5F 02 00 F4 03 04 00 4D 23 1A 67 B6 04 01 00 00 6A 1C CD 78 9C EE 74 24 [17:03:19]CommunicateWithHost err = 0 [17:03:19]CheckOFDResponse [17:03:19]1017 (14) - 77093643461234 [17:03:19]1041 (16) - 0000000000871792 [17:03:19]1040 (4) - 155621 [17:03:19]1012 (4) - 24.10.2024 10:37 [17:03:19]1206 (1) - 0 [17:03:19]OFD Sender: Remove packet 155621 [17:03:19]ProducePacketName [17:03:19]name=ofd_packets/00155621 [17:03:19]NVStorageDeleteData [17:03:19]Write to MH i2c: 01 00 00 E9 16 FF [17:03:19]Write i2c OK [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: 01 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: 01 07 00 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: 01 07 00 E9 16 00 00 00 00 00 E8 0C FA [17:03:19]RasterBufferAndPrint [17:03:19]line [17:03:19]line [17:03:19]line [17:03:19]line [17:03:19]line [17:03:19]written 0, free lines is 3311 [17:03:19]process_action close_receipt done [17:03:19]requested_data is exist [17:03:19]produce_requested_data [17:03:19]requested_item fm.sn is exist - process it [17:03:19]wFMCommunicate request_size=4 [17:03:19]MH_SAM_APDU [17:03:19]CAPDU: 80 11 00 00 [17:03:19]Write to MH i2c: E2 08 00 F0 16 80 11 00 00 00 00 00 00 80 [17:03:19]Write i2c OK [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: E2 [17:03:19]MH_I2C_Read... [17:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:19]Read from MH i2c: E2 17 00 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: E2 17 00 F0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D5 [17:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:03:19]wFMCommunicate OK [17:03:19]requested_item fd.num is exist - process it [17:03:19]SAM_PROTO_GetFieldsCounters [17:03:19]wFMCommunicate request_size=4 [17:03:19]MH_SAM_APDU [17:03:19]CAPDU: 80 13 00 00 [17:03:19]Write to MH i2c: E2 08 00 F1 16 80 13 00 00 00 00 00 00 83 [17:03:19]Write i2c OK [17:03:19]MH_I2C_Read... [17:03:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:19]Read from MH i2c: E2 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: E2 62 00 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: E2 62 00 F1 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E5 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [17:03: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E5 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:19]wFMCommunicate OK [17:03:19]SAM_PROTO_GetFieldsCounters done [17:03:19]requested_item shift.num is exist - process it [17:03:19]requested_item shift.opened is exist - process it [17:03:19]req_shift_opened [17:03:19]FM_GetShiftState [17:03:19]SAM_PROTO_GetShiftState [17:03:19]wFMCommunicate request_size=4 [17:03:19]MH_SAM_APDU [17:03:19]CAPDU: 80 13 01 00 [17:03:19]Write to MH i2c: E2 08 00 F2 16 80 13 01 00 00 00 00 00 85 [17:03:19]Write i2c OK [17:03:19]MH_I2C_Read... [17:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:19]Read from MH i2c: E2 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: E2 0E 00 [17:03:19]MH_I2C_Read... [17:03:19]Read from MH i2c: E2 0E 00 F2 16 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D2 [17:03:19]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:03:19]wFMCommunicate OK [17:03:19]SAM_PROTO_GetShiftState done [17:03:19]FM_GetShiftState done [17:03:19]req_shift_opened done [17:03:19]requested_item shift.open_date is exist - process it [17:03:19]req_shift_open_date [17:03:19]req_shift_open_date done [17:03:19]produce_requested_data done [17:03:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155621,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:03:19]process_action_free close_receipt [17:03:19]json_value_free [17:03:19]json_value_free done [17:03:19]process_json_proto returns [17:03:19]Send response to host [17:03:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155621,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:03:19]free response buf [17:03:19]execute_script done [17:03:19]execute_script returns [17:03:19]free content buf [17:03:19]Sock 9.Close socket [17:03:19]Sock 9.Thread stoped [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:12]accept exits with 8 [17:04:12]New connection [17:04:12]New thread 3066637668 created [17:04:12]Thread 3066781028 joined [17:04:12]Waiting for new connection... [17:04:12] Sock 8.Parse request [17:04:12]Sock 8.Check first char [17:04:12]Sock 8.First char is OK [17:04:12]request: POST /json_proto HTTP/1.0 [17:04:12]Method: POST [17:04:12]URL: /json_proto [17:04:12]Method is POST - this is cgi request [17:04:12]url: /json_proto [17:04:12]query_string will be loaded in cgi processing [17:04:12]execute_cgi json_proto POST (null) [17:04:12]execute_cgi path=json_proto method=POST [17:04:12]POST find Content-Length [17:04:12]Host: 172.17.63.3:8080 [17:04:12]Content-Length: 681 [17:04:12]Content-Type: application/json [17:04:12] [17:04:12]POST finish read [17:04:12]Found Content-Length = 681 [17:04:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:12]execute_script... [17:04: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)98428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:12]POST & json_proto [17:04:12]process_json_proto [17:04:12]json parsed OK: [17:04:12]protocol is kg_v1.0 [17:04:12]action value=close_receipt [17:04:12]process_action close_receipt [17:04:12]cmd_close_receipt [17:04:12]MH_GetDate [17:04:12]Write to MH i2c: F0 00 00 F3 16 F8 [17:04:12]Write i2c OK [17:04:12]MH_I2C_Read... [17:04:12]Read from MH i2c: F0 [17:04:12]MH_I2C_Read... [17:04:12]Read from MH i2c: F0 09 00 [17:04:12]MH_I2C_Read... [17:04:12]Read from MH i2c: F0 09 00 F3 16 00 0D 7E 1A 67 50 D1 6C 64 FE [17:04:12]GetLastDocTimeStamp 1729789397 [17:04:12]current date 1729789453 [17:04:12]FM_GetShiftState [17:04:12]SAM_PROTO_GetShiftState [17:04:12]wFMCommunicate request_size=4 [17:04:12]MH_SAM_APDU [17:04:12]CAPDU: 80 13 01 00 [17:04:12]Write to MH i2c: E2 08 00 F4 16 80 13 01 00 00 00 00 00 87 [17:04:12]Write i2c OK [17:04:12]MH_I2C_Read... [17:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:13]Read from MH i2c: E2 [17:04:13]MH_I2C_Read... [17:04:13]Read from MH i2c: E2 0E 00 [17:04:13]MH_I2C_Read... [17:04:13]Read from MH i2c: E2 0E 00 F4 16 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D4 [17:04:13]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:04:13]wFMCommunicate OK [17:04:13]SAM_PROTO_GetShiftState done [17:04:13]FM_GetShiftState done [17:04:13]opened in 1729729836 [17:04:13]opened+sec_in_day 1729816236 [17:04:13]quantity*price = 100015 [17:04:13]sum+1 = 100017 [17:04:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 247 24.10.2024 17:04 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155622 ФПД: 100069270453239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170413&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155622&fm=100069270453239&tin=02508201610067®Number=0000000000091693&sum=100000 [17:04:14]StoreToDocumentArchive [17:04:14]shift 534 fd 155622 [17:04:14]save to /storage/0534/doc_00155622 [17:04:14]save last doc name /storage/0534/doc_00155622 to /storage/kkm_last_doc_name [17:04:14]save OK [17:04:14]Clear old archive folders... [17:04:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:04:14]tlvbuf is 01F2FD80 [17:04:14]SAM_PROTO_ClearQueue [17:04:14]wFMCommunicate request_size=4 [17:04:14]MH_SAM_APDU [17:04:14]CAPDU: 80 09 00 00 [17:04:14]Write to MH i2c: E2 08 00 01 17 80 09 00 00 00 00 00 00 8A [17:04:14]Write i2c OK [17:04:14]MH_I2C_Read... [17:04:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:14]Read from MH i2c: E2 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: E2 03 00 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: E2 03 00 01 17 00 90 00 8C [17:04:14]RAPDU: 90 00 [17:04:14]wFMCommunicate OK [17:04:14]SAM_PROTO_ClearQueue done [17:04:14]KKMCreateOFDPacket [17:04:14]OFDProtocolAddRootSTLVToBuf [17:04:14]FM_MakeSignedData [17:04:14]FM_MakeSignedData [17:04:14]SAM_PROTO_SignData [17:04:14]wFMCommunicate request_size=4 [17:04:14]MH_SAM_APDU [17:04:14]CAPDU: 80 0D 01 02 [17:04:14]Write to MH i2c: E2 08 00 02 17 80 0D 01 02 00 00 00 00 92 [17:04:14]Write i2c OK [17:04:14]MH_I2C_Read... [17:04:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:14]Read from MH i2c: E2 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: E2 03 00 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: E2 03 00 02 17 00 90 00 8D [17:04:14]RAPDU: 90 00 [17:04:14]wFMCommunicate OK [17:04:14]wFMCommunicate request_size=255 [17:04:14]MH_SAM_APDU [17:04: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 0D 7E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 5F 02 00 35 04 06 00 5B [17:04:14]Write to MH i2c: E2 02 01 03 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 0D 7E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 5F 02 00 35 04 06 00 5B 00 00 DD [17:04:14]Write i2c OK [17:04:14]MH_I2C_Read... [17:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:14]Read from MH i2c: E2 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: E2 03 00 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: E2 03 00 03 17 00 90 00 8E [17:04:14]RAPDU: 90 00 [17:04:14]wFMCommunicate OK [17:04:14]wFMCommunicate request_size=10 [17:04:14]MH_SAM_APDU [17:04:14]CAPDU: 80 0D 02 02 05 03 31 51 7B F7 [17:04:14]Write to MH i2c: E2 0D 00 04 17 80 0D 02 02 05 00 03 31 51 7B F7 00 00 96 [17:04:14]Write i2c OK [17:04:14]MH_I2C_Read... [17:04:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:14]Read from MH i2c: E2 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: E2 03 00 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: E2 03 00 04 17 00 90 00 8F [17:04:14]RAPDU: 90 00 [17:04:14]wFMCommunicate OK [17:04:14]wFMCommunicate request_size=4 [17:04:14]MH_SAM_APDU [17:04:14]CAPDU: 80 0D 03 02 [17:04:14]Write to MH i2c: E2 08 00 05 17 80 0D 03 02 00 00 00 00 97 [17:04:14]Write i2c OK [17:04:14]MH_I2C_Read... [17:04:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:14]Read from MH i2c: E2 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: E2 0B 00 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: E2 0B 00 05 17 00 69 1B 45 50 08 13 F4 48 90 00 08 [17:04:14]RAPDU: 69 1B 45 50 08 13 F4 48 90 00 [17:04:14]wFMCommunicate OK [17:04:14]SAM_PROTO_SignData done [17:04:14]FM_MakeSignedData done [17:04:14]CreateOFDProtocolMessage [17:04:14]wFMCommunicate request_size=4 [17:04:14]MH_SAM_APDU [17:04:14]CAPDU: 80 11 00 00 [17:04:14]Write to MH i2c: E2 08 00 06 17 80 11 00 00 00 00 00 00 97 [17:04:14]Write i2c OK [17:04:14]MH_I2C_Read... [17:04:14]OFD Sender: No OFD packet to send [17:04:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:14]Read from MH i2c: E2 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: E2 17 00 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: E2 17 00 06 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EC [17:04:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:04:14]wFMCommunicate OK [17:04:14]CreateOFDProtocolMessage done [17:04:14]OFDSenderStorePacket 155622 [17:04:14]StoreOFDPacket docnum=155622 [17:04:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 38 8B 07 01 EA 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 0D 7E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 5F 02 00 35 04 06 00 5B 03 31 51 7B F7 69 1B 45 50 08 13 F4 48 [17:04:14]CheckFolder [17:04:14]dirname=/storage/ofd_packets [17:04:14]CheckFolder done [17:04:14]ProducePacketName [17:04:14]name=ofd_packets/00155622 [17:04:14]NVStorageSaveData ofd_packets/00155622 [17:04:14]File name is /storage/ofd_packets/00155622 [17:04:14]Write 301 bytes [17:04:14]NVStorageSaveData done [17:04:14]OFDSenderStorePacket done [17:04:14]KKMCreateOFDPacket done [17:04:14]NVStorageSaveData kkm_last_timestamp [17:04:14]File name is /storage/kkm_last_timestamp [17:04:14]Write 4 bytes [17:04:14]NVStorageSaveData done [17:04:14]ExternCall_PrintAddStr [17:04:14]wPrintStart [17:04:14]Write to MH i2c: 01 00 00 07 17 1E [17:04:14]Write i2c OK [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: 01 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: 01 07 00 [17:04:14]MH_I2C_Read... [17:04:14]Read from MH i2c: 01 07 00 07 17 00 00 00 00 00 FF 0F 33 [17:04:14]RasterBufferAndPrint [17:04:14]line Счет N : (1)98428 [17:04:14]line ИНН: 02508201610067 [17:04:14]line Контрольно-Кассовый Чек [17:04:14]line ПРОДАЖА [17:04:14]line ТРК (МРК, ГНК) : 11 [17:04:14]line Товар: 2710124130 [17:04:14]line Аи-92-К-5 [17:04:14]line 14.950 * 66.90 [17:04:14]line = 1000.16 [17:04:14]line НДС 12% НСП 1% [17:04:14]line > о реализуемом товаре [17:04:14]line ОКРУГЛЕНИЕ: -0.16 [17:04:14]line ИТОГО: 1000.00 [17:04:14]line Внесено: 1000.00 [17:04:14]line СДАЧА: 0.00 [17:04:14]line НСП 1% : 8.85 [17:04:14]line НДС 12% : 106.21 [17:04:14]line Наличными: 1000.00 [17:04:14]line Безнал.: 0.00 [17:04:14]line Место: АЗС № 143 "Партнер Нефть" [17:04:14]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:04:14]line СНО: Общий режим [17:04:14]line Чек 247 24.10.2024 17:04 [17:04:14]line Смена: 534 ФФД: 1.0 [17:04:14]line ЗНМ: 0300000096 [17:04:14]line РНМ: 0000000000091693 [17:04:14]line Версия ККМ: 001 [17:04:14]line ФМ: 0000000000871792 [17:04:14]line ФД: 155622 [17:04:14]line ФПД: 100069270453239 [17:04:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170413&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155622&fm=100069270453239&tin=02508201610067®Number=0000000000091693&sum=100000 [17:04:14]OFD Sender: Processing packet 155622 [packets to send 31, broken 30] [17:04:14]ProducePacketName [17:04:14]name=ofd_packets/00155622 [17:04:14]OFD Sender: To server: pG, [17:04:14]CommunicateWithHost lk.salyk.kg:30040 [17:04:15]ConnectInit lk.salyk.kg [17:04:15]written 0, free lines is 4095 [17:04:15]Connected sock=10 [17: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 39 32 0F 01 00 00 38 8B 07 01 EA 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 0D 7E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 5F 02 00 35 04 06 00 5B 03 31 51 7B F7 69 1B 45 50 08 13 F4 48 [17: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 39 32 4F 00 00 00 51 66 47 00 D7 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 39 32 10 04 04 00 E6 5F 02 00 F4 03 04 00 86 23 1A 67 B6 04 01 00 00 71 4D 7F 40 D2 77 B0 DB [17:04:15]CommunicateWithHost err = 0 [17:04:15]CheckOFDResponse [17:04:15]1017 (14) - 77093643461234 [17:04:15]1041 (16) - 0000000000871792 [17:04:15]1040 (4) - 155622 [17:04:15]1012 (4) - 24.10.2024 10:37 [17:04:15]1206 (1) - 0 [17:04:15]OFD Sender: Remove packet 155622 [17:04:15]ProducePacketName [17:04:15]name=ofd_packets/00155622 [17:04:15]NVStorageDeleteData [17:04:15]Write to MH i2c: 01 00 00 32 17 49 [17:04:15]Write i2c OK [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: 01 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: 01 07 00 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: 01 07 00 32 17 00 00 00 00 00 F9 0C 55 [17:04:15]RasterBufferAndPrint [17:04:15]line [17:04:15]line [17:04:15]line [17:04:15]line [17:04:15]line [17:04:15]written 0, free lines is 3327 [17:04:15]process_action close_receipt done [17:04:15]requested_data is exist [17:04:15]produce_requested_data [17:04:15]requested_item fm.sn is exist - process it [17:04:15]wFMCommunicate request_size=4 [17:04:15]MH_SAM_APDU [17:04:15]CAPDU: 80 11 00 00 [17:04:15]Write to MH i2c: E2 08 00 39 17 80 11 00 00 00 00 00 00 CA [17:04:15]Write i2c OK [17:04:15]MH_I2C_Read... [17:04:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:15]Read from MH i2c: E2 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 17 00 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 17 00 39 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1F [17:04:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:04:15]wFMCommunicate OK [17:04:15]requested_item fd.num is exist - process it [17:04:15]SAM_PROTO_GetFieldsCounters [17:04:15]wFMCommunicate request_size=4 [17:04:15]MH_SAM_APDU [17:04:15]CAPDU: 80 13 00 00 [17:04:15]Write to MH i2c: E2 08 00 3A 17 80 13 00 00 00 00 00 00 CD [17:04:15]Write i2c OK [17:04:15]MH_I2C_Read... [17:04:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:15]Read from MH i2c: E2 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 62 00 [17:04:15]MH_I2C_Read... [17:04:15]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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E6 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [17:04: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E6 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:15]wFMCommunicate OK [17:04:15]SAM_PROTO_GetFieldsCounters done [17:04:15]requested_item shift.num is exist - process it [17:04:15]requested_item shift.opened is exist - process it [17:04:15]req_shift_opened [17:04:15]FM_GetShiftState [17:04:15]SAM_PROTO_GetShiftState [17:04:15]wFMCommunicate request_size=4 [17:04:15]MH_SAM_APDU [17:04:15]CAPDU: 80 13 01 00 [17:04:15]Write to MH i2c: E2 08 00 3B 17 80 13 01 00 00 00 00 00 CF [17:04:15]Write i2c OK [17:04:15]MH_I2C_Read... [17:04:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:15]Read from MH i2c: E2 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 0E 00 [17:04:15]MH_I2C_Read... [17:04:15]Read from MH i2c: E2 0E 00 3B 17 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1C [17:04:15]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:04:15]wFMCommunicate OK [17:04:15]SAM_PROTO_GetShiftState done [17:04:15]FM_GetShiftState done [17:04:15]req_shift_opened done [17:04:15]requested_item shift.open_date is exist - process it [17:04:15]req_shift_open_date [17:04:15]req_shift_open_date done [17:04:15]produce_requested_data done [17:04:15]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155622,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:04:15]process_action_free close_receipt [17:04:15]json_value_free [17:04:15]json_value_free done [17:04:15]process_json_proto returns [17:04:15]Send response to host [17:04:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155622,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:04:15]free response buf [17:04:15]execute_script done [17:04:15]execute_script returns [17:04:15]free content buf [17:04:15]Sock 8.Close socket [17:04:15]Sock 8.Thread stoped [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:16]OFD Sender: No OFD packet to send [17:07:21]OFD Sender: No OFD packet to send [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:14]accept exits with 9 [17:09:14]New connection [17:09:14]New thread 3066781028 created [17:09:14]Thread 3066637668 joined [17:09:14]Waiting for new connection... [17:09:14] Sock 9.Parse request [17:09:14]Sock 9.Check first char [17:09:14]Sock 9.First char is OK [17:09:14]request: POST /json_proto HTTP/1.0 [17:09:14]Method: POST [17:09:14]URL: /json_proto [17:09:14]Method is POST - this is cgi request [17:09:14]url: /json_proto [17:09:14]query_string will be loaded in cgi processing [17:09:14]execute_cgi json_proto POST (null) [17:09:14]execute_cgi path=json_proto method=POST [17:09:14]POST find Content-Length [17:09:14]Host: 172.17.63.3:8080 [17:09:14]Content-Length: 676 [17:09:14]Content-Type: application/json [17:09:14] [17:09:14]POST finish read [17:09:14]Found Content-Length = 676 [17:09:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:14]execute_script... [17:09: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)98429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:14]POST & json_proto [17:09:14]process_json_proto [17:09:14]json parsed OK: [17:09:14]protocol is kg_v1.0 [17:09:14]action value=close_receipt [17:09:14]process_action close_receipt [17:09:14]cmd_close_receipt [17:09:14]MH_GetDate [17:09:14]Write to MH i2c: F0 00 00 3C 17 42 [17:09:14]Write i2c OK [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: F0 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: F0 09 00 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: F0 09 00 3C 17 00 3A 7F 1A 67 50 D1 6C 64 76 [17:09:14]GetLastDocTimeStamp 1729789453 [17:09:14]current date 1729789754 [17:09:14]FM_GetShiftState [17:09:14]SAM_PROTO_GetShiftState [17:09:14]wFMCommunicate request_size=4 [17:09:14]MH_SAM_APDU [17:09:14]CAPDU: 80 13 01 00 [17:09:14]Write to MH i2c: E2 08 00 3D 17 80 13 01 00 00 00 00 00 D1 [17:09:14]Write i2c OK [17:09:14]MH_I2C_Read... [17:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:14]Read from MH i2c: E2 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 0E 00 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 0E 00 3D 17 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1E [17:09:14]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:09:14]wFMCommunicate OK [17:09:14]SAM_PROTO_GetShiftState done [17:09:14]FM_GetShiftState done [17:09:14]opened in 1729729836 [17:09:14]opened+sec_in_day 1729816236 [17:09:14]quantity*price = 30038 [17:09:14]sum+1 = 30039 [17:09:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 248 24.10.2024 17:09 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155623 ФПД: 27459796649678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170915&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155623&fm=27459796649678&tin=02508201610067®Number=0000000000091693&sum=30000 [17:09:15]StoreToDocumentArchive [17:09:15]shift 534 fd 155623 [17:09:15]save to /storage/0534/doc_00155623 [17:09:15]save last doc name /storage/0534/doc_00155623 to /storage/kkm_last_doc_name [17:09:15]save OK [17:09:15]Clear old archive folders... [17:09:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:15]tlvbuf is B6E971F0 [17:09:15]SAM_PROTO_ClearQueue [17:09:15]wFMCommunicate request_size=4 [17:09:15]MH_SAM_APDU [17:09:15]CAPDU: 80 09 00 00 [17:09:15]Write to MH i2c: E2 08 00 4A 17 80 09 00 00 00 00 00 00 D3 [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:15]Read from MH i2c: E2 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 03 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 03 00 4A 17 00 90 00 D5 [17:09:15]RAPDU: 90 00 [17:09:15]wFMCommunicate OK [17:09:15]SAM_PROTO_ClearQueue done [17:09:15]KKMCreateOFDPacket [17:09:15]OFDProtocolAddRootSTLVToBuf [17:09:15]FM_MakeSignedData [17:09:15]FM_MakeSignedData [17:09:15]SAM_PROTO_SignData [17:09:15]wFMCommunicate request_size=4 [17:09:15]MH_SAM_APDU [17:09:15]CAPDU: 80 0D 01 02 [17:09:15]Write to MH i2c: E2 08 00 4B 17 80 0D 01 02 00 00 00 00 DB [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:15]Read from MH i2c: E2 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 03 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 03 00 4B 17 00 90 00 D6 [17:09:15]RAPDU: 90 00 [17:09:15]wFMCommunicate OK [17:09:15]wFMCommunicate request_size=255 [17:09:15]MH_SAM_APDU [17:09: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 3B 7F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 5F 02 00 35 04 06 00 18 [17:09:15]Write to MH i2c: E2 02 01 4C 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 3B 7F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 5F 02 00 35 04 06 00 18 00 00 0E [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:15]Read from MH i2c: E2 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 03 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 03 00 4C 17 00 90 00 D7 [17:09:15]RAPDU: 90 00 [17:09:15]wFMCommunicate OK [17:09:15]wFMCommunicate request_size=10 [17:09:15]MH_SAM_APDU [17:09:15]CAPDU: 80 0D 02 02 05 F9 7B 6C C6 CE [17:09:15]Write to MH i2c: E2 0D 00 4D 17 80 0D 02 02 05 00 F9 7B 6C C6 CE 00 00 5C [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:15]Read from MH i2c: E2 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 03 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 03 00 4D 17 00 90 00 D8 [17:09:15]RAPDU: 90 00 [17:09:15]wFMCommunicate OK [17:09:15]wFMCommunicate request_size=4 [17:09:15]MH_SAM_APDU [17:09:15]CAPDU: 80 0D 03 02 [17:09:15]Write to MH i2c: E2 08 00 4E 17 80 0D 03 02 00 00 00 00 E0 [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:15]Read from MH i2c: E2 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 0B 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 0B 00 4E 17 00 31 34 E1 67 7C C3 E5 24 90 00 D6 [17:09:15]RAPDU: 31 34 E1 67 7C C3 E5 24 90 00 [17:09:15]wFMCommunicate OK [17:09:15]SAM_PROTO_SignData done [17:09:15]FM_MakeSignedData done [17:09:15]CreateOFDProtocolMessage [17:09:15]wFMCommunicate request_size=4 [17:09:15]MH_SAM_APDU [17:09:15]CAPDU: 80 11 00 00 [17:09:15]Write to MH i2c: E2 08 00 4F 17 80 11 00 00 00 00 00 00 E0 [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:15]Read from MH i2c: E2 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 17 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: E2 17 00 4F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 35 [17:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:09:15]wFMCommunicate OK [17:09:15]CreateOFDProtocolMessage done [17:09:15]OFDSenderStorePacket 155623 [17:09:15]StoreOFDPacket docnum=155623 [17:09:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F8 81 07 01 57 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 3B 7F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 5F 02 00 35 04 06 00 18 F9 7B 6C C6 CE 31 34 E1 67 7C C3 E5 24 [17:09:15]CheckFolder [17:09:15]dirname=/storage/ofd_packets [17:09:15]CheckFolder done [17:09:15]ProducePacketName [17:09:15]name=ofd_packets/00155623 [17:09:15]NVStorageSaveData ofd_packets/00155623 [17:09:15]File name is /storage/ofd_packets/00155623 [17:09:15]Write 301 bytes [17:09:15]NVStorageSaveData done [17:09:15]OFDSenderStorePacket done [17:09:15]KKMCreateOFDPacket done [17:09:15]NVStorageSaveData kkm_last_timestamp [17:09:15]File name is /storage/kkm_last_timestamp [17:09:15]Write 4 bytes [17:09:15]NVStorageSaveData done [17:09:15]ExternCall_PrintAddStr [17:09:15]wPrintStart [17:09:15]Write to MH i2c: 01 00 00 50 17 67 [17:09:15]Write i2c OK [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: 01 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: 01 07 00 [17:09:15]MH_I2C_Read... [17:09:15]Read from MH i2c: 01 07 00 50 17 00 00 00 00 00 FF 0F 7C [17:09:15]RasterBufferAndPrint [17:09:15]line Счет N : (1)98429 [17:09:15]line ИНН: 02508201610067 [17:09:15]line Контрольно-Кассовый Чек [17:09:15]line ПРОДАЖА [17:09:15]line ТРК (МРК, ГНК) : 21 [17:09:15]line Товар: 2710124130 [17:09:15]line Аи-92-К-5 [17:09:15]line 4.490 * 66.90 [17:09:15]line = 300.38 [17:09:15]line НДС 12% НСП 1% [17:09:15]line > о реализуемом товаре [17:09:15]line ОКРУГЛЕНИЕ: -0.38 [17:09:15]line ИТОГО: 300.00 [17:09:15]line Внесено: 300.00 [17:09:15]line СДАЧА: 0.00 [17:09:15]line НСП 1% : 2.66 [17:09:15]line НДС 12% : 31.90 [17:09:15]line Наличными: 300.00 [17:09:15]line Безнал.: 0.00 [17:09:15]line Место: АЗС № 143 "Партнер Нефть" [17:09:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:09:15]line СНО: Общий режим [17:09:15]line Чек 248 24.10.2024 17:09 [17:09:15]line Смена: 534 ФФД: 1.0 [17:09:15]line ЗНМ: 0300000096 [17:09:15]line РНМ: 0000000000091693 [17:09:15]line Версия ККМ: 001 [17:09:15]line ФМ: 0000000000871792 [17:09:15]line ФД: 155623 [17:09:15]line ФПД: 27459796649678 [17:09:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T170915&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155623&fm=27459796649678&tin=02508201610067®Number=0000000000091693&sum=30000 [17:09:16]OFD Sender: Processing packet 155623 [packets to send 31, broken 30] [17:09:16]ProducePacketName [17:09:16]name=ofd_packets/00155623 [17:09:16]OFD Sender: To server: pG, [17:09:16]CommunicateWithHost lk.salyk.kg:30040 [17:09:16]ConnectInit lk.salyk.kg [17:09:16]written 0, free lines is 4095 [17:09:16]Connected sock=10 [17:09: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 39 32 0F 01 00 00 F8 81 07 01 57 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 3B 7F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 5F 02 00 35 04 06 00 18 F9 7B 6C C6 CE 31 34 E1 67 7C C3 E5 24 [17:09: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 39 32 4F 00 00 00 BC 39 47 00 EA 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 5F 02 00 F4 03 04 00 B3 24 1A 67 B6 04 01 00 00 5A F8 DC FF 14 5D D3 10 [17:09:16]CommunicateWithHost err = 0 [17:09:16]CheckOFDResponse [17:09:16]1017 (14) - 77093643461234 [17:09:16]1041 (16) - 0000000000871792 [17:09:16]1040 (4) - 155623 [17:09:16]1012 (4) - 24.10.2024 10:42 [17:09:16]1206 (1) - 0 [17:09:16]OFD Sender: Remove packet 155623 [17:09:16]ProducePacketName [17:09:16]name=ofd_packets/00155623 [17:09:16]NVStorageDeleteData [17:09:16]Write to MH i2c: 01 00 00 7B 17 92 [17:09:16]Write i2c OK [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: 01 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: 01 07 00 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: 01 07 00 7B 17 00 00 00 00 00 EA 0C 8F [17:09:16]RasterBufferAndPrint [17:09:16]line [17:09:16]line [17:09:16]line [17:09:16]line [17:09:16]line [17:09:16]written 0, free lines is 3313 [17:09:16]process_action close_receipt done [17:09:16]requested_data is exist [17:09:16]produce_requested_data [17:09:16]requested_item fm.sn is exist - process it [17:09:16]wFMCommunicate request_size=4 [17:09:16]MH_SAM_APDU [17:09:16]CAPDU: 80 11 00 00 [17:09:16]Write to MH i2c: E2 08 00 82 17 80 11 00 00 00 00 00 00 13 [17:09:16]Write i2c OK [17:09:16]MH_I2C_Read... [17:09:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:16]Read from MH i2c: E2 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 17 00 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 17 00 82 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 68 [17:09:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:09:16]wFMCommunicate OK [17:09:16]requested_item fd.num is exist - process it [17:09:16]SAM_PROTO_GetFieldsCounters [17:09:16]wFMCommunicate request_size=4 [17:09:16]MH_SAM_APDU [17:09:16]CAPDU: 80 13 00 00 [17:09:16]Write to MH i2c: E2 08 00 83 17 80 13 00 00 00 00 00 00 16 [17:09:16]Write i2c OK [17:09:16]MH_I2C_Read... [17:09:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:16]Read from MH i2c: E2 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 62 00 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 62 00 83 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E7 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [17:09:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E7 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:16]wFMCommunicate OK [17:09:16]SAM_PROTO_GetFieldsCounters done [17:09:16]requested_item shift.num is exist - process it [17:09:16]requested_item shift.opened is exist - process it [17:09:16]req_shift_opened [17:09:16]FM_GetShiftState [17:09:16]SAM_PROTO_GetShiftState [17:09:16]wFMCommunicate request_size=4 [17:09:16]MH_SAM_APDU [17:09:16]CAPDU: 80 13 01 00 [17:09:16]Write to MH i2c: E2 08 00 84 17 80 13 01 00 00 00 00 00 18 [17:09:16]Write i2c OK [17:09:16]MH_I2C_Read... [17:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:16]Read from MH i2c: E2 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 0E 00 [17:09:16]MH_I2C_Read... [17:09:16]Read from MH i2c: E2 0E 00 84 17 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 65 [17:09:16]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:09:16]wFMCommunicate OK [17:09:16]SAM_PROTO_GetShiftState done [17:09:16]FM_GetShiftState done [17:09:16]req_shift_opened done [17:09:16]requested_item shift.open_date is exist - process it [17:09:16]req_shift_open_date [17:09:16]req_shift_open_date done [17:09:16]produce_requested_data done [17:09:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155623,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:09:16]process_action_free close_receipt [17:09:16]json_value_free [17:09:16]json_value_free done [17:09:16]process_json_proto returns [17:09:16]Send response to host [17:09:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155623,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:09:16]free response buf [17:09:16]execute_script done [17:09:16]execute_script returns [17:09:16]free content buf [17:09:16]Sock 9.Close socket [17:09:16]Sock 9.Thread stoped [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:26]accept exits with 8 [17:10:26]New connection [17:10:26]New thread 3066637668 created [17:10:26]Thread 3066781028 joined [17:10:26]Waiting for new connection... [17:10:26] Sock 8.Parse request [17:10:26]Sock 8.Check first char [17:10:26]Sock 8.First char is OK [17:10:26]request: POST /json_proto HTTP/1.0 [17:10:26]Method: POST [17:10:26]URL: /json_proto [17:10:26]Method is POST - this is cgi request [17:10:26]url: /json_proto [17:10:26]query_string will be loaded in cgi processing [17:10:26]execute_cgi json_proto POST (null) [17:10:26]execute_cgi path=json_proto method=POST [17:10:26]POST find Content-Length [17:10:26]Host: 172.17.63.3:8080 [17:10:26]Content-Length: 765 [17:10:26]Content-Type: application/json [17:10:26] [17:10:26]POST finish read [17:10:26]Found Content-Length = 765 [17:10:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:26]execute_script... [17: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)98430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:26]POST & json_proto [17:10:26]process_json_proto [17:10:26]json parsed OK: [17:10:26]protocol is kg_v1.0 [17:10:26]action value=close_receipt [17:10:26]process_action close_receipt [17:10:26]cmd_close_receipt [17:10:26]MH_GetDate [17:10:26]Write to MH i2c: F0 00 00 85 17 8B [17:10:26]Write i2c OK [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: F0 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: F0 09 00 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: F0 09 00 85 17 00 83 7F 1A 67 50 D1 6C 64 08 [17:10:26]GetLastDocTimeStamp 1729789755 [17:10:26]current date 1729789827 [17:10:26]FM_GetShiftState [17:10:26]SAM_PROTO_GetShiftState [17:10:26]wFMCommunicate request_size=4 [17:10:26]MH_SAM_APDU [17:10:26]CAPDU: 80 13 01 00 [17:10:26]Write to MH i2c: E2 08 00 86 17 80 13 01 00 00 00 00 00 1A [17:10:26]Write i2c OK [17:10:26]MH_I2C_Read... [17:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:26]Read from MH i2c: E2 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: E2 0E 00 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: E2 0E 00 86 17 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 67 [17:10:26]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:10:26]wFMCommunicate OK [17:10:26]SAM_PROTO_GetShiftState done [17:10:26]FM_GetShiftState done [17:10:26]opened in 1729729836 [17:10:26]opened+sec_in_day 1729816236 [17:10:26]quantity*price = 150037 [17:10:26]sum+1 = 150039 [17:10:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 249 24.10.2024 17:10 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155624 ФПД: 250351920405578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171027&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155624&fm=250351920405578&tin=02508201610067®Number=0000000000091693&sum=150038 [17:10:27]StoreToDocumentArchive [17:10:27]shift 534 fd 155624 [17:10:27]save to /storage/0534/doc_00155624 [17:10:27]save last doc name /storage/0534/doc_00155624 to /storage/kkm_last_doc_name [17:10:27]save OK [17:10:27]Clear old archive folders... [17:10:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:10:27]tlvbuf is 01F85B00 [17:10:27]SAM_PROTO_ClearQueue [17:10:27]wFMCommunicate request_size=4 [17:10:27]MH_SAM_APDU [17:10:27]CAPDU: 80 09 00 00 [17:10:27]Write to MH i2c: E2 08 00 93 17 80 09 00 00 00 00 00 00 1C [17:10:27]Write i2c OK [17:10:27]MH_I2C_Read... [17:10:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:27]Read from MH i2c: E2 [17:10:27]MH_I2C_Read... [17:10:27]Read from MH i2c: E2 03 00 [17:10:27]MH_I2C_Read... [17:10:27]Read from MH i2c: E2 03 00 93 17 00 90 00 1E [17:10:27]RAPDU: 90 00 [17:10:27]wFMCommunicate OK [17:10:27]SAM_PROTO_ClearQueue done [17:10:27]KKMCreateOFDPacket [17:10:27]OFDProtocolAddRootSTLVToBuf [17:10:27]FM_MakeSignedData [17:10:27]FM_MakeSignedData [17:10:27]SAM_PROTO_SignData [17:10:27]wFMCommunicate request_size=4 [17:10:27]MH_SAM_APDU [17:10:27]CAPDU: 80 0D 01 02 [17:10:27]Write to MH i2c: E2 08 00 94 17 80 0D 01 02 00 00 00 00 24 [17:10:27]Write i2c OK [17:10:27]MH_I2C_Read... [17:10:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:27]Read from MH i2c: E2 [17:10:27]MH_I2C_Read... [17:10:27]Read from MH i2c: E2 03 00 [17:10:27]MH_I2C_Read... [17:10:27]Read from MH i2c: E2 03 00 94 17 00 90 00 1F [17:10:27]RAPDU: 90 00 [17:10:27]wFMCommunicate OK [17:10:27]wFMCommunicate request_size=255 [17:10:27]MH_SAM_APDU [17:10:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 83 7F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 5F 02 00 35 04 06 00 E3 B1 99 48 [17:10:27]Write to MH i2c: E2 02 01 95 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 83 7F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 5F 02 00 35 04 06 00 E3 B1 99 48 00 00 C5 [17:10:27]Write i2c OK [17:10:27]MH_I2C_Read... [17:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:28]Read from MH i2c: E2 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: E2 03 00 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: E2 03 00 95 17 00 90 00 20 [17:10:28]RAPDU: 90 00 [17:10:28]wFMCommunicate OK [17:10:28]wFMCommunicate request_size=7 [17:10:28]MH_SAM_APDU [17:10:28]CAPDU: 80 0D 02 02 02 DC 4A [17:10:28]Write to MH i2c: E2 0A 00 96 17 80 0D 02 02 02 00 DC 4A 00 00 51 [17:10:28]Write i2c OK [17:10:28]MH_I2C_Read... [17:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:28]Read from MH i2c: E2 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: E2 03 00 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: E2 03 00 96 17 00 90 00 21 [17:10:28]RAPDU: 90 00 [17:10:28]wFMCommunicate OK [17:10:28]wFMCommunicate request_size=4 [17:10:28]MH_SAM_APDU [17:10:28]CAPDU: 80 0D 03 02 [17:10:28]Write to MH i2c: E2 08 00 97 17 80 0D 03 02 00 00 00 00 29 [17:10:28]Write i2c OK [17:10:28]MH_I2C_Read... [17:10:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:28]Read from MH i2c: E2 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: E2 0B 00 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: E2 0B 00 97 17 00 20 BB 6B 84 9D 21 83 2E 90 00 63 [17:10:28]RAPDU: 20 BB 6B 84 9D 21 83 2E 90 00 [17:10:28]wFMCommunicate OK [17:10:28]SAM_PROTO_SignData done [17:10:28]FM_MakeSignedData done [17:10:28]CreateOFDProtocolMessage [17:10:28]wFMCommunicate request_size=4 [17:10:28]MH_SAM_APDU [17:10:28]CAPDU: 80 11 00 00 [17:10:28]Write to MH i2c: E2 08 00 98 17 80 11 00 00 00 00 00 00 29 [17:10:28]Write i2c OK [17:10:28]MH_I2C_Read... [17:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:28]Read from MH i2c: E2 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: E2 17 00 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: E2 17 00 98 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7E [17:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:10:28]wFMCommunicate OK [17:10:28]CreateOFDProtocolMessage done [17:10:28]OFDSenderStorePacket 155624 [17:10:28]StoreOFDPacket docnum=155624 [17:10:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 47 A8 04 01 D8 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 83 7F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 5F 02 00 35 04 06 00 E3 B1 99 48 DC 4A 20 BB 6B 84 9D 21 83 2E [17:10:28]CheckFolder [17:10:28]dirname=/storage/ofd_packets [17:10:28]CheckFolder done [17:10:28]ProducePacketName [17:10:28]name=ofd_packets/00155624 [17:10:28]NVStorageSaveData ofd_packets/00155624 [17:10:28]File name is /storage/ofd_packets/00155624 [17:10:28]Write 298 bytes [17:10:28]NVStorageSaveData done [17:10:28]OFDSenderStorePacket done [17:10:28]KKMCreateOFDPacket done [17:10:28]NVStorageSaveData kkm_last_timestamp [17:10:28]File name is /storage/kkm_last_timestamp [17:10:28]Write 4 bytes [17:10:28]NVStorageSaveData done [17:10:28]ExternCall_PrintAddStr [17:10:28]wPrintStart [17:10:28]Write to MH i2c: 01 00 00 99 17 B0 [17:10:28]Write i2c OK [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: 01 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: 01 07 00 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: 01 07 00 99 17 00 00 00 00 00 FF 0F C5 [17:10:28]RasterBufferAndPrint [17:10:28]line Счет N : (1)98430 [17:10:28]line ИНН: 02508201610067 [17:10:28]line Контрольно-Кассовый Чек [17:10:28]line ПРОДАЖА [17:10:28]line ТРК (МРК, ГНК) : 32 [17:10:28]line Товар: 2710194210 [17:10:28]line ДТ-К-5 [17:10:28]line 19.690 * 76.20 [17:10:28]line = 1500.38 [17:10:28]line НДС 12% НСП 1% [17:10:28]line > о реализуемом товаре [17:10:28]line ИТОГО: 1500.38 [17:10:28]line НСП 1% : 13.28 [17:10:28]line НДС 12% : 159.33 [17:10:28]line Наличными: 0.00 [17:10:28]line Безнал.: 1500.38 [17:10:28]line Место: АЗС № 143 "Партнер Нефть" [17:10:28]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:10:28]line СНО: Общий режим [17:10:28]line Чек 249 24.10.2024 17:10 [17:10:28]line Смена: 534 ФФД: 1.0 [17:10:28]line ЗНМ: 0300000096 [17:10:28]line РНМ: 0000000000091693 [17:10:28]line Версия ККМ: 001 [17:10:28]line Платежная система: Mbank [17:10:28]line ФМ: 0000000000871792 [17:10:28]line ФД: 155624 [17:10:28]line ФПД: 250351920405578 [17:10:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171027&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155624&fm=250351920405578&tin=02508201610067®Number=0000000000091693&sum=150038 [17:10:28]OFD Sender: Processing packet 155624 [packets to send 31, broken 30] [17:10:28]ProducePacketName [17:10:28]name=ofd_packets/00155624 [17:10:28]OFD Sender: To server: pG, [17:10:28]CommunicateWithHost lk.salyk.kg:30040 [17:10:28]ConnectInit lk.salyk.kg [17:10:28]written 0, free lines is 4095 [17:10:28]Connected sock=10 [17:10: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 39 32 0C 01 00 00 47 A8 04 01 D8 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 83 7F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 5F 02 00 35 04 06 00 E3 B1 99 48 DC 4A 20 BB 6B 84 9D 21 83 2E [17:10: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 39 32 4F 00 00 00 5C 3D 47 00 54 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 5F 02 00 F4 03 04 00 FB 24 1A 67 B6 04 01 00 00 6C 01 03 AB 07 1C 9D 98 [17:10:28]CommunicateWithHost err = 0 [17:10:28]CheckOFDResponse [17:10:28]1017 (14) - 77093643461234 [17:10:28]1041 (16) - 0000000000871792 [17:10:28]1040 (4) - 155624 [17:10:28]1012 (4) - 24.10.2024 10:44 [17:10:28]1206 (1) - 0 [17:10:28]OFD Sender: Remove packet 155624 [17:10:28]ProducePacketName [17:10:28]name=ofd_packets/00155624 [17:10:28]NVStorageDeleteData [17:10:28]Write to MH i2c: 01 00 00 C2 17 D9 [17:10:28]Write i2c OK [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: 01 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: 01 07 00 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: 01 07 00 C2 17 00 00 00 00 00 1A 0D 07 [17:10:29]RasterBufferAndPrint [17:10:29]line [17:10:29]line [17:10:29]line [17:10:29]line [17:10:29]line [17:10:29]written 0, free lines is 3360 [17:10:29]process_action close_receipt done [17:10:29]requested_data is exist [17:10:29]produce_requested_data [17:10:29]requested_item fm.sn is exist - process it [17:10:29]wFMCommunicate request_size=4 [17:10:29]MH_SAM_APDU [17:10:29]CAPDU: 80 11 00 00 [17:10:29]Write to MH i2c: E2 08 00 C9 17 80 11 00 00 00 00 00 00 5A [17:10:29]Write i2c OK [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 [17:10:29]MH_I2C_Read... [17:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:29]Read from MH i2c: E2 17 00 [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 17 00 C9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AF [17:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:10:29]wFMCommunicate OK [17:10:29]requested_item fd.num is exist - process it [17:10:29]SAM_PROTO_GetFieldsCounters [17:10:29]wFMCommunicate request_size=4 [17:10:29]MH_SAM_APDU [17:10:29]CAPDU: 80 13 00 00 [17:10:29]Write to MH i2c: E2 08 00 CA 17 80 13 00 00 00 00 00 00 5D [17:10:29]Write i2c OK [17:10:29]MH_I2C_Read... [17:10:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:29]Read from MH i2c: E2 [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 62 00 [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 62 00 CA 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E8 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [17:10: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E8 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:29]wFMCommunicate OK [17:10:29]SAM_PROTO_GetFieldsCounters done [17:10:29]requested_item shift.num is exist - process it [17:10:29]requested_item shift.opened is exist - process it [17:10:29]req_shift_opened [17:10:29]FM_GetShiftState [17:10:29]SAM_PROTO_GetShiftState [17:10:29]wFMCommunicate request_size=4 [17:10:29]MH_SAM_APDU [17:10:29]CAPDU: 80 13 01 00 [17:10:29]Write to MH i2c: E2 08 00 CB 17 80 13 01 00 00 00 00 00 5F [17:10:29]Write i2c OK [17:10:29]MH_I2C_Read... [17:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:29]Read from MH i2c: E2 [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 0E 00 [17:10:29]MH_I2C_Read... [17:10:29]Read from MH i2c: E2 0E 00 CB 17 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AC [17:10:29]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:10:29]wFMCommunicate OK [17:10:29]SAM_PROTO_GetShiftState done [17:10:29]FM_GetShiftState done [17:10:29]req_shift_opened done [17:10:29]requested_item shift.open_date is exist - process it [17:10:29]req_shift_open_date [17:10:29]req_shift_open_date done [17:10:29]produce_requested_data done [17:10:29]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155624,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:10:29]process_action_free close_receipt [17:10:29]json_value_free [17:10:29]json_value_free done [17:10:29]process_json_proto returns [17:10:29]Send response to host [17:10:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155624,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:10:29]free response buf [17:10:29]execute_script done [17:10:29]execute_script returns [17:10:29]free content buf [17:10:29]Sock 8.Close socket [17:10:29]Sock 8.Thread stoped [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:49]OFD Sender: No OFD packet to send [17:10:54]OFD Sender: No OFD packet to send [17:10:59]OFD Sender: No OFD packet to send [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:09]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:19]OFD Sender: No OFD packet to send [17:13:24]OFD Sender: No OFD packet to send [17:13:29]OFD Sender: No OFD packet to send [17:13:32]ConnectInit Can't connect to host [17:13:34]OFD Sender: No OFD packet to send [17:13:39]OFD Sender: No OFD packet to send [17:13:42]accept exits with 9 [17:13:42]New connection [17:13:42]New thread 3066781028 created [17:13:42]Thread 3066637668 joined [17:13:42]Waiting for new connection... [17:13:42] Sock 9.Parse request [17:13:42]Sock 9.Check first char [17:13:42]Sock 9.First char is OK [17:13:42]request: POST /json_proto HTTP/1.0 [17:13:42]Method: POST [17:13:42]URL: /json_proto [17:13:42]Method is POST - this is cgi request [17:13:42]url: /json_proto [17:13:42]query_string will be loaded in cgi processing [17:13:42]execute_cgi json_proto POST (null) [17:13:42]execute_cgi path=json_proto method=POST [17:13:42]POST find Content-Length [17:13:42]Host: 172.17.63.3:8080 [17:13:42]Content-Length: 676 [17:13:42]Content-Type: application/json [17:13:42] [17:13:42]POST finish read [17:13:42]Found Content-Length = 676 [17:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "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" ] } } [17:13:42]execute_script... [17:13:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "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" ] } } [17:13:42]POST & json_proto [17:13:42]process_json_proto [17:13:42]json parsed OK: [17:13:42]protocol is kg_v1.0 [17:13:42]action value=close_receipt [17:13:42]process_action close_receipt [17:13:42]cmd_close_receipt [17:13:42]MH_GetDate [17:13:42]Write to MH i2c: F0 00 00 CC 17 D2 [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: F0 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: F0 09 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: F0 09 00 CC 17 00 47 80 1A 67 50 D1 6C 64 14 [17:13:42]GetLastDocTimeStamp 1729789827 [17:13:42]current date 1729790023 [17:13:42]FM_GetShiftState [17:13:42]SAM_PROTO_GetShiftState [17:13:42]wFMCommunicate request_size=4 [17:13:42]MH_SAM_APDU [17:13:42]CAPDU: 80 13 01 00 [17:13:42]Write to MH i2c: E2 08 00 CD 17 80 13 01 00 00 00 00 00 61 [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:42]Read from MH i2c: E2 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 0E 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 0E 00 CD 17 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AE [17:13:42]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:13:42]wFMCommunicate OK [17:13:42]SAM_PROTO_GetShiftState done [17:13:42]FM_GetShiftState done [17:13:42]opened in 1729729836 [17:13:42]opened+sec_in_day 1729816236 [17:13:42]quantity*price = 22010 [17:13:42]sum+1 = 22011 [17:13:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 250 24.10.2024 17:13 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155625 ФПД: 238260066929584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171343&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155625&fm=238260066929584&tin=02508201610067®Number=0000000000091693&sum=22000 [17:13:43]StoreToDocumentArchive [17:13:43]shift 534 fd 155625 [17:13:43]save to /storage/0534/doc_00155625 [17:13:43]save last doc name /storage/0534/doc_00155625 to /storage/kkm_last_doc_name [17:13:43]save OK [17:13:43]Clear old archive folders... [17:13:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:43]tlvbuf is 01F3DA40 [17:13:43]SAM_PROTO_ClearQueue [17:13:43]wFMCommunicate request_size=4 [17:13:43]MH_SAM_APDU [17:13:43]CAPDU: 80 09 00 00 [17:13:43]Write to MH i2c: E2 08 00 DA 17 80 09 00 00 00 00 00 00 63 [17:13:43]Write i2c OK [17:13:43]MH_I2C_Read... [17:13:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:43]Read from MH i2c: E2 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 03 00 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 03 00 DA 17 00 90 00 65 [17:13:43]RAPDU: 90 00 [17:13:43]wFMCommunicate OK [17:13:43]SAM_PROTO_ClearQueue done [17:13:43]KKMCreateOFDPacket [17:13:43]OFDProtocolAddRootSTLVToBuf [17:13:43]FM_MakeSignedData [17:13:43]FM_MakeSignedData [17:13:43]SAM_PROTO_SignData [17:13:43]wFMCommunicate request_size=4 [17:13:43]MH_SAM_APDU [17:13:43]CAPDU: 80 0D 01 02 [17:13:43]Write to MH i2c: E2 08 00 DB 17 80 0D 01 02 00 00 00 00 6B [17:13:43]Write i2c OK [17:13:43]MH_I2C_Read... [17:13:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:43]Read from MH i2c: E2 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 03 00 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 03 00 DB 17 00 90 00 66 [17:13:43]RAPDU: 90 00 [17:13:43]wFMCommunicate OK [17:13:43]wFMCommunicate request_size=255 [17:13:43]MH_SAM_APDU [17:13:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 21 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 FA 00 00 00 F4 03 04 00 47 80 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 5F 02 00 35 04 06 00 D8 [17:13:43]Write to MH i2c: E2 02 01 DC 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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 21 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 FA 00 00 00 F4 03 04 00 47 80 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 5F 02 00 35 04 06 00 D8 00 00 DE [17:13:43]Write i2c OK [17:13:43]MH_I2C_Read... [17:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:43]Read from MH i2c: E2 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 03 00 [17:13:43]MH_I2C_Read... [17:13:43]Read from MH i2c: E2 03 00 DC 17 00 90 00 67 [17:13:43]RAPDU: 90 00 [17:13:43]wFMCommunicate OK [17:13:43]wFMCommunicate request_size=10 [17:13:43]MH_SAM_APDU [17:13:43]CAPDU: 80 0D 02 02 05 B2 3E A7 4B B0 [17:13:43]Write to MH i2c: E2 0D 00 DD 17 80 0D 02 02 05 00 B2 3E A7 4B B0 00 00 0A [17:13:43]Write i2c OK [17:13:43]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 03 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 03 00 DD 17 00 90 00 68 [17:13:44]RAPDU: 90 00 [17:13:44]wFMCommunicate OK [17:13:44]wFMCommunicate request_size=4 [17:13:44]MH_SAM_APDU [17:13:44]CAPDU: 80 0D 03 02 [17:13:44]Write to MH i2c: E2 08 00 DE 17 80 0D 03 02 00 00 00 00 70 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 0B 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 0B 00 DE 17 00 F3 82 22 C6 2D 78 D5 E0 90 00 28 [17:13:44]RAPDU: F3 82 22 C6 2D 78 D5 E0 90 00 [17:13:44]wFMCommunicate OK [17:13:44]SAM_PROTO_SignData done [17:13:44]FM_MakeSignedData done [17:13:44]CreateOFDProtocolMessage [17:13:44]wFMCommunicate request_size=4 [17:13:44]MH_SAM_APDU [17:13:44]CAPDU: 80 11 00 00 [17:13:44]Write to MH i2c: E2 08 00 DF 17 80 11 00 00 00 00 00 00 70 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 17 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 17 00 DF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C5 [17:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:13:44]wFMCommunicate OK [17:13:44]CreateOFDProtocolMessage done [17:13:44]OFDSenderStorePacket 155625 [17:13:44]StoreOFDPacket docnum=155625 [17:13:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D5 71 07 01 A0 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 21 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 FA 00 00 00 F4 03 04 00 47 80 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 5F 02 00 35 04 06 00 D8 B2 3E A7 4B B0 F3 82 22 C6 2D 78 D5 E0 [17:13:44]CheckFolder [17:13:44]dirname=/storage/ofd_packets [17:13:44]CheckFolder done [17:13:44]ProducePacketName [17:13:44]name=ofd_packets/00155625 [17:13:44]NVStorageSaveData ofd_packets/00155625 [17:13:44]File name is /storage/ofd_packets/00155625 [17:13:44]Write 301 bytes [17:13:44]NVStorageSaveData done [17:13:44]OFDSenderStorePacket done [17:13:44]KKMCreateOFDPacket done [17:13:44]NVStorageSaveData kkm_last_timestamp [17:13:44]File name is /storage/kkm_last_timestamp [17:13:44]Write 4 bytes [17:13:44]NVStorageSaveData done [17:13:44]ExternCall_PrintAddStr [17:13:44]wPrintStart [17:13:44]Write to MH i2c: 01 00 00 E0 17 F7 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: 01 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: 01 07 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: 01 07 00 E0 17 00 00 00 00 00 FF 0F 0C [17:13:44]RasterBufferAndPrint [17:13:44]line Счет N : (1)98431 [17:13:44]line ИНН: 02508201610067 [17:13:44]line Контрольно-Кассовый Чек [17:13:44]line ПРОДАЖА [17:13:44]line ТРК (МРК, ГНК) : 11 [17:13:44]line Товар: 2710124130 [17:13:44]line Аи-92-К-5 [17:13:44]line 3.290 * 66.90 [17:13:44]line = 220.10 [17:13:44]line НДС 12% НСП 1% [17:13:44]line > о реализуемом товаре [17:13:44]line ОКРУГЛЕНИЕ: -0.10 [17:13:44]line ИТОГО: 220.00 [17:13:44]line Внесено: 220.00 [17:13:44]line СДАЧА: 0.00 [17:13:44]line НСП 1% : 1.95 [17:13:44]line НДС 12% : 23.37 [17:13:44]line Наличными: 220.00 [17:13:44]line Безнал.: 0.00 [17:13:44]line Место: АЗС № 143 "Партнер Нефть" [17:13:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:13:44]line СНО: Общий режим [17:13:44]line Чек 250 24.10.2024 17:13 [17:13:44]line Смена: 534 ФФД: 1.0 [17:13:44]line ЗНМ: 0300000096 [17:13:44]line РНМ: 0000000000091693 [17:13:44]line Версия ККМ: 001 [17:13:44]line ФМ: 0000000000871792 [17:13:44]line ФД: 155625 [17:13:44]line ФПД: 238260066929584 [17:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171343&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155625&fm=238260066929584&tin=02508201610067®Number=0000000000091693&sum=22000 [17:13:44]OFD Sender: Processing packet 155625 [packets to send 31, broken 30] [17:13:44]ProducePacketName [17:13:44]name=ofd_packets/00155625 [17:13:44]OFD Sender: To server: pG, [17:13:44]CommunicateWithHost lk.salyk.kg:30040 [17:13:44]ConnectInit lk.salyk.kg [17:13:44]written 0, free lines is 4095 [17:13:44]Connected sock=11 [17:13:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D5 71 07 01 A0 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 21 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 FA 00 00 00 F4 03 04 00 47 80 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 5F 02 00 35 04 06 00 D8 B2 3E A7 4B B0 F3 82 22 C6 2D 78 D5 E0 [17:13:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2B DF 47 00 2C 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 5F 02 00 F4 03 04 00 BF 25 1A 67 B6 04 01 00 00 17 DF 58 71 C2 49 40 86 [17:13:44]CommunicateWithHost err = 0 [17:13:44]CheckOFDResponse [17:13:44]1017 (14) - 77093643461234 [17:13:44]1041 (16) - 0000000000871792 [17:13:44]1040 (4) - 155625 [17:13:44]1012 (4) - 24.10.2024 10:47 [17:13:44]1206 (1) - 0 [17:13:44]OFD Sender: Remove packet 155625 [17:13:44]ProducePacketName [17:13:44]name=ofd_packets/00155625 [17:13:44]NVStorageDeleteData [17:13:44]Write to MH i2c: 01 00 00 0B 18 23 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: 01 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: 01 07 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: 01 07 00 0B 18 00 00 00 00 00 F4 0C 2A [17:13:44]RasterBufferAndPrint [17:13:44]line [17:13:44]line [17:13:44]line [17:13:44]line [17:13:44]line [17:13:44]written 0, free lines is 3322 [17:13:44]process_action close_receipt done [17:13:44]requested_data is exist [17:13:44]produce_requested_data [17:13:44]requested_item fm.sn is exist - process it [17:13:44]wFMCommunicate request_size=4 [17:13:44]MH_SAM_APDU [17:13:44]CAPDU: 80 11 00 00 [17:13:44]Write to MH i2c: E2 08 00 12 18 80 11 00 00 00 00 00 00 A4 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 17 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 17 00 12 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F9 [17:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:13:44]wFMCommunicate OK [17:13:44]requested_item fd.num is exist - process it [17:13:44]SAM_PROTO_GetFieldsCounters [17:13:44]wFMCommunicate request_size=4 [17:13:44]MH_SAM_APDU [17:13:44]CAPDU: 80 13 00 00 [17:13:44]Write to MH i2c: E2 08 00 13 18 80 13 00 00 00 00 00 00 A7 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 62 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 62 00 13 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E9 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [17:13: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E9 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:44]wFMCommunicate OK [17:13:44]SAM_PROTO_GetFieldsCounters done [17:13:44]requested_item shift.num is exist - process it [17:13:44]requested_item shift.opened is exist - process it [17:13:44]req_shift_opened [17:13:44]FM_GetShiftState [17:13:44]SAM_PROTO_GetShiftState [17:13:44]wFMCommunicate request_size=4 [17:13:44]MH_SAM_APDU [17:13:44]CAPDU: 80 13 01 00 [17:13:44]Write to MH i2c: E2 08 00 14 18 80 13 01 00 00 00 00 00 A9 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 0E 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 0E 00 14 18 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F6 [17:13:44]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:13:44]wFMCommunicate OK [17:13:44]SAM_PROTO_GetShiftState done [17:13:44]FM_GetShiftState done [17:13:44]req_shift_opened done [17:13:44]requested_item shift.open_date is exist - process it [17:13:44]req_shift_open_date [17:13:44]req_shift_open_date done [17:13:44]produce_requested_data done [17:13:44]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155625,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:13:44]process_action_free close_receipt [17:13:44]json_value_free [17:13:44]json_value_free done [17:13:44]process_json_proto returns [17:13:44]Send response to host [17:13:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155625,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:13:44]free response buf [17:13:44]execute_script done [17:13:44]execute_script returns [17:13:44]free content buf [17:13:44]Sock 9.Close socket [17:13:44]Sock 9.Thread stoped [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:39]accept exits with 10 [17:15:39]New connection [17:15:39]New thread 3066637668 created [17:15:39]Thread 3066781028 joined [17:15:39]Waiting for new connection... [17:15:39] Sock 10.Parse request [17:15:39]Sock 10.Check first char [17:15:39]Sock 10.First char is OK [17:15:39]request: POST /json_proto HTTP/1.0 [17:15:39]Method: POST [17:15:39]URL: /json_proto [17:15:39]Method is POST - this is cgi request [17:15:39]url: /json_proto [17:15:39]query_string will be loaded in cgi processing [17:15:39]execute_cgi json_proto POST (null) [17:15:39]execute_cgi path=json_proto method=POST [17:15:39]POST find Content-Length [17:15:39]Host: 172.17.63.3:8080 [17:15:39]Content-Length: 678 [17:15:39]Content-Type: application/json [17:15:39] [17:15:39]POST finish read [17:15:39]Found Content-Length = 678 [17:15:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:39]execute_script... [17:15: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)98432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:39]POST & json_proto [17:15:39]process_json_proto [17:15:39]json parsed OK: [17:15:39]protocol is kg_v1.0 [17:15:39]action value=close_receipt [17:15:39]process_action close_receipt [17:15:39]cmd_close_receipt [17:15:39]MH_GetDate [17:15:39]Write to MH i2c: F0 00 00 15 18 1C [17:15:39]Write i2c OK [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: F0 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: F0 09 00 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: F0 09 00 15 18 00 BC 80 1A 67 50 D1 6C 64 D3 [17:15:39]GetLastDocTimeStamp 1729790023 [17:15:39]current date 1729790140 [17:15:39]FM_GetShiftState [17:15:39]SAM_PROTO_GetShiftState [17:15:39]wFMCommunicate request_size=4 [17:15:39]MH_SAM_APDU [17:15:39]CAPDU: 80 13 01 00 [17:15:39]Write to MH i2c: E2 08 00 16 18 80 13 01 00 00 00 00 00 AB [17:15:39]Write i2c OK [17:15:39]MH_I2C_Read... [17:15:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:39]Read from MH i2c: E2 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: E2 0E 00 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: E2 0E 00 16 18 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F8 [17:15:39]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:15:39]wFMCommunicate OK [17:15:39]SAM_PROTO_GetShiftState done [17:15:39]FM_GetShiftState done [17:15:39]opened in 1729729836 [17:15:39]opened+sec_in_day 1729816236 [17:15:39]quantity*price = 100050 [17:15:39]sum+1 = 100052 [17:15:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 251 24.10.2024 17:15 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155626 ФПД: 237252179662766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171540&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155626&fm=237252179662766&tin=02508201610067®Number=0000000000091693&sum=100000 [17:15:40]StoreToDocumentArchive [17:15:40]shift 534 fd 155626 [17:15:40]save to /storage/0534/doc_00155626 [17:15:40]save last doc name /storage/0534/doc_00155626 to /storage/kkm_last_doc_name [17:15:40]save OK [17:15:40]Clear old archive folders... [17:15:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:15:40]tlvbuf is 01F56FB0 [17:15:40]SAM_PROTO_ClearQueue [17:15:40]wFMCommunicate request_size=4 [17:15:40]MH_SAM_APDU [17:15:40]CAPDU: 80 09 00 00 [17:15:40]Write to MH i2c: E2 08 00 23 18 80 09 00 00 00 00 00 00 AD [17:15:40]Write i2c OK [17:15:40]MH_I2C_Read... [17:15:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:40]Read from MH i2c: E2 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 03 00 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 03 00 23 18 00 90 00 AF [17:15:40]RAPDU: 90 00 [17:15:40]wFMCommunicate OK [17:15:40]SAM_PROTO_ClearQueue done [17:15:40]KKMCreateOFDPacket [17:15:40]OFDProtocolAddRootSTLVToBuf [17:15:40]FM_MakeSignedData [17:15:40]FM_MakeSignedData [17:15:40]SAM_PROTO_SignData [17:15:40]wFMCommunicate request_size=4 [17:15:40]MH_SAM_APDU [17:15:40]CAPDU: 80 0D 01 02 [17:15:40]Write to MH i2c: E2 08 00 24 18 80 0D 01 02 00 00 00 00 B5 [17:15:40]Write i2c OK [17:15:40]MH_I2C_Read... [17:15:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:40]Read from MH i2c: E2 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 03 00 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 03 00 24 18 00 90 00 B0 [17:15:40]RAPDU: 90 00 [17:15:40]wFMCommunicate OK [17:15:40]wFMCommunicate request_size=255 [17:15:40]MH_SAM_APDU [17:15:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 FB 00 00 00 F4 03 04 00 BC 80 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 5F 02 00 35 04 06 00 D7 C7 93 E4 [17:15:40]Write to MH i2c: E2 02 01 25 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 FB 00 00 00 F4 03 04 00 BC 80 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 5F 02 00 35 04 06 00 D7 C7 93 E4 00 00 6F [17:15:40]Write i2c OK [17:15:40]MH_I2C_Read... [17:15:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:40]Read from MH i2c: E2 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 03 00 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 03 00 25 18 00 90 00 B1 [17:15:40]RAPDU: 90 00 [17:15:40]wFMCommunicate OK [17:15:40]wFMCommunicate request_size=7 [17:15:40]MH_SAM_APDU [17:15:40]CAPDU: 80 0D 02 02 02 17 AE [17:15:40]Write to MH i2c: E2 0A 00 26 18 80 0D 02 02 02 00 17 AE 00 00 81 [17:15:40]Write i2c OK [17:15:40]MH_I2C_Read... [17:15:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:40]Read from MH i2c: E2 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 03 00 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 03 00 26 18 00 90 00 B2 [17:15:40]RAPDU: 90 00 [17:15:40]wFMCommunicate OK [17:15:40]wFMCommunicate request_size=4 [17:15:40]MH_SAM_APDU [17:15:40]CAPDU: 80 0D 03 02 [17:15:40]Write to MH i2c: E2 08 00 27 18 80 0D 03 02 00 00 00 00 BA [17:15:40]Write i2c OK [17:15:40]MH_I2C_Read... [17:15:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:40]Read from MH i2c: E2 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 0B 00 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 0B 00 27 18 00 83 D3 F5 A6 8C 86 0D 96 90 00 61 [17:15:40]RAPDU: 83 D3 F5 A6 8C 86 0D 96 90 00 [17:15:40]wFMCommunicate OK [17:15:40]SAM_PROTO_SignData done [17:15:40]FM_MakeSignedData done [17:15:40]CreateOFDProtocolMessage [17:15:40]wFMCommunicate request_size=4 [17:15:40]MH_SAM_APDU [17:15:40]CAPDU: 80 11 00 00 [17:15:40]Write to MH i2c: E2 08 00 28 18 80 11 00 00 00 00 00 00 BA [17:15:40]Write i2c OK [17:15:40]MH_I2C_Read... [17:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:40]Read from MH i2c: E2 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 17 00 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: E2 17 00 28 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0F [17:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:15:40]wFMCommunicate OK [17:15:40]CreateOFDProtocolMessage done [17:15:40]OFDSenderStorePacket 155626 [17:15:40]StoreOFDPacket docnum=155626 [17:15:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 2F D1 04 01 A2 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 BC 80 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 5F 02 00 35 04 06 00 D7 C7 93 E4 17 AE 83 D3 F5 A6 8C 86 0D 96 [17:15:40]CheckFolder [17:15:40]dirname=/storage/ofd_packets [17:15:40]CheckFolder done [17:15:40]ProducePacketName [17:15:40]name=ofd_packets/00155626 [17:15:40]NVStorageSaveData ofd_packets/00155626 [17:15:40]File name is /storage/ofd_packets/00155626 [17:15:40]Write 298 bytes [17:15:40]NVStorageSaveData done [17:15:40]OFDSenderStorePacket done [17:15:40]KKMCreateOFDPacket done [17:15:40]NVStorageSaveData kkm_last_timestamp [17:15:40]File name is /storage/kkm_last_timestamp [17:15:40]Write 4 bytes [17:15:40]NVStorageSaveData done [17:15:40]ExternCall_PrintAddStr [17:15:40]wPrintStart [17:15:40]Write to MH i2c: 01 00 00 29 18 41 [17:15:40]Write i2c OK [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: 01 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: 01 07 00 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: 01 07 00 29 18 00 00 00 00 00 FF 0F 56 [17:15:40]RasterBufferAndPrint [17:15:40]line Счет N : (1)98432 [17:15:40]line ИНН: 02508201610067 [17:15:40]line Контрольно-Кассовый Чек [17:15:40]line ПРОДАЖА [17:15:40]line ТРК (МРК, ГНК) : 32 [17:15:40]line Товар: 2710194210 [17:15:40]line ДТ-К-5 [17:15:40]line 13.130 * 76.20 [17:15:40]line = 1000.51 [17:15:40]line НДС 12% НСП 1% [17:15:40]line > о реализуемом товаре [17:15:40]line ОКРУГЛЕНИЕ: -0.51 [17:15:40]line ИТОГО: 1000.00 [17:15:40]line Внесено: 1000.00 [17:15:40]line СДАЧА: 0.00 [17:15:40]line НСП 1% : 8.85 [17:15:40]line НДС 12% : 106.25 [17:15:40]line Наличными: 1000.00 [17:15:40]line Безнал.: 0.00 [17:15:40]line Место: АЗС № 143 "Партнер Нефть" [17:15:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:15:40]line СНО: Общий режим [17:15:40]line Чек 251 24.10.2024 17:15 [17:15:40]line Смена: 534 ФФД: 1.0 [17:15:40]line ЗНМ: 0300000096 [17:15:40]line РНМ: 0000000000091693 [17:15:40]line Версия ККМ: 001 [17:15:40]line ФМ: 0000000000871792 [17:15:40]line ФД: 155626 [17:15:40]line ФПД: 237252179662766 [17:15:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T171540&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155626&fm=237252179662766&tin=02508201610067®Number=0000000000091693&sum=100000 [17:15:41]OFD Sender: Processing packet 155626 [packets to send 31, broken 30] [17:15:41]ProducePacketName [17:15:41]name=ofd_packets/00155626 [17:15:41]OFD Sender: To server: pG, [17:15:41]CommunicateWithHost lk.salyk.kg:30040 [17:15:41]ConnectInit lk.salyk.kg [17:15:41]written 0, free lines is 4095 [17:15:41]Connected sock=9 [17:15: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 39 32 0C 01 00 00 2F D1 04 01 A2 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 BC 80 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 5F 02 00 35 04 06 00 D7 C7 93 E4 17 AE 83 D3 F5 A6 8C 86 0D 96 [17:15: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 39 32 4F 00 00 00 59 7F 47 00 EA 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 5F 02 00 F4 03 04 00 34 26 1A 67 B6 04 01 00 00 1C 9A E4 33 B9 E2 37 68 [17:15:41]CommunicateWithHost err = 0 [17:15:41]CheckOFDResponse [17:15:41]1017 (14) - 77093643461234 [17:15:41]1041 (16) - 0000000000871792 [17:15:41]1040 (4) - 155626 [17:15:41]1012 (4) - 24.10.2024 10:49 [17:15:41]1206 (1) - 0 [17:15:41]OFD Sender: Remove packet 155626 [17:15:41]ProducePacketName [17:15:41]name=ofd_packets/00155626 [17:15:41]NVStorageDeleteData [17:15:41]Write to MH i2c: 01 00 00 54 18 6C [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: 01 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: 01 07 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: 01 07 00 54 18 00 00 00 00 00 F7 0C 76 [17:15:41]RasterBufferAndPrint [17:15:41]line [17:15:41]line [17:15:41]line [17:15:41]line [17:15:41]line [17:15:41]written 0, free lines is 3326 [17:15:41]process_action close_receipt done [17:15:41]requested_data is exist [17:15:41]produce_requested_data [17:15:41]requested_item fm.sn is exist - process it [17:15:41]wFMCommunicate request_size=4 [17:15:41]MH_SAM_APDU [17:15:41]CAPDU: 80 11 00 00 [17:15:41]Write to MH i2c: E2 08 00 5B 18 80 11 00 00 00 00 00 00 ED [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 [17:15:41]MH_I2C_Read... [17:15:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:41]Read from MH i2c: E2 17 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 17 00 5B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 42 [17:15:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:15:41]wFMCommunicate OK [17:15:41]requested_item fd.num is exist - process it [17:15:41]SAM_PROTO_GetFieldsCounters [17:15:41]wFMCommunicate request_size=4 [17:15:41]MH_SAM_APDU [17:15:41]CAPDU: 80 13 00 00 [17:15:41]Write to MH i2c: E2 08 00 5C 18 80 13 00 00 00 00 00 00 F0 [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:41]Read from MH i2c: E2 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 62 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 62 00 5C 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EA 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [17:15: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EA 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:41]wFMCommunicate OK [17:15:41]SAM_PROTO_GetFieldsCounters done [17:15:41]requested_item shift.num is exist - process it [17:15:41]requested_item shift.opened is exist - process it [17:15:41]req_shift_opened [17:15:41]FM_GetShiftState [17:15:41]SAM_PROTO_GetShiftState [17:15:41]wFMCommunicate request_size=4 [17:15:41]MH_SAM_APDU [17:15:41]CAPDU: 80 13 01 00 [17:15:41]Write to MH i2c: E2 08 00 5D 18 80 13 01 00 00 00 00 00 F2 [17:15:41]Write i2c OK [17:15:41]MH_I2C_Read... [17:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:41]Read from MH i2c: E2 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 0E 00 [17:15:41]MH_I2C_Read... [17:15:41]Read from MH i2c: E2 0E 00 5D 18 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3F [17:15:41]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:15:41]wFMCommunicate OK [17:15:41]SAM_PROTO_GetShiftState done [17:15:41]FM_GetShiftState done [17:15:41]req_shift_opened done [17:15:41]requested_item shift.open_date is exist - process it [17:15:41]req_shift_open_date [17:15:41]req_shift_open_date done [17:15:41]produce_requested_data done [17:15:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155626,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:15:41]process_action_free close_receipt [17:15:41]json_value_free [17:15:41]json_value_free done [17:15:41]process_json_proto returns [17:15:41]Send response to host [17:15:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155626,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:15:41]free response buf [17:15:41]execute_script done [17:15:41]execute_script returns [17:15:41]free content buf [17:15:41]Sock 10.Close socket [17:15:41]Sock 10.Thread stoped [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:39]accept exits with 8 [17:20:39]New connection [17:20:39]New thread 3066781028 created [17:20:39]Thread 3066637668 joined [17:20:39]Waiting for new connection... [17:20:39] Sock 8.Parse request [17:20:39]Sock 8.Check first char [17:20:39]Sock 8.First char is OK [17:20:39]request: POST /json_proto HTTP/1.0 [17:20:39]Method: POST [17:20:39]URL: /json_proto [17:20:39]Method is POST - this is cgi request [17:20:39]url: /json_proto [17:20:39]query_string will be loaded in cgi processing [17:20:39]execute_cgi json_proto POST (null) [17:20:39]execute_cgi path=json_proto method=POST [17:20:39]POST find Content-Length [17:20:39]Host: 172.17.63.3:8080 [17:20:39]Content-Length: 676 [17:20:39]Content-Type: application/json [17:20:39] [17:20:39]POST finish read [17:20:39]Found Content-Length = 676 [17:20:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:39]execute_script... [17:20:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:39]POST & json_proto [17:20:39]process_json_proto [17:20:39]json parsed OK: [17:20:39]protocol is kg_v1.0 [17:20:39]action value=close_receipt [17:20:39]process_action close_receipt [17:20:39]cmd_close_receipt [17:20:39]MH_GetDate [17:20:39]Write to MH i2c: F0 00 00 5E 18 65 [17:20:39]Write i2c OK [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: F0 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: F0 09 00 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: F0 09 00 5E 18 00 E8 81 1A 67 50 D1 6C 64 49 [17:20:39]GetLastDocTimeStamp 1729790140 [17:20:39]current date 1729790440 [17:20:39]FM_GetShiftState [17:20:39]SAM_PROTO_GetShiftState [17:20:39]wFMCommunicate request_size=4 [17:20:39]MH_SAM_APDU [17:20:39]CAPDU: 80 13 01 00 [17:20:39]Write to MH i2c: E2 08 00 5F 18 80 13 01 00 00 00 00 00 F4 [17:20:39]Write i2c OK [17:20:39]MH_I2C_Read... [17:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:39]Read from MH i2c: E2 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 0E 00 [17:20:39]MH_I2C_Read... [17:20:39]Read from MH i2c: E2 0E 00 5F 18 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 41 [17:20:39]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:20:39]wFMCommunicate OK [17:20:39]SAM_PROTO_GetShiftState done [17:20:39]FM_GetShiftState done [17:20:39]opened in 1729729836 [17:20:39]opened+sec_in_day 1729816236 [17:20:39]quantity*price = 50041 [17:20:39]sum+1 = 50042 [17:20:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 252 24.10.2024 17:20 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155627 ФПД: 161358587664553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172040&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155627&fm=161358587664553&tin=02508201610067®Number=0000000000091693&sum=50000 [17:20:40]StoreToDocumentArchive [17:20:40]shift 534 fd 155627 [17:20:40]save to /storage/0534/doc_00155627 [17:20:40]save last doc name /storage/0534/doc_00155627 to /storage/kkm_last_doc_name [17:20:40]save OK [17:20:40]Clear old archive folders... [17:20:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:40]tlvbuf is B6F2E2E0 [17:20:40]SAM_PROTO_ClearQueue [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 09 00 00 [17:20:40]Write to MH i2c: E2 08 00 6C 18 80 09 00 00 00 00 00 00 F6 [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 03 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 03 00 6C 18 00 90 00 F8 [17:20:40]RAPDU: 90 00 [17:20:40]wFMCommunicate OK [17:20:40]SAM_PROTO_ClearQueue done [17:20:40]KKMCreateOFDPacket [17:20:40]OFDProtocolAddRootSTLVToBuf [17:20:40]FM_MakeSignedData [17:20:40]FM_MakeSignedData [17:20:40]SAM_PROTO_SignData [17:20:40]wFMCommunicate request_size=4 [17:20:40]MH_SAM_APDU [17:20:40]CAPDU: 80 0D 01 02 [17:20:40]Write to MH i2c: E2 08 00 6D 18 80 0D 01 02 00 00 00 00 FE [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:40]Read from MH i2c: E2 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 03 00 [17:20:40]MH_I2C_Read... [17:20:40]Read from MH i2c: E2 03 00 6D 18 00 90 00 F9 [17:20:40]RAPDU: 90 00 [17:20:40]wFMCommunicate OK [17:20:40]wFMCommunicate request_size=255 [17:20:40]MH_SAM_APDU [17:20: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E8 81 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 5F 02 00 35 04 06 00 92 [17:20:40]Write to MH i2c: E2 02 01 6E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E8 81 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 5F 02 00 35 04 06 00 92 00 00 6E [17:20:40]Write i2c OK [17:20:40]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 6E 18 00 90 00 FA [17:20:41]RAPDU: 90 00 [17:20:41]wFMCommunicate OK [17:20:41]wFMCommunicate request_size=10 [17:20:41]MH_SAM_APDU [17:20:41]CAPDU: 80 0D 02 02 05 C1 39 4C 98 A9 [17:20:41]Write to MH i2c: E2 0D 00 6F 18 80 0D 02 02 05 00 C1 39 4C 98 A9 00 00 92 [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 03 00 6F 18 00 90 00 FB [17:20:41]RAPDU: 90 00 [17:20:41]wFMCommunicate OK [17:20:41]wFMCommunicate request_size=4 [17:20:41]MH_SAM_APDU [17:20:41]CAPDU: 80 0D 03 02 [17:20:41]Write to MH i2c: E2 08 00 70 18 80 0D 03 02 00 00 00 00 03 [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 0B 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 0B 00 70 18 00 1C 17 0D B7 6A 2C 56 2A 90 00 11 [17:20:41]RAPDU: 1C 17 0D B7 6A 2C 56 2A 90 00 [17:20:41]wFMCommunicate OK [17:20:41]SAM_PROTO_SignData done [17:20:41]FM_MakeSignedData done [17:20:41]CreateOFDProtocolMessage [17:20:41]wFMCommunicate request_size=4 [17:20:41]MH_SAM_APDU [17:20:41]CAPDU: 80 11 00 00 [17:20:41]Write to MH i2c: E2 08 00 71 18 80 11 00 00 00 00 00 00 03 [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:41]Read from MH i2c: E2 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 17 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: E2 17 00 71 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 58 [17:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:20:41]wFMCommunicate OK [17:20:41]CreateOFDProtocolMessage done [17:20:41]OFDSenderStorePacket 155627 [17:20:41]StoreOFDPacket docnum=155627 [17:20:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9F AB 07 01 78 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E8 81 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 5F 02 00 35 04 06 00 92 C1 39 4C 98 A9 1C 17 0D B7 6A 2C 56 2A [17:20:41]CheckFolder [17:20:41]dirname=/storage/ofd_packets [17:20:41]CheckFolder done [17:20:41]ProducePacketName [17:20:41]name=ofd_packets/00155627 [17:20:41]NVStorageSaveData ofd_packets/00155627 [17:20:41]File name is /storage/ofd_packets/00155627 [17:20:41]Write 301 bytes [17:20:41]NVStorageSaveData done [17:20:41]OFDSenderStorePacket done [17:20:41]KKMCreateOFDPacket done [17:20:41]NVStorageSaveData kkm_last_timestamp [17:20:41]File name is /storage/kkm_last_timestamp [17:20:41]Write 4 bytes [17:20:41]NVStorageSaveData done [17:20:41]ExternCall_PrintAddStr [17:20:41]wPrintStart [17:20:41]Write to MH i2c: 01 00 00 72 18 8A [17:20:41]Write i2c OK [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 07 00 [17:20:41]MH_I2C_Read... [17:20:41]Read from MH i2c: 01 07 00 72 18 00 00 00 00 00 FF 0F 9F [17:20:41]RasterBufferAndPrint [17:20:41]line Счет N : (1)98433 [17:20:41]line ИНН: 02508201610067 [17:20:41]line Контрольно-Кассовый Чек [17:20:41]line ПРОДАЖА [17:20:41]line ТРК (МРК, ГНК) : 31 [17:20:41]line Товар: 2710124130 [17:20:41]line Аи-92-К-5 [17:20:41]line 7.480 * 66.90 [17:20:41]line = 500.41 [17:20:41]line НДС 12% НСП 1% [17:20:41]line > о реализуемом товаре [17:20:41]line ОКРУГЛЕНИЕ: -0.41 [17:20:41]line ИТОГО: 500.00 [17:20:41]line Внесено: 500.00 [17:20:41]line СДАЧА: 0.00 [17:20:41]line НСП 1% : 4.43 [17:20:41]line НДС 12% : 53.14 [17:20:41]line Наличными: 500.00 [17:20:41]line Безнал.: 0.00 [17:20:41]line Место: АЗС № 143 "Партнер Нефть" [17:20:41]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:20:41]line СНО: Общий режим [17:20:41]line Чек 252 24.10.2024 17:20 [17:20:41]line Смена: 534 ФФД: 1.0 [17:20:41]line ЗНМ: 0300000096 [17:20:41]line РНМ: 0000000000091693 [17:20:41]line Версия ККМ: 001 [17:20:41]line ФМ: 0000000000871792 [17:20:41]line ФД: 155627 [17:20:41]line ФПД: 161358587664553 [17:20:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172040&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155627&fm=161358587664553&tin=02508201610067®Number=0000000000091693&sum=50000 [17:20:41]OFD Sender: Processing packet 155627 [packets to send 31, broken 30] [17:20:41]ProducePacketName [17:20:41]name=ofd_packets/00155627 [17:20:41]OFD Sender: To server: pG, [17:20:41]CommunicateWithHost lk.salyk.kg:30040 [17:20:41]ConnectInit lk.salyk.kg [17:20:41]written 0, free lines is 4095 [17:20:42]Write to MH i2c: 01 00 00 9D 18 B5 [17:20:42]Write i2c OK [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: 01 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: 01 07 00 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: 01 07 00 9D 18 00 00 00 00 00 DF 0C A7 [17:20:42]RasterBufferAndPrint [17:20:42]line [17:20:42]line [17:20:42]line [17:20:42]line [17:20:42]line [17:20:42]written 0, free lines is 3304 [17:20:42]process_action close_receipt done [17:20:42]requested_data is exist [17:20:42]produce_requested_data [17:20:42]requested_item fm.sn is exist - process it [17:20:42]wFMCommunicate request_size=4 [17:20:42]MH_SAM_APDU [17:20:42]CAPDU: 80 11 00 00 [17:20:42]Write to MH i2c: E2 08 00 A4 18 80 11 00 00 00 00 00 00 36 [17:20:42]Write i2c OK [17:20:42]MH_I2C_Read... [17:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:42]Read from MH i2c: E2 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: E2 17 00 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: E2 17 00 A4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8B [17:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:20:42]wFMCommunicate OK [17:20:42]requested_item fd.num is exist - process it [17:20:42]SAM_PROTO_GetFieldsCounters [17:20:42]wFMCommunicate request_size=4 [17:20:42]MH_SAM_APDU [17:20:42]CAPDU: 80 13 00 00 [17:20:42]Write to MH i2c: E2 08 00 A5 18 80 13 00 00 00 00 00 00 39 [17:20:42]Write i2c OK [17:20:42]MH_I2C_Read... [17:20:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:42]Read from MH i2c: E2 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: E2 62 00 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: E2 62 00 A5 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EB 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [17:20: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EB 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:42]wFMCommunicate OK [17:20:42]SAM_PROTO_GetFieldsCounters done [17:20:42]requested_item shift.num is exist - process it [17:20:42]requested_item shift.opened is exist - process it [17:20:42]req_shift_opened [17:20:42]FM_GetShiftState [17:20:42]SAM_PROTO_GetShiftState [17:20:42]wFMCommunicate request_size=4 [17:20:42]MH_SAM_APDU [17:20:42]CAPDU: 80 13 01 00 [17:20:42]Write to MH i2c: E2 08 00 A6 18 80 13 01 00 00 00 00 00 3B [17:20:42]Write i2c OK [17:20:42]MH_I2C_Read... [17:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:42]Read from MH i2c: E2 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: E2 0E 00 [17:20:42]MH_I2C_Read... [17:20:42]Read from MH i2c: E2 0E 00 A6 18 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 88 [17:20:42]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:20:42]wFMCommunicate OK [17:20:42]SAM_PROTO_GetShiftState done [17:20:42]FM_GetShiftState done [17:20:42]req_shift_opened done [17:20:42]requested_item shift.open_date is exist - process it [17:20:42]req_shift_open_date [17:20:42]req_shift_open_date done [17:20:42]produce_requested_data done [17:20:42]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155627,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:20:42]process_action_free close_receipt [17:20:42]json_value_free [17:20:42]json_value_free done [17:20:42]process_json_proto returns [17:20:42]Send response to host [17:20:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155627,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:20:42]free response buf [17:20:42]execute_script done [17:20:42]execute_script returns [17:20:42]free content buf [17:20:42]Sock 8.Close socket [17:20:42]Sock 8.Thread stoped [17:20:46]ConnectInit Can't take IP for lk.salyk.kg [17:20:46]CommunicateWithHost connect error [17:20:46]CommunicateWithHost err = -1 [17:20:46]OFD Sender: Server communicate error [17:20:51]OFD Sender: Processing packet 155627 [packets to send 31, broken 30] [17:20:51]ProducePacketName [17:20:51]name=ofd_packets/00155627 [17:20:51]OFD Sender: To server: pG, [17:20:51]CommunicateWithHost lk.salyk.kg:30040 [17:20:51]ConnectInit lk.salyk.kg [17:20:56]ConnectInit Can't take IP for lk.salyk.kg [17:20:56]CommunicateWithHost connect error [17:20:56]CommunicateWithHost err = -1 [17:20:56]OFD Sender: Server communicate error [17:21:01]OFD Sender: Processing packet 155627 [packets to send 31, broken 30] [17:21:01]ProducePacketName [17:21:01]name=ofd_packets/00155627 [17:21:01]OFD Sender: To server: pG, [17:21:01]CommunicateWithHost lk.salyk.kg:30040 [17:21:01]ConnectInit lk.salyk.kg [17:21:06]ConnectInit Can't take IP for lk.salyk.kg [17:21:06]CommunicateWithHost connect error [17:21:06]CommunicateWithHost err = -1 [17:21:06]OFD Sender: Server communicate error [17:21:11]OFD Sender: Processing packet 155627 [packets to send 31, broken 30] [17:21:11]ProducePacketName [17:21:11]name=ofd_packets/00155627 [17:21:11]OFD Sender: To server: pG, [17:21:11]CommunicateWithHost lk.salyk.kg:30040 [17:21:11]ConnectInit lk.salyk.kg [17:21:16]ConnectInit Can't take IP for lk.salyk.kg [17:21:16]CommunicateWithHost connect error [17:21:16]CommunicateWithHost err = -1 [17:21:16]OFD Sender: Server communicate error [17:21:21]OFD Sender: Processing packet 155627 [packets to send 31, broken 30] [17:21:21]ProducePacketName [17:21:21]name=ofd_packets/00155627 [17:21:21]OFD Sender: To server: pG, [17:21:21]CommunicateWithHost lk.salyk.kg:30040 [17:21:21]ConnectInit lk.salyk.kg [17:21:26]ConnectInit Can't take IP for lk.salyk.kg [17:21:26]CommunicateWithHost connect error [17:21:26]CommunicateWithHost err = -1 [17:21:26]OFD Sender: Server communicate error [17:21:31]OFD Sender: Processing packet 155627 [packets to send 31, broken 30] [17:21:31]ProducePacketName [17:21:31]name=ofd_packets/00155627 [17:21:31]OFD Sender: To server: pG, [17:21:31]CommunicateWithHost lk.salyk.kg:30040 [17:21:31]ConnectInit lk.salyk.kg [17:21:34]Connected sock=8 [17:21: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 39 32 0F 01 00 00 9F AB 07 01 78 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E8 81 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 5F 02 00 35 04 06 00 92 C1 39 4C 98 A9 1C 17 0D B7 6A 2C 56 2A [17:21: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 39 32 4F 00 00 00 75 AF 47 00 00 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 39 32 10 04 04 00 EB 5F 02 00 F4 03 04 00 95 27 1A 67 B6 04 01 00 00 9F F8 AF 7A BF BA 6C AE [17:21:34]CommunicateWithHost err = 0 [17:21:34]CheckOFDResponse [17:21:34]1017 (14) - 77093643461234 [17:21:34]1041 (16) - 0000000000871792 [17:21:34]1040 (4) - 155627 [17:21:34]1012 (4) - 24.10.2024 10:55 [17:21:34]1206 (1) - 0 [17:21:34]OFD Sender: Remove packet 155627 [17:21:34]ProducePacketName [17:21:34]name=ofd_packets/00155627 [17:21:34]NVStorageDeleteData [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:39]accept exits with 10 [17:25:39]New connection [17:25:39]New thread 3066637668 created [17:25:39]Thread 3066781028 joined [17:25:39]Waiting for new connection... [17:25:39] Sock 10.Parse request [17:25:39]Sock 10.Check first char [17:25:39]Sock 10.First char is OK [17:25:39]request: POST /json_proto HTTP/1.0 [17:25:39]Method: POST [17:25:39]URL: /json_proto [17:25:39]Method is POST - this is cgi request [17:25:39]url: /json_proto [17:25:39]query_string will be loaded in cgi processing [17:25:39]execute_cgi json_proto POST (null) [17:25:39]execute_cgi path=json_proto method=POST [17:25:39]POST find Content-Length [17:25:39]Host: 172.17.63.3:8080 [17:25:39]Content-Length: 676 [17:25:39]Content-Type: application/json [17:25:39] [17:25:39]POST finish read [17:25:39]Found Content-Length = 676 [17:25:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:39]execute_script... [17:25: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)98434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:39]POST & json_proto [17:25:39]process_json_proto [17:25:39]json parsed OK: [17:25:39]protocol is kg_v1.0 [17:25:39]action value=close_receipt [17:25:39]process_action close_receipt [17:25:39]cmd_close_receipt [17:25:39]MH_GetDate [17:25:39]Write to MH i2c: F0 00 00 A7 18 AE [17:25:39]Write i2c OK [17:25:39]MH_I2C_Read... [17:25:39]Read from MH i2c: F0 [17:25:39]MH_I2C_Read... [17:25:39]Read from MH i2c: F0 09 00 [17:25:39]MH_I2C_Read... [17:25:39]Read from MH i2c: F0 09 00 A7 18 00 14 83 1A 67 50 D1 6C 64 C0 [17:25:39]GetLastDocTimeStamp 1729790440 [17:25:39]current date 1729790740 [17:25:39]FM_GetShiftState [17:25:39]SAM_PROTO_GetShiftState [17:25:39]wFMCommunicate request_size=4 [17:25:39]MH_SAM_APDU [17:25:39]CAPDU: 80 13 01 00 [17:25:39]Write to MH i2c: E2 08 00 A8 18 80 13 01 00 00 00 00 00 3D [17:25:39]Write i2c OK [17:25:39]MH_I2C_Read... [17:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:39]Read from MH i2c: E2 [17:25:39]MH_I2C_Read... [17:25:39]Read from MH i2c: E2 0E 00 [17:25:39]MH_I2C_Read... [17:25:39]Read from MH i2c: E2 0E 00 A8 18 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8A [17:25:39]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:25:39]wFMCommunicate OK [17:25:39]SAM_PROTO_GetShiftState done [17:25:39]FM_GetShiftState done [17:25:39]opened in 1729729836 [17:25:39]opened+sec_in_day 1729816236 [17:25:39]quantity*price = 60009 [17:25:39]sum+1 = 60010 [17:25:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 253 24.10.2024 17:25 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155628 ФПД: 81444765496606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172540&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155628&fm=81444765496606&tin=02508201610067®Number=0000000000091693&sum=60000 [17:25:41]StoreToDocumentArchive [17:25:41]shift 534 fd 155628 [17:25:41]save to /storage/0534/doc_00155628 [17:25:41]save last doc name /storage/0534/doc_00155628 to /storage/kkm_last_doc_name [17:25:41]save OK [17:25:41]Clear old archive folders... [17:25:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:41]tlvbuf is 01FA7630 [17:25:41]SAM_PROTO_ClearQueue [17:25:41]wFMCommunicate request_size=4 [17:25:41]MH_SAM_APDU [17:25:41]CAPDU: 80 09 00 00 [17:25:41]Write to MH i2c: E2 08 00 B5 18 80 09 00 00 00 00 00 00 3F [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:41]Read from MH i2c: E2 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 03 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 03 00 B5 18 00 90 00 41 [17:25:41]RAPDU: 90 00 [17:25:41]wFMCommunicate OK [17:25:41]SAM_PROTO_ClearQueue done [17:25:41]KKMCreateOFDPacket [17:25:41]OFDProtocolAddRootSTLVToBuf [17:25:41]FM_MakeSignedData [17:25:41]FM_MakeSignedData [17:25:41]SAM_PROTO_SignData [17:25:41]wFMCommunicate request_size=4 [17:25:41]MH_SAM_APDU [17:25:41]CAPDU: 80 0D 01 02 [17:25:41]Write to MH i2c: E2 08 00 B6 18 80 0D 01 02 00 00 00 00 47 [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:41]Read from MH i2c: E2 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 03 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 03 00 B6 18 00 90 00 42 [17:25:41]RAPDU: 90 00 [17:25:41]wFMCommunicate OK [17:25:41]wFMCommunicate request_size=255 [17:25:41]MH_SAM_APDU [17:25: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 14 83 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 5F 02 00 35 04 06 00 4A [17:25:41]Write to MH i2c: E2 02 01 B7 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 14 83 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 5F 02 00 35 04 06 00 4A 00 00 7C [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:41]Read from MH i2c: E2 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 03 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 03 00 B7 18 00 90 00 43 [17:25:41]RAPDU: 90 00 [17:25:41]wFMCommunicate OK [17:25:41]wFMCommunicate request_size=10 [17:25:41]MH_SAM_APDU [17:25:41]CAPDU: 80 0D 02 02 05 12 D6 50 F5 1E [17:25:41]Write to MH i2c: E2 0D 00 B8 18 80 0D 02 02 05 00 12 D6 50 F5 1E 00 00 9F [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:41]Read from MH i2c: E2 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 03 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 03 00 B8 18 00 90 00 44 [17:25:41]RAPDU: 90 00 [17:25:41]wFMCommunicate OK [17:25:41]wFMCommunicate request_size=4 [17:25:41]MH_SAM_APDU [17:25:41]CAPDU: 80 0D 03 02 [17:25:41]Write to MH i2c: E2 08 00 B9 18 80 0D 03 02 00 00 00 00 4C [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:41]Read from MH i2c: E2 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 0B 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 0B 00 B9 18 00 3C BD 85 E7 0A 29 B3 32 90 00 CA [17:25:41]RAPDU: 3C BD 85 E7 0A 29 B3 32 90 00 [17:25:41]wFMCommunicate OK [17:25:41]SAM_PROTO_SignData done [17:25:41]FM_MakeSignedData done [17:25:41]CreateOFDProtocolMessage [17:25:41]wFMCommunicate request_size=4 [17:25:41]MH_SAM_APDU [17:25:41]CAPDU: 80 11 00 00 [17:25:41]Write to MH i2c: E2 08 00 BA 18 80 11 00 00 00 00 00 00 4C [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:41]Read from MH i2c: E2 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 17 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 17 00 BA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A1 [17:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:25:41]wFMCommunicate OK [17:25:41]CreateOFDProtocolMessage done [17:25:41]OFDSenderStorePacket 155628 [17:25:41]StoreOFDPacket docnum=155628 [17:25:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 47 25 07 01 44 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 14 83 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 5F 02 00 35 04 06 00 4A 12 D6 50 F5 1E 3C BD 85 E7 0A 29 B3 32 [17:25:41]CheckFolder [17:25:41]dirname=/storage/ofd_packets [17:25:41]CheckFolder done [17:25:41]ProducePacketName [17:25:41]name=ofd_packets/00155628 [17:25:41]NVStorageSaveData ofd_packets/00155628 [17:25:41]File name is /storage/ofd_packets/00155628 [17:25:41]Write 301 bytes [17:25:41]NVStorageSaveData done [17:25:41]OFDSenderStorePacket done [17:25:41]KKMCreateOFDPacket done [17:25:41]NVStorageSaveData kkm_last_timestamp [17:25:41]File name is /storage/kkm_last_timestamp [17:25:41]Write 4 bytes [17:25:41]NVStorageSaveData done [17:25:41]ExternCall_PrintAddStr [17:25:41]wPrintStart [17:25:41]Write to MH i2c: 01 00 00 BB 18 D3 [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: 01 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: 01 07 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: 01 07 00 BB 18 00 00 00 00 00 FF 0F E8 [17:25:41]RasterBufferAndPrint [17:25:41]line Счет N : (1)98434 [17:25:41]line ИНН: 02508201610067 [17:25:41]line Контрольно-Кассовый Чек [17:25:41]line ПРОДАЖА [17:25:41]line ТРК (МРК, ГНК) : 31 [17:25:41]line Товар: 2710124130 [17:25:41]line Аи-92-К-5 [17:25:41]line 8.970 * 66.90 [17:25:41]line = 600.09 [17:25:41]line НДС 12% НСП 1% [17:25:41]line > о реализуемом товаре [17:25:41]line ОКРУГЛЕНИЕ: -0.09 [17:25:41]line ИТОГО: 600.00 [17:25:41]line Внесено: 600.00 [17:25:41]line СДАЧА: 0.00 [17:25:41]line НСП 1% : 5.31 [17:25:41]line НДС 12% : 63.73 [17:25:41]line Наличными: 600.00 [17:25:41]line Безнал.: 0.00 [17:25:41]line Место: АЗС № 143 "Партнер Нефть" [17:25:41]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:25:41]line СНО: Общий режим [17:25:41]line Чек 253 24.10.2024 17:25 [17:25:41]line Смена: 534 ФФД: 1.0 [17:25:41]line ЗНМ: 0300000096 [17:25:41]line РНМ: 0000000000091693 [17:25:41]line Версия ККМ: 001 [17:25:41]line ФМ: 0000000000871792 [17:25:41]line ФД: 155628 [17:25:41]line ФПД: 81444765496606 [17:25:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172540&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155628&fm=81444765496606&tin=02508201610067®Number=0000000000091693&sum=60000 [17:25:41]OFD Sender: Processing packet 155628 [packets to send 31, broken 30] [17:25:41]ProducePacketName [17:25:41]name=ofd_packets/00155628 [17:25:41]OFD Sender: To server: pG, [17:25:41]CommunicateWithHost lk.salyk.kg:30040 [17:25:41]ConnectInit lk.salyk.kg [17:25:41]written 0, free lines is 4095 [17:25:42]Connected sock=9 [17:25: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 39 32 0F 01 00 00 47 25 07 01 44 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 14 83 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 5F 02 00 35 04 06 00 4A 12 D6 50 F5 1E 3C BD 85 E7 0A 29 B3 32 [17:25: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 39 32 4F 00 00 00 A4 55 47 00 A5 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 39 32 10 04 04 00 EC 5F 02 00 F4 03 04 00 8D 28 1A 67 B6 04 01 00 00 A2 41 3B 34 0B DD 89 3D [17:25:42]CommunicateWithHost err = 0 [17:25:42]CheckOFDResponse [17:25:42]1017 (14) - 77093643461234 [17:25:42]1041 (16) - 0000000000871792 [17:25:42]1040 (4) - 155628 [17:25:42]1012 (4) - 24.10.2024 10:59 [17:25:42]1206 (1) - 0 [17:25:42]OFD Sender: Remove packet 155628 [17:25:42]ProducePacketName [17:25:42]name=ofd_packets/00155628 [17:25:42]NVStorageDeleteData [17:25:42]Write to MH i2c: 01 00 00 E6 18 FE [17:25:42]Write i2c OK [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: 01 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: 01 07 00 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: 01 07 00 E6 18 00 00 00 00 00 FB 0C 0C [17:25:42]RasterBufferAndPrint [17:25:42]line [17:25:42]line [17:25:42]line [17:25:42]line [17:25:42]line [17:25:42]written 0, free lines is 3329 [17:25:42]process_action close_receipt done [17:25:42]requested_data is exist [17:25:42]produce_requested_data [17:25:42]requested_item fm.sn is exist - process it [17:25:42]wFMCommunicate request_size=4 [17:25:42]MH_SAM_APDU [17:25:42]CAPDU: 80 11 00 00 [17:25:42]Write to MH i2c: E2 08 00 ED 18 80 11 00 00 00 00 00 00 7F [17:25:42]Write i2c OK [17:25:42]MH_I2C_Read... [17:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:42]Read from MH i2c: E2 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 17 00 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 17 00 ED 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D4 [17:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:25:42]wFMCommunicate OK [17:25:42]requested_item fd.num is exist - process it [17:25:42]SAM_PROTO_GetFieldsCounters [17:25:42]wFMCommunicate request_size=4 [17:25:42]MH_SAM_APDU [17:25:42]CAPDU: 80 13 00 00 [17:25:42]Write to MH i2c: E2 08 00 EE 18 80 13 00 00 00 00 00 00 82 [17:25:42]Write i2c OK [17:25:42]MH_I2C_Read... [17:25:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:42]Read from MH i2c: E2 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 62 00 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 62 00 EE 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EC 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [17:25:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EC 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:42]wFMCommunicate OK [17:25:42]SAM_PROTO_GetFieldsCounters done [17:25:42]requested_item shift.num is exist - process it [17:25:42]requested_item shift.opened is exist - process it [17:25:42]req_shift_opened [17:25:42]FM_GetShiftState [17:25:42]SAM_PROTO_GetShiftState [17:25:42]wFMCommunicate request_size=4 [17:25:42]MH_SAM_APDU [17:25:42]CAPDU: 80 13 01 00 [17:25:42]Write to MH i2c: E2 08 00 EF 18 80 13 01 00 00 00 00 00 84 [17:25:42]Write i2c OK [17:25:42]MH_I2C_Read... [17:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:42]Read from MH i2c: E2 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 0E 00 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 0E 00 EF 18 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D1 [17:25:42]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:25:42]wFMCommunicate OK [17:25:42]SAM_PROTO_GetShiftState done [17:25:42]FM_GetShiftState done [17:25:42]req_shift_opened done [17:25:42]requested_item shift.open_date is exist - process it [17:25:42]req_shift_open_date [17:25:42]req_shift_open_date done [17:25:42]produce_requested_data done [17:25:42]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155628,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:25:42]process_action_free close_receipt [17:25:42]json_value_free [17:25:42]json_value_free done [17:25:42]process_json_proto returns [17:25:42]Send response to host [17:25:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155628,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:25:42]free response buf [17:25:42]execute_script done [17:25:42]execute_script returns [17:25:42]free content buf [17:25:42]Sock 10.Close socket [17:25:42]Sock 10.Thread stoped [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:30]accept exits with 8 [17:28:30]New connection [17:28:30]New thread 3066781028 created [17:28:30]Thread 3066637668 joined [17:28:30]Waiting for new connection... [17:28:30] Sock 8.Parse request [17:28:30]Sock 8.Check first char [17:28:30]Sock 8.First char is OK [17:28:30]request: POST /json_proto HTTP/1.0 [17:28:30]Method: POST [17:28:30]URL: /json_proto [17:28:30]Method is POST - this is cgi request [17:28:30]url: /json_proto [17:28:30]query_string will be loaded in cgi processing [17:28:30]execute_cgi json_proto POST (null) [17:28:30]execute_cgi path=json_proto method=POST [17:28:30]POST find Content-Length [17:28:30]Host: 172.17.63.3:8080 [17:28:30]Content-Length: 676 [17:28:30]Content-Type: application/json [17:28:30] [17:28:30]POST finish read [17:28:30]Found Content-Length = 676 [17:28:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "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" ] } } [17:28:30]execute_script... [17:28: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)98435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "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" ] } } [17:28:30]POST & json_proto [17:28:30]process_json_proto [17:28:30]json parsed OK: [17:28:30]protocol is kg_v1.0 [17:28:30]action value=close_receipt [17:28:30]process_action close_receipt [17:28:30]cmd_close_receipt [17:28:30]MH_GetDate [17:28:30]Write to MH i2c: F0 00 00 F0 18 F7 [17:28:30]Write i2c OK [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: F0 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: F0 09 00 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: F0 09 00 F0 18 00 BE 83 1A 67 50 D1 6C 64 B3 [17:28:30]GetLastDocTimeStamp 1729790740 [17:28:30]current date 1729790910 [17:28:30]FM_GetShiftState [17:28:30]SAM_PROTO_GetShiftState [17:28:30]wFMCommunicate request_size=4 [17:28:30]MH_SAM_APDU [17:28:30]CAPDU: 80 13 01 00 [17:28:30]Write to MH i2c: E2 08 00 F1 18 80 13 01 00 00 00 00 00 86 [17:28:30]Write i2c OK [17:28:30]MH_I2C_Read... [17:28:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:30]Read from MH i2c: E2 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 0E 00 [17:28:30]MH_I2C_Read... [17:28:30]Read from MH i2c: E2 0E 00 F1 18 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D3 [17:28:30]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:28:30]wFMCommunicate OK [17:28:30]SAM_PROTO_GetShiftState done [17:28:30]FM_GetShiftState done [17:28:30]opened in 1729729836 [17:28:30]opened+sec_in_day 1729816236 [17:28:30]quantity*price = 15052 [17:28:30]sum+1 = 15054 [17:28:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 254 24.10.2024 17:28 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155629 ФПД: 167926536720203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172831&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155629&fm=167926536720203&tin=02508201610067®Number=0000000000091693&sum=15000 [17:28:30]StoreToDocumentArchive [17:28:30]shift 534 fd 155629 [17:28:30]save to /storage/0534/doc_00155629 [17:28:30]save last doc name /storage/0534/doc_00155629 to /storage/kkm_last_doc_name [17:28:30]save OK [17:28:30]Clear old archive folders... [17:28:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:30]tlvbuf is 01F27060 [17:28:30]SAM_PROTO_ClearQueue [17:28:30]wFMCommunicate request_size=4 [17:28:30]MH_SAM_APDU [17:28:30]CAPDU: 80 09 00 00 [17:28:30]Write to MH i2c: E2 08 00 FE 18 80 09 00 00 00 00 00 00 88 [17:28:30]Write i2c OK [17:28:30]MH_I2C_Read... [17:28:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:31]Read from MH i2c: E2 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 03 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 03 00 FE 18 00 90 00 8A [17:28:31]RAPDU: 90 00 [17:28:31]wFMCommunicate OK [17:28:31]SAM_PROTO_ClearQueue done [17:28:31]KKMCreateOFDPacket [17:28:31]OFDProtocolAddRootSTLVToBuf [17:28:31]FM_MakeSignedData [17:28:31]FM_MakeSignedData [17:28:31]SAM_PROTO_SignData [17:28:31]wFMCommunicate request_size=4 [17:28:31]MH_SAM_APDU [17:28:31]CAPDU: 80 0D 01 02 [17:28:31]Write to MH i2c: E2 08 00 FF 18 80 0D 01 02 00 00 00 00 90 [17:28:31]Write i2c OK [17:28:31]MH_I2C_Read... [17:28:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:31]Read from MH i2c: E2 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 03 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 03 00 FF 18 00 90 00 8B [17:28:31]RAPDU: 90 00 [17:28:31]wFMCommunicate OK [17:28:31]wFMCommunicate request_size=255 [17:28:31]MH_SAM_APDU [17:28: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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 FE 00 00 00 F4 03 04 00 BF 83 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 5F 02 00 35 04 06 00 98 [17:28:31]Write to MH i2c: E2 02 01 00 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 FE 00 00 00 F4 03 04 00 BF 83 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 5F 02 00 35 04 06 00 98 00 00 E1 [17:28:31]Write i2c OK [17:28:31]MH_I2C_Read... [17:28:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:31]Read from MH i2c: E2 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 03 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 03 00 00 19 00 90 00 8D [17:28:31]RAPDU: 90 00 [17:28:31]wFMCommunicate OK [17:28:31]wFMCommunicate request_size=10 [17:28:31]MH_SAM_APDU [17:28:31]CAPDU: 80 0D 02 02 05 BA 71 91 CF 4B [17:28:31]Write to MH i2c: E2 0D 00 01 19 80 0D 02 02 05 00 BA 71 91 CF 4B 00 00 74 [17:28:31]Write i2c OK [17:28:31]MH_I2C_Read... [17:28:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:31]Read from MH i2c: E2 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 03 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 03 00 01 19 00 90 00 8E [17:28:31]RAPDU: 90 00 [17:28:31]wFMCommunicate OK [17:28:31]wFMCommunicate request_size=4 [17:28:31]MH_SAM_APDU [17:28:31]CAPDU: 80 0D 03 02 [17:28:31]Write to MH i2c: E2 08 00 02 19 80 0D 03 02 00 00 00 00 96 [17:28:31]Write i2c OK [17:28:31]MH_I2C_Read... [17:28:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:31]Read from MH i2c: E2 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 0B 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 0B 00 02 19 00 90 DF 9B D3 55 5D B1 C5 90 00 9C [17:28:31]RAPDU: 90 DF 9B D3 55 5D B1 C5 90 00 [17:28:31]wFMCommunicate OK [17:28:31]SAM_PROTO_SignData done [17:28:31]FM_MakeSignedData done [17:28:31]CreateOFDProtocolMessage [17:28:31]wFMCommunicate request_size=4 [17:28:31]MH_SAM_APDU [17:28:31]CAPDU: 80 11 00 00 [17:28:31]Write to MH i2c: E2 08 00 03 19 80 11 00 00 00 00 00 00 96 [17:28:31]Write i2c OK [17:28:31]MH_I2C_Read... [17:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:31]Read from MH i2c: E2 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 17 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: E2 17 00 03 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EB [17:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:28:31]wFMCommunicate OK [17:28:31]CreateOFDProtocolMessage done [17:28:31]OFDSenderStorePacket 155629 [17:28:31]StoreOFDPacket docnum=155629 [17:28:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 78 58 07 01 42 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 FE 00 00 00 F4 03 04 00 BF 83 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 5F 02 00 35 04 06 00 98 BA 71 91 CF 4B 90 DF 9B D3 55 5D B1 C5 [17:28:31]CheckFolder [17:28:31]dirname=/storage/ofd_packets [17:28:31]CheckFolder done [17:28:31]ProducePacketName [17:28:31]name=ofd_packets/00155629 [17:28:31]NVStorageSaveData ofd_packets/00155629 [17:28:31]File name is /storage/ofd_packets/00155629 [17:28:31]Write 301 bytes [17:28:31]NVStorageSaveData done [17:28:31]OFDSenderStorePacket done [17:28:31]KKMCreateOFDPacket done [17:28:31]NVStorageSaveData kkm_last_timestamp [17:28:31]File name is /storage/kkm_last_timestamp [17:28:31]Write 4 bytes [17:28:31]NVStorageSaveData done [17:28:31]OFD Sender: Processing packet 155629 [packets to send 31, broken 30] [17:28:31]ProducePacketName [17:28:31]name=ofd_packets/00155629 [17:28:31]OFD Sender: To server: pG, [17:28:31]CommunicateWithHost lk.salyk.kg:30040 [17:28:31]ConnectInit lk.salyk.kg [17:28:31]ExternCall_PrintAddStr [17:28:31]wPrintStart [17:28:31]Write to MH i2c: 01 00 00 04 19 1D [17:28:31]Write i2c OK [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 07 00 [17:28:31]MH_I2C_Read... [17:28:31]Read from MH i2c: 01 07 00 04 19 00 00 00 00 00 FF 0F 32 [17:28:31]RasterBufferAndPrint [17:28:31]line Счет N : (1)98435 [17:28:31]line ИНН: 02508201610067 [17:28:31]line Контрольно-Кассовый Чек [17:28:31]line ПРОДАЖА [17:28:31]line ТРК (МРК, ГНК) : 21 [17:28:31]line Товар: 2710124130 [17:28:31]line Аи-92-К-5 [17:28:31]line 2.250 * 66.90 [17:28:31]line = 150.53 [17:28:31]line НДС 12% НСП 1% [17:28:31]line > о реализуемом товаре [17:28:31]line ОКРУГЛЕНИЕ: -0.53 [17:28:31]line ИТОГО: 150.00 [17:28:31]line Внесено: 150.00 [17:28:31]line СДАЧА: 0.00 [17:28:31]line НСП 1% : 1.33 [17:28:31]line НДС 12% : 15.98 [17:28:31]line Наличными: 150.00 [17:28:31]line Безнал.: 0.00 [17:28:31]line Место: АЗС № 143 "Партнер Нефть" [17:28:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:28:31]line СНО: Общий режим [17:28:31]line Чек 254 24.10.2024 17:28 [17:28:31]line Смена: 534 ФФД: 1.0 [17:28:31]line ЗНМ: 0300000096 [17:28:31]line РНМ: 0000000000091693 [17:28:31]line Версия ККМ: 001 [17:28:31]line ФМ: 0000000000871792 [17:28:31]line ФД: 155629 [17:28:31]line ФПД: 167926536720203 [17:28:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T172831&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155629&fm=167926536720203&tin=02508201610067®Number=0000000000091693&sum=15000 [17:28:31]Connected sock=11 [17:28: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 39 32 0F 01 00 00 78 58 07 01 42 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 FE 00 00 00 F4 03 04 00 BF 83 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 5F 02 00 35 04 06 00 98 BA 71 91 CF 4B 90 DF 9B D3 55 5D B1 C5 [17:28:31]written 0, free lines is 4095 [17:28: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 39 32 4F 00 00 00 D5 ED 47 00 F1 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 5F 02 00 F4 03 04 00 36 29 1A 67 B6 04 01 00 00 8C 51 F0 10 7D EF 86 75 [17:28:32]CommunicateWithHost err = 0 [17:28:32]CheckOFDResponse [17:28:32]1017 (14) - 77093643461234 [17:28:32]1041 (16) - 0000000000871792 [17:28:32]1040 (4) - 155629 [17:28:32]1012 (4) - 24.10.2024 11:02 [17:28:32]1206 (1) - 0 [17:28:32]OFD Sender: Remove packet 155629 [17:28:32]ProducePacketName [17:28:32]name=ofd_packets/00155629 [17:28:32]NVStorageDeleteData [17:28:32]Write to MH i2c: 01 00 00 2F 19 48 [17:28:32]Write i2c OK [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: 01 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: 01 07 00 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: 01 07 00 2F 19 00 00 00 00 00 E0 0C 3B [17:28:32]RasterBufferAndPrint [17:28:32]line [17:28:32]line [17:28:32]line [17:28:32]line [17:28:32]line [17:28:32]written 0, free lines is 3305 [17:28:32]process_action close_receipt done [17:28:32]requested_data is exist [17:28:32]produce_requested_data [17:28:32]requested_item fm.sn is exist - process it [17:28:32]wFMCommunicate request_size=4 [17:28:32]MH_SAM_APDU [17:28:32]CAPDU: 80 11 00 00 [17:28:32]Write to MH i2c: E2 08 00 36 19 80 11 00 00 00 00 00 00 C9 [17:28:32]Write i2c OK [17:28:32]MH_I2C_Read... [17:28:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:32]Read from MH i2c: E2 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: E2 17 00 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: E2 17 00 36 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1E [17:28:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:28:32]wFMCommunicate OK [17:28:32]requested_item fd.num is exist - process it [17:28:32]SAM_PROTO_GetFieldsCounters [17:28:32]wFMCommunicate request_size=4 [17:28:32]MH_SAM_APDU [17:28:32]CAPDU: 80 13 00 00 [17:28:32]Write to MH i2c: E2 08 00 37 19 80 13 00 00 00 00 00 00 CC [17:28:32]Write i2c OK [17:28:32]MH_I2C_Read... [17:28:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:32]Read from MH i2c: E2 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: E2 62 00 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: E2 62 00 37 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 ED 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [17:28: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 ED 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:32]wFMCommunicate OK [17:28:32]SAM_PROTO_GetFieldsCounters done [17:28:32]requested_item shift.num is exist - process it [17:28:32]requested_item shift.opened is exist - process it [17:28:32]req_shift_opened [17:28:32]FM_GetShiftState [17:28:32]SAM_PROTO_GetShiftState [17:28:32]wFMCommunicate request_size=4 [17:28:32]MH_SAM_APDU [17:28:32]CAPDU: 80 13 01 00 [17:28:32]Write to MH i2c: E2 08 00 38 19 80 13 01 00 00 00 00 00 CE [17:28:32]OFD Sender: No OFD packet to send [17:28:32]Write i2c OK [17:28:32]MH_I2C_Read... [17:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:32]Read from MH i2c: E2 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: E2 0E 00 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: E2 0E 00 38 19 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1B [17:28:32]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:28:32]wFMCommunicate OK [17:28:32]SAM_PROTO_GetShiftState done [17:28:32]FM_GetShiftState done [17:28:32]req_shift_opened done [17:28:32]requested_item shift.open_date is exist - process it [17:28:32]req_shift_open_date [17:28:32]req_shift_open_date done [17:28:32]produce_requested_data done [17:28:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155629,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:28:32]process_action_free close_receipt [17:28:32]json_value_free [17:28:32]json_value_free done [17:28:32]process_json_proto returns [17:28:32]Send response to host [17:28:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155629,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:28:32]free response buf [17:28:32]execute_script done [17:28:32]execute_script returns [17:28:32]free content buf [17:28:32]Sock 8.Close socket [17:28:32]Sock 8.Thread stoped [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]accept exits with 10 [17:36:07]New connection [17:36:07]New thread 3066637668 created [17:36:07]Thread 3066781028 joined [17:36:07]Waiting for new connection... [17:36:07] Sock 10.Parse request [17:36:07]Sock 10.Check first char [17:36:07]Sock 10.First char is OK [17:36:07]request: POST /json_proto HTTP/1.0 [17:36:07]Method: POST [17:36:07]URL: /json_proto [17:36:07]Method is POST - this is cgi request [17:36:07]url: /json_proto [17:36:07]query_string will be loaded in cgi processing [17:36:07]execute_cgi json_proto POST (null) [17:36:07]execute_cgi path=json_proto method=POST [17:36:07]POST find Content-Length [17:36:07]Host: 172.17.63.3:8080 [17:36:07]Content-Length: 676 [17:36:07]Content-Type: application/json [17:36:07] [17:36:07]POST finish read [17:36:07]Found Content-Length = 676 [17:36:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:07]execute_script... [17:36: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)98436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:07]POST & json_proto [17:36:07]process_json_proto [17:36:07]json parsed OK: [17:36:07]protocol is kg_v1.0 [17:36:07]action value=close_receipt [17:36:07]process_action close_receipt [17:36:07]cmd_close_receipt [17:36:07]MH_GetDate [17:36:07]Write to MH i2c: F0 00 00 39 19 41 [17:36:07]Write i2c OK [17:36:07]MH_I2C_Read... [17:36:07]Read from MH i2c: F0 [17:36:07]MH_I2C_Read... [17:36:07]Read from MH i2c: F0 09 00 [17:36:07]MH_I2C_Read... [17:36:07]Read from MH i2c: F0 09 00 39 19 00 88 85 1A 67 50 D1 6C 64 C9 [17:36:07]GetLastDocTimeStamp 1729790911 [17:36:07]current date 1729791368 [17:36:07]FM_GetShiftState [17:36:07]SAM_PROTO_GetShiftState [17:36:07]wFMCommunicate request_size=4 [17:36:07]MH_SAM_APDU [17:36:07]CAPDU: 80 13 01 00 [17:36:07]Write to MH i2c: E2 08 00 3A 19 80 13 01 00 00 00 00 00 D0 [17:36:07]Write i2c OK [17:36:07]MH_I2C_Read... [17:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:07]Read from MH i2c: E2 [17:36:07]MH_I2C_Read... [17:36:07]Read from MH i2c: E2 0E 00 [17:36:07]MH_I2C_Read... [17:36:07]Read from MH i2c: E2 0E 00 3A 19 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1D [17:36:07]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:36:07]wFMCommunicate OK [17:36:07]SAM_PROTO_GetShiftState done [17:36:07]FM_GetShiftState done [17:36:07]opened in 1729729836 [17:36:07]opened+sec_in_day 1729816236 [17:36:07]quantity*price = 50041 [17:36:07]sum+1 = 50042 [17:36:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 255 24.10.2024 17:36 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155630 ФПД: 122151907905234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173608&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155630&fm=122151907905234&tin=02508201610067®Number=0000000000091693&sum=50000 [17:36:08]StoreToDocumentArchive [17:36:08]shift 534 fd 155630 [17:36:08]save to /storage/0534/doc_00155630 [17:36:08]save last doc name /storage/0534/doc_00155630 to /storage/kkm_last_doc_name [17:36:08]save OK [17:36:08]Clear old archive folders... [17:36:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:08]tlvbuf is 01F3D850 [17:36:08]SAM_PROTO_ClearQueue [17:36:08]wFMCommunicate request_size=4 [17:36:08]MH_SAM_APDU [17:36:08]CAPDU: 80 09 00 00 [17:36:08]Write to MH i2c: E2 08 00 47 19 80 09 00 00 00 00 00 00 D2 [17:36:08]Write i2c OK [17:36:08]MH_I2C_Read... [17:36:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:08]Read from MH i2c: E2 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: E2 03 00 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: E2 03 00 47 19 00 90 00 D4 [17:36:08]RAPDU: 90 00 [17:36:08]wFMCommunicate OK [17:36:08]SAM_PROTO_ClearQueue done [17:36:08]KKMCreateOFDPacket [17:36:08]OFDProtocolAddRootSTLVToBuf [17:36:08]FM_MakeSignedData [17:36:08]FM_MakeSignedData [17:36:08]SAM_PROTO_SignData [17:36:08]wFMCommunicate request_size=4 [17:36:08]MH_SAM_APDU [17:36:08]CAPDU: 80 0D 01 02 [17:36:08]Write to MH i2c: E2 08 00 48 19 80 0D 01 02 00 00 00 00 DA [17:36:08]Write i2c OK [17:36:08]MH_I2C_Read... [17:36:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:08]Read from MH i2c: E2 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: E2 03 00 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: E2 03 00 48 19 00 90 00 D5 [17:36:08]RAPDU: 90 00 [17:36:08]wFMCommunicate OK [17:36:08]wFMCommunicate request_size=255 [17:36:08]MH_SAM_APDU [17:36: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 88 85 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 5F 02 00 35 04 06 00 6F [17:36:08]Write to MH i2c: E2 02 01 49 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 88 85 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 5F 02 00 35 04 06 00 6F 00 00 D1 [17:36:08]Write i2c OK [17:36:08]MH_I2C_Read... [17:36:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:08]Read from MH i2c: E2 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: E2 03 00 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: E2 03 00 49 19 00 90 00 D6 [17:36:08]RAPDU: 90 00 [17:36:08]wFMCommunicate OK [17:36:08]wFMCommunicate request_size=10 [17:36:08]MH_SAM_APDU [17:36:08]CAPDU: 80 0D 02 02 05 18 B5 14 4E D2 [17:36:08]Write to MH i2c: E2 0D 00 4A 19 80 0D 02 02 05 00 18 B5 14 4E D2 00 00 E8 [17:36:08]Write i2c OK [17:36:08]MH_I2C_Read... [17:36:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:08]Read from MH i2c: E2 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: E2 03 00 [17:36:08]MH_I2C_Read... [17:36:08]Read from MH i2c: E2 03 00 4A 19 00 90 00 D7 [17:36:08]RAPDU: 90 00 [17:36:08]wFMCommunicate OK [17:36:08]wFMCommunicate request_size=4 [17:36:08]MH_SAM_APDU [17:36:08]CAPDU: 80 0D 03 02 [17:36:08]Write to MH i2c: E2 08 00 4B 19 80 0D 03 02 00 00 00 00 DF [17:36:08]Write i2c OK [17:36:08]MH_I2C_Read... [17:36:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:09]Read from MH i2c: E2 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 0B 00 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 0B 00 4B 19 00 B7 34 58 11 56 11 E8 4D 90 00 D0 [17:36:09]RAPDU: B7 34 58 11 56 11 E8 4D 90 00 [17:36:09]wFMCommunicate OK [17:36:09]SAM_PROTO_SignData done [17:36:09]FM_MakeSignedData done [17:36:09]CreateOFDProtocolMessage [17:36:09]wFMCommunicate request_size=4 [17:36:09]MH_SAM_APDU [17:36:09]CAPDU: 80 11 00 00 [17:36:09]Write to MH i2c: E2 08 00 4C 19 80 11 00 00 00 00 00 00 DF [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:09]Read from MH i2c: E2 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 17 00 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 17 00 4C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 34 [17:36:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:36:09]wFMCommunicate OK [17:36:09]CreateOFDProtocolMessage done [17:36:09]OFDSenderStorePacket 155630 [17:36:09]StoreOFDPacket docnum=155630 [17:36:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 43 AF 07 01 C3 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 88 85 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 5F 02 00 35 04 06 00 6F 18 B5 14 4E D2 B7 34 58 11 56 11 E8 4D [17:36:09]CheckFolder [17:36:09]dirname=/storage/ofd_packets [17:36:09]CheckFolder done [17:36:09]ProducePacketName [17:36:09]name=ofd_packets/00155630 [17:36:09]NVStorageSaveData ofd_packets/00155630 [17:36:09]File name is /storage/ofd_packets/00155630 [17:36:09]Write 301 bytes [17:36:09]NVStorageSaveData done [17:36:09]OFDSenderStorePacket done [17:36:09]KKMCreateOFDPacket done [17:36:09]NVStorageSaveData kkm_last_timestamp [17:36:09]File name is /storage/kkm_last_timestamp [17:36:09]Write 4 bytes [17:36:09]NVStorageSaveData done [17:36:09]OFD Sender: Processing packet 155630 [packets to send 31, broken 30] [17:36:09]ProducePacketName [17:36:09]name=ofd_packets/00155630 [17:36:09]OFD Sender: To server: pG, [17:36:09]CommunicateWithHost lk.salyk.kg:30040 [17:36:09]ConnectInit lk.salyk.kg [17:36:09]ExternCall_PrintAddStr [17:36:09]wPrintStart [17:36:09]Write to MH i2c: 01 00 00 4D 19 66 [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: 01 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: 01 07 00 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: 01 07 00 4D 19 00 00 00 00 00 FF 0F 7B [17:36:09]RasterBufferAndPrint [17:36:09]line Счет N : (1)98436 [17:36:09]line ИНН: 02508201610067 [17:36:09]line Контрольно-Кассовый Чек [17:36:09]line ПРОДАЖА [17:36:09]line ТРК (МРК, ГНК) : 21 [17:36:09]line Товар: 2710124130 [17:36:09]line Аи-92-К-5 [17:36:09]line 7.480 * 66.90 [17:36:09]line = 500.41 [17:36:09]line НДС 12% НСП 1% [17:36:09]line > о реализуемом товаре [17:36:09]line ОКРУГЛЕНИЕ: -0.41 [17:36:09]line ИТОГО: 500.00 [17:36:09]line Внесено: 500.00 [17:36:09]line СДАЧА: 0.00 [17:36:09]line НСП 1% : 4.43 [17:36:09]line НДС 12% : 53.14 [17:36:09]line Наличными: 500.00 [17:36:09]line Безнал.: 0.00 [17:36:09]line Место: АЗС № 143 "Партнер Нефть" [17:36:09]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:36:09]line СНО: Общий режим [17:36:09]line Чек 255 24.10.2024 17:36 [17:36:09]line Смена: 534 ФФД: 1.0 [17:36:09]line ЗНМ: 0300000096 [17:36:09]line РНМ: 0000000000091693 [17:36:09]line Версия ККМ: 001 [17:36:09]line ФМ: 0000000000871792 [17:36:09]line ФД: 155630 [17:36:09]line ФПД: 122151907905234 [17:36:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173608&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155630&fm=122151907905234&tin=02508201610067®Number=0000000000091693&sum=50000 [17:36:09]Connected sock=11 [17:36: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 39 32 0F 01 00 00 43 AF 07 01 C3 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 88 85 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 5F 02 00 35 04 06 00 6F 18 B5 14 4E D2 B7 34 58 11 56 11 E8 4D [17:36:09]written 0, free lines is 4095 [17:36: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 39 32 4F 00 00 00 36 57 47 00 5D 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 39 32 10 04 04 00 EE 5F 02 00 F4 03 04 00 00 2B 1A 67 B6 04 01 00 00 0F B4 52 A5 27 26 82 07 [17:36:09]CommunicateWithHost err = 0 [17:36:09]CheckOFDResponse [17:36:09]1017 (14) - 77093643461234 [17:36:09]1041 (16) - 0000000000871792 [17:36:09]1040 (4) - 155630 [17:36:09]1012 (4) - 24.10.2024 11:09 [17:36:09]1206 (1) - 0 [17:36:09]OFD Sender: Remove packet 155630 [17:36:09]ProducePacketName [17:36:09]name=ofd_packets/00155630 [17:36:09]NVStorageDeleteData [17:36:09]Write to MH i2c: 01 00 00 78 19 91 [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: 01 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: 01 07 00 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: 01 07 00 78 19 00 00 00 00 00 D9 0C 7D [17:36:09]RasterBufferAndPrint [17:36:09]line [17:36:09]line [17:36:09]line [17:36:09]line [17:36:09]line [17:36:09]written 0, free lines is 3296 [17:36:09]process_action close_receipt done [17:36:09]requested_data is exist [17:36:09]produce_requested_data [17:36:09]requested_item fm.sn is exist - process it [17:36:09]wFMCommunicate request_size=4 [17:36:09]MH_SAM_APDU [17:36:09]CAPDU: 80 11 00 00 [17:36:09]Write to MH i2c: E2 08 00 7F 19 80 11 00 00 00 00 00 00 12 [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:09]Read from MH i2c: E2 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 17 00 [17:36:09]MH_I2C_Read... [17:36:09]Read from MH i2c: E2 17 00 7F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 67 [17:36:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:36:09]wFMCommunicate OK [17:36:09]requested_item fd.num is exist - process it [17:36:09]SAM_PROTO_GetFieldsCounters [17:36:09]wFMCommunicate request_size=4 [17:36:09]MH_SAM_APDU [17:36:09]CAPDU: 80 13 00 00 [17:36:09]Write to MH i2c: E2 08 00 80 19 80 13 00 00 00 00 00 00 15 [17:36:09]Write i2c OK [17:36:09]MH_I2C_Read... [17:36:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:10]Read from MH i2c: E2 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: E2 62 00 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: E2 62 00 80 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EE 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [17:36: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EE 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:10]wFMCommunicate OK [17:36:10]SAM_PROTO_GetFieldsCounters done [17:36:10]requested_item shift.num is exist - process it [17:36:10]requested_item shift.opened is exist - process it [17:36:10]req_shift_opened [17:36:10]FM_GetShiftState [17:36:10]SAM_PROTO_GetShiftState [17:36:10]wFMCommunicate request_size=4 [17:36:10]MH_SAM_APDU [17:36:10]CAPDU: 80 13 01 00 [17:36:10]Write to MH i2c: E2 08 00 81 19 80 13 01 00 00 00 00 00 17 [17:36:10]Write i2c OK [17:36:10]MH_I2C_Read... [17:36:10]OFD Sender: No OFD packet to send [17:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:10]Read from MH i2c: E2 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: E2 0E 00 [17:36:10]MH_I2C_Read... [17:36:10]Read from MH i2c: E2 0E 00 81 19 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 64 [17:36:10]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:36:10]wFMCommunicate OK [17:36:10]SAM_PROTO_GetShiftState done [17:36:10]FM_GetShiftState done [17:36:10]req_shift_opened done [17:36:10]requested_item shift.open_date is exist - process it [17:36:10]req_shift_open_date [17:36:10]req_shift_open_date done [17:36:10]produce_requested_data done [17:36:10]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155630,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:36:10]process_action_free close_receipt [17:36:10]json_value_free [17:36:10]json_value_free done [17:36:10]process_json_proto returns [17:36:10]Send response to host [17:36:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155630,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:36:10]free response buf [17:36:10]execute_script done [17:36:10]execute_script returns [17:36:10]free content buf [17:36:10]Sock 10.Close socket [17:36:10]Sock 10.Thread stoped [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:39]accept exits with 8 [17:37:39]New connection [17:37:39]New thread 3066781028 created [17:37:39]Thread 3066637668 joined [17:37:39]Waiting for new connection... [17:37:39] Sock 8.Parse request [17:37:39]Sock 8.Check first char [17:37:39]Sock 8.First char is OK [17:37:39]request: POST /json_proto HTTP/1.0 [17:37:39]Method: POST [17:37:39]URL: /json_proto [17:37:39]Method is POST - this is cgi request [17:37:39]url: /json_proto [17:37:39]query_string will be loaded in cgi processing [17:37:39]execute_cgi json_proto POST (null) [17:37:39]execute_cgi path=json_proto method=POST [17:37:39]POST find Content-Length [17:37:39]Host: 172.17.63.3:8080 [17:37:39]Content-Length: 676 [17:37:39]Content-Type: application/json [17:37:39] [17:37:39]POST finish read [17:37:39]Found Content-Length = 676 [17:37:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:39]execute_script... [17:37: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)98437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:39]POST & json_proto [17:37:39]process_json_proto [17:37:39]json parsed OK: [17:37:39]protocol is kg_v1.0 [17:37:39]action value=close_receipt [17:37:39]process_action close_receipt [17:37:39]cmd_close_receipt [17:37:39]MH_GetDate [17:37:39]Write to MH i2c: F0 00 00 82 19 8A [17:37:39]Write i2c OK [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: F0 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: F0 09 00 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: F0 09 00 82 19 00 E4 85 1A 67 50 D1 6C 64 6E [17:37:39]GetLastDocTimeStamp 1729791368 [17:37:39]current date 1729791460 [17:37:39]FM_GetShiftState [17:37:39]SAM_PROTO_GetShiftState [17:37:39]wFMCommunicate request_size=4 [17:37:39]MH_SAM_APDU [17:37:39]CAPDU: 80 13 01 00 [17:37:39]Write to MH i2c: E2 08 00 83 19 80 13 01 00 00 00 00 00 19 [17:37:39]Write i2c OK [17:37:39]MH_I2C_Read... [17:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:39]Read from MH i2c: E2 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: E2 0E 00 [17:37:39]MH_I2C_Read... [17:37:39]Read from MH i2c: E2 0E 00 83 19 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 66 [17:37:39]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:37:39]wFMCommunicate OK [17:37:39]SAM_PROTO_GetShiftState done [17:37:39]FM_GetShiftState done [17:37:39]opened in 1729729836 [17:37:39]opened+sec_in_day 1729816236 [17:37:39]quantity*price = 30038 [17:37:39]sum+1 = 30039 [17:37:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 256 24.10.2024 17:37 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155631 ФПД: 59094388992750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173740&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155631&fm=59094388992750&tin=02508201610067®Number=0000000000091693&sum=30000 [17:37:40]StoreToDocumentArchive [17:37:40]shift 534 fd 155631 [17:37:40]save to /storage/0534/doc_00155631 [17:37:40]save last doc name /storage/0534/doc_00155631 to /storage/kkm_last_doc_name [17:37:40]save OK [17:37:40]Clear old archive folders... [17:37:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:40]tlvbuf is 01F82F60 [17:37:40]SAM_PROTO_ClearQueue [17:37:40]wFMCommunicate request_size=4 [17:37:40]MH_SAM_APDU [17:37:40]CAPDU: 80 09 00 00 [17:37:40]Write to MH i2c: E2 08 00 90 19 80 09 00 00 00 00 00 00 1B [17:37:40]Write i2c OK [17:37:40]MH_I2C_Read... [17:37:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:40]Read from MH i2c: E2 [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: E2 03 00 [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: E2 03 00 90 19 00 90 00 1D [17:37:40]RAPDU: 90 00 [17:37:40]wFMCommunicate OK [17:37:40]SAM_PROTO_ClearQueue done [17:37:40]KKMCreateOFDPacket [17:37:40]OFDProtocolAddRootSTLVToBuf [17:37:40]FM_MakeSignedData [17:37:40]FM_MakeSignedData [17:37:40]SAM_PROTO_SignData [17:37:40]wFMCommunicate request_size=4 [17:37:40]MH_SAM_APDU [17:37:40]CAPDU: 80 0D 01 02 [17:37:40]Write to MH i2c: E2 08 00 91 19 80 0D 01 02 00 00 00 00 23 [17:37:40]Write i2c OK [17:37:40]MH_I2C_Read... [17:37:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:40]Read from MH i2c: E2 [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: E2 03 00 [17:37:40]MH_I2C_Read... [17:37:40]Read from MH i2c: E2 03 00 91 19 00 90 00 1E [17:37:40]RAPDU: 90 00 [17:37:40]wFMCommunicate OK [17:37:40]wFMCommunicate request_size=255 [17:37:40]MH_SAM_APDU [17:37: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 E4 85 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 5F 02 00 35 04 06 00 35 [17:37:40]Write to MH i2c: E2 02 01 92 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 E4 85 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 5F 02 00 35 04 06 00 35 00 00 33 [17:37:40]Write i2c OK [17:37:40]MH_I2C_Read... [17:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:41]Read from MH i2c: E2 [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: E2 03 00 [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: E2 03 00 92 19 00 90 00 1F [17:37:41]RAPDU: 90 00 [17:37:41]wFMCommunicate OK [17:37:41]wFMCommunicate request_size=10 [17:37:41]MH_SAM_APDU [17:37:41]CAPDU: 80 0D 02 02 05 BE FC 10 6A EE [17:37:41]Write to MH i2c: E2 0D 00 93 19 80 0D 02 02 05 00 BE FC 10 6A EE 00 00 52 [17:37:41]Write i2c OK [17:37:41]MH_I2C_Read... [17:37:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:41]Read from MH i2c: E2 [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: E2 03 00 [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: E2 03 00 93 19 00 90 00 20 [17:37:41]RAPDU: 90 00 [17:37:41]wFMCommunicate OK [17:37:41]wFMCommunicate request_size=4 [17:37:41]MH_SAM_APDU [17:37:41]CAPDU: 80 0D 03 02 [17:37:41]Write to MH i2c: E2 08 00 94 19 80 0D 03 02 00 00 00 00 28 [17:37:41]Write i2c OK [17:37:41]MH_I2C_Read... [17:37:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:41]Read from MH i2c: E2 [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: E2 0B 00 [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: E2 0B 00 94 19 00 FF C8 27 1C F8 1D 67 19 90 00 C8 [17:37:41]RAPDU: FF C8 27 1C F8 1D 67 19 90 00 [17:37:41]wFMCommunicate OK [17:37:41]SAM_PROTO_SignData done [17:37:41]FM_MakeSignedData done [17:37:41]CreateOFDProtocolMessage [17:37:41]wFMCommunicate request_size=4 [17:37:41]MH_SAM_APDU [17:37:41]CAPDU: 80 11 00 00 [17:37:41]Write to MH i2c: E2 08 00 95 19 80 11 00 00 00 00 00 00 28 [17:37:41]Write i2c OK [17:37:41]MH_I2C_Read... [17:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:41]Read from MH i2c: E2 [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: E2 17 00 [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: E2 17 00 95 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7D [17:37:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:37:41]wFMCommunicate OK [17:37:41]CreateOFDProtocolMessage done [17:37:41]OFDSenderStorePacket 155631 [17:37:41]StoreOFDPacket docnum=155631 [17:37:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EF E2 07 01 76 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 E4 85 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 5F 02 00 35 04 06 00 35 BE FC 10 6A EE FF C8 27 1C F8 1D 67 19 [17:37:41]CheckFolder [17:37:41]dirname=/storage/ofd_packets [17:37:41]CheckFolder done [17:37:41]ProducePacketName [17:37:41]name=ofd_packets/00155631 [17:37:41]NVStorageSaveData ofd_packets/00155631 [17:37:41]File name is /storage/ofd_packets/00155631 [17:37:41]Write 301 bytes [17:37:41]NVStorageSaveData done [17:37:41]OFDSenderStorePacket done [17:37:41]KKMCreateOFDPacket done [17:37:41]NVStorageSaveData kkm_last_timestamp [17:37:41]File name is /storage/kkm_last_timestamp [17:37:41]Write 4 bytes [17:37:41]NVStorageSaveData done [17:37:41]ExternCall_PrintAddStr [17:37:41]wPrintStart [17:37:41]Write to MH i2c: 01 00 00 96 19 AF [17:37:41]Write i2c OK [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: 01 [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: 01 07 00 [17:37:41]MH_I2C_Read... [17:37:41]Read from MH i2c: 01 07 00 96 19 00 00 00 00 00 FF 0F C4 [17:37:41]RasterBufferAndPrint [17:37:41]line Счет N : (1)98437 [17:37:41]line ИНН: 02508201610067 [17:37:41]line Контрольно-Кассовый Чек [17:37:41]line ПРОДАЖА [17:37:41]line ТРК (МРК, ГНК) : 21 [17:37:41]line Товар: 2710124130 [17:37:41]line Аи-92-К-5 [17:37:41]line 4.490 * 66.90 [17:37:41]line = 300.38 [17:37:41]line НДС 12% НСП 1% [17:37:41]line > о реализуемом товаре [17:37:41]line ОКРУГЛЕНИЕ: -0.38 [17:37:41]line ИТОГО: 300.00 [17:37:41]line Внесено: 300.00 [17:37:41]line СДАЧА: 0.00 [17:37:41]line НСП 1% : 2.66 [17:37:41]line НДС 12% : 31.90 [17:37:41]line Наличными: 300.00 [17:37:41]line Безнал.: 0.00 [17:37:41]line Место: АЗС № 143 "Партнер Нефть" [17:37:41]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:37:41]line СНО: Общий режим [17:37:41]line Чек 256 24.10.2024 17:37 [17:37:41]line Смена: 534 ФФД: 1.0 [17:37:41]line ЗНМ: 0300000096 [17:37:41]line РНМ: 0000000000091693 [17:37:41]line Версия ККМ: 001 [17:37:41]line ФМ: 0000000000871792 [17:37:41]line ФД: 155631 [17:37:41]line ФПД: 59094388992750 [17:37:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T173740&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155631&fm=59094388992750&tin=02508201610067®Number=0000000000091693&sum=30000 [17:37:41]OFD Sender: Processing packet 155631 [packets to send 31, broken 30] [17:37:41]ProducePacketName [17:37:41]name=ofd_packets/00155631 [17:37:41]OFD Sender: To server: pG, [17:37:41]CommunicateWithHost lk.salyk.kg:30040 [17:37:41]ConnectInit lk.salyk.kg [17:37:41]written 0, free lines is 4095 [17:37:41]Connected sock=11 [17:37: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 39 32 0F 01 00 00 EF E2 07 01 76 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 E4 85 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 5F 02 00 35 04 06 00 35 BE FC 10 6A EE FF C8 27 1C F8 1D 67 19 [17:37: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 39 32 4F 00 00 00 93 7F 47 00 0E 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 39 32 10 04 04 00 EF 5F 02 00 F4 03 04 00 5C 2B 1A 67 B6 04 01 00 00 F4 F5 48 99 DB DD C2 45 [17:37:41]CommunicateWithHost err = 0 [17:37:41]CheckOFDResponse [17:37:41]1017 (14) - 77093643461234 [17:37:41]1041 (16) - 0000000000871792 [17:37:41]1040 (4) - 155631 [17:37:41]1012 (4) - 24.10.2024 11:11 [17:37:41]1206 (1) - 0 [17:37:41]OFD Sender: Remove packet 155631 [17:37:41]ProducePacketName [17:37:41]name=ofd_packets/00155631 [17:37:41]NVStorageDeleteData [17:37:42]Write to MH i2c: 01 00 00 C1 19 DA [17:37:42]Write i2c OK [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: 01 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: 01 07 00 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: 01 07 00 C1 19 00 00 00 00 00 E0 0C CD [17:37:42]RasterBufferAndPrint [17:37:42]line [17:37:42]line [17:37:42]line [17:37:42]line [17:37:42]line [17:37:42]written 0, free lines is 3301 [17:37:42]process_action close_receipt done [17:37:42]requested_data is exist [17:37:42]produce_requested_data [17:37:42]requested_item fm.sn is exist - process it [17:37:42]wFMCommunicate request_size=4 [17:37:42]MH_SAM_APDU [17:37:42]CAPDU: 80 11 00 00 [17:37:42]Write to MH i2c: E2 08 00 C8 19 80 11 00 00 00 00 00 00 5B [17:37:42]Write i2c OK [17:37:42]MH_I2C_Read... [17:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:42]Read from MH i2c: E2 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 17 00 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 17 00 C8 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B0 [17:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:37:42]wFMCommunicate OK [17:37:42]requested_item fd.num is exist - process it [17:37:42]SAM_PROTO_GetFieldsCounters [17:37:42]wFMCommunicate request_size=4 [17:37:42]MH_SAM_APDU [17:37:42]CAPDU: 80 13 00 00 [17:37:42]Write to MH i2c: E2 08 00 C9 19 80 13 00 00 00 00 00 00 5E [17:37:42]Write i2c OK [17:37:42]MH_I2C_Read... [17:37:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:42]Read from MH i2c: E2 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 62 00 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 62 00 C9 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EF 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [17:37:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EF 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:42]wFMCommunicate OK [17:37:42]SAM_PROTO_GetFieldsCounters done [17:37:42]requested_item shift.num is exist - process it [17:37:42]requested_item shift.opened is exist - process it [17:37:42]req_shift_opened [17:37:42]FM_GetShiftState [17:37:42]SAM_PROTO_GetShiftState [17:37:42]wFMCommunicate request_size=4 [17:37:42]MH_SAM_APDU [17:37:42]CAPDU: 80 13 01 00 [17:37:42]Write to MH i2c: E2 08 00 CA 19 80 13 01 00 00 00 00 00 60 [17:37:42]Write i2c OK [17:37:42]MH_I2C_Read... [17:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:42]Read from MH i2c: E2 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 0E 00 [17:37:42]MH_I2C_Read... [17:37:42]Read from MH i2c: E2 0E 00 CA 19 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AD [17:37:42]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:37:42]wFMCommunicate OK [17:37:42]SAM_PROTO_GetShiftState done [17:37:42]FM_GetShiftState done [17:37:42]req_shift_opened done [17:37:42]requested_item shift.open_date is exist - process it [17:37:42]req_shift_open_date [17:37:42]req_shift_open_date done [17:37:42]produce_requested_data done [17:37:42]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155631,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:37:42]process_action_free close_receipt [17:37:42]json_value_free [17:37:42]json_value_free done [17:37:42]process_json_proto returns [17:37:42]Send response to host [17:37:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155631,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:37:42]free response buf [17:37:42]execute_script done [17:37:42]execute_script returns [17:37:42]free content buf [17:37:42]Sock 8.Close socket [17:37:42]Sock 8.Thread stoped [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:17]OFD Sender: No OFD packet to send [17:42:22]OFD Sender: No OFD packet to send [17:42:27]OFD Sender: No OFD packet to send [17:42:32]OFD Sender: No OFD packet to send [17:42:37]OFD Sender: No OFD packet to send [17:42:42]OFD Sender: No OFD packet to send [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:16]accept exits with 9 [17:43:16]New connection [17:43:16]New thread 3066637668 created [17:43:16]Thread 3066781028 joined [17:43:16]Waiting for new connection... [17:43:16] Sock 9.Parse request [17:43:16]Sock 9.Check first char [17:43:16]Sock 9.First char is OK [17:43:16]request: POST /json_proto HTTP/1.0 [17:43:16]Method: POST [17:43:16]URL: /json_proto [17:43:16]Method is POST - this is cgi request [17:43:16]url: /json_proto [17:43:16]query_string will be loaded in cgi processing [17:43:16]execute_cgi json_proto POST (null) [17:43:16]execute_cgi path=json_proto method=POST [17:43:16]POST find Content-Length [17:43:16]Host: 172.17.63.3:8080 [17:43:16]Content-Length: 676 [17:43:16]Content-Type: application/json [17:43:16] [17:43:16]POST finish read [17:43:16]Found Content-Length = 676 [17:43:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:16]execute_script... [17:43: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)98438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:16]POST & json_proto [17:43:16]process_json_proto [17:43:16]json parsed OK: [17:43:16]protocol is kg_v1.0 [17:43:16]action value=close_receipt [17:43:16]process_action close_receipt [17:43:16]cmd_close_receipt [17:43:16]MH_GetDate [17:43:16]Write to MH i2c: F0 00 00 CB 19 D3 [17:43:16]Write i2c OK [17:43:16]MH_I2C_Read... [17:43:16]Read from MH i2c: F0 [17:43:16]MH_I2C_Read... [17:43:16]Read from MH i2c: F0 09 00 [17:43:16]MH_I2C_Read... [17:43:16]Read from MH i2c: F0 09 00 CB 19 00 36 87 1A 67 50 D1 6C 64 0B [17:43:16]GetLastDocTimeStamp 1729791460 [17:43:16]current date 1729791798 [17:43:16]FM_GetShiftState [17:43:16]SAM_PROTO_GetShiftState [17:43:16]wFMCommunicate request_size=4 [17:43:16]MH_SAM_APDU [17:43:16]CAPDU: 80 13 01 00 [17:43:16]Write to MH i2c: E2 08 00 CC 19 80 13 01 00 00 00 00 00 62 [17:43:16]Write i2c OK [17:43:16]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 0E 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 0E 00 CC 19 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AF [17:43:17]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:43:17]wFMCommunicate OK [17:43:17]SAM_PROTO_GetShiftState done [17:43:17]FM_GetShiftState done [17:43:17]opened in 1729729836 [17:43:17]opened+sec_in_day 1729816236 [17:43:17]quantity*price = 30038 [17:43:17]sum+1 = 30039 [17:43:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 257 24.10.2024 17:43 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155632 ФПД: 82345117136233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174318&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155632&fm=82345117136233&tin=02508201610067®Number=0000000000091693&sum=30000 [17:43:18]StoreToDocumentArchive [17:43:18]shift 534 fd 155632 [17:43:18]save to /storage/0534/doc_00155632 [17:43:18]save last doc name /storage/0534/doc_00155632 to /storage/kkm_last_doc_name [17:43:18]save OK [17:43:18]Clear old archive folders... [17:43:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:18]tlvbuf is B6E97130 [17:43:18]SAM_PROTO_ClearQueue [17:43:18]wFMCommunicate request_size=4 [17:43:18]MH_SAM_APDU [17:43:18]CAPDU: 80 09 00 00 [17:43:18]Write to MH i2c: E2 08 00 D9 19 80 09 00 00 00 00 00 00 64 [17:43:18]Write i2c OK [17:43:18]MH_I2C_Read... [17:43:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:18]Read from MH i2c: E2 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: E2 03 00 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: E2 03 00 D9 19 00 90 00 66 [17:43:18]RAPDU: 90 00 [17:43:18]wFMCommunicate OK [17:43:18]SAM_PROTO_ClearQueue done [17:43:18]KKMCreateOFDPacket [17:43:18]OFDProtocolAddRootSTLVToBuf [17:43:18]FM_MakeSignedData [17:43:18]FM_MakeSignedData [17:43:18]SAM_PROTO_SignData [17:43:18]wFMCommunicate request_size=4 [17:43:18]MH_SAM_APDU [17:43:18]CAPDU: 80 0D 01 02 [17:43:18]Write to MH i2c: E2 08 00 DA 19 80 0D 01 02 00 00 00 00 6C [17:43:18]Write i2c OK [17:43:18]MH_I2C_Read... [17:43:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:18]Read from MH i2c: E2 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: E2 03 00 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: E2 03 00 DA 19 00 90 00 67 [17:43:18]RAPDU: 90 00 [17:43:18]wFMCommunicate OK [17:43:18]wFMCommunicate request_size=255 [17:43:18]MH_SAM_APDU [17:43:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 36 87 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 5F 02 00 35 04 06 00 4A [17:43:18]Write to MH i2c: E2 02 01 DB 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 36 87 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 5F 02 00 35 04 06 00 4A 00 00 E7 [17:43:18]Write i2c OK [17:43:18]MH_I2C_Read... [17:43:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:18]Read from MH i2c: E2 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: E2 03 00 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: E2 03 00 DB 19 00 90 00 68 [17:43:18]RAPDU: 90 00 [17:43:18]wFMCommunicate OK [17:43:18]wFMCommunicate request_size=10 [17:43:18]MH_SAM_APDU [17:43:18]CAPDU: 80 0D 02 02 05 E4 77 74 B5 69 [17:43:18]Write to MH i2c: E2 0D 00 DC 19 80 0D 02 02 05 00 E4 77 74 B5 69 00 00 66 [17:43:18]Write i2c OK [17:43:18]MH_I2C_Read... [17:43:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:18]Read from MH i2c: E2 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: E2 03 00 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: E2 03 00 DC 19 00 90 00 69 [17:43:18]RAPDU: 90 00 [17:43:18]wFMCommunicate OK [17:43:18]wFMCommunicate request_size=4 [17:43:18]MH_SAM_APDU [17:43:18]CAPDU: 80 0D 03 02 [17:43:18]Write to MH i2c: E2 08 00 DD 19 80 0D 03 02 00 00 00 00 71 [17:43:18]Write i2c OK [17:43:18]MH_I2C_Read... [17:43:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:18]Read from MH i2c: E2 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: E2 0B 00 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: E2 0B 00 DD 19 00 DD BD F4 92 BD 67 2C AE 90 00 90 [17:43:18]RAPDU: DD BD F4 92 BD 67 2C AE 90 00 [17:43:18]wFMCommunicate OK [17:43:18]SAM_PROTO_SignData done [17:43:18]FM_MakeSignedData done [17:43:18]CreateOFDProtocolMessage [17:43:18]wFMCommunicate request_size=4 [17:43:18]MH_SAM_APDU [17:43:18]CAPDU: 80 11 00 00 [17:43:18]Write to MH i2c: E2 08 00 DE 19 80 11 00 00 00 00 00 00 71 [17:43:18]Write i2c OK [17:43:18]MH_I2C_Read... [17:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:18]Read from MH i2c: E2 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: E2 17 00 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: E2 17 00 DE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C6 [17:43:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:43:18]wFMCommunicate OK [17:43:18]CreateOFDProtocolMessage done [17:43:18]OFDSenderStorePacket 155632 [17:43:18]StoreOFDPacket docnum=155632 [17:43:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 68 F3 07 01 65 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 36 87 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 5F 02 00 35 04 06 00 4A E4 77 74 B5 69 DD BD F4 92 BD 67 2C AE [17:43:18]CheckFolder [17:43:18]dirname=/storage/ofd_packets [17:43:18]CheckFolder done [17:43:18]ProducePacketName [17:43:18]name=ofd_packets/00155632 [17:43:18]NVStorageSaveData ofd_packets/00155632 [17:43:18]File name is /storage/ofd_packets/00155632 [17:43:18]Write 301 bytes [17:43:18]NVStorageSaveData done [17:43:18]OFDSenderStorePacket done [17:43:18]KKMCreateOFDPacket done [17:43:18]NVStorageSaveData kkm_last_timestamp [17:43:18]File name is /storage/kkm_last_timestamp [17:43:18]Write 4 bytes [17:43:18]NVStorageSaveData done [17:43:18]ExternCall_PrintAddStr [17:43:18]wPrintStart [17:43:18]Write to MH i2c: 01 00 00 DF 19 F8 [17:43:18]Write i2c OK [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: 01 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: 01 07 00 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: 01 07 00 DF 19 00 00 00 00 00 FF 0F 0D [17:43:18]RasterBufferAndPrint [17:43:18]line Счет N : (1)98438 [17:43:18]line ИНН: 02508201610067 [17:43:18]line Контрольно-Кассовый Чек [17:43:18]line ПРОДАЖА [17:43:18]line ТРК (МРК, ГНК) : 11 [17:43:18]line Товар: 2710124130 [17:43:18]line Аи-92-К-5 [17:43:18]line 4.490 * 66.90 [17:43:18]line = 300.38 [17:43:18]line НДС 12% НСП 1% [17:43:18]line > о реализуемом товаре [17:43:18]line ОКРУГЛЕНИЕ: -0.38 [17:43:18]line ИТОГО: 300.00 [17:43:18]line Внесено: 300.00 [17:43:18]line СДАЧА: 0.00 [17:43:18]line НСП 1% : 2.66 [17:43:18]line НДС 12% : 31.90 [17:43:18]line Наличными: 300.00 [17:43:18]line Безнал.: 0.00 [17:43:18]line Место: АЗС № 143 "Партнер Нефть" [17:43:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:43:18]line СНО: Общий режим [17:43:18]line Чек 257 24.10.2024 17:43 [17:43:18]line Смена: 534 ФФД: 1.0 [17:43:18]line ЗНМ: 0300000096 [17:43:18]line РНМ: 0000000000091693 [17:43:18]line Версия ККМ: 001 [17:43:18]line ФМ: 0000000000871792 [17:43:18]line ФД: 155632 [17:43:18]line ФПД: 82345117136233 [17:43:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174318&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155632&fm=82345117136233&tin=02508201610067®Number=0000000000091693&sum=30000 [17:43:19]OFD Sender: Processing packet 155632 [packets to send 31, broken 30] [17:43:19]ProducePacketName [17:43:19]name=ofd_packets/00155632 [17:43:19]OFD Sender: To server: pG, [17:43:19]CommunicateWithHost lk.salyk.kg:30040 [17:43:19]ConnectInit lk.salyk.kg [17:43:19]written 0, free lines is 4095 [17:43:19]Connected sock=10 [17:43:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 68 F3 07 01 65 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 36 87 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 5F 02 00 35 04 06 00 4A E4 77 74 B5 69 DD BD F4 92 BD 67 2C AE [17:43:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AB 50 47 00 AF 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 39 32 10 04 04 00 F0 5F 02 00 F4 03 04 00 AE 2C 1A 67 B6 04 01 00 00 63 E4 6C F5 C8 DA 0A EE [17:43:19]CommunicateWithHost err = 0 [17:43:19]CheckOFDResponse [17:43:19]1017 (14) - 77093643461234 [17:43:19]1041 (16) - 0000000000871792 [17:43:19]1040 (4) - 155632 [17:43:19]1012 (4) - 24.10.2024 11:17 [17:43:19]1206 (1) - 0 [17:43:19]OFD Sender: Remove packet 155632 [17:43:19]ProducePacketName [17:43:19]name=ofd_packets/00155632 [17:43:19]NVStorageDeleteData [17:43:19]Write to MH i2c: 01 00 00 0A 1A 24 [17:43:19]Write i2c OK [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: 01 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: 01 07 00 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: 01 07 00 0A 1A 00 00 00 00 00 D4 0C 0B [17:43:19]RasterBufferAndPrint [17:43:19]line [17:43:19]line [17:43:19]line [17:43:19]line [17:43:19]line [17:43:19]written 0, free lines is 3292 [17:43:19]process_action close_receipt done [17:43:19]requested_data is exist [17:43:19]produce_requested_data [17:43:19]requested_item fm.sn is exist - process it [17:43:19]wFMCommunicate request_size=4 [17:43:19]MH_SAM_APDU [17:43:19]CAPDU: 80 11 00 00 [17:43:19]Write to MH i2c: E2 08 00 11 1A 80 11 00 00 00 00 00 00 A5 [17:43:19]Write i2c OK [17:43:19]MH_I2C_Read... [17:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:19]Read from MH i2c: E2 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: E2 17 00 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: E2 17 00 11 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FA [17:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:43:19]wFMCommunicate OK [17:43:19]requested_item fd.num is exist - process it [17:43:19]SAM_PROTO_GetFieldsCounters [17:43:19]wFMCommunicate request_size=4 [17:43:19]MH_SAM_APDU [17:43:19]CAPDU: 80 13 00 00 [17:43:19]Write to MH i2c: E2 08 00 12 1A 80 13 00 00 00 00 00 00 A8 [17:43:19]Write i2c OK [17:43:19]MH_I2C_Read... [17:43:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:19]Read from MH i2c: E2 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: E2 62 00 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: E2 62 00 12 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F0 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [17:43: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F0 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:19]wFMCommunicate OK [17:43:19]SAM_PROTO_GetFieldsCounters done [17:43:19]requested_item shift.num is exist - process it [17:43:19]requested_item shift.opened is exist - process it [17:43:19]req_shift_opened [17:43:19]FM_GetShiftState [17:43:19]SAM_PROTO_GetShiftState [17:43:19]wFMCommunicate request_size=4 [17:43:19]MH_SAM_APDU [17:43:19]CAPDU: 80 13 01 00 [17:43:19]Write to MH i2c: E2 08 00 13 1A 80 13 01 00 00 00 00 00 AA [17:43:19]Write i2c OK [17:43:19]MH_I2C_Read... [17:43:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:19]Read from MH i2c: E2 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: E2 0E 00 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: E2 0E 00 13 1A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F7 [17:43:19]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:43:19]wFMCommunicate OK [17:43:19]SAM_PROTO_GetShiftState done [17:43:19]FM_GetShiftState done [17:43:19]req_shift_opened done [17:43:19]requested_item shift.open_date is exist - process it [17:43:19]req_shift_open_date [17:43:19]req_shift_open_date done [17:43:19]produce_requested_data done [17:43:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155632,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:43:19]process_action_free close_receipt [17:43:19]json_value_free [17:43:19]json_value_free done [17:43:19]process_json_proto returns [17:43:19]Send response to host [17:43:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155632,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:43:19]free response buf [17:43:19]execute_script done [17:43:19]execute_script returns [17:43:19]free content buf [17:43:19]Sock 9.Close socket [17:43:19]Sock 9.Thread stoped [17:43:19]OFD Sender: No OFD packet to send [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:08]accept exits with 8 [17:47:08]New connection [17:47:08]New thread 3066781028 created [17:47:08]Thread 3066637668 joined [17:47:08]Waiting for new connection... [17:47:08] Sock 8.Parse request [17:47:08]Sock 8.Check first char [17:47:08]Sock 8.First char is OK [17:47:08]request: POST /json_proto HTTP/1.0 [17:47:08]Method: POST [17:47:08]URL: /json_proto [17:47:08]Method is POST - this is cgi request [17:47:08]url: /json_proto [17:47:08]query_string will be loaded in cgi processing [17:47:08]execute_cgi json_proto POST (null) [17:47:08]execute_cgi path=json_proto method=POST [17:47:08]POST find Content-Length [17:47:08]Host: 172.17.63.3:8080 [17:47:08]Content-Length: 676 [17:47:08]Content-Type: application/json [17:47:08] [17:47:08]POST finish read [17:47:08]Found Content-Length = 676 [17:47:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:08]execute_script... [17:47:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:08]POST & json_proto [17:47:08]process_json_proto [17:47:08]json parsed OK: [17:47:08]protocol is kg_v1.0 [17:47:08]action value=close_receipt [17:47:08]process_action close_receipt [17:47:08]cmd_close_receipt [17:47:08]MH_GetDate [17:47:08]Write to MH i2c: F0 00 00 14 1A 1D [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: F0 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: F0 09 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: F0 09 00 14 1A 00 1D 88 1A 67 50 D1 6C 64 3D [17:47:08]GetLastDocTimeStamp 1729791798 [17:47:08]current date 1729792029 [17:47:08]FM_GetShiftState [17:47:08]SAM_PROTO_GetShiftState [17:47:08]wFMCommunicate request_size=4 [17:47:08]MH_SAM_APDU [17:47:08]CAPDU: 80 13 01 00 [17:47:08]Write to MH i2c: E2 08 00 15 1A 80 13 01 00 00 00 00 00 AC [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:08]Read from MH i2c: E2 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 0E 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 0E 00 15 1A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F9 [17:47:08]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:47:08]wFMCommunicate OK [17:47:08]SAM_PROTO_GetShiftState done [17:47:08]FM_GetShiftState done [17:47:08]opened in 1729729836 [17:47:08]opened+sec_in_day 1729816236 [17:47:08]quantity*price = 60009 [17:47:08]sum+1 = 60010 [17:47:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 258 24.10.2024 17:47 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155633 ФПД: 54840538242881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174709&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155633&fm=54840538242881&tin=02508201610067®Number=0000000000091693&sum=60000 [17:47:09]StoreToDocumentArchive [17:47:09]shift 534 fd 155633 [17:47:09]save to /storage/0534/doc_00155633 [17:47:09]save last doc name /storage/0534/doc_00155633 to /storage/kkm_last_doc_name [17:47:09]save OK [17:47:09]Clear old archive folders... [17:47:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:47:09]tlvbuf is 01F995D0 [17:47:09]SAM_PROTO_ClearQueue [17:47:09]wFMCommunicate request_size=4 [17:47:09]MH_SAM_APDU [17:47:09]CAPDU: 80 09 00 00 [17:47:09]Write to MH i2c: E2 08 00 22 1A 80 09 00 00 00 00 00 00 AE [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:09]Read from MH i2c: E2 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 03 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 03 00 22 1A 00 90 00 B0 [17:47:09]RAPDU: 90 00 [17:47:09]wFMCommunicate OK [17:47:09]SAM_PROTO_ClearQueue done [17:47:09]KKMCreateOFDPacket [17:47:09]OFDProtocolAddRootSTLVToBuf [17:47:09]FM_MakeSignedData [17:47:09]FM_MakeSignedData [17:47:09]SAM_PROTO_SignData [17:47:09]wFMCommunicate request_size=4 [17:47:09]MH_SAM_APDU [17:47:09]CAPDU: 80 0D 01 02 [17:47:09]Write to MH i2c: E2 08 00 23 1A 80 0D 01 02 00 00 00 00 B6 [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:09]Read from MH i2c: E2 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 03 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 03 00 23 1A 00 90 00 B1 [17:47:09]RAPDU: 90 00 [17:47:09]wFMCommunicate OK [17:47:09]wFMCommunicate request_size=255 [17:47:09]MH_SAM_APDU [17:47:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 1D 88 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 5F 02 00 35 04 06 00 31 [17:47:09]Write to MH i2c: E2 02 01 24 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 1D 88 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 5F 02 00 35 04 06 00 31 00 00 EB [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:09]Read from MH i2c: E2 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 03 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 03 00 24 1A 00 90 00 B2 [17:47:09]RAPDU: 90 00 [17:47:09]wFMCommunicate OK [17:47:09]wFMCommunicate request_size=10 [17:47:09]MH_SAM_APDU [17:47:09]CAPDU: 80 0D 02 02 05 E0 8E CD 1F 41 [17:47:09]Write to MH i2c: E2 0D 00 25 1A 80 0D 02 02 05 00 E0 8E CD 1F 41 00 00 5E [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:09]Read from MH i2c: E2 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 03 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 03 00 25 1A 00 90 00 B3 [17:47:09]RAPDU: 90 00 [17:47:09]wFMCommunicate OK [17:47:09]wFMCommunicate request_size=4 [17:47:09]MH_SAM_APDU [17:47:09]CAPDU: 80 0D 03 02 [17:47:09]Write to MH i2c: E2 08 00 26 1A 80 0D 03 02 00 00 00 00 BB [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:09]Read from MH i2c: E2 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 0B 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 0B 00 26 1A 00 29 7C 3A 1A 67 0B BA B3 90 00 94 [17:47:09]RAPDU: 29 7C 3A 1A 67 0B BA B3 90 00 [17:47:09]wFMCommunicate OK [17:47:09]SAM_PROTO_SignData done [17:47:09]FM_MakeSignedData done [17:47:09]CreateOFDProtocolMessage [17:47:09]wFMCommunicate request_size=4 [17:47:09]MH_SAM_APDU [17:47:09]CAPDU: 80 11 00 00 [17:47:09]Write to MH i2c: E2 08 00 27 1A 80 11 00 00 00 00 00 00 BB [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:09]Read from MH i2c: E2 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 17 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: E2 17 00 27 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 10 [17:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:47:09]wFMCommunicate OK [17:47:09]CreateOFDProtocolMessage done [17:47:09]OFDSenderStorePacket 155633 [17:47:09]StoreOFDPacket docnum=155633 [17:47:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5A 15 07 01 40 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 1D 88 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 5F 02 00 35 04 06 00 31 E0 8E CD 1F 41 29 7C 3A 1A 67 0B BA B3 [17:47:09]CheckFolder [17:47:09]dirname=/storage/ofd_packets [17:47:09]CheckFolder done [17:47:09]ProducePacketName [17:47:09]name=ofd_packets/00155633 [17:47:09]NVStorageSaveData ofd_packets/00155633 [17:47:09]File name is /storage/ofd_packets/00155633 [17:47:09]Write 301 bytes [17:47:09]NVStorageSaveData done [17:47:09]OFDSenderStorePacket done [17:47:09]KKMCreateOFDPacket done [17:47:09]NVStorageSaveData kkm_last_timestamp [17:47:09]File name is /storage/kkm_last_timestamp [17:47:09]Write 4 bytes [17:47:09]NVStorageSaveData done [17:47:09]ExternCall_PrintAddStr [17:47:09]wPrintStart [17:47:09]Write to MH i2c: 01 00 00 28 1A 42 [17:47:09]Write i2c OK [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 07 00 [17:47:09]MH_I2C_Read... [17:47:09]Read from MH i2c: 01 07 00 28 1A 00 00 00 00 00 FF 0F 57 [17:47:09]RasterBufferAndPrint [17:47:09]line Счет N : (1)98439 [17:47:09]line ИНН: 02508201610067 [17:47:09]line Контрольно-Кассовый Чек [17:47:09]line ПРОДАЖА [17:47:09]line ТРК (МРК, ГНК) : 31 [17:47:09]line Товар: 2710124130 [17:47:09]line Аи-92-К-5 [17:47:09]line 8.970 * 66.90 [17:47:09]line = 600.09 [17:47:09]line НДС 12% НСП 1% [17:47:09]line > о реализуемом товаре [17:47:09]line ОКРУГЛЕНИЕ: -0.09 [17:47:09]line ИТОГО: 600.00 [17:47:09]line Внесено: 600.00 [17:47:09]line СДАЧА: 0.00 [17:47:09]line НСП 1% : 5.31 [17:47:09]line НДС 12% : 63.73 [17:47:09]line Наличными: 600.00 [17:47:09]line Безнал.: 0.00 [17:47:09]line Место: АЗС № 143 "Партнер Нефть" [17:47:09]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:47:09]line СНО: Общий режим [17:47:09]line Чек 258 24.10.2024 17:47 [17:47:09]line Смена: 534 ФФД: 1.0 [17:47:09]line ЗНМ: 0300000096 [17:47:09]line РНМ: 0000000000091693 [17:47:09]line Версия ККМ: 001 [17:47:09]line ФМ: 0000000000871792 [17:47:09]line ФД: 155633 [17:47:09]line ФПД: 54840538242881 [17:47:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174709&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155633&fm=54840538242881&tin=02508201610067®Number=0000000000091693&sum=60000 [17:47:10]OFD Sender: Processing packet 155633 [packets to send 31, broken 30] [17:47:10]ProducePacketName [17:47:10]name=ofd_packets/00155633 [17:47:10]OFD Sender: To server: pG, [17:47:10]CommunicateWithHost lk.salyk.kg:30040 [17:47:10]ConnectInit lk.salyk.kg [17:47:10]written 0, free lines is 4095 [17:47:10]Connected sock=10 [17:47:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5A 15 07 01 40 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 1D 88 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 5F 02 00 35 04 06 00 31 E0 8E CD 1F 41 29 7C 3A 1A 67 0B BA B3 [17:47: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 39 32 4F 00 00 00 71 B3 47 00 93 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 5F 02 00 F4 03 04 00 95 2D 1A 67 B6 04 01 00 00 46 DE 15 68 F9 FE AC 45 [17:47:10]CommunicateWithHost err = 0 [17:47:10]CheckOFDResponse [17:47:10]1017 (14) - 77093643461234 [17:47:10]1041 (16) - 0000000000871792 [17:47:10]1040 (4) - 155633 [17:47:10]1012 (4) - 24.10.2024 11:20 [17:47:10]1206 (1) - 0 [17:47:10]OFD Sender: Remove packet 155633 [17:47:10]ProducePacketName [17:47:10]name=ofd_packets/00155633 [17:47:10]NVStorageDeleteData [17:47:10]Write to MH i2c: 01 00 00 53 1A 6D [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: 01 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: 01 07 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: 01 07 00 53 1A 00 00 00 00 00 DA 0C 5A [17:47:10]RasterBufferAndPrint [17:47:10]line [17:47:10]line [17:47:10]line [17:47:10]line [17:47:10]line [17:47:10]written 0, free lines is 3297 [17:47:10]process_action close_receipt done [17:47:10]requested_data is exist [17:47:10]produce_requested_data [17:47:10]requested_item fm.sn is exist - process it [17:47:10]wFMCommunicate request_size=4 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 11 00 00 [17:47:10]Write to MH i2c: E2 08 00 5A 1A 80 11 00 00 00 00 00 00 EE [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 17 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 17 00 5A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 43 [17:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:47:10]wFMCommunicate OK [17:47:10]requested_item fd.num is exist - process it [17:47:10]SAM_PROTO_GetFieldsCounters [17:47:10]wFMCommunicate request_size=4 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 13 00 00 [17:47:10]Write to MH i2c: E2 08 00 5B 1A 80 13 00 00 00 00 00 00 F1 [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 62 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 62 00 5B 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F1 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [17:47: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F1 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:10]wFMCommunicate OK [17:47:10]SAM_PROTO_GetFieldsCounters done [17:47:10]requested_item shift.num is exist - process it [17:47:10]requested_item shift.opened is exist - process it [17:47:10]req_shift_opened [17:47:10]FM_GetShiftState [17:47:10]SAM_PROTO_GetShiftState [17:47:10]wFMCommunicate request_size=4 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 13 01 00 [17:47:10]Write to MH i2c: E2 08 00 5C 1A 80 13 01 00 00 00 00 00 F3 [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 0E 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 0E 00 5C 1A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 40 [17:47:10]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:47:10]wFMCommunicate OK [17:47:10]SAM_PROTO_GetShiftState done [17:47:10]FM_GetShiftState done [17:47:10]req_shift_opened done [17:47:10]requested_item shift.open_date is exist - process it [17:47:10]req_shift_open_date [17:47:10]req_shift_open_date done [17:47:10]produce_requested_data done [17:47:10]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155633,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:47:10]process_action_free close_receipt [17:47:10]json_value_free [17:47:10]json_value_free done [17:47:10]process_json_proto returns [17:47:10]Send response to host [17:47:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155633,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:47:10]free response buf [17:47:10]execute_script done [17:47:10]execute_script returns [17:47:10]free content buf [17:47:10]Sock 8.Close socket [17:47:10]Sock 8.Thread stoped [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:39]accept exits with 9 [17:48:39]New connection [17:48:39]New thread 3066637668 created [17:48:39]Thread 3066781028 joined [17:48:39]Waiting for new connection... [17:48:39] Sock 9.Parse request [17:48:39]Sock 9.Check first char [17:48:39]Sock 9.First char is OK [17:48:39]request: POST /json_proto HTTP/1.0 [17:48:39]Method: POST [17:48:39]URL: /json_proto [17:48:39]Method is POST - this is cgi request [17:48:39]url: /json_proto [17:48:39]query_string will be loaded in cgi processing [17:48:39]execute_cgi json_proto POST (null) [17:48:39]execute_cgi path=json_proto method=POST [17:48:39]POST find Content-Length [17:48:39]Host: 172.17.63.3:8080 [17:48:39]Content-Length: 676 [17:48:39]Content-Type: application/json [17:48:39] [17:48:39]POST finish read [17:48:39]Found Content-Length = 676 [17:48:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:39]execute_script... [17:48: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)98440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:39]POST & json_proto [17:48:39]process_json_proto [17:48:39]json parsed OK: [17:48:39]protocol is kg_v1.0 [17:48:39]action value=close_receipt [17:48:39]process_action close_receipt [17:48:39]cmd_close_receipt [17:48:39]MH_GetDate [17:48:39]Write to MH i2c: F0 00 00 5D 1A 66 [17:48:39]Write i2c OK [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: F0 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: F0 09 00 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: F0 09 00 5D 1A 00 78 88 1A 67 50 D1 6C 64 E1 [17:48:39]GetLastDocTimeStamp 1729792029 [17:48:39]current date 1729792120 [17:48:39]FM_GetShiftState [17:48:39]SAM_PROTO_GetShiftState [17:48:39]wFMCommunicate request_size=4 [17:48:39]MH_SAM_APDU [17:48:39]CAPDU: 80 13 01 00 [17:48:39]Write to MH i2c: E2 08 00 5E 1A 80 13 01 00 00 00 00 00 F5 [17:48:39]Write i2c OK [17:48:39]MH_I2C_Read... [17:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:39]Read from MH i2c: E2 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: E2 0E 00 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: E2 0E 00 5E 1A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 42 [17:48:39]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:48:39]wFMCommunicate OK [17:48:39]SAM_PROTO_GetShiftState done [17:48:39]FM_GetShiftState done [17:48:39]opened in 1729729836 [17:48:39]opened+sec_in_day 1729816236 [17:48:39]quantity*price = 34052 [17:48:39]sum+1 = 34053 [17:48:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 259 24.10.2024 17:48 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155634 ФПД: 94842836082431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174840&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155634&fm=94842836082431&tin=02508201610067®Number=0000000000091693&sum=34000 [17:48:40]StoreToDocumentArchive [17:48:40]shift 534 fd 155634 [17:48:40]save to /storage/0534/doc_00155634 [17:48:40]save last doc name /storage/0534/doc_00155634 to /storage/kkm_last_doc_name [17:48:40]save OK [17:48:40]Clear old archive folders... [17:48:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:40]tlvbuf is B6F2B2D0 [17:48:40]SAM_PROTO_ClearQueue [17:48:40]wFMCommunicate request_size=4 [17:48:40]MH_SAM_APDU [17:48:40]CAPDU: 80 09 00 00 [17:48:40]Write to MH i2c: E2 08 00 6B 1A 80 09 00 00 00 00 00 00 F7 [17:48:40]Write i2c OK [17:48:40]MH_I2C_Read... [17:48:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:40]Read from MH i2c: E2 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 03 00 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 03 00 6B 1A 00 90 00 F9 [17:48:40]RAPDU: 90 00 [17:48:40]wFMCommunicate OK [17:48:40]SAM_PROTO_ClearQueue done [17:48:40]KKMCreateOFDPacket [17:48:40]OFDProtocolAddRootSTLVToBuf [17:48:40]FM_MakeSignedData [17:48:40]FM_MakeSignedData [17:48:40]SAM_PROTO_SignData [17:48:40]wFMCommunicate request_size=4 [17:48:40]MH_SAM_APDU [17:48:40]CAPDU: 80 0D 01 02 [17:48:40]Write to MH i2c: E2 08 00 6C 1A 80 0D 01 02 00 00 00 00 FF [17:48:40]Write i2c OK [17:48:40]MH_I2C_Read... [17:48:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:40]Read from MH i2c: E2 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 03 00 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 03 00 6C 1A 00 90 00 FA [17:48:40]RAPDU: 90 00 [17:48:40]wFMCommunicate OK [17:48:40]wFMCommunicate request_size=255 [17:48:40]MH_SAM_APDU [17:48: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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 78 88 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 5F 02 00 35 04 06 00 56 [17:48:40]Write to MH i2c: E2 02 01 6D 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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 78 88 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 5F 02 00 35 04 06 00 56 00 00 12 [17:48:40]Write i2c OK [17:48:40]MH_I2C_Read... [17:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:41]Read from MH i2c: E2 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 03 00 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 03 00 6D 1A 00 90 00 FB [17:48:41]RAPDU: 90 00 [17:48:41]wFMCommunicate OK [17:48:41]wFMCommunicate request_size=10 [17:48:41]MH_SAM_APDU [17:48:41]CAPDU: 80 0D 02 02 05 42 51 8D DE FF [17:48:41]Write to MH i2c: E2 0D 00 6E 1A 80 0D 02 02 05 00 42 51 8D DE FF 00 00 09 [17:48:41]Write i2c OK [17:48:41]MH_I2C_Read... [17:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:41]Read from MH i2c: E2 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 03 00 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 03 00 6E 1A 00 90 00 FC [17:48:41]RAPDU: 90 00 [17:48:41]wFMCommunicate OK [17:48:41]wFMCommunicate request_size=4 [17:48:41]MH_SAM_APDU [17:48:41]CAPDU: 80 0D 03 02 [17:48:41]Write to MH i2c: E2 08 00 6F 1A 80 0D 03 02 00 00 00 00 04 [17:48:41]Write i2c OK [17:48:41]MH_I2C_Read... [17:48:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:41]OFD Sender: No OFD packet to send [17:48:41]Read from MH i2c: E2 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 0B 00 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 0B 00 6F 1A 00 28 48 9E F9 50 14 89 58 90 00 51 [17:48:41]RAPDU: 28 48 9E F9 50 14 89 58 90 00 [17:48:41]wFMCommunicate OK [17:48:41]SAM_PROTO_SignData done [17:48:41]FM_MakeSignedData done [17:48:41]CreateOFDProtocolMessage [17:48:41]wFMCommunicate request_size=4 [17:48:41]MH_SAM_APDU [17:48:41]CAPDU: 80 11 00 00 [17:48:41]Write to MH i2c: E2 08 00 70 1A 80 11 00 00 00 00 00 00 04 [17:48:41]Write i2c OK [17:48:41]MH_I2C_Read... [17:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:41]Read from MH i2c: E2 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 17 00 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 17 00 70 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 59 [17:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:48:41]wFMCommunicate OK [17:48:41]CreateOFDProtocolMessage done [17:48:41]OFDSenderStorePacket 155634 [17:48:41]StoreOFDPacket docnum=155634 [17:48:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 84 15 07 01 9F 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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 78 88 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 5F 02 00 35 04 06 00 56 42 51 8D DE FF 28 48 9E F9 50 14 89 58 [17:48:41]CheckFolder [17:48:41]dirname=/storage/ofd_packets [17:48:41]CheckFolder done [17:48:41]ProducePacketName [17:48:41]name=ofd_packets/00155634 [17:48:41]NVStorageSaveData ofd_packets/00155634 [17:48:41]File name is /storage/ofd_packets/00155634 [17:48:41]Write 301 bytes [17:48:41]NVStorageSaveData done [17:48:41]OFDSenderStorePacket done [17:48:41]KKMCreateOFDPacket done [17:48:41]NVStorageSaveData kkm_last_timestamp [17:48:41]File name is /storage/kkm_last_timestamp [17:48:41]Write 4 bytes [17:48:41]NVStorageSaveData done [17:48:41]ExternCall_PrintAddStr [17:48:41]wPrintStart [17:48:41]Write to MH i2c: 01 00 00 71 1A 8B [17:48:41]Write i2c OK [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: 01 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: 01 07 00 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: 01 07 00 71 1A 00 00 00 00 00 FF 0F A0 [17:48:41]RasterBufferAndPrint [17:48:41]line Счет N : (1)98440 [17:48:41]line ИНН: 02508201610067 [17:48:41]line Контрольно-Кассовый Чек [17:48:41]line ПРОДАЖА [17:48:41]line ТРК (МРК, ГНК) : 31 [17:48:41]line Товар: 2710124130 [17:48:41]line Аи-92-К-5 [17:48:41]line 5.090 * 66.90 [17:48:41]line = 340.52 [17:48:41]line НДС 12% НСП 1% [17:48:41]line > о реализуемом товаре [17:48:41]line ОКРУГЛЕНИЕ: -0.52 [17:48:41]line ИТОГО: 340.00 [17:48:41]line Внесено: 340.00 [17:48:41]line СДАЧА: 0.00 [17:48:41]line НСП 1% : 3.01 [17:48:41]line НДС 12% : 36.16 [17:48:41]line Наличными: 340.00 [17:48:41]line Безнал.: 0.00 [17:48:41]line Место: АЗС № 143 "Партнер Нефть" [17:48:41]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:48:41]line СНО: Общий режим [17:48:41]line Чек 259 24.10.2024 17:48 [17:48:41]line Смена: 534 ФФД: 1.0 [17:48:41]line ЗНМ: 0300000096 [17:48:41]line РНМ: 0000000000091693 [17:48:41]line Версия ККМ: 001 [17:48:41]line ФМ: 0000000000871792 [17:48:41]line ФД: 155634 [17:48:41]line ФПД: 94842836082431 [17:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174840&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155634&fm=94842836082431&tin=02508201610067®Number=0000000000091693&sum=34000 [17:48:41]OFD Sender: Processing packet 155634 [packets to send 31, broken 30] [17:48:41]ProducePacketName [17:48:41]name=ofd_packets/00155634 [17:48:41]OFD Sender: To server: pG, [17:48:41]CommunicateWithHost lk.salyk.kg:30040 [17:48:41]ConnectInit lk.salyk.kg [17:48:41]written 0, free lines is 4095 [17:48:41]Connected sock=8 [17:48: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 39 32 0F 01 00 00 84 15 07 01 9F 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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 78 88 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 5F 02 00 35 04 06 00 56 42 51 8D DE FF 28 48 9E F9 50 14 89 58 [17:48: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 39 32 4F 00 00 00 45 24 47 00 98 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 39 32 10 04 04 00 F2 5F 02 00 F4 03 04 00 F0 2D 1A 67 B6 04 01 00 00 9E 46 07 39 78 9D C7 4E [17:48:41]CommunicateWithHost err = 0 [17:48:41]CheckOFDResponse [17:48:41]1017 (14) - 77093643461234 [17:48:41]1041 (16) - 0000000000871792 [17:48:41]1040 (4) - 155634 [17:48:41]1012 (4) - 24.10.2024 11:22 [17:48:41]1206 (1) - 0 [17:48:41]OFD Sender: Remove packet 155634 [17:48:41]ProducePacketName [17:48:41]name=ofd_packets/00155634 [17:48:41]NVStorageDeleteData [17:48:42]Write to MH i2c: 01 00 00 9C 1A B6 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: 01 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: 01 07 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: 01 07 00 9C 1A 00 00 00 00 00 D9 0C A2 [17:48:42]RasterBufferAndPrint [17:48:42]line [17:48:42]line [17:48:42]line [17:48:42]line [17:48:42]line [17:48:42]written 0, free lines is 3296 [17:48:42]process_action close_receipt done [17:48:42]requested_data is exist [17:48:42]produce_requested_data [17:48:42]requested_item fm.sn is exist - process it [17:48:42]wFMCommunicate request_size=4 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 11 00 00 [17:48:42]Write to MH i2c: E2 08 00 A3 1A 80 11 00 00 00 00 00 00 37 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 17 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 17 00 A3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8C [17:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:48:42]wFMCommunicate OK [17:48:42]requested_item fd.num is exist - process it [17:48:42]SAM_PROTO_GetFieldsCounters [17:48:42]wFMCommunicate request_size=4 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 13 00 00 [17:48:42]Write to MH i2c: E2 08 00 A4 1A 80 13 00 00 00 00 00 00 3A [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 62 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 62 00 A4 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F2 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [17:48: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F2 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:42]wFMCommunicate OK [17:48:42]SAM_PROTO_GetFieldsCounters done [17:48:42]requested_item shift.num is exist - process it [17:48:42]requested_item shift.opened is exist - process it [17:48:42]req_shift_opened [17:48:42]FM_GetShiftState [17:48:42]SAM_PROTO_GetShiftState [17:48:42]wFMCommunicate request_size=4 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 13 01 00 [17:48:42]Write to MH i2c: E2 08 00 A5 1A 80 13 01 00 00 00 00 00 3C [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 0E 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 0E 00 A5 1A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 89 [17:48:42]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:48:42]wFMCommunicate OK [17:48:42]SAM_PROTO_GetShiftState done [17:48:42]FM_GetShiftState done [17:48:42]req_shift_opened done [17:48:42]requested_item shift.open_date is exist - process it [17:48:42]req_shift_open_date [17:48:42]req_shift_open_date done [17:48:42]produce_requested_data done [17:48:42]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155634,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:48:42]process_action_free close_receipt [17:48:42]json_value_free [17:48:42]json_value_free done [17:48:42]process_json_proto returns [17:48:42]Send response to host [17:48:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155634,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:48:42]free response buf [17:48:42]execute_script done [17:48:42]execute_script returns [17:48:42]free content buf [17:48:42]Sock 9.Close socket [17:48:42]Sock 9.Thread stoped [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:28]accept exits with 10 [17:49:28]New connection [17:49:28]New thread 3066781028 created [17:49:28]Thread 3066637668 joined [17:49:28]Waiting for new connection... [17:49:28] Sock 10.Parse request [17:49:28]Sock 10.Check first char [17:49:28]Sock 10.First char is OK [17:49:28]request: POST /json_proto HTTP/1.0 [17:49:28]Method: POST [17:49:28]URL: /json_proto [17:49:28]Method is POST - this is cgi request [17:49:28]url: /json_proto [17:49:28]query_string will be loaded in cgi processing [17:49:28]execute_cgi json_proto POST (null) [17:49:28]execute_cgi path=json_proto method=POST [17:49:28]POST find Content-Length [17:49:28]Host: 172.17.63.3:8080 [17:49:28]Content-Length: 676 [17:49:28]Content-Type: application/json [17:49:28] [17:49:28]POST finish read [17:49:28]Found Content-Length = 676 [17:49:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:28]execute_script... [17:49:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:28]POST & json_proto [17:49:28]process_json_proto [17:49:28]json parsed OK: [17:49:28]protocol is kg_v1.0 [17:49:28]action value=close_receipt [17:49:28]process_action close_receipt [17:49:28]cmd_close_receipt [17:49:28]MH_GetDate [17:49:28]Write to MH i2c: F0 00 00 A6 1A AF [17:49:28]Write i2c OK [17:49:28]MH_I2C_Read... [17:49:28]Read from MH i2c: F0 [17:49:28]MH_I2C_Read... [17:49:28]Read from MH i2c: F0 09 00 [17:49:28]MH_I2C_Read... [17:49:28]Read from MH i2c: F0 09 00 A6 1A 00 A9 88 1A 67 50 D1 6C 64 5B [17:49:28]GetLastDocTimeStamp 1729792120 [17:49:28]current date 1729792169 [17:49:28]FM_GetShiftState [17:49:28]SAM_PROTO_GetShiftState [17:49:28]wFMCommunicate request_size=4 [17:49:28]MH_SAM_APDU [17:49:28]CAPDU: 80 13 01 00 [17:49:28]Write to MH i2c: E2 08 00 A7 1A 80 13 01 00 00 00 00 00 3E [17:49:28]Write i2c OK [17:49:28]MH_I2C_Read... [17:49:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:28]Read from MH i2c: E2 [17:49:28]MH_I2C_Read... [17:49:28]Read from MH i2c: E2 0E 00 [17:49:28]MH_I2C_Read... [17:49:28]Read from MH i2c: E2 0E 00 A7 1A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8B [17:49:28]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:49:28]wFMCommunicate OK [17:49:28]SAM_PROTO_GetShiftState done [17:49:28]FM_GetShiftState done [17:49:28]opened in 1729729836 [17:49:28]opened+sec_in_day 1729816236 [17:49:28]quantity*price = 50041 [17:49:28]sum+1 = 50042 [17:49:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 260 24.10.2024 17:49 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155635 ФПД: 160810463075348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174929&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155635&fm=160810463075348&tin=02508201610067®Number=0000000000091693&sum=50000 [17:49:29]StoreToDocumentArchive [17:49:29]shift 534 fd 155635 [17:49:29]save to /storage/0534/doc_00155635 [17:49:29]save last doc name /storage/0534/doc_00155635 to /storage/kkm_last_doc_name [17:49:29]save OK [17:49:29]Clear old archive folders... [17:49:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:49:29]tlvbuf is B6F2E6D0 [17:49:29]SAM_PROTO_ClearQueue [17:49:29]wFMCommunicate request_size=4 [17:49:29]MH_SAM_APDU [17:49:29]CAPDU: 80 09 00 00 [17:49:29]Write to MH i2c: E2 08 00 B4 1A 80 09 00 00 00 00 00 00 40 [17:49:29]Write i2c OK [17:49:29]MH_I2C_Read... [17:49:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:29]Read from MH i2c: E2 [17:49:29]MH_I2C_Read... [17:49:29]Read from MH i2c: E2 03 00 [17:49:29]MH_I2C_Read... [17:49:29]Read from MH i2c: E2 03 00 B4 1A 00 90 00 42 [17:49:29]RAPDU: 90 00 [17:49:29]wFMCommunicate OK [17:49:29]SAM_PROTO_ClearQueue done [17:49:29]KKMCreateOFDPacket [17:49:29]OFDProtocolAddRootSTLVToBuf [17:49:29]FM_MakeSignedData [17:49:29]FM_MakeSignedData [17:49:29]SAM_PROTO_SignData [17:49:29]wFMCommunicate request_size=4 [17:49:29]MH_SAM_APDU [17:49:29]CAPDU: 80 0D 01 02 [17:49:29]Write to MH i2c: E2 08 00 B5 1A 80 0D 01 02 00 00 00 00 48 [17:49:29]Write i2c OK [17:49:29]MH_I2C_Read... [17:49:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:29]Read from MH i2c: E2 [17:49:29]MH_I2C_Read... [17:49:29]Read from MH i2c: E2 03 00 [17:49:29]MH_I2C_Read... [17:49:29]Read from MH i2c: E2 03 00 B5 1A 00 90 00 43 [17:49:29]RAPDU: 90 00 [17:49:29]wFMCommunicate OK [17:49:29]wFMCommunicate request_size=255 [17:49:29]MH_SAM_APDU [17:49:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 A9 88 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 5F 02 00 35 04 06 00 92 [17:49:29]Write to MH i2c: E2 02 01 B6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 A9 88 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 5F 02 00 35 04 06 00 92 00 00 91 [17:49:29]Write i2c OK [17:49:29]MH_I2C_Read... [17:49:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:30]Read from MH i2c: E2 [17:49:30]MH_I2C_Read... [17:49:30]Read from MH i2c: E2 03 00 [17:49:30]MH_I2C_Read... [17:49:30]Read from MH i2c: E2 03 00 B6 1A 00 90 00 44 [17:49:30]RAPDU: 90 00 [17:49:30]wFMCommunicate OK [17:49:30]wFMCommunicate request_size=10 [17:49:30]MH_SAM_APDU [17:49:30]CAPDU: 80 0D 02 02 05 41 9A 87 1C 14 [17:49:30]Write to MH i2c: E2 0D 00 B7 1A 80 0D 02 02 05 00 41 9A 87 1C 14 00 00 E7 [17:49:30]Write i2c OK [17:49:30]MH_I2C_Read... [17:49:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:30]Read from MH i2c: E2 [17:49:30]MH_I2C_Read... [17:49:30]Read from MH i2c: E2 03 00 [17:49:30]MH_I2C_Read... [17:49:30]Read from MH i2c: E2 03 00 B7 1A 00 90 00 45 [17:49:30]RAPDU: 90 00 [17:49:30]wFMCommunicate OK [17:49:30]wFMCommunicate request_size=4 [17:49:30]MH_SAM_APDU [17:49:30]CAPDU: 80 0D 03 02 [17:49:30]Write to MH i2c: E2 08 00 B8 1A 80 0D 03 02 00 00 00 00 4D [17:49:30]Write i2c OK [17:49:30]MH_I2C_Read... [17:49:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:30]Read from MH i2c: E2 [17:49:30]MH_I2C_Read... [17:49:30]Read from MH i2c: E2 0B 00 [17:49:30]MH_I2C_Read... [17:49:30]Read from MH i2c: E2 0B 00 B8 1A 00 3D 63 E3 8D 28 2C E3 35 90 00 CA [17:49:30]RAPDU: 3D 63 E3 8D 28 2C E3 35 90 00 [17:49:30]wFMCommunicate OK [17:49:30]SAM_PROTO_SignData done [17:49:30]FM_MakeSignedData done [17:49:30]CreateOFDProtocolMessage [17:49:30]wFMCommunicate request_size=4 [17:49:30]MH_SAM_APDU [17:49:30]CAPDU: 80 11 00 00 [17:49:30]Write to MH i2c: E2 08 00 B9 1A 80 11 00 00 00 00 00 00 4D [17:49:30]Write i2c OK [17:49:30]MH_I2C_Read... [17:49:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:30]Read from MH i2c: E2 [17:49:30]MH_I2C_Read... [17:49:30]Read from MH i2c: E2 17 00 [17:49:30]MH_I2C_Read... [17:49:30]Read from MH i2c: E2 17 00 B9 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A2 [17:49:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:49:30]wFMCommunicate OK [17:49:30]CreateOFDProtocolMessage done [17:49:30]OFDSenderStorePacket 155635 [17:49:30]StoreOFDPacket docnum=155635 [17:49:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DC AA 07 01 59 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 A9 88 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 5F 02 00 35 04 06 00 92 41 9A 87 1C 14 3D 63 E3 8D 28 2C E3 35 [17:49:30]CheckFolder [17:49:30]dirname=/storage/ofd_packets [17:49:30]CheckFolder done [17:49:30]ProducePacketName [17:49:30]name=ofd_packets/00155635 [17:49:30]NVStorageSaveData ofd_packets/00155635 [17:49:30]File name is /storage/ofd_packets/00155635 [17:49:30]Write 301 bytes [17:49:30]NVStorageSaveData done [17:49:30]OFDSenderStorePacket done [17:49:30]KKMCreateOFDPacket done [17:49:30]NVStorageSaveData kkm_last_timestamp [17:49:30]File name is /storage/kkm_last_timestamp [17:49:30]Write 4 bytes [17:49:30]NVStorageSaveData done [17:49:30]ExternCall_PrintAddStr [17:49:30]wPrintStart [17:49:30]Write to MH i2c: 01 00 00 BA 1A D4 [17:49:30]Write i2c OK [17:49:30]MH_I2C_Read... [17:49:30]Read from MH i2c: 01 [17:49:30]MH_I2C_Read... [17:49:30]Read from MH i2c: 01 07 00 [17:49:30]MH_I2C_Read... [17:49:30]Read from MH i2c: 01 07 00 BA 1A 00 00 00 00 00 FF 0F E9 [17:49:30]RasterBufferAndPrint [17:49:30]line Счет N : (1)98441 [17:49:30]line ИНН: 02508201610067 [17:49:30]line Контрольно-Кассовый Чек [17:49:30]line ПРОДАЖА [17:49:30]line ТРК (МРК, ГНК) : 21 [17:49:30]line Товар: 2710124130 [17:49:30]line Аи-92-К-5 [17:49:30]line 7.480 * 66.90 [17:49:30]line = 500.41 [17:49:30]line НДС 12% НСП 1% [17:49:30]line > о реализуемом товаре [17:49:30]line ОКРУГЛЕНИЕ: -0.41 [17:49:30]line ИТОГО: 500.00 [17:49:30]line Внесено: 500.00 [17:49:30]line СДАЧА: 0.00 [17:49:30]line НСП 1% : 4.43 [17:49:30]line НДС 12% : 53.14 [17:49:30]line Наличными: 500.00 [17:49:30]line Безнал.: 0.00 [17:49:30]line Место: АЗС № 143 "Партнер Нефть" [17:49:30]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:49:30]line СНО: Общий режим [17:49:30]line Чек 260 24.10.2024 17:49 [17:49:30]line Смена: 534 ФФД: 1.0 [17:49:30]line ЗНМ: 0300000096 [17:49:30]line РНМ: 0000000000091693 [17:49:30]line Версия ККМ: 001 [17:49:30]line ФМ: 0000000000871792 [17:49:30]line ФД: 155635 [17:49:30]line ФПД: 160810463075348 [17:49:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T174929&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155635&fm=160810463075348&tin=02508201610067®Number=0000000000091693&sum=50000 [17:49:30]written 0, free lines is 4095 [17:49:30]OFD Sender: Processing packet 155635 [packets to send 31, broken 30] [17:49:30]ProducePacketName [17:49:30]name=ofd_packets/00155635 [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:30]Connected sock=9 [17:49: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 39 32 0F 01 00 00 DC AA 07 01 59 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 A9 88 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 5F 02 00 35 04 06 00 92 41 9A 87 1C 14 3D 63 E3 8D 28 2C E3 35 [17:49:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A1 BE 47 00 11 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 39 32 10 04 04 00 F3 5F 02 00 F4 03 04 00 21 2E 1A 67 B6 04 01 00 00 76 02 20 5B 9B D6 2A 0E [17:49:30]CommunicateWithHost err = 0 [17:49:30]CheckOFDResponse [17:49:30]1017 (14) - 77093643461234 [17:49:30]1041 (16) - 0000000000871792 [17:49:30]1040 (4) - 155635 [17:49:30]1012 (4) - 24.10.2024 11:23 [17:49:30]1206 (1) - 0 [17:49:30]OFD Sender: Remove packet 155635 [17:49:30]ProducePacketName [17:49:30]name=ofd_packets/00155635 [17:49:30]NVStorageDeleteData [17:49:30]Write to MH i2c: 01 00 00 E5 1A FF [17:49:30]Write i2c OK [17:49:30]MH_I2C_Read... [17:49:30]Read from MH i2c: 01 [17:49:30]MH_I2C_Read... [17:49:30]Read from MH i2c: 01 07 00 [17:49:30]MH_I2C_Read... [17:49:30]Read from MH i2c: 01 07 00 E5 1A 00 00 00 00 00 E0 0C F2 [17:49:30]RasterBufferAndPrint [17:49:30]line [17:49:30]line [17:49:30]line [17:49:30]line [17:49:30]line [17:49:30]written 0, free lines is 3302 [17:49:30]process_action close_receipt done [17:49:30]requested_data is exist [17:49:30]produce_requested_data [17:49:30]requested_item fm.sn is exist - process it [17:49:30]wFMCommunicate request_size=4 [17:49:30]MH_SAM_APDU [17:49:30]CAPDU: 80 11 00 00 [17:49:30]Write to MH i2c: E2 08 00 EC 1A 80 11 00 00 00 00 00 00 80 [17:49:30]Write i2c OK [17:49:30]MH_I2C_Read... [17:49:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:30]Read from MH i2c: E2 [17:49:30]MH_I2C_Read... [17:49:30]Read from MH i2c: E2 17 00 [17:49:30]MH_I2C_Read... [17:49:30]Read from MH i2c: E2 17 00 EC 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D5 [17:49:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:49:30]wFMCommunicate OK [17:49:30]requested_item fd.num is exist - process it [17:49:30]SAM_PROTO_GetFieldsCounters [17:49:30]wFMCommunicate request_size=4 [17:49:30]MH_SAM_APDU [17:49:30]CAPDU: 80 13 00 00 [17:49:30]Write to MH i2c: E2 08 00 ED 1A 80 13 00 00 00 00 00 00 83 [17:49:30]Write i2c OK [17:49:30]MH_I2C_Read... [17:49:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:31]Read from MH i2c: E2 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: E2 62 00 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: E2 62 00 ED 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F3 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [17:49:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F3 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:31]wFMCommunicate OK [17:49:31]SAM_PROTO_GetFieldsCounters done [17:49:31]requested_item shift.num is exist - process it [17:49:31]requested_item shift.opened is exist - process it [17:49:31]req_shift_opened [17:49:31]FM_GetShiftState [17:49:31]SAM_PROTO_GetShiftState [17:49:31]wFMCommunicate request_size=4 [17:49:31]MH_SAM_APDU [17:49:31]CAPDU: 80 13 01 00 [17:49:31]Write to MH i2c: E2 08 00 EE 1A 80 13 01 00 00 00 00 00 85 [17:49:31]Write i2c OK [17:49:31]MH_I2C_Read... [17:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:31]Read from MH i2c: E2 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: E2 0E 00 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: E2 0E 00 EE 1A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D2 [17:49:31]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:49:31]wFMCommunicate OK [17:49:31]SAM_PROTO_GetShiftState done [17:49:31]FM_GetShiftState done [17:49:31]req_shift_opened done [17:49:31]requested_item shift.open_date is exist - process it [17:49:31]req_shift_open_date [17:49:31]req_shift_open_date done [17:49:31]produce_requested_data done [17:49:31]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155635,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:49:31]process_action_free close_receipt [17:49:31]json_value_free [17:49:31]json_value_free done [17:49:31]process_json_proto returns [17:49:31]Send response to host [17:49:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155635,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:49:31]free response buf [17:49:31]execute_script done [17:49:31]execute_script returns [17:49:31]free content buf [17:49:31]Sock 10.Close socket [17:49:31]Sock 10.Thread stoped [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:41]OFD Sender: No OFD packet to send [17:49:46]OFD Sender: No OFD packet to send [17:49:51]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:33]accept exits with 8 [17:51:33]New connection [17:51:33]New thread 3066637668 created [17:51:33]Thread 3066781028 joined [17:51:33]Waiting for new connection... [17:51:33] Sock 8.Parse request [17:51:33]Sock 8.Check first char [17:51:33]Sock 8.First char is OK [17:51:33]request: POST /json_proto HTTP/1.0 [17:51:33]Method: POST [17:51:33]URL: /json_proto [17:51:33]Method is POST - this is cgi request [17:51:33]url: /json_proto [17:51:33]query_string will be loaded in cgi processing [17:51:33]execute_cgi json_proto POST (null) [17:51:33]execute_cgi path=json_proto method=POST [17:51:33]POST find Content-Length [17:51:33]Host: 172.17.63.3:8080 [17:51:33]Content-Length: 676 [17:51:33]Content-Type: application/json [17:51:33] [17:51:33]POST finish read [17:51:33]Found Content-Length = 676 [17:51:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "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" ] } } [17:51:33]execute_script... [17: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)98442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "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" ] } } [17:51:33]POST & json_proto [17:51:33]process_json_proto [17:51:33]json parsed OK: [17:51:33]protocol is kg_v1.0 [17:51:33]action value=close_receipt [17:51:33]process_action close_receipt [17:51:33]cmd_close_receipt [17:51:33]MH_GetDate [17:51:33]Write to MH i2c: F0 00 00 EF 1A F8 [17:51:33]Write i2c OK [17:51:33]MH_I2C_Read... [17:51:33]Read from MH i2c: F0 [17:51:33]MH_I2C_Read... [17:51:33]Read from MH i2c: F0 09 00 [17:51:33]MH_I2C_Read... [17:51:33]Read from MH i2c: F0 09 00 EF 1A 00 26 89 1A 67 50 D1 6C 64 22 [17:51:33]GetLastDocTimeStamp 1729792169 [17:51:33]current date 1729792294 [17:51:33]FM_GetShiftState [17:51:33]SAM_PROTO_GetShiftState [17:51:33]wFMCommunicate request_size=4 [17:51:33]MH_SAM_APDU [17:51:33]CAPDU: 80 13 01 00 [17:51:33]Write to MH i2c: E2 08 00 F0 1A 80 13 01 00 00 00 00 00 87 [17:51:33]Write i2c OK [17:51:33]MH_I2C_Read... [17:51:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:33]Read from MH i2c: E2 [17:51:33]MH_I2C_Read... [17:51:33]Read from MH i2c: E2 0E 00 [17:51:33]MH_I2C_Read... [17:51:33]Read from MH i2c: E2 0E 00 F0 1A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D4 [17:51:33]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:51:33]wFMCommunicate OK [17:51:33]SAM_PROTO_GetShiftState done [17:51:33]FM_GetShiftState done [17:51:33]opened in 1729729836 [17:51:33]opened+sec_in_day 1729816236 [17:51:33]quantity*price = 10035 [17:51:33]sum+1 = 10036 [17:51:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 261 24.10.2024 17:51 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155636 ФПД: 240494442122384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175134&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155636&fm=240494442122384&tin=02508201610067®Number=0000000000091693&sum=10000 [17:51:34]StoreToDocumentArchive [17:51:34]shift 534 fd 155636 [17:51:34]save to /storage/0534/doc_00155636 [17:51:34]save last doc name /storage/0534/doc_00155636 to /storage/kkm_last_doc_name [17:51:34]save OK [17:51:34]Clear old archive folders... [17:51:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:34]tlvbuf is 01F6A6F0 [17:51:34]SAM_PROTO_ClearQueue [17:51:34]wFMCommunicate request_size=4 [17:51:34]MH_SAM_APDU [17:51:34]CAPDU: 80 09 00 00 [17:51:34]Write to MH i2c: E2 08 00 FD 1A 80 09 00 00 00 00 00 00 89 [17:51:34]Write i2c OK [17:51:34]MH_I2C_Read... [17:51:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:34]Read from MH i2c: E2 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: E2 03 00 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: E2 03 00 FD 1A 00 90 00 8B [17:51:34]RAPDU: 90 00 [17:51:34]wFMCommunicate OK [17:51:34]SAM_PROTO_ClearQueue done [17:51:34]KKMCreateOFDPacket [17:51:34]OFDProtocolAddRootSTLVToBuf [17:51:34]FM_MakeSignedData [17:51:34]FM_MakeSignedData [17:51:34]SAM_PROTO_SignData [17:51:34]wFMCommunicate request_size=4 [17:51:34]MH_SAM_APDU [17:51:34]CAPDU: 80 0D 01 02 [17:51:34]Write to MH i2c: E2 08 00 FE 1A 80 0D 01 02 00 00 00 00 91 [17:51:34]Write i2c OK [17:51:34]MH_I2C_Read... [17:51:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:34]Read from MH i2c: E2 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: E2 03 00 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: E2 03 00 FE 1A 00 90 00 8C [17:51:34]RAPDU: 90 00 [17:51:34]wFMCommunicate OK [17:51:34]wFMCommunicate request_size=255 [17:51:34]MH_SAM_APDU [17: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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 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 05 01 00 00 F4 03 04 00 26 89 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 5F 02 00 35 04 06 00 DA [17:51:34]Write to MH i2c: E2 02 01 FF 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 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 05 01 00 00 F4 03 04 00 26 89 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 5F 02 00 35 04 06 00 DA 00 00 89 [17:51:34]Write i2c OK [17:51:34]MH_I2C_Read... [17:51:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:34]Read from MH i2c: E2 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: E2 03 00 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: E2 03 00 FF 1A 00 90 00 8D [17:51:34]RAPDU: 90 00 [17:51:34]wFMCommunicate OK [17:51:34]wFMCommunicate request_size=10 [17:51:34]MH_SAM_APDU [17:51:34]CAPDU: 80 0D 02 02 05 BA 79 CB 0C 90 [17:51:34]Write to MH i2c: E2 0D 00 00 1B 80 0D 02 02 05 00 BA 79 CB 0C 90 00 00 39 [17:51:34]Write i2c OK [17:51:34]MH_I2C_Read... [17:51:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:34]Read from MH i2c: E2 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: E2 03 00 [17:51:34]MH_I2C_Read... [17:51:34]Read from MH i2c: E2 03 00 00 1B 00 90 00 8F [17:51:34]RAPDU: 90 00 [17:51:34]wFMCommunicate OK [17:51:34]wFMCommunicate request_size=4 [17:51:34]MH_SAM_APDU [17:51:34]CAPDU: 80 0D 03 02 [17:51:34]Write to MH i2c: E2 08 00 01 1B 80 0D 03 02 00 00 00 00 97 [17:51:34]Write i2c OK [17:51:34]MH_I2C_Read... [17:51:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:35]Read from MH i2c: E2 [17:51:35]MH_I2C_Read... [17:51:35]Read from MH i2c: E2 0B 00 [17:51:35]MH_I2C_Read... [17:51:35]Read from MH i2c: E2 0B 00 01 1B 00 E7 7F 82 C1 93 BA 1A 5E 90 00 06 [17:51:35]RAPDU: E7 7F 82 C1 93 BA 1A 5E 90 00 [17:51:35]wFMCommunicate OK [17:51:35]SAM_PROTO_SignData done [17:51:35]FM_MakeSignedData done [17:51:35]CreateOFDProtocolMessage [17:51:35]wFMCommunicate request_size=4 [17:51:35]MH_SAM_APDU [17:51:35]CAPDU: 80 11 00 00 [17:51:35]Write to MH i2c: E2 08 00 02 1B 80 11 00 00 00 00 00 00 97 [17:51:35]Write i2c OK [17:51:35]MH_I2C_Read... [17:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:35]Read from MH i2c: E2 [17:51:35]MH_I2C_Read... [17:51:35]Read from MH i2c: E2 17 00 [17:51:35]MH_I2C_Read... [17:51:35]Read from MH i2c: E2 17 00 02 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EC [17:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:51:35]wFMCommunicate OK [17:51:35]CreateOFDProtocolMessage done [17:51:35]OFDSenderStorePacket 155636 [17:51:35]StoreOFDPacket docnum=155636 [17:51:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8E 86 07 01 08 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 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 05 01 00 00 F4 03 04 00 26 89 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 5F 02 00 35 04 06 00 DA BA 79 CB 0C 90 E7 7F 82 C1 93 BA 1A 5E [17:51:35]CheckFolder [17:51:35]dirname=/storage/ofd_packets [17:51:35]CheckFolder done [17:51:35]ProducePacketName [17:51:35]name=ofd_packets/00155636 [17:51:35]NVStorageSaveData ofd_packets/00155636 [17:51:35]File name is /storage/ofd_packets/00155636 [17:51:35]Write 301 bytes [17:51:35]NVStorageSaveData done [17:51:35]OFDSenderStorePacket done [17:51:35]KKMCreateOFDPacket done [17:51:35]NVStorageSaveData kkm_last_timestamp [17:51:35]File name is /storage/kkm_last_timestamp [17:51:35]Write 4 bytes [17:51:35]NVStorageSaveData done [17:51:35]ExternCall_PrintAddStr [17:51:35]wPrintStart [17:51:35]Write to MH i2c: 01 00 00 03 1B 1E [17:51:35]Write i2c OK [17:51:35]MH_I2C_Read... [17:51:35]Read from MH i2c: 01 [17:51:35]MH_I2C_Read... [17:51:35]Read from MH i2c: 01 07 00 [17:51:35]MH_I2C_Read... [17:51:35]Read from MH i2c: 01 07 00 03 1B 00 00 00 00 00 FF 0F 33 [17:51:35]RasterBufferAndPrint [17:51:35]line Счет N : (1)98442 [17:51:35]line ИНН: 02508201610067 [17:51:35]line Контрольно-Кассовый Чек [17:51:35]line ПРОДАЖА [17:51:35]line ТРК (МРК, ГНК) : 21 [17:51:35]line Товар: 2710124130 [17:51:35]line Аи-92-К-5 [17:51:35]line 1.500 * 66.90 [17:51:35]line = 100.35 [17:51:35]line НДС 12% НСП 1% [17:51:35]line > о реализуемом товаре [17:51:35]line ОКРУГЛЕНИЕ: -0.35 [17:51:35]line ИТОГО: 100.00 [17:51:35]line Внесено: 100.00 [17:51:35]line СДАЧА: 0.00 [17:51:35]line НСП 1% : 0.89 [17:51:35]line НДС 12% : 10.66 [17:51:35]line Наличными: 100.00 [17:51:35]line Безнал.: 0.00 [17:51:35]line Место: АЗС № 143 "Партнер Нефть" [17:51:35]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:51:35]line СНО: Общий режим [17:51:35]line Чек 261 24.10.2024 17:51 [17:51:35]line Смена: 534 ФФД: 1.0 [17:51:35]line ЗНМ: 0300000096 [17:51:35]line РНМ: 0000000000091693 [17:51:35]line Версия ККМ: 001 [17:51:35]line ФМ: 0000000000871792 [17:51:35]line ФД: 155636 [17:51:35]line ФПД: 240494442122384 [17:51:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175134&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155636&fm=240494442122384&tin=02508201610067®Number=0000000000091693&sum=10000 [17:51:35]OFD Sender: Processing packet 155636 [packets to send 31, broken 30] [17:51:35]ProducePacketName [17:51:35]name=ofd_packets/00155636 [17:51:35]OFD Sender: To server: pG, [17:51:35]CommunicateWithHost lk.salyk.kg:30040 [17:51:35]ConnectInit lk.salyk.kg [17:51:35]written 0, free lines is 4095 [17:51:35]Connected sock=10 [17: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 39 32 0F 01 00 00 8E 86 07 01 08 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 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 05 01 00 00 F4 03 04 00 26 89 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 5F 02 00 35 04 06 00 DA BA 79 CB 0C 90 E7 7F 82 C1 93 BA 1A 5E [17: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 39 32 4F 00 00 00 F0 6D 47 00 F1 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 39 32 10 04 04 00 F4 5F 02 00 F4 03 04 00 9E 2E 1A 67 B6 04 01 00 00 2D 42 D4 F1 1E 1C 45 3A [17:51:35]CommunicateWithHost err = 0 [17:51:35]CheckOFDResponse [17:51:35]1017 (14) - 77093643461234 [17:51:35]1041 (16) - 0000000000871792 [17:51:35]1040 (4) - 155636 [17:51:35]1012 (4) - 24.10.2024 11:25 [17:51:35]1206 (1) - 0 [17:51:35]OFD Sender: Remove packet 155636 [17:51:35]ProducePacketName [17:51:35]name=ofd_packets/00155636 [17:51:35]NVStorageDeleteData [17:51:35]Write to MH i2c: 01 00 00 2E 1B 49 [17:51:35]Write i2c OK [17:51:35]MH_I2C_Read... [17:51:35]Read from MH i2c: 01 [17:51:35]MH_I2C_Read... [17:51:35]Read from MH i2c: 01 07 00 [17:51:35]MH_I2C_Read... [17:51:35]Read from MH i2c: 01 07 00 2E 1B 00 00 00 00 00 D2 0C 2E [17:51:35]RasterBufferAndPrint [17:51:35]line [17:51:35]line [17:51:35]line [17:51:35]line [17:51:35]line [17:51:35]written 0, free lines is 3287 [17:51:35]process_action close_receipt done [17:51:35]requested_data is exist [17:51:35]produce_requested_data [17:51:35]requested_item fm.sn is exist - process it [17:51:35]wFMCommunicate request_size=4 [17:51:35]MH_SAM_APDU [17:51:35]CAPDU: 80 11 00 00 [17:51:35]Write to MH i2c: E2 08 00 35 1B 80 11 00 00 00 00 00 00 CA [17:51:35]Write i2c OK [17:51:35]MH_I2C_Read... [17:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:35]Read from MH i2c: E2 [17:51:35]MH_I2C_Read... [17:51:35]Read from MH i2c: E2 17 00 [17:51:35]MH_I2C_Read... [17:51:35]Read from MH i2c: E2 17 00 35 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1F [17:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:51:35]wFMCommunicate OK [17:51:35]requested_item fd.num is exist - process it [17:51:35]SAM_PROTO_GetFieldsCounters [17:51:35]wFMCommunicate request_size=4 [17:51:35]MH_SAM_APDU [17:51:35]CAPDU: 80 13 00 00 [17:51:35]Write to MH i2c: E2 08 00 36 1B 80 13 00 00 00 00 00 00 CD [17:51:35]Write i2c OK [17:51:35]MH_I2C_Read... [17:51:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:36]Read from MH i2c: E2 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: E2 62 00 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: E2 62 00 36 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F4 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [17:51: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F4 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:36]wFMCommunicate OK [17:51:36]SAM_PROTO_GetFieldsCounters done [17:51:36]requested_item shift.num is exist - process it [17:51:36]requested_item shift.opened is exist - process it [17:51:36]req_shift_opened [17:51:36]FM_GetShiftState [17:51:36]SAM_PROTO_GetShiftState [17:51:36]wFMCommunicate request_size=4 [17:51:36]MH_SAM_APDU [17:51:36]CAPDU: 80 13 01 00 [17:51:36]Write to MH i2c: E2 08 00 37 1B 80 13 01 00 00 00 00 00 CF [17:51:36]Write i2c OK [17:51:36]MH_I2C_Read... [17:51:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:36]Read from MH i2c: E2 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: E2 0E 00 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: E2 0E 00 37 1B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1C [17:51:36]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:51:36]wFMCommunicate OK [17:51:36]SAM_PROTO_GetShiftState done [17:51:36]FM_GetShiftState done [17:51:36]req_shift_opened done [17:51:36]requested_item shift.open_date is exist - process it [17:51:36]req_shift_open_date [17:51:36]req_shift_open_date done [17:51:36]produce_requested_data done [17:51:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155636,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:51:36]process_action_free close_receipt [17:51:36]json_value_free [17:51:36]json_value_free done [17:51:36]process_json_proto returns [17:51:36]Send response to host [17:51:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155636,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:51:36]free response buf [17:51:36]execute_script done [17:51:36]execute_script returns [17:51:36]free content buf [17:51:36]Sock 8.Close socket [17:51:36]Sock 8.Thread stoped [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:44]accept exits with 9 [17:52:44]New connection [17:52:44]New thread 3066781028 created [17:52:44]Thread 3066637668 joined [17:52:44]Waiting for new connection... [17:52:44] Sock 9.Parse request [17:52:44]Sock 9.Check first char [17:52:44]Sock 9.First char is OK [17:52:44]request: POST /json_proto HTTP/1.0 [17:52:44]Method: POST [17:52:44]URL: /json_proto [17:52:44]Method is POST - this is cgi request [17:52:44]url: /json_proto [17:52:44]query_string will be loaded in cgi processing [17:52:44]execute_cgi json_proto POST (null) [17:52:44]execute_cgi path=json_proto method=POST [17:52:44]POST find Content-Length [17:52:44]Host: 172.17.63.3:8080 [17:52:44]Content-Length: 676 [17:52:44]Content-Type: application/json [17:52:44] [17:52:44]POST finish read [17:52:44]Found Content-Length = 676 [17:52:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:44]execute_script... [17:52: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)98443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:44]POST & json_proto [17:52:44]process_json_proto [17:52:44]json parsed OK: [17:52:44]protocol is kg_v1.0 [17:52:44]action value=close_receipt [17:52:44]process_action close_receipt [17:52:44]cmd_close_receipt [17:52:44]MH_GetDate [17:52:44]Write to MH i2c: F0 00 00 38 1B 42 [17:52:44]Write i2c OK [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: F0 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: F0 09 00 [17:52:44]MH_I2C_Read... [17:52:44]Read from MH i2c: F0 09 00 38 1B 00 6E 89 1A 67 50 D1 6C 64 B4 [17:52:44]GetLastDocTimeStamp 1729792294 [17:52:44]current date 1729792366 [17:52:44]FM_GetShiftState [17:52:44]SAM_PROTO_GetShiftState [17:52:44]wFMCommunicate request_size=4 [17:52:44]MH_SAM_APDU [17:52:44]CAPDU: 80 13 01 00 [17:52:44]Write to MH i2c: E2 08 00 39 1B 80 13 01 00 00 00 00 00 D1 [17:52:45]Write i2c OK [17:52:45]MH_I2C_Read... [17:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:45]Read from MH i2c: E2 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 0E 00 [17:52:45]MH_I2C_Read... [17:52:45]Read from MH i2c: E2 0E 00 39 1B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1E [17:52:45]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:52:45]wFMCommunicate OK [17:52:45]SAM_PROTO_GetShiftState done [17:52:45]FM_GetShiftState done [17:52:45]opened in 1729729836 [17:52:45]opened+sec_in_day 1729816236 [17:52:45]quantity*price = 30038 [17:52:45]sum+1 = 30039 [17:52:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 262 24.10.2024 17:52 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155637 ФПД: 53260119583683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175246&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155637&fm=53260119583683&tin=02508201610067®Number=0000000000091693&sum=30000 [17:52:46]StoreToDocumentArchive [17:52:46]shift 534 fd 155637 [17:52:46]save to /storage/0534/doc_00155637 [17:52:46]save last doc name /storage/0534/doc_00155637 to /storage/kkm_last_doc_name [17:52:46]save OK [17:52:46]Clear old archive folders... [17:52:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:46]tlvbuf is B6F2B7E0 [17:52:46]SAM_PROTO_ClearQueue [17:52:46]wFMCommunicate request_size=4 [17:52:46]MH_SAM_APDU [17:52:46]CAPDU: 80 09 00 00 [17:52:46]Write to MH i2c: E2 08 00 46 1B 80 09 00 00 00 00 00 00 D3 [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:46]Read from MH i2c: E2 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 03 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 03 00 46 1B 00 90 00 D5 [17:52:46]RAPDU: 90 00 [17:52:46]wFMCommunicate OK [17:52:46]SAM_PROTO_ClearQueue done [17:52:46]KKMCreateOFDPacket [17:52:46]OFDProtocolAddRootSTLVToBuf [17:52:46]FM_MakeSignedData [17:52:46]FM_MakeSignedData [17:52:46]SAM_PROTO_SignData [17:52:46]wFMCommunicate request_size=4 [17:52:46]MH_SAM_APDU [17:52:46]CAPDU: 80 0D 01 02 [17:52:46]Write to MH i2c: E2 08 00 47 1B 80 0D 01 02 00 00 00 00 DB [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:46]Read from MH i2c: E2 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 03 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 03 00 47 1B 00 90 00 D6 [17:52:46]RAPDU: 90 00 [17:52:46]wFMCommunicate OK [17:52:46]wFMCommunicate request_size=255 [17:52:46]MH_SAM_APDU [17:52: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 6E 89 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 5F 02 00 35 04 06 00 30 [17:52:46]Write to MH i2c: E2 02 01 48 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 6E 89 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 5F 02 00 35 04 06 00 30 00 00 80 [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]OFD Sender: No OFD packet to send [17:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:46]Read from MH i2c: E2 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 03 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 03 00 48 1B 00 90 00 D7 [17:52:46]RAPDU: 90 00 [17:52:46]wFMCommunicate OK [17:52:46]wFMCommunicate request_size=10 [17:52:46]MH_SAM_APDU [17:52:46]CAPDU: 80 0D 02 02 05 70 96 82 2B C3 [17:52:46]Write to MH i2c: E2 0D 00 49 1B 80 0D 02 02 05 00 70 96 82 2B C3 00 00 5E [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:46]Read from MH i2c: E2 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 03 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 03 00 49 1B 00 90 00 D8 [17:52:46]RAPDU: 90 00 [17:52:46]wFMCommunicate OK [17:52:46]wFMCommunicate request_size=4 [17:52:46]MH_SAM_APDU [17:52:46]CAPDU: 80 0D 03 02 [17:52:46]Write to MH i2c: E2 08 00 4A 1B 80 0D 03 02 00 00 00 00 E0 [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:46]Read from MH i2c: E2 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 0B 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 0B 00 4A 1B 00 23 03 12 8D C1 6C 53 98 90 00 BE [17:52:46]RAPDU: 23 03 12 8D C1 6C 53 98 90 00 [17:52:46]wFMCommunicate OK [17:52:46]SAM_PROTO_SignData done [17:52:46]FM_MakeSignedData done [17:52:46]CreateOFDProtocolMessage [17:52:46]wFMCommunicate request_size=4 [17:52:46]MH_SAM_APDU [17:52:46]CAPDU: 80 11 00 00 [17:52:46]Write to MH i2c: E2 08 00 4B 1B 80 11 00 00 00 00 00 00 E0 [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:46]Read from MH i2c: E2 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 17 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: E2 17 00 4B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 35 [17:52:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:52:46]wFMCommunicate OK [17:52:46]CreateOFDProtocolMessage done [17:52:46]OFDSenderStorePacket 155637 [17:52:46]StoreOFDPacket docnum=155637 [17:52:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 14 AD 07 01 77 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 6E 89 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 5F 02 00 35 04 06 00 30 70 96 82 2B C3 23 03 12 8D C1 6C 53 98 [17:52:46]CheckFolder [17:52:46]dirname=/storage/ofd_packets [17:52:46]CheckFolder done [17:52:46]ProducePacketName [17:52:46]name=ofd_packets/00155637 [17:52:46]NVStorageSaveData ofd_packets/00155637 [17:52:46]File name is /storage/ofd_packets/00155637 [17:52:46]Write 301 bytes [17:52:46]NVStorageSaveData done [17:52:46]OFDSenderStorePacket done [17:52:46]KKMCreateOFDPacket done [17:52:46]NVStorageSaveData kkm_last_timestamp [17:52:46]File name is /storage/kkm_last_timestamp [17:52:46]Write 4 bytes [17:52:46]NVStorageSaveData done [17:52:46]ExternCall_PrintAddStr [17:52:46]wPrintStart [17:52:46]Write to MH i2c: 01 00 00 4C 1B 67 [17:52:46]Write i2c OK [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: 01 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: 01 07 00 [17:52:46]MH_I2C_Read... [17:52:46]Read from MH i2c: 01 07 00 4C 1B 00 00 00 00 00 FF 0F 7C [17:52:46]RasterBufferAndPrint [17:52:46]line Счет N : (1)98443 [17:52:46]line ИНН: 02508201610067 [17:52:46]line Контрольно-Кассовый Чек [17:52:46]line ПРОДАЖА [17:52:46]line ТРК (МРК, ГНК) : 31 [17:52:46]line Товар: 2710124130 [17:52:46]line Аи-92-К-5 [17:52:46]line 4.490 * 66.90 [17:52:46]line = 300.38 [17:52:46]line НДС 12% НСП 1% [17:52:46]line > о реализуемом товаре [17:52:46]line ОКРУГЛЕНИЕ: -0.38 [17:52:46]line ИТОГО: 300.00 [17:52:46]line Внесено: 300.00 [17:52:46]line СДАЧА: 0.00 [17:52:46]line НСП 1% : 2.66 [17:52:46]line НДС 12% : 31.90 [17:52:46]line Наличными: 300.00 [17:52:46]line Безнал.: 0.00 [17:52:46]line Место: АЗС № 143 "Партнер Нефть" [17:52:46]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:52:46]line СНО: Общий режим [17:52:46]line Чек 262 24.10.2024 17:52 [17:52:46]line Смена: 534 ФФД: 1.0 [17:52:46]line ЗНМ: 0300000096 [17:52:46]line РНМ: 0000000000091693 [17:52:46]line Версия ККМ: 001 [17:52:46]line ФМ: 0000000000871792 [17:52:46]line ФД: 155637 [17:52:46]line ФПД: 53260119583683 [17:52:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175246&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155637&fm=53260119583683&tin=02508201610067®Number=0000000000091693&sum=30000 [17:52:47]written 0, free lines is 4095 [17:52:47]OFD Sender: Processing packet 155637 [packets to send 31, broken 30] [17:52:47]ProducePacketName [17:52:47]name=ofd_packets/00155637 [17:52:47]OFD Sender: To server: pG, [17:52:47]CommunicateWithHost lk.salyk.kg:30040 [17:52:47]ConnectInit lk.salyk.kg [17:52:47]Connected sock=10 [17: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 39 32 0F 01 00 00 14 AD 07 01 77 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 6E 89 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 5F 02 00 35 04 06 00 30 70 96 82 2B C3 23 03 12 8D C1 6C 53 98 [17: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 39 32 4F 00 00 00 E6 2E 47 00 6C 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 5F 02 00 F4 03 04 00 E6 2E 1A 67 B6 04 01 00 00 D1 CA B4 B2 26 6D 03 FC [17:52:47]CommunicateWithHost err = 0 [17:52:47]CheckOFDResponse [17:52:47]1017 (14) - 77093643461234 [17:52:47]1041 (16) - 0000000000871792 [17:52:47]1040 (4) - 155637 [17:52:47]1012 (4) - 24.10.2024 11:26 [17:52:47]1206 (1) - 0 [17:52:47]OFD Sender: Remove packet 155637 [17:52:47]ProducePacketName [17:52:47]name=ofd_packets/00155637 [17:52:47]NVStorageDeleteData [17:52:47]Write to MH i2c: 01 00 00 77 1B 92 [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: 01 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: 01 07 00 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: 01 07 00 77 1B 00 00 00 00 00 DD 0C 82 [17:52:47]RasterBufferAndPrint [17:52:47]line [17:52:47]line [17:52:47]line [17:52:47]line [17:52:47]line [17:52:47]written 0, free lines is 3299 [17:52:47]process_action close_receipt done [17:52:47]requested_data is exist [17:52:47]produce_requested_data [17:52:47]requested_item fm.sn is exist - process it [17:52:47]wFMCommunicate request_size=4 [17:52:47]MH_SAM_APDU [17:52:47]CAPDU: 80 11 00 00 [17:52:47]Write to MH i2c: E2 08 00 7E 1B 80 11 00 00 00 00 00 00 13 [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:47]Read from MH i2c: E2 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: E2 17 00 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: E2 17 00 7E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 68 [17:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:52:47]wFMCommunicate OK [17:52:47]requested_item fd.num is exist - process it [17:52:47]SAM_PROTO_GetFieldsCounters [17:52:47]wFMCommunicate request_size=4 [17:52:47]MH_SAM_APDU [17:52:47]CAPDU: 80 13 00 00 [17:52:47]Write to MH i2c: E2 08 00 7F 1B 80 13 00 00 00 00 00 00 16 [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:47]Read from MH i2c: E2 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: E2 62 00 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: E2 62 00 7F 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F5 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [17: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F5 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:47]wFMCommunicate OK [17:52:47]SAM_PROTO_GetFieldsCounters done [17:52:47]requested_item shift.num is exist - process it [17:52:47]requested_item shift.opened is exist - process it [17:52:47]req_shift_opened [17:52:47]FM_GetShiftState [17:52:47]SAM_PROTO_GetShiftState [17:52:47]wFMCommunicate request_size=4 [17:52:47]MH_SAM_APDU [17:52:47]CAPDU: 80 13 01 00 [17:52:47]Write to MH i2c: E2 08 00 80 1B 80 13 01 00 00 00 00 00 18 [17:52:47]Write i2c OK [17:52:47]MH_I2C_Read... [17:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:47]Read from MH i2c: E2 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: E2 0E 00 [17:52:47]MH_I2C_Read... [17:52:47]Read from MH i2c: E2 0E 00 80 1B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 65 [17:52:47]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:52:47]wFMCommunicate OK [17:52:47]SAM_PROTO_GetShiftState done [17:52:47]FM_GetShiftState done [17:52:47]req_shift_opened done [17:52:47]requested_item shift.open_date is exist - process it [17:52:47]req_shift_open_date [17:52:47]req_shift_open_date done [17:52:47]produce_requested_data done [17:52:47]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155637,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:52:47]process_action_free close_receipt [17:52:47]json_value_free [17:52:47]json_value_free done [17:52:47]process_json_proto returns [17:52:47]Send response to host [17:52:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155637,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:52:47]free response buf [17:52:47]execute_script done [17:52:47]execute_script returns [17:52:47]free content buf [17:52:47]Sock 9.Close socket [17:52:47]Sock 9.Thread stoped [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:38]OFD Sender: No OFD packet to send [17:54:43]OFD Sender: No OFD packet to send [17:54:48]OFD Sender: No OFD packet to send [17:54:53]OFD Sender: No OFD packet to send [17:54:58]OFD Sender: No OFD packet to send [17:55:03]OFD Sender: No OFD packet to send [17:55:08]OFD Sender: No OFD packet to send [17:55:13]OFD Sender: No OFD packet to send [17:55:18]OFD Sender: No OFD packet to send [17:55:23]OFD Sender: No OFD packet to send [17:55:26]accept exits with 8 [17:55:26]New connection [17:55:26]New thread 3066637668 created [17:55:26]Thread 3066781028 joined [17:55:26]Waiting for new connection... [17:55:26] Sock 8.Parse request [17:55:26]Sock 8.Check first char [17:55:26]Sock 8.First char is OK [17:55:26]request: POST /json_proto HTTP/1.0 [17:55:26]Method: POST [17:55:26]URL: /json_proto [17:55:26]Method is POST - this is cgi request [17:55:26]url: /json_proto [17:55:26]query_string will be loaded in cgi processing [17:55:26]execute_cgi json_proto POST (null) [17:55:26]execute_cgi path=json_proto method=POST [17:55:26]POST find Content-Length [17:55:26]Host: 172.17.63.3:8080 [17:55:26]Content-Length: 676 [17:55:26]Content-Type: application/json [17:55:26] [17:55:26]POST finish read [17:55:26]Found Content-Length = 676 [17:55:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:26]execute_script... [17:55: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)98445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:26]POST & json_proto [17:55:26]process_json_proto [17:55:26]json parsed OK: [17:55:26]protocol is kg_v1.0 [17:55:26]action value=close_receipt [17:55:26]process_action close_receipt [17:55:26]cmd_close_receipt [17:55:26]MH_GetDate [17:55:26]Write to MH i2c: F0 00 00 81 1B 8B [17:55:26]Write i2c OK [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: F0 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: F0 09 00 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: F0 09 00 81 1B 00 0F 8A 1A 67 50 D1 6C 64 9F [17:55:26]GetLastDocTimeStamp 1729792366 [17:55:26]current date 1729792527 [17:55:26]FM_GetShiftState [17:55:26]SAM_PROTO_GetShiftState [17:55:26]wFMCommunicate request_size=4 [17:55:26]MH_SAM_APDU [17:55:26]CAPDU: 80 13 01 00 [17:55:26]Write to MH i2c: E2 08 00 82 1B 80 13 01 00 00 00 00 00 1A [17:55:26]Write i2c OK [17:55:26]MH_I2C_Read... [17:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:26]Read from MH i2c: E2 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: E2 0E 00 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: E2 0E 00 82 1B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 67 [17:55:26]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:55:26]wFMCommunicate OK [17:55:26]SAM_PROTO_GetShiftState done [17:55:26]FM_GetShiftState done [17:55:26]opened in 1729729836 [17:55:26]opened+sec_in_day 1729816236 [17:55:26]quantity*price = 50041 [17:55:26]sum+1 = 50042 [17:55:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 263 24.10.2024 17:55 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155638 ФПД: 82725928089346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175527&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155638&fm=82725928089346&tin=02508201610067®Number=0000000000091693&sum=50000 [17:55:27]StoreToDocumentArchive [17:55:27]shift 534 fd 155638 [17:55:27]save to /storage/0534/doc_00155638 [17:55:27]save last doc name /storage/0534/doc_00155638 to /storage/kkm_last_doc_name [17:55:27]save OK [17:55:27]Clear old archive folders... [17:55:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:27]tlvbuf is 01FBF340 [17:55:27]SAM_PROTO_ClearQueue [17:55:27]wFMCommunicate request_size=4 [17:55:27]MH_SAM_APDU [17:55:27]CAPDU: 80 09 00 00 [17:55:27]Write to MH i2c: E2 08 00 8F 1B 80 09 00 00 00 00 00 00 1C [17:55:27]Write i2c OK [17:55:27]MH_I2C_Read... [17:55:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:27]Read from MH i2c: E2 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 03 00 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 03 00 8F 1B 00 90 00 1E [17:55:27]RAPDU: 90 00 [17:55:27]wFMCommunicate OK [17:55:27]SAM_PROTO_ClearQueue done [17:55:27]KKMCreateOFDPacket [17:55:27]OFDProtocolAddRootSTLVToBuf [17:55:27]FM_MakeSignedData [17:55:27]FM_MakeSignedData [17:55:27]SAM_PROTO_SignData [17:55:27]wFMCommunicate request_size=4 [17:55:27]MH_SAM_APDU [17:55:27]CAPDU: 80 0D 01 02 [17:55:27]Write to MH i2c: E2 08 00 90 1B 80 0D 01 02 00 00 00 00 24 [17:55:27]Write i2c OK [17:55:27]MH_I2C_Read... [17:55:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:27]Read from MH i2c: E2 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 03 00 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 03 00 90 1B 00 90 00 1F [17:55:27]RAPDU: 90 00 [17:55:27]wFMCommunicate OK [17:55:27]wFMCommunicate request_size=255 [17:55:27]MH_SAM_APDU [17:55: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 0F 8A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 5F 02 00 35 04 06 00 4B [17:55:27]Write to MH i2c: E2 02 01 91 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 0F 8A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 5F 02 00 35 04 06 00 4B 00 00 94 [17:55:27]Write i2c OK [17:55:27]MH_I2C_Read... [17:55:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:27]Read from MH i2c: E2 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 03 00 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 03 00 91 1B 00 90 00 20 [17:55:27]RAPDU: 90 00 [17:55:27]wFMCommunicate OK [17:55:27]wFMCommunicate request_size=10 [17:55:27]MH_SAM_APDU [17:55:27]CAPDU: 80 0D 02 02 05 3D 21 8E B7 02 [17:55:27]Write to MH i2c: E2 0D 00 92 1B 80 0D 02 02 05 00 3D 21 8E B7 02 00 00 D6 [17:55:27]Write i2c OK [17:55:27]MH_I2C_Read... [17:55:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:27]Read from MH i2c: E2 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 03 00 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 03 00 92 1B 00 90 00 21 [17:55:27]RAPDU: 90 00 [17:55:27]wFMCommunicate OK [17:55:27]wFMCommunicate request_size=4 [17:55:27]MH_SAM_APDU [17:55:27]CAPDU: 80 0D 03 02 [17:55:27]Write to MH i2c: E2 08 00 93 1B 80 0D 03 02 00 00 00 00 29 [17:55:27]Write i2c OK [17:55:27]MH_I2C_Read... [17:55:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:27]Read from MH i2c: E2 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 0B 00 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 0B 00 93 1B 00 A5 D4 EF 61 0F 48 D1 93 90 00 AE [17:55:27]RAPDU: A5 D4 EF 61 0F 48 D1 93 90 00 [17:55:27]wFMCommunicate OK [17:55:27]SAM_PROTO_SignData done [17:55:27]FM_MakeSignedData done [17:55:27]CreateOFDProtocolMessage [17:55:27]wFMCommunicate request_size=4 [17:55:27]MH_SAM_APDU [17:55:27]CAPDU: 80 11 00 00 [17:55:27]Write to MH i2c: E2 08 00 94 1B 80 11 00 00 00 00 00 00 29 [17:55:27]Write i2c OK [17:55:27]MH_I2C_Read... [17:55:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:27]Read from MH i2c: E2 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 17 00 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 17 00 94 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7E [17:55:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:55:27]wFMCommunicate OK [17:55:27]CreateOFDProtocolMessage done [17:55:27]OFDSenderStorePacket 155638 [17:55:27]StoreOFDPacket docnum=155638 [17:55:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D2 23 07 01 41 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 0F 8A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 5F 02 00 35 04 06 00 4B 3D 21 8E B7 02 A5 D4 EF 61 0F 48 D1 93 [17:55:27]CheckFolder [17:55:27]dirname=/storage/ofd_packets [17:55:27]CheckFolder done [17:55:27]ProducePacketName [17:55:27]name=ofd_packets/00155638 [17:55:27]NVStorageSaveData ofd_packets/00155638 [17:55:27]File name is /storage/ofd_packets/00155638 [17:55:27]Write 301 bytes [17:55:27]NVStorageSaveData done [17:55:27]OFDSenderStorePacket done [17:55:27]KKMCreateOFDPacket done [17:55:27]NVStorageSaveData kkm_last_timestamp [17:55:27]File name is /storage/kkm_last_timestamp [17:55:27]Write 4 bytes [17:55:27]NVStorageSaveData done [17:55:27]ExternCall_PrintAddStr [17:55:27]wPrintStart [17:55:27]Write to MH i2c: 01 00 00 95 1B B0 [17:55:27]Write i2c OK [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: 01 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: 01 07 00 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: 01 07 00 95 1B 00 00 00 00 00 FF 0F C5 [17:55:27]RasterBufferAndPrint [17:55:27]line Счет N : (1)98445 [17:55:27]line ИНН: 02508201610067 [17:55:27]line Контрольно-Кассовый Чек [17:55:27]line ПРОДАЖА [17:55:27]line ТРК (МРК, ГНК) : 21 [17:55:27]line Товар: 2710124130 [17:55:27]line Аи-92-К-5 [17:55:27]line 7.480 * 66.90 [17:55:27]line = 500.41 [17:55:27]line НДС 12% НСП 1% [17:55:27]line > о реализуемом товаре [17:55:27]line ОКРУГЛЕНИЕ: -0.41 [17:55:27]line ИТОГО: 500.00 [17:55:27]line Внесено: 500.00 [17:55:27]line СДАЧА: 0.00 [17:55:27]line НСП 1% : 4.43 [17:55:27]line НДС 12% : 53.14 [17:55:27]line Наличными: 500.00 [17:55:27]line Безнал.: 0.00 [17:55:27]line Место: АЗС № 143 "Партнер Нефть" [17:55:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:55:27]line СНО: Общий режим [17:55:27]line Чек 263 24.10.2024 17:55 [17:55:27]line Смена: 534 ФФД: 1.0 [17:55:27]line ЗНМ: 0300000096 [17:55:27]line РНМ: 0000000000091693 [17:55:27]line Версия ККМ: 001 [17:55:27]line ФМ: 0000000000871792 [17:55:27]line ФД: 155638 [17:55:27]line ФПД: 82725928089346 [17:55:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175527&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155638&fm=82725928089346&tin=02508201610067®Number=0000000000091693&sum=50000 [17:55:28]OFD Sender: Processing packet 155638 [packets to send 31, broken 30] [17:55:28]ProducePacketName [17:55:28]name=ofd_packets/00155638 [17:55:28]OFD Sender: To server: pG, [17:55:28]CommunicateWithHost lk.salyk.kg:30040 [17:55:28]ConnectInit lk.salyk.kg [17:55:28]written 0, free lines is 4095 [17:55:28]Connected sock=11 [17:55: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 39 32 0F 01 00 00 D2 23 07 01 41 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 0F 8A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 5F 02 00 35 04 06 00 4B 3D 21 8E B7 02 A5 D4 EF 61 0F 48 D1 93 [17:55: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 39 32 4F 00 00 00 8E E0 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 39 32 10 04 04 00 F6 5F 02 00 F4 03 04 00 87 2F 1A 67 B6 04 01 00 00 16 8A 1E AF C1 F1 59 64 [17:55:28]CommunicateWithHost err = 0 [17:55:28]CheckOFDResponse [17:55:28]1017 (14) - 77093643461234 [17:55:28]1041 (16) - 0000000000871792 [17:55:28]1040 (4) - 155638 [17:55:28]1012 (4) - 24.10.2024 11:29 [17:55:28]1206 (1) - 0 [17:55:28]OFD Sender: Remove packet 155638 [17:55:28]ProducePacketName [17:55:28]name=ofd_packets/00155638 [17:55:28]NVStorageDeleteData [17:55:28]Write to MH i2c: 01 00 00 C0 1B DB [17:55:28]Write i2c OK [17:55:28]MH_I2C_Read... [17:55:28]Read from MH i2c: 01 [17:55:28]MH_I2C_Read... [17:55:28]Read from MH i2c: 01 07 00 [17:55:28]MH_I2C_Read... [17:55:28]Read from MH i2c: 01 07 00 C0 1B 00 00 00 00 00 D9 0C C7 [17:55:28]RasterBufferAndPrint [17:55:28]line [17:55:28]line [17:55:28]line [17:55:28]line [17:55:28]line [17:55:28]written 0, free lines is 3297 [17:55:28]process_action close_receipt done [17:55:28]requested_data is exist [17:55:28]produce_requested_data [17:55:28]requested_item fm.sn is exist - process it [17:55:28]wFMCommunicate request_size=4 [17:55:28]MH_SAM_APDU [17:55:28]CAPDU: 80 11 00 00 [17:55:28]Write to MH i2c: E2 08 00 C7 1B 80 11 00 00 00 00 00 00 5C [17:55:28]Write i2c OK [17:55:28]MH_I2C_Read... [17:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:28]Read from MH i2c: E2 [17:55:28]MH_I2C_Read... [17:55:28]Read from MH i2c: E2 17 00 [17:55:28]MH_I2C_Read... [17:55:28]Read from MH i2c: E2 17 00 C7 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B1 [17:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:55:28]wFMCommunicate OK [17:55:28]requested_item fd.num is exist - process it [17:55:28]SAM_PROTO_GetFieldsCounters [17:55:28]wFMCommunicate request_size=4 [17:55:28]MH_SAM_APDU [17:55:28]CAPDU: 80 13 00 00 [17:55:28]Write to MH i2c: E2 08 00 C8 1B 80 13 00 00 00 00 00 00 5F [17:55:28]Write i2c OK [17:55:28]MH_I2C_Read... [17:55:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:28]Read from MH i2c: E2 [17:55:28]MH_I2C_Read... [17:55:28]Read from MH i2c: E2 62 00 [17:55:28]MH_I2C_Read... [17:55:28]Read from MH i2c: E2 62 00 C8 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F6 5F 02 00 0E 04 04 00 16 02 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 0C [17:55: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F6 5F 02 00 0E 04 04 00 16 02 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 [17:55:28]wFMCommunicate OK [17:55:28]SAM_PROTO_GetFieldsCounters done [17:55:28]requested_item shift.num is exist - process it [17:55:28]requested_item shift.opened is exist - process it [17:55:28]req_shift_opened [17:55:28]FM_GetShiftState [17:55:28]SAM_PROTO_GetShiftState [17:55:28]wFMCommunicate request_size=4 [17:55:28]MH_SAM_APDU [17:55:28]CAPDU: 80 13 01 00 [17:55:28]Write to MH i2c: E2 08 00 C9 1B 80 13 01 00 00 00 00 00 61 [17:55:28]Write i2c OK [17:55:28]MH_I2C_Read... [17:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:28]Read from MH i2c: E2 [17:55:28]MH_I2C_Read... [17:55:28]Read from MH i2c: E2 0E 00 [17:55:28]MH_I2C_Read... [17:55:28]Read from MH i2c: E2 0E 00 C9 1B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AE [17:55:28]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:55:28]wFMCommunicate OK [17:55:28]SAM_PROTO_GetShiftState done [17:55:28]FM_GetShiftState done [17:55:28]req_shift_opened done [17:55:28]requested_item shift.open_date is exist - process it [17:55:28]req_shift_open_date [17:55:28]req_shift_open_date done [17:55:28]produce_requested_data done [17:55:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155638,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:55:28]process_action_free close_receipt [17:55:28]json_value_free [17:55:28]json_value_free done [17:55:28]process_json_proto returns [17:55:28]Send response to host [17:55:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155638,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:55:28]free response buf [17:55:28]execute_script done [17:55:28]execute_script returns [17:55:28]free content buf [17:55:28]Sock 8.Close socket [17:55:28]Sock 8.Thread stoped [17:55:28]OFD Sender: No OFD packet to send [17:55:33]OFD Sender: No OFD packet to send [17:55:38]OFD Sender: No OFD packet to send [17:55:43]accept exits with 9 [17:55:43]New connection [17:55:43]New thread 3066781028 created [17:55:43]Thread 3066637668 joined [17:55:43]Waiting for new connection... [17:55:43] Sock 9.Parse request [17:55:43]Sock 9.Check first char [17:55:43]Sock 9.First char is OK [17:55:43]request: POST /json_proto HTTP/1.0 [17:55:43]Method: POST [17:55:43]URL: /json_proto [17:55:43]Method is POST - this is cgi request [17:55:43]url: /json_proto [17:55:43]query_string will be loaded in cgi processing [17:55:43]execute_cgi json_proto POST (null) [17:55:43]execute_cgi path=json_proto method=POST [17:55:43]POST find Content-Length [17:55:43]Host: 172.17.63.3:8080 [17:55:43]Content-Length: 799 [17:55:43]Content-Type: application/json [17:55:43] [17:55:43]POST finish read [17:55:43]Found Content-Length = 799 [17:55:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949695", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:43]execute_script... [17:55: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)98444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949695", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:55:43]POST & json_proto [17:55:43]process_json_proto [17:55:43]json parsed OK: [17:55:43]protocol is kg_v1.0 [17:55:43]action value=close_receipt [17:55:43]process_action close_receipt [17:55:43]cmd_close_receipt [17:55:43]MH_GetDate [17:55:43]Write to MH i2c: F0 00 00 CA 1B D4 [17:55:43]Write i2c OK [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: F0 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: F0 09 00 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: F0 09 00 CA 1B 00 20 8A 1A 67 50 D1 6C 64 F9 [17:55:43]GetLastDocTimeStamp 1729792527 [17:55:43]current date 1729792544 [17:55:43]FM_GetShiftState [17:55:43]SAM_PROTO_GetShiftState [17:55:43]wFMCommunicate request_size=4 [17:55:43]MH_SAM_APDU [17:55:43]CAPDU: 80 13 01 00 [17:55:43]Write to MH i2c: E2 08 00 CB 1B 80 13 01 00 00 00 00 00 63 [17:55:43]Write i2c OK [17:55:43]MH_I2C_Read... [17:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:43]Read from MH i2c: E2 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 0E 00 [17:55:43]MH_I2C_Read... [17:55:43]Read from MH i2c: E2 0E 00 CB 1B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 B0 [17:55:43]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:55:43]wFMCommunicate OK [17:55:43]SAM_PROTO_GetShiftState done [17:55:43]FM_GetShiftState done [17:55:43]opened in 1729729836 [17:55:43]opened+sec_in_day 1729816236 [17:55:43]quantity*price = 0 [17:55:43]sum+1 = 1 [17:55:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 264 24.10.2024 17:55 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 3949695 ФМ: 0000000000871792 ФД: 155639 ФПД: 162774557948371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175544&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155639&fm=162774557948371&tin=02508201610067®Number=0000000000091693&sum=0 [17:55:44]StoreToDocumentArchive [17:55:44]shift 534 fd 155639 [17:55:44]save to /storage/0534/doc_00155639 [17:55:44]save last doc name /storage/0534/doc_00155639 to /storage/kkm_last_doc_name [17:55:44]save OK [17:55:44]Clear old archive folders... [17:55:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:55:44]tlvbuf is B6D7E780 [17:55:44]SAM_PROTO_ClearQueue [17:55:44]wFMCommunicate request_size=4 [17:55:44]MH_SAM_APDU [17:55:44]CAPDU: 80 09 00 00 [17:55:44]Write to MH i2c: E2 08 00 D8 1B 80 09 00 00 00 00 00 00 65 [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:44]Read from MH i2c: E2 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 03 00 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 03 00 D8 1B 00 90 00 67 [17:55:44]RAPDU: 90 00 [17:55:44]wFMCommunicate OK [17:55:44]SAM_PROTO_ClearQueue done [17:55:44]KKMCreateOFDPacket [17:55:44]OFDProtocolAddRootSTLVToBuf [17:55:44]FM_MakeSignedData [17:55:44]FM_MakeSignedData [17:55:44]SAM_PROTO_SignData [17:55:44]wFMCommunicate request_size=4 [17:55:44]MH_SAM_APDU [17:55:44]CAPDU: 80 0D 01 02 [17:55:44]Write to MH i2c: E2 08 00 D9 1B 80 0D 01 02 00 00 00 00 6D [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:44]Read from MH i2c: E2 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 03 00 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 03 00 D9 1B 00 90 00 68 [17:55:44]RAPDU: 90 00 [17:55:44]wFMCommunicate OK [17:55:44]wFMCommunicate request_size=255 [17:55:44]MH_SAM_APDU [17:55: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 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 08 01 00 00 F4 03 04 00 20 8A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 5F 02 00 35 04 06 00 94 [17:55:44]Write to MH i2c: E2 02 01 DA 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 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 08 01 00 00 F4 03 04 00 20 8A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 5F 02 00 35 04 06 00 94 00 00 22 [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:44]Read from MH i2c: E2 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 03 00 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 03 00 DA 1B 00 90 00 69 [17:55:44]RAPDU: 90 00 [17:55:44]wFMCommunicate OK [17:55:44]wFMCommunicate request_size=10 [17:55:44]MH_SAM_APDU [17:55:44]CAPDU: 80 0D 02 02 05 0A E7 B4 79 D3 [17:55:44]Write to MH i2c: E2 0D 00 DB 1B 80 0D 02 02 05 00 0A E7 B4 79 D3 00 00 6B [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:44]Read from MH i2c: E2 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 03 00 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 03 00 DB 1B 00 90 00 6A [17:55:44]RAPDU: 90 00 [17:55:44]wFMCommunicate OK [17:55:44]wFMCommunicate request_size=4 [17:55:44]MH_SAM_APDU [17:55:44]CAPDU: 80 0D 03 02 [17:55:44]Write to MH i2c: E2 08 00 DC 1B 80 0D 03 02 00 00 00 00 72 [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:44]Read from MH i2c: E2 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 0B 00 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 0B 00 DC 1B 00 00 FB D5 7B 56 E3 23 20 90 00 3A [17:55:44]RAPDU: 00 FB D5 7B 56 E3 23 20 90 00 [17:55:44]wFMCommunicate OK [17:55:44]SAM_PROTO_SignData done [17:55:44]FM_MakeSignedData done [17:55:44]CreateOFDProtocolMessage [17:55:44]wFMCommunicate request_size=4 [17:55:44]MH_SAM_APDU [17:55:44]CAPDU: 80 11 00 00 [17:55:44]Write to MH i2c: E2 08 00 DD 1B 80 11 00 00 00 00 00 00 72 [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:44]Read from MH i2c: E2 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 17 00 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: E2 17 00 DD 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C7 [17:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:55:44]wFMCommunicate OK [17:55:44]CreateOFDProtocolMessage done [17:55:44]OFDSenderStorePacket 155639 [17:55:44]StoreOFDPacket docnum=155639 [17:55:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A8 2D 07 01 96 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 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 08 01 00 00 F4 03 04 00 20 8A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 5F 02 00 35 04 06 00 94 0A E7 B4 79 D3 00 FB D5 7B 56 E3 23 20 [17:55:44]CheckFolder [17:55:44]dirname=/storage/ofd_packets [17:55:44]CheckFolder done [17:55:44]ProducePacketName [17:55:44]name=ofd_packets/00155639 [17:55:44]NVStorageSaveData ofd_packets/00155639 [17:55:44]File name is /storage/ofd_packets/00155639 [17:55:44]Write 301 bytes [17:55:44]NVStorageSaveData done [17:55:44]OFDSenderStorePacket done [17:55:44]KKMCreateOFDPacket done [17:55:44]NVStorageSaveData kkm_last_timestamp [17:55:44]File name is /storage/kkm_last_timestamp [17:55:44]Write 4 bytes [17:55:44]NVStorageSaveData done [17:55:44]ExternCall_PrintAddStr [17:55:44]wPrintStart [17:55:44]Write to MH i2c: 01 00 00 DE 1B F9 [17:55:44]Write i2c OK [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: 01 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: 01 07 00 [17:55:44]MH_I2C_Read... [17:55:44]Read from MH i2c: 01 07 00 DE 1B 00 00 00 00 00 FF 0F 0E [17:55:44]RasterBufferAndPrint [17:55:44]line Счет N : (1)98444 [17:55:44]line ИНН: 02508201610067 [17:55:44]line Контрольно-Кассовый Чек [17:55:44]line ПРОДАЖА [17:55:44]line ТРК (МРК, ГНК) : 31 [17:55:44]line Товар: 2710124130 [17:55:44]line Аи-92-К-5 [17:55:44]line 20.000 * 0.00 [17:55:44]line = 0.00 [17:55:44]line НДС 12% НСП 1% [17:55:44]line > о реализуемом товаре [17:55:44]line ИТОГО: 0.00 [17:55:44]line НСП 1% : 0.00 [17:55:44]line НДС 12% : 0.00 [17:55:44]line Наличными: 0.00 [17:55:44]line Безнал.: 0.00 [17:55:44]line Место: АЗС № 143 "Партнер Нефть" [17:55:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:55:44]line СНО: Общий режим [17:55:44]line Чек 264 24.10.2024 17:55 [17:55:44]line Смена: 534 ФФД: 1.0 [17:55:44]line ЗНМ: 0300000096 [17:55:44]line РНМ: 0000000000091693 [17:55:44]line Версия ККМ: 001 [17:55:44]line Талоны: Топливные Талоны [17:55:44]line 3949695 [17:55:44]line ФМ: 0000000000871792 [17:55:44]line ФД: 155639 [17:55:44]line ФПД: 162774557948371 [17:55:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175544&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155639&fm=162774557948371&tin=02508201610067®Number=0000000000091693&sum=0 [17:55:45]OFD Sender: Processing packet 155639 [packets to send 31, broken 30] [17:55:45]ProducePacketName [17:55:45]name=ofd_packets/00155639 [17:55:45]OFD Sender: To server: pG, [17:55:45]CommunicateWithHost lk.salyk.kg:30040 [17:55:45]ConnectInit lk.salyk.kg [17:55:45]written 0, free lines is 4095 [17:55:45]Connected sock=10 [17:55:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A8 2D 07 01 96 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 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 08 01 00 00 F4 03 04 00 20 8A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 5F 02 00 35 04 06 00 94 0A E7 B4 79 D3 00 FB D5 7B 56 E3 23 20 [17:55:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4B E6 47 00 FA 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 39 32 10 04 04 00 F7 5F 02 00 F4 03 04 00 98 2F 1A 67 B6 04 01 00 00 7B F0 88 BD 2E 7B A4 5E [17:55:45]CommunicateWithHost err = 0 [17:55:45]CheckOFDResponse [17:55:45]1017 (14) - 77093643461234 [17:55:45]1041 (16) - 0000000000871792 [17:55:45]1040 (4) - 155639 [17:55:45]1012 (4) - 24.10.2024 11:29 [17:55:45]1206 (1) - 0 [17:55:45]OFD Sender: Remove packet 155639 [17:55:45]ProducePacketName [17:55:45]name=ofd_packets/00155639 [17:55:45]NVStorageDeleteData [17:55:45]Write to MH i2c: 01 00 00 08 1C 24 [17:55:45]Write i2c OK [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: 01 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: 01 07 00 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: 01 07 00 08 1C 00 00 00 00 00 EF 0C 26 [17:55:45]RasterBufferAndPrint [17:55:45]line [17:55:45]line [17:55:45]line [17:55:45]line [17:55:45]line [17:55:45]written 0, free lines is 3317 [17:55:45]process_action close_receipt done [17:55:45]requested_data is exist [17:55:45]produce_requested_data [17:55:45]requested_item fm.sn is exist - process it [17:55:45]wFMCommunicate request_size=4 [17:55:45]MH_SAM_APDU [17:55:45]CAPDU: 80 11 00 00 [17:55:45]Write to MH i2c: E2 08 00 0F 1C 80 11 00 00 00 00 00 00 A5 [17:55:45]Write i2c OK [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: E2 [17:55:45]MH_I2C_Read... [17:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:45]Read from MH i2c: E2 17 00 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: E2 17 00 0F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FA [17:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:55:45]wFMCommunicate OK [17:55:45]requested_item fd.num is exist - process it [17:55:45]SAM_PROTO_GetFieldsCounters [17:55:45]wFMCommunicate request_size=4 [17:55:45]MH_SAM_APDU [17:55:45]CAPDU: 80 13 00 00 [17:55:45]Write to MH i2c: E2 08 00 10 1C 80 13 00 00 00 00 00 00 A8 [17:55:45]Write i2c OK [17:55:45]MH_I2C_Read... [17:55:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:45]Read from MH i2c: E2 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: E2 62 00 [17:55:45]MH_I2C_Read... [17:55:45]Read from MH i2c: E2 62 00 10 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F7 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 59 [17:55: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F7 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:55:45]wFMCommunicate OK [17:55:45]SAM_PROTO_GetFieldsCounters done [17:55:45]requested_item shift.num is exist - process it [17:55:45]requested_item shift.opened is exist - process it [17:55:45]req_shift_opened [17:55:45]FM_GetShiftState [17:55:45]SAM_PROTO_GetShiftState [17:55:45]wFMCommunicate request_size=4 [17:55:45]MH_SAM_APDU [17:55:45]CAPDU: 80 13 01 00 [17:55:45]Write to MH i2c: E2 08 00 11 1C 80 13 01 00 00 00 00 00 AA [17:55:45]Write i2c OK [17:55:45]MH_I2C_Read... [17:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:46]Read from MH i2c: E2 [17:55:46]MH_I2C_Read... [17:55:46]Read from MH i2c: E2 0E 00 [17:55:46]MH_I2C_Read... [17:55:46]Read from MH i2c: E2 0E 00 11 1C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F7 [17:55:46]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:55:46]wFMCommunicate OK [17:55:46]SAM_PROTO_GetShiftState done [17:55:46]FM_GetShiftState done [17:55:46]req_shift_opened done [17:55:46]requested_item shift.open_date is exist - process it [17:55:46]req_shift_open_date [17:55:46]req_shift_open_date done [17:55:46]produce_requested_data done [17:55:46]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155639,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:55:46]process_action_free close_receipt [17:55:46]json_value_free [17:55:46]json_value_free done [17:55:46]process_json_proto returns [17:55:46]Send response to host [17:55:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155639,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:55:46]free response buf [17:55:46]execute_script done [17:55:46]execute_script returns [17:55:46]free content buf [17:55:46]Sock 9.Close socket [17:55:46]Sock 9.Thread stoped [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:38]accept exits with 8 [17:57:38]New connection [17:57:38]New thread 3066637668 created [17:57:38]Thread 3066781028 joined [17:57:38]Waiting for new connection... [17:57:38] Sock 8.Parse request [17:57:38]Sock 8.Check first char [17:57:38]Sock 8.First char is OK [17:57:38]request: POST /json_proto HTTP/1.0 [17:57:38]Method: POST [17:57:38]URL: /json_proto [17:57:38]Method is POST - this is cgi request [17:57:38]url: /json_proto [17:57:38]query_string will be loaded in cgi processing [17:57:38]execute_cgi json_proto POST (null) [17:57:38]execute_cgi path=json_proto method=POST [17:57:38]POST find Content-Length [17:57:38]Host: 172.17.63.3:8080 [17:57:38]Content-Length: 676 [17:57:38]Content-Type: application/json [17:57:38] [17:57:38]POST finish read [17:57:38]Found Content-Length = 676 [17:57:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:38]execute_script... [17: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)98446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:38]POST & json_proto [17:57:38]process_json_proto [17:57:38]json parsed OK: [17:57:38]protocol is kg_v1.0 [17:57:38]action value=close_receipt [17:57:38]process_action close_receipt [17:57:38]cmd_close_receipt [17:57:38]MH_GetDate [17:57:38]Write to MH i2c: F0 00 00 12 1C 1D [17:57:38]Write i2c OK [17:57:38]MH_I2C_Read... [17:57:38]Read from MH i2c: F0 [17:57:38]MH_I2C_Read... [17:57:38]Read from MH i2c: F0 09 00 [17:57:38]MH_I2C_Read... [17:57:38]Read from MH i2c: F0 09 00 12 1C 00 93 8A 1A 67 50 D1 6C 64 B5 [17:57:38]GetLastDocTimeStamp 1729792544 [17:57:38]current date 1729792659 [17:57:38]FM_GetShiftState [17:57:38]SAM_PROTO_GetShiftState [17:57:38]wFMCommunicate request_size=4 [17:57:38]MH_SAM_APDU [17:57:38]CAPDU: 80 13 01 00 [17:57:38]Write to MH i2c: E2 08 00 13 1C 80 13 01 00 00 00 00 00 AC [17:57:38]Write i2c OK [17:57:38]MH_I2C_Read... [17:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:38]Read from MH i2c: E2 [17:57:38]MH_I2C_Read... [17:57:38]Read from MH i2c: E2 0E 00 [17:57:38]MH_I2C_Read... [17:57:38]Read from MH i2c: E2 0E 00 13 1C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F9 [17:57:38]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:57:38]wFMCommunicate OK [17:57:38]SAM_PROTO_GetShiftState done [17:57:38]FM_GetShiftState done [17:57:38]opened in 1729729836 [17:57:38]opened+sec_in_day 1729816236 [17:57:38]quantity*price = 30038 [17:57:38]sum+1 = 30039 [17:57:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 265 24.10.2024 17:57 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155640 ФПД: 166904599262377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175739&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155640&fm=166904599262377&tin=02508201610067®Number=0000000000091693&sum=30000 [17:57:39]StoreToDocumentArchive [17:57:39]shift 534 fd 155640 [17:57:39]save to /storage/0534/doc_00155640 [17:57:39]save last doc name /storage/0534/doc_00155640 to /storage/kkm_last_doc_name [17:57:39]save OK [17:57:39]Clear old archive folders... [17:57:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:57:39]tlvbuf is 01F532A0 [17:57:39]SAM_PROTO_ClearQueue [17:57:39]wFMCommunicate request_size=4 [17:57:39]MH_SAM_APDU [17:57:39]CAPDU: 80 09 00 00 [17:57:39]Write to MH i2c: E2 08 00 20 1C 80 09 00 00 00 00 00 00 AE [17:57:39]Write i2c OK [17:57:39]MH_I2C_Read... [17:57:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:39]Read from MH i2c: E2 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: E2 03 00 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: E2 03 00 20 1C 00 90 00 B0 [17:57:39]RAPDU: 90 00 [17:57:39]wFMCommunicate OK [17:57:39]SAM_PROTO_ClearQueue done [17:57:39]KKMCreateOFDPacket [17:57:39]OFDProtocolAddRootSTLVToBuf [17:57:39]FM_MakeSignedData [17:57:39]FM_MakeSignedData [17:57:39]SAM_PROTO_SignData [17:57:39]wFMCommunicate request_size=4 [17:57:39]MH_SAM_APDU [17:57:39]CAPDU: 80 0D 01 02 [17:57:39]Write to MH i2c: E2 08 00 21 1C 80 0D 01 02 00 00 00 00 B6 [17:57:39]Write i2c OK [17:57:39]MH_I2C_Read... [17:57:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:39]Read from MH i2c: E2 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: E2 03 00 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: E2 03 00 21 1C 00 90 00 B1 [17:57:39]RAPDU: 90 00 [17:57:39]wFMCommunicate OK [17:57:39]wFMCommunicate request_size=255 [17:57:39]MH_SAM_APDU [17: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 93 8A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 5F 02 00 35 04 06 00 97 [17:57:39]Write to MH i2c: E2 02 01 22 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 93 8A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 5F 02 00 35 04 06 00 97 00 00 EE [17:57:39]Write i2c OK [17:57:39]MH_I2C_Read... [17:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:39]Read from MH i2c: E2 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: E2 03 00 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: E2 03 00 22 1C 00 90 00 B2 [17:57:39]RAPDU: 90 00 [17:57:39]wFMCommunicate OK [17:57:39]wFMCommunicate request_size=10 [17:57:39]MH_SAM_APDU [17:57:39]CAPDU: 80 0D 02 02 05 CC 81 59 B4 A9 [17:57:39]Write to MH i2c: E2 0D 00 23 1C 80 0D 02 02 05 00 CC 81 59 B4 A9 00 00 C6 [17:57:39]Write i2c OK [17:57:39]MH_I2C_Read... [17:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:39]Read from MH i2c: E2 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: E2 03 00 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: E2 03 00 23 1C 00 90 00 B3 [17:57:39]RAPDU: 90 00 [17:57:39]wFMCommunicate OK [17:57:39]wFMCommunicate request_size=4 [17:57:39]MH_SAM_APDU [17:57:39]CAPDU: 80 0D 03 02 [17:57:39]Write to MH i2c: E2 08 00 24 1C 80 0D 03 02 00 00 00 00 BB [17:57:39]Write i2c OK [17:57:39]MH_I2C_Read... [17:57:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:39]Read from MH i2c: E2 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: E2 0B 00 [17:57:39]MH_I2C_Read... [17:57:39]Read from MH i2c: E2 0B 00 24 1C 00 13 94 8F 16 F5 9F 91 3E 90 00 6B [17:57:39]RAPDU: 13 94 8F 16 F5 9F 91 3E 90 00 [17:57:39]wFMCommunicate OK [17:57:39]SAM_PROTO_SignData done [17:57:39]FM_MakeSignedData done [17:57:39]CreateOFDProtocolMessage [17:57:39]wFMCommunicate request_size=4 [17:57:39]MH_SAM_APDU [17:57:39]CAPDU: 80 11 00 00 [17:57:39]Write to MH i2c: E2 08 00 25 1C 80 11 00 00 00 00 00 00 BB [17:57:39]Write i2c OK [17:57:39]MH_I2C_Read... [17:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:40]Read from MH i2c: E2 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 17 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 17 00 25 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 10 [17:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:57:40]wFMCommunicate OK [17:57:40]CreateOFDProtocolMessage done [17:57:40]OFDSenderStorePacket 155640 [17:57:40]StoreOFDPacket docnum=155640 [17:57:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 63 51 07 01 3D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 93 8A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 5F 02 00 35 04 06 00 97 CC 81 59 B4 A9 13 94 8F 16 F5 9F 91 3E [17:57:40]CheckFolder [17:57:40]dirname=/storage/ofd_packets [17:57:40]CheckFolder done [17:57:40]ProducePacketName [17:57:40]name=ofd_packets/00155640 [17:57:40]NVStorageSaveData ofd_packets/00155640 [17:57:40]File name is /storage/ofd_packets/00155640 [17:57:40]Write 301 bytes [17:57:40]NVStorageSaveData done [17:57:40]OFDSenderStorePacket done [17:57:40]KKMCreateOFDPacket done [17:57:40]NVStorageSaveData kkm_last_timestamp [17:57:40]File name is /storage/kkm_last_timestamp [17:57:40]Write 4 bytes [17:57:40]NVStorageSaveData done [17:57:40]ExternCall_PrintAddStr [17:57:40]wPrintStart [17:57:40]Write to MH i2c: 01 00 00 26 1C 42 [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: 01 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: 01 07 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: 01 07 00 26 1C 00 00 00 00 00 FF 0F 57 [17:57:40]RasterBufferAndPrint [17:57:40]line Счет N : (1)98446 [17:57:40]line ИНН: 02508201610067 [17:57:40]line Контрольно-Кассовый Чек [17:57:40]line ПРОДАЖА [17:57:40]line ТРК (МРК, ГНК) : 31 [17:57:40]line Товар: 2710124130 [17:57:40]line Аи-92-К-5 [17:57:40]line 4.490 * 66.90 [17:57:40]line = 300.38 [17:57:40]line НДС 12% НСП 1% [17:57:40]line > о реализуемом товаре [17:57:40]line ОКРУГЛЕНИЕ: -0.38 [17:57:40]line ИТОГО: 300.00 [17:57:40]line Внесено: 300.00 [17:57:40]line СДАЧА: 0.00 [17:57:40]line НСП 1% : 2.66 [17:57:40]line НДС 12% : 31.90 [17:57:40]line Наличными: 300.00 [17:57:40]line Безнал.: 0.00 [17:57:40]line Место: АЗС № 143 "Партнер Нефть" [17:57:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:57:40]line СНО: Общий режим [17:57:40]line Чек 265 24.10.2024 17:57 [17:57:40]line Смена: 534 ФФД: 1.0 [17:57:40]line ЗНМ: 0300000096 [17:57:40]line РНМ: 0000000000091693 [17:57:40]line Версия ККМ: 001 [17:57:40]line ФМ: 0000000000871792 [17:57:40]line ФД: 155640 [17:57:40]line ФПД: 166904599262377 [17:57:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T175739&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155640&fm=166904599262377&tin=02508201610067®Number=0000000000091693&sum=30000 [17:57:40]OFD Sender: Processing packet 155640 [packets to send 31, broken 30] [17:57:40]ProducePacketName [17:57:40]name=ofd_packets/00155640 [17:57:40]OFD Sender: To server: pG, [17:57:40]CommunicateWithHost lk.salyk.kg:30040 [17:57:40]ConnectInit lk.salyk.kg [17:57:40]written 0, free lines is 4095 [17:57:40]Write to MH i2c: 01 00 00 51 1C 6D [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: 01 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: 01 07 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: 01 07 00 51 1C 00 00 00 00 00 E1 0C 61 [17:57:40]RasterBufferAndPrint [17:57:40]line [17:57:40]line [17:57:40]line [17:57:40]line [17:57:40]line [17:57:40]written 0, free lines is 3303 [17:57:40]process_action close_receipt done [17:57:40]requested_data is exist [17:57:40]produce_requested_data [17:57:40]requested_item fm.sn is exist - process it [17:57:40]wFMCommunicate request_size=4 [17:57:40]MH_SAM_APDU [17:57:40]CAPDU: 80 11 00 00 [17:57:40]Write to MH i2c: E2 08 00 58 1C 80 11 00 00 00 00 00 00 EE [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:40]Read from MH i2c: E2 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 17 00 [17:57:40]MH_I2C_Read... [17:57:40]Read from MH i2c: E2 17 00 58 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 43 [17:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:57:40]wFMCommunicate OK [17:57:40]requested_item fd.num is exist - process it [17:57:40]SAM_PROTO_GetFieldsCounters [17:57:40]wFMCommunicate request_size=4 [17:57:40]MH_SAM_APDU [17:57:40]CAPDU: 80 13 00 00 [17:57:40]Write to MH i2c: E2 08 00 59 1C 80 13 00 00 00 00 00 00 F1 [17:57:40]Write i2c OK [17:57:40]MH_I2C_Read... [17:57:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:41]Read from MH i2c: E2 [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: E2 62 00 [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: E2 62 00 59 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F8 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 A6 [17: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F8 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:41]wFMCommunicate OK [17:57:41]SAM_PROTO_GetFieldsCounters done [17:57:41]requested_item shift.num is exist - process it [17:57:41]requested_item shift.opened is exist - process it [17:57:41]req_shift_opened [17:57:41]FM_GetShiftState [17:57:41]SAM_PROTO_GetShiftState [17:57:41]wFMCommunicate request_size=4 [17:57:41]MH_SAM_APDU [17:57:41]CAPDU: 80 13 01 00 [17:57:41]Write to MH i2c: E2 08 00 5A 1C 80 13 01 00 00 00 00 00 F3 [17:57:41]Write i2c OK [17:57:41]MH_I2C_Read... [17:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:41]Read from MH i2c: E2 [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: E2 0E 00 [17:57:41]MH_I2C_Read... [17:57:41]Read from MH i2c: E2 0E 00 5A 1C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 40 [17:57:41]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [17:57:41]wFMCommunicate OK [17:57:41]SAM_PROTO_GetShiftState done [17:57:41]FM_GetShiftState done [17:57:41]req_shift_opened done [17:57:41]requested_item shift.open_date is exist - process it [17:57:41]req_shift_open_date [17:57:41]req_shift_open_date done [17:57:41]produce_requested_data done [17:57:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155640,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [17:57:41]process_action_free close_receipt [17:57:41]json_value_free [17:57:41]json_value_free done [17:57:41]process_json_proto returns [17:57:41]Send response to host [17:57:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155640,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [17:57:41]free response buf [17:57:41]execute_script done [17:57:41]execute_script returns [17:57:41]free content buf [17:57:41]Sock 8.Close socket [17:57:41]Sock 8.Thread stoped [17:59:52]ConnectInit Can't connect to host [17:59:52]CommunicateWithHost connect error [17:59:52]CommunicateWithHost err = -1 [17:59:52]OFD Sender: Server communicate error [17:59:57]OFD Sender: Processing packet 155640 [packets to send 31, broken 30] [17:59:57]ProducePacketName [17:59:57]name=ofd_packets/00155640 [17:59:57]OFD Sender: To server: pG, [17:59:57]CommunicateWithHost lk.salyk.kg:30040 [17:59:57]ConnectInit lk.salyk.kg [17:59:57]Connected sock=8 [17:59: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 39 32 0F 01 00 00 63 51 07 01 3D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 93 8A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 5F 02 00 35 04 06 00 97 CC 81 59 B4 A9 13 94 8F 16 F5 9F 91 3E [17:59: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 39 32 4F 00 00 00 79 24 47 00 74 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 39 32 10 04 04 00 F8 5F 02 00 F4 03 04 00 94 30 1A 67 B6 04 01 00 00 3E 26 7A 90 5A C6 A6 0D [17:59:57]CommunicateWithHost err = 0 [17:59:57]CheckOFDResponse [17:59:57]1017 (14) - 77093643461234 [17:59:57]1041 (16) - 0000000000871792 [17:59:57]1040 (4) - 155640 [17:59:57]1012 (4) - 24.10.2024 11:33 [17:59:57]1206 (1) - 0 [17:59:57]OFD Sender: Remove packet 155640 [17:59:57]ProducePacketName [17:59:57]name=ofd_packets/00155640 [17:59:57]NVStorageDeleteData [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:33]OFD Sender: No OFD packet to send [18:00:38]OFD Sender: No OFD packet to send [18:00:43]OFD Sender: No OFD packet to send [18:00:48]OFD Sender: No OFD packet to send [18:00:53]OFD Sender: No OFD packet to send [18:00:58]OFD Sender: No OFD packet to send [18:00:58]accept exits with 9 [18:00:58]New connection [18:00:58]New thread 3066781028 created [18:00:58]Thread 3066637668 joined [18:00:58]Waiting for new connection... [18:00:58] Sock 9.Parse request [18:00:58]Sock 9.Check first char [18:00:58]Sock 9.First char is OK [18:00:58]request: POST /json_proto HTTP/1.0 [18:00:58]Method: POST [18:00:58]URL: /json_proto [18:00:58]Method is POST - this is cgi request [18:00:58]url: /json_proto [18:00:58]query_string will be loaded in cgi processing [18:00:58]execute_cgi json_proto POST (null) [18:00:58]execute_cgi path=json_proto method=POST [18:00:58]POST find Content-Length [18:00:58]Host: 172.17.63.3:8080 [18:00:58]Content-Length: 676 [18:00:58]Content-Type: application/json [18:00:58] [18:00:58]POST finish read [18:00:58]Found Content-Length = 676 [18:00:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:58]execute_script... [18:00: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)98447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:58]POST & json_proto [18:00:58]process_json_proto [18:00:58]json parsed OK: [18:00:58]protocol is kg_v1.0 [18:00:58]action value=close_receipt [18:00:58]process_action close_receipt [18:00:58]cmd_close_receipt [18:00:58]MH_GetDate [18:00:58]Write to MH i2c: F0 00 00 5B 1C 66 [18:00:58]Write i2c OK [18:00:58]MH_I2C_Read... [18:00:58]Read from MH i2c: F0 [18:00:58]MH_I2C_Read... [18:00:58]Read from MH i2c: F0 09 00 [18:00:58]MH_I2C_Read... [18:00:58]Read from MH i2c: F0 09 00 5B 1C 00 5B 8B 1A 67 50 D1 6C 64 C7 [18:00:58]GetLastDocTimeStamp 1729792659 [18:00:58]current date 1729792859 [18:00:58]FM_GetShiftState [18:00:58]SAM_PROTO_GetShiftState [18:00:58]wFMCommunicate request_size=4 [18:00:58]MH_SAM_APDU [18:00:58]CAPDU: 80 13 01 00 [18:00:58]Write to MH i2c: E2 08 00 5C 1C 80 13 01 00 00 00 00 00 F5 [18:00:58]Write i2c OK [18:00:58]MH_I2C_Read... [18:00:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:58]Read from MH i2c: E2 [18:00:58]MH_I2C_Read... [18:00:58]Read from MH i2c: E2 0E 00 [18:00:58]MH_I2C_Read... [18:00:58]Read from MH i2c: E2 0E 00 5C 1C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 42 [18:00:58]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:00:58]wFMCommunicate OK [18:00:58]SAM_PROTO_GetShiftState done [18:00:58]FM_GetShiftState done [18:00:58]opened in 1729729836 [18:00:58]opened+sec_in_day 1729816236 [18:00:58]quantity*price = 50041 [18:00:58]sum+1 = 50042 [18:00:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 266 24.10.2024 18:00 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155641 ФПД: 29297344725040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T180059&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155641&fm=29297344725040&tin=02508201610067®Number=0000000000091693&sum=50000 [18:00:59]StoreToDocumentArchive [18:00:59]shift 534 fd 155641 [18:00:59]save to /storage/0534/doc_00155641 [18:00:59]save last doc name /storage/0534/doc_00155641 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 01F7CBD0 [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 69 1C 80 09 00 00 00 00 00 00 F7 [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 69 1C 00 90 00 F9 [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 6A 1C 80 0D 01 02 00 00 00 00 FF [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 6A 1C 00 90 00 FA [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 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 5B 8B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 5F 02 00 35 04 06 00 1A [18:00:59]Write to MH i2c: E2 02 01 6B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 5B 8B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 5F 02 00 35 04 06 00 1A 00 00 91 [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18:00:59]*** iso7816_exchange 80 0D 02 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 6B 1C 00 90 00 FB [18:00:59]RAPDU: 90 00 [18:00:59]wFMCommunicate OK [18:00:59]wFMCommunicate request_size=10 [18:00:59]MH_SAM_APDU [18:00:59]CAPDU: 80 0D 02 02 05 A5 51 D3 40 30 [18:00:59]Write to MH i2c: E2 0D 00 6C 1C 80 0D 02 02 05 00 A5 51 D3 40 30 00 00 45 [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18:00:59]*** iso7816_exchange 80 0D 02 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 6C 1C 00 90 00 FC [18:00:59]RAPDU: 90 00 [18:00:59]wFMCommunicate OK [18:00:59]wFMCommunicate request_size=4 [18:00:59]MH_SAM_APDU [18:00:59]CAPDU: 80 0D 03 02 [18:00:59]Write to MH i2c: E2 08 00 6D 1C 80 0D 03 02 00 00 00 00 04 [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18:00:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:59]Read from MH i2c: E2 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 0B 00 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 0B 00 6D 1C 00 B3 2A 70 F0 56 D7 38 60 90 00 07 [18:00:59]RAPDU: B3 2A 70 F0 56 D7 38 60 90 00 [18:00:59]wFMCommunicate OK [18:00:59]SAM_PROTO_SignData done [18:00:59]FM_MakeSignedData done [18:00:59]CreateOFDProtocolMessage [18:00:59]wFMCommunicate request_size=4 [18:00:59]MH_SAM_APDU [18:00:59]CAPDU: 80 11 00 00 [18:00:59]Write to MH i2c: E2 08 00 6E 1C 80 11 00 00 00 00 00 00 04 [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:59]Read from MH i2c: E2 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 17 00 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: E2 17 00 6E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 59 [18:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:00:59]wFMCommunicate OK [18:00:59]CreateOFDProtocolMessage done [18:00:59]OFDSenderStorePacket 155641 [18:00:59]StoreOFDPacket docnum=155641 [18:00:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 04 EE 07 01 38 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 5B 8B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 5F 02 00 35 04 06 00 1A A5 51 D3 40 30 B3 2A 70 F0 56 D7 38 60 [18:00:59]CheckFolder [18:00:59]dirname=/storage/ofd_packets [18:00:59]CheckFolder done [18:00:59]ProducePacketName [18:00:59]name=ofd_packets/00155641 [18:00:59]NVStorageSaveData ofd_packets/00155641 [18:00:59]File name is /storage/ofd_packets/00155641 [18:00:59]Write 301 bytes [18:00:59]NVStorageSaveData done [18:00:59]OFDSenderStorePacket done [18:00:59]KKMCreateOFDPacket done [18:00:59]NVStorageSaveData kkm_last_timestamp [18:00:59]File name is /storage/kkm_last_timestamp [18:00:59]Write 4 bytes [18:00:59]NVStorageSaveData done [18:00:59]ExternCall_PrintAddStr [18:00:59]wPrintStart [18:00:59]Write to MH i2c: 01 00 00 6F 1C 8B [18:00:59]Write i2c OK [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: 01 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: 01 07 00 [18:00:59]MH_I2C_Read... [18:00:59]Read from MH i2c: 01 07 00 6F 1C 00 00 00 00 00 FF 0F A0 [18:00:59]RasterBufferAndPrint [18:00:59]line Счет N : (1)98447 [18:00:59]line ИНН: 02508201610067 [18:00:59]line Контрольно-Кассовый Чек [18:00:59]line ПРОДАЖА [18:00:59]line ТРК (МРК, ГНК) : 11 [18:00:59]line Товар: 2710124130 [18:00:59]line Аи-92-К-5 [18:00:59]line 7.480 * 66.90 [18:00:59]line = 500.41 [18:00:59]line НДС 12% НСП 1% [18:00:59]line > о реализуемом товаре [18:00:59]line ОКРУГЛЕНИЕ: -0.41 [18:00:59]line ИТОГО: 500.00 [18:00:59]line Внесено: 500.00 [18:00:59]line СДАЧА: 0.00 [18:00:59]line НСП 1% : 4.43 [18:00:59]line НДС 12% : 53.14 [18:00:59]line Наличными: 500.00 [18:00:59]line Безнал.: 0.00 [18:00:59]line Место: АЗС № 143 "Партнер Нефть" [18:00:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:00:59]line СНО: Общий режим [18:00:59]line Чек 266 24.10.2024 18:00 [18:00:59]line Смена: 534 ФФД: 1.0 [18:00:59]line ЗНМ: 0300000096 [18:00:59]line РНМ: 0000000000091693 [18:00:59]line Версия ККМ: 001 [18:00:59]line ФМ: 0000000000871792 [18:00:59]line ФД: 155641 [18:00:59]line ФПД: 29297344725040 [18:01:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T180059&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155641&fm=29297344725040&tin=02508201610067®Number=0000000000091693&sum=50000 [18:01:00]OFD Sender: Processing packet 155641 [packets to send 31, broken 30] [18:01:00]ProducePacketName [18:01:00]name=ofd_packets/00155641 [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]written 0, free lines is 4095 [18:01:00]Connected sock=10 [18:01: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 39 32 0F 01 00 00 04 EE 07 01 38 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 5B 8B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 5F 02 00 35 04 06 00 1A A5 51 D3 40 30 B3 2A 70 F0 56 D7 38 60 [18:01: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 39 32 4F 00 00 00 F2 E2 47 00 BF 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 39 32 10 04 04 00 F9 5F 02 00 F4 03 04 00 D3 30 1A 67 B6 04 01 00 00 C7 9A EB 08 E1 44 4C 6B [18:01:00]CommunicateWithHost err = 0 [18:01:00]CheckOFDResponse [18:01:00]1017 (14) - 77093643461234 [18:01:00]1041 (16) - 0000000000871792 [18:01:00]1040 (4) - 155641 [18:01:00]1012 (4) - 24.10.2024 11:34 [18:01:00]1206 (1) - 0 [18:01:00]OFD Sender: Remove packet 155641 [18:01:00]ProducePacketName [18:01:00]name=ofd_packets/00155641 [18:01:00]NVStorageDeleteData [18:01:00]Write to MH i2c: 01 00 00 9A 1C B6 [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:00]MH_I2C_Read... [18:01:00]Read from MH i2c: 01 07 00 9A 1C 00 00 00 00 00 E1 0C AA [18:01:00]RasterBufferAndPrint [18:01:00]line [18:01:00]line [18:01:00]line [18:01:00]line [18:01:00]line [18:01:00]written 0, free lines is 3303 [18:01:00]process_action close_receipt done [18:01:00]requested_data is exist [18:01:00]produce_requested_data [18:01:00]requested_item fm.sn is exist - process it [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 A1 1C 80 11 00 00 00 00 00 00 37 [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 A1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8C [18:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:01:00]wFMCommunicate OK [18:01:00]requested_item fd.num is exist - process it [18:01:00]SAM_PROTO_GetFieldsCounters [18:01:00]wFMCommunicate request_size=4 [18:01:00]MH_SAM_APDU [18:01:00]CAPDU: 80 13 00 00 [18:01:00]Write to MH i2c: E2 08 00 A2 1C 80 13 00 00 00 00 00 00 3A [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:00]Read from MH i2c: E2 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 62 00 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 62 00 A2 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F9 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [18:01: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F9 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:00]wFMCommunicate OK [18:01:00]SAM_PROTO_GetFieldsCounters done [18:01:00]requested_item shift.num is exist - process it [18:01:00]requested_item shift.opened is exist - process it [18:01:00]req_shift_opened [18:01:00]FM_GetShiftState [18:01:00]SAM_PROTO_GetShiftState [18:01:00]wFMCommunicate request_size=4 [18:01:00]MH_SAM_APDU [18:01:00]CAPDU: 80 13 01 00 [18:01:00]Write to MH i2c: E2 08 00 A3 1C 80 13 01 00 00 00 00 00 3C [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:00]Read from MH i2c: E2 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 0E 00 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: E2 0E 00 A3 1C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 89 [18:01:00]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:01:00]wFMCommunicate OK [18:01:00]SAM_PROTO_GetShiftState done [18:01:00]FM_GetShiftState done [18:01:00]req_shift_opened done [18:01:00]requested_item shift.open_date is exist - process it [18:01:00]req_shift_open_date [18:01:00]req_shift_open_date done [18:01:00]produce_requested_data done [18:01:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155641,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [18:01:00]process_action_free close_receipt [18:01:00]json_value_free [18:01:00]json_value_free done [18:01:00]process_json_proto returns [18:01:00]Send response to host [18:01:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155641,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [18:01:00]free response buf [18:01:00]execute_script done [18:01:00]execute_script returns [18:01:00]free content buf [18:01:00]Sock 9.Close socket [18:01:00]Sock 9.Thread stoped [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:30]accept exits with 8 [18:08:30]New connection [18:08:30]New thread 3066637668 created [18:08:30]Thread 3066781028 joined [18:08:30]Waiting for new connection... [18:08:30] Sock 8.Parse request [18:08:30]Sock 8.Check first char [18:08:30]Sock 8.First char is OK [18:08:30]request: POST /json_proto HTTP/1.0 [18:08:30]Method: POST [18:08:30]URL: /json_proto [18:08:30]Method is POST - this is cgi request [18:08:30]url: /json_proto [18:08:30]query_string will be loaded in cgi processing [18:08:30]execute_cgi json_proto POST (null) [18:08:30]execute_cgi path=json_proto method=POST [18:08:30]POST find Content-Length [18:08:30]Host: 172.17.63.3:8080 [18:08:30]Content-Length: 676 [18:08:30]Content-Type: application/json [18:08:30] [18:08:30]POST finish read [18:08:30]Found Content-Length = 676 [18:08:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:30]execute_script... [18:08: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)98448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:30]POST & json_proto [18:08:30]process_json_proto [18:08:30]json parsed OK: [18:08:30]protocol is kg_v1.0 [18:08:30]action value=close_receipt [18:08:30]process_action close_receipt [18:08:30]cmd_close_receipt [18:08:30]MH_GetDate [18:08:30]Write to MH i2c: F0 00 00 A4 1C AF [18:08:30]Write i2c OK [18:08:30]MH_I2C_Read... [18:08:30]Read from MH i2c: F0 [18:08:30]MH_I2C_Read... [18:08:30]Read from MH i2c: F0 09 00 [18:08:30]MH_I2C_Read... [18:08:30]Read from MH i2c: F0 09 00 A4 1C 00 1F 8D 1A 67 50 D1 6C 64 D6 [18:08:30]GetLastDocTimeStamp 1729792859 [18:08:30]current date 1729793311 [18:08:30]FM_GetShiftState [18:08:30]SAM_PROTO_GetShiftState [18:08:30]wFMCommunicate request_size=4 [18:08:30]MH_SAM_APDU [18:08:30]CAPDU: 80 13 01 00 [18:08:30]Write to MH i2c: E2 08 00 A5 1C 80 13 01 00 00 00 00 00 3E [18:08:30]Write i2c OK [18:08:30]MH_I2C_Read... [18:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:30]Read from MH i2c: E2 [18:08:30]MH_I2C_Read... [18:08:30]Read from MH i2c: E2 0E 00 [18:08:30]MH_I2C_Read... [18:08:30]Read from MH i2c: E2 0E 00 A5 1C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8B [18:08:30]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:08:30]wFMCommunicate OK [18:08:30]SAM_PROTO_GetShiftState done [18:08:30]FM_GetShiftState done [18:08:30]opened in 1729729836 [18:08:30]opened+sec_in_day 1729816236 [18:08:30]quantity*price = 20003 [18:08:30]sum+1 = 20004 [18:08:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 267 24.10.2024 18:08 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155642 ФПД: 212941521464870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T180831&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155642&fm=212941521464870&tin=02508201610067®Number=0000000000091693&sum=20000 [18:08:31]StoreToDocumentArchive [18:08:31]shift 534 fd 155642 [18:08:31]save to /storage/0534/doc_00155642 [18:08:31]save last doc name /storage/0534/doc_00155642 to /storage/kkm_last_doc_name [18:08:31]save OK [18:08:31]Clear old archive folders... [18:08:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:31]tlvbuf is B6EB0350 [18:08:31]SAM_PROTO_ClearQueue [18:08:31]wFMCommunicate request_size=4 [18:08:31]MH_SAM_APDU [18:08:31]CAPDU: 80 09 00 00 [18:08:31]Write to MH i2c: E2 08 00 B2 1C 80 09 00 00 00 00 00 00 40 [18:08:31]Write i2c OK [18:08:31]MH_I2C_Read... [18:08:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:31]Read from MH i2c: E2 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: E2 03 00 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: E2 03 00 B2 1C 00 90 00 42 [18:08:31]RAPDU: 90 00 [18:08:31]wFMCommunicate OK [18:08:31]SAM_PROTO_ClearQueue done [18:08:31]KKMCreateOFDPacket [18:08:31]OFDProtocolAddRootSTLVToBuf [18:08:31]FM_MakeSignedData [18:08:31]FM_MakeSignedData [18:08:31]SAM_PROTO_SignData [18:08:31]wFMCommunicate request_size=4 [18:08:31]MH_SAM_APDU [18:08:31]CAPDU: 80 0D 01 02 [18:08:31]Write to MH i2c: E2 08 00 B3 1C 80 0D 01 02 00 00 00 00 48 [18:08:31]Write i2c OK [18:08:31]MH_I2C_Read... [18:08:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:32]Read from MH i2c: E2 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 03 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 03 00 B3 1C 00 90 00 43 [18:08:32]RAPDU: 90 00 [18:08:32]wFMCommunicate OK [18:08:32]wFMCommunicate request_size=255 [18:08:32]MH_SAM_APDU [18:08: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 1F 8D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 5F 02 00 35 04 06 00 C1 [18:08:32]Write to MH i2c: E2 02 01 B4 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 1F 8D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 5F 02 00 35 04 06 00 C1 00 00 0B [18:08:32]Write i2c OK [18:08:32]MH_I2C_Read... [18:08:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:32]Read from MH i2c: E2 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 03 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 03 00 B4 1C 00 90 00 44 [18:08:32]RAPDU: 90 00 [18:08:32]wFMCommunicate OK [18:08:32]wFMCommunicate request_size=10 [18:08:32]MH_SAM_APDU [18:08:32]CAPDU: 80 0D 02 02 05 AB 4F BE AE 26 [18:08:32]Write to MH i2c: E2 0D 00 B5 1C 80 0D 02 02 05 00 AB 4F BE AE 26 00 00 E1 [18:08:32]Write i2c OK [18:08:32]MH_I2C_Read... [18:08:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:32]Read from MH i2c: E2 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 03 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 03 00 B5 1C 00 90 00 45 [18:08:32]RAPDU: 90 00 [18:08:32]wFMCommunicate OK [18:08:32]wFMCommunicate request_size=4 [18:08:32]MH_SAM_APDU [18:08:32]CAPDU: 80 0D 03 02 [18:08:32]Write to MH i2c: E2 08 00 B6 1C 80 0D 03 02 00 00 00 00 4D [18:08:32]Write i2c OK [18:08:32]MH_I2C_Read... [18:08:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:32]Read from MH i2c: E2 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 0B 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 0B 00 B6 1C 00 81 91 A4 25 3C 51 A4 62 90 00 BC [18:08:32]RAPDU: 81 91 A4 25 3C 51 A4 62 90 00 [18:08:32]wFMCommunicate OK [18:08:32]SAM_PROTO_SignData done [18:08:32]FM_MakeSignedData done [18:08:32]CreateOFDProtocolMessage [18:08:32]wFMCommunicate request_size=4 [18:08:32]MH_SAM_APDU [18:08:32]CAPDU: 80 11 00 00 [18:08:32]Write to MH i2c: E2 08 00 B7 1C 80 11 00 00 00 00 00 00 4D [18:08:32]Write i2c OK [18:08:32]MH_I2C_Read... [18:08:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:32]Read from MH i2c: E2 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 17 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 17 00 B7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A2 [18:08:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:08:32]wFMCommunicate OK [18:08:32]CreateOFDProtocolMessage done [18:08:32]OFDSenderStorePacket 155642 [18:08:32]StoreOFDPacket docnum=155642 [18:08:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0E DD 07 01 D5 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 1F 8D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 5F 02 00 35 04 06 00 C1 AB 4F BE AE 26 81 91 A4 25 3C 51 A4 62 [18:08:32]CheckFolder [18:08:32]dirname=/storage/ofd_packets [18:08:32]CheckFolder done [18:08:32]ProducePacketName [18:08:32]name=ofd_packets/00155642 [18:08:32]NVStorageSaveData ofd_packets/00155642 [18:08:32]File name is /storage/ofd_packets/00155642 [18:08:32]Write 301 bytes [18:08:32]NVStorageSaveData done [18:08:32]OFDSenderStorePacket done [18:08:32]KKMCreateOFDPacket done [18:08:32]NVStorageSaveData kkm_last_timestamp [18:08:32]File name is /storage/kkm_last_timestamp [18:08:32]Write 4 bytes [18:08:32]NVStorageSaveData done [18:08:32]ExternCall_PrintAddStr [18:08:32]wPrintStart [18:08:32]Write to MH i2c: 01 00 00 B8 1C D4 [18:08:32]OFD Sender: Processing packet 155642 [packets to send 31, broken 30] [18:08:32]ProducePacketName [18:08:32]name=ofd_packets/00155642 [18:08:32]OFD Sender: To server: pG, [18:08:32]CommunicateWithHost lk.salyk.kg:30040 [18:08:32]ConnectInit lk.salyk.kg [18:08:32]Write i2c OK [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: 01 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: 01 07 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: 01 07 00 B8 1C 00 00 00 00 00 FF 0F E9 [18:08:32]RasterBufferAndPrint [18:08:32]line Счет N : (1)98448 [18:08:32]line ИНН: 02508201610067 [18:08:32]line Контрольно-Кассовый Чек [18:08:32]line ПРОДАЖА [18:08:32]line ТРК (МРК, ГНК) : 11 [18:08:32]line Товар: 2710124130 [18:08:32]line Аи-92-К-5 [18:08:32]line 2.990 * 66.90 [18:08:32]line = 200.03 [18:08:32]line НДС 12% НСП 1% [18:08:32]line > о реализуемом товаре [18:08:32]line ОКРУГЛЕНИЕ: -0.03 [18:08:32]line ИТОГО: 200.00 [18:08:32]line Внесено: 200.00 [18:08:32]line СДАЧА: 0.00 [18:08:32]line НСП 1% : 1.77 [18:08:32]line НДС 12% : 21.24 [18:08:32]line Наличными: 200.00 [18:08:32]line Безнал.: 0.00 [18:08:32]line Место: АЗС № 143 "Партнер Нефть" [18:08:32]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:08:32]line СНО: Общий режим [18:08:32]line Чек 267 24.10.2024 18:08 [18:08:32]line Смена: 534 ФФД: 1.0 [18:08:32]line ЗНМ: 0300000096 [18:08:32]line РНМ: 0000000000091693 [18:08:32]line Версия ККМ: 001 [18:08:32]line ФМ: 0000000000871792 [18:08:32]line ФД: 155642 [18:08:32]line ФПД: 212941521464870 [18:08:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T180831&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155642&fm=212941521464870&tin=02508201610067®Number=0000000000091693&sum=20000 [18:08:32]Connected sock=10 [18:08: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 39 32 0F 01 00 00 0E DD 07 01 D5 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 1F 8D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 5F 02 00 35 04 06 00 C1 AB 4F BE AE 26 81 91 A4 25 3C 51 A4 62 [18:08:32]written 0, free lines is 4095 [18:08: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 39 32 4F 00 00 00 1E 75 47 00 43 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 39 32 10 04 04 00 FA 5F 02 00 F4 03 04 00 98 32 1A 67 B6 04 01 00 00 7F 92 6E D5 4A F2 5F 56 [18:08:33]CommunicateWithHost err = 0 [18:08:33]CheckOFDResponse [18:08:33]1017 (14) - 77093643461234 [18:08:33]1041 (16) - 0000000000871792 [18:08:33]1040 (4) - 155642 [18:08:33]1012 (4) - 24.10.2024 11:42 [18:08:33]1206 (1) - 0 [18:08:33]OFD Sender: Remove packet 155642 [18:08:33]ProducePacketName [18:08:33]name=ofd_packets/00155642 [18:08:33]NVStorageDeleteData [18:08:33]Write to MH i2c: 01 00 00 E3 1C FF [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: 01 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: 01 07 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: 01 07 00 E3 1C 00 00 00 00 00 DC 0C EE [18:08:33]RasterBufferAndPrint [18:08:33]line [18:08:33]line [18:08:33]line [18:08:33]line [18:08:33]line [18:08:33]written 0, free lines is 3298 [18:08:33]process_action close_receipt done [18:08:33]requested_data is exist [18:08:33]produce_requested_data [18:08:33]requested_item fm.sn is exist - process it [18:08:33]wFMCommunicate request_size=4 [18:08:33]MH_SAM_APDU [18:08:33]CAPDU: 80 11 00 00 [18:08:33]Write to MH i2c: E2 08 00 EA 1C 80 11 00 00 00 00 00 00 80 [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:33]Read from MH i2c: E2 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 17 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 17 00 EA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D5 [18:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:08:33]wFMCommunicate OK [18:08:33]requested_item fd.num is exist - process it [18:08:33]SAM_PROTO_GetFieldsCounters [18:08:33]wFMCommunicate request_size=4 [18:08:33]MH_SAM_APDU [18:08:33]CAPDU: 80 13 00 00 [18:08:33]Write to MH i2c: E2 08 00 EB 1C 80 13 00 00 00 00 00 00 83 [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:33]Read from MH i2c: E2 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 62 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 62 00 EB 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 40 [18:08: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:33]wFMCommunicate OK [18:08:33]SAM_PROTO_GetFieldsCounters done [18:08:33]requested_item shift.num is exist - process it [18:08:33]requested_item shift.opened is exist - process it [18:08:33]req_shift_opened [18:08:33]FM_GetShiftState [18:08:33]SAM_PROTO_GetShiftState [18:08:33]wFMCommunicate request_size=4 [18:08:33]MH_SAM_APDU [18:08:33]CAPDU: 80 13 01 00 [18:08:33]Write to MH i2c: E2 08 00 EC 1C 80 13 01 00 00 00 00 00 85 [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]OFD Sender: No OFD packet to send [18:08:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:33]Read from MH i2c: E2 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 0E 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 0E 00 EC 1C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D2 [18:08:33]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:08:33]wFMCommunicate OK [18:08:33]SAM_PROTO_GetShiftState done [18:08:33]FM_GetShiftState done [18:08:33]req_shift_opened done [18:08:33]requested_item shift.open_date is exist - process it [18:08:33]req_shift_open_date [18:08:33]req_shift_open_date done [18:08:33]produce_requested_data done [18:08:33]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155642,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [18:08:33]process_action_free close_receipt [18:08:33]json_value_free [18:08:33]json_value_free done [18:08:33]process_json_proto returns [18:08:33]Send response to host [18:08:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155642,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [18:08:33]free response buf [18:08:33]execute_script done [18:08:33]execute_script returns [18:08:33]free content buf [18:08:33]Sock 8.Close socket [18:08:33]Sock 8.Thread stoped [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:34]accept exits with 9 [18:14:34]New connection [18:14:34]New thread 3066781028 created [18:14:34]Thread 3066637668 joined [18:14:34]Waiting for new connection... [18:14:34] Sock 9.Parse request [18:14:34]Sock 9.Check first char [18:14:34]Sock 9.First char is OK [18:14:34]request: POST /json_proto HTTP/1.0 [18:14:34]Method: POST [18:14:34]URL: /json_proto [18:14:34]Method is POST - this is cgi request [18:14:34]url: /json_proto [18:14:34]query_string will be loaded in cgi processing [18:14:34]execute_cgi json_proto POST (null) [18:14:34]execute_cgi path=json_proto method=POST [18:14:34]POST find Content-Length [18:14:34]Host: 172.17.63.3:8080 [18:14:34]Content-Length: 681 [18:14:34]Content-Type: application/json [18:14:34] [18:14:34]POST finish read [18:14:34]Found Content-Length = 681 [18:14:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:34]execute_script... [18:14:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:34]POST & json_proto [18:14:34]process_json_proto [18:14:34]json parsed OK: [18:14:34]protocol is kg_v1.0 [18:14:34]action value=close_receipt [18:14:34]process_action close_receipt [18:14:34]cmd_close_receipt [18:14:34]MH_GetDate [18:14:34]Write to MH i2c: F0 00 00 ED 1C F8 [18:14:34]Write i2c OK [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: F0 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: F0 09 00 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: F0 09 00 ED 1C 00 8B 8E 1A 67 50 D1 6C 64 8C [18:14:34]GetLastDocTimeStamp 1729793311 [18:14:34]current date 1729793675 [18:14:34]FM_GetShiftState [18:14:34]SAM_PROTO_GetShiftState [18:14:34]wFMCommunicate request_size=4 [18:14:34]MH_SAM_APDU [18:14:34]CAPDU: 80 13 01 00 [18:14:34]Write to MH i2c: E2 08 00 EE 1C 80 13 01 00 00 00 00 00 87 [18:14:34]Write i2c OK [18:14:34]MH_I2C_Read... [18:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:34]Read from MH i2c: E2 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: E2 0E 00 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: E2 0E 00 EE 1C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D4 [18:14:34]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:14:34]wFMCommunicate OK [18:14:34]SAM_PROTO_GetShiftState done [18:14:34]FM_GetShiftState done [18:14:34]opened in 1729729836 [18:14:34]opened+sec_in_day 1729816236 [18:14:34]quantity*price = 100015 [18:14:34]sum+1 = 100017 [18:14:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 268 24.10.2024 18:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155643 ФПД: 251561608868001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181435&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155643&fm=251561608868001&tin=02508201610067®Number=0000000000091693&sum=100000 [18:14:35]StoreToDocumentArchive [18:14:35]shift 534 fd 155643 [18:14:35]save to /storage/0534/doc_00155643 [18:14:35]save last doc name /storage/0534/doc_00155643 to /storage/kkm_last_doc_name [18:14:35]save OK [18:14:35]Clear old archive folders... [18:14:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:35]tlvbuf is 01FB6B80 [18:14:35]SAM_PROTO_ClearQueue [18:14:35]wFMCommunicate request_size=4 [18:14:35]MH_SAM_APDU [18:14:35]CAPDU: 80 09 00 00 [18:14:35]Write to MH i2c: E2 08 00 FB 1C 80 09 00 00 00 00 00 00 89 [18:14:35]Write i2c OK [18:14:35]MH_I2C_Read... [18:14:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:35]Read from MH i2c: E2 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 03 00 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 03 00 FB 1C 00 90 00 8B [18:14:35]RAPDU: 90 00 [18:14:35]wFMCommunicate OK [18:14:35]SAM_PROTO_ClearQueue done [18:14:35]KKMCreateOFDPacket [18:14:35]OFDProtocolAddRootSTLVToBuf [18:14:35]FM_MakeSignedData [18:14:35]FM_MakeSignedData [18:14:35]SAM_PROTO_SignData [18:14:35]wFMCommunicate request_size=4 [18:14:35]MH_SAM_APDU [18:14:35]CAPDU: 80 0D 01 02 [18:14:35]Write to MH i2c: E2 08 00 FC 1C 80 0D 01 02 00 00 00 00 91 [18:14:35]Write i2c OK [18:14:35]MH_I2C_Read... [18:14:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:35]Read from MH i2c: E2 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 03 00 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 03 00 FC 1C 00 90 00 8C [18:14:35]RAPDU: 90 00 [18:14:35]wFMCommunicate OK [18:14:35]wFMCommunicate request_size=255 [18:14:35]MH_SAM_APDU [18:14:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 8B 8E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 5F 02 00 35 04 06 00 E4 [18:14:35]Write to MH i2c: E2 02 01 FD 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 8B 8E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 5F 02 00 35 04 06 00 E4 00 00 1E [18:14:35]Write i2c OK [18:14:35]MH_I2C_Read... [18:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:35]Read from MH i2c: E2 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 03 00 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 03 00 FD 1C 00 90 00 8D [18:14:35]RAPDU: 90 00 [18:14:35]wFMCommunicate OK [18:14:35]wFMCommunicate request_size=10 [18:14:35]MH_SAM_APDU [18:14:35]CAPDU: 80 0D 02 02 05 CB 40 55 F0 A1 [18:14:35]Write to MH i2c: E2 0D 00 FE 1C 80 0D 02 02 05 00 CB 40 55 F0 A1 00 00 8F [18:14:35]Write i2c OK [18:14:35]MH_I2C_Read... [18:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:35]Read from MH i2c: E2 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 03 00 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 03 00 FE 1C 00 90 00 8E [18:14:35]RAPDU: 90 00 [18:14:35]wFMCommunicate OK [18:14:35]wFMCommunicate request_size=4 [18:14:35]MH_SAM_APDU [18:14:35]CAPDU: 80 0D 03 02 [18:14:35]Write to MH i2c: E2 08 00 FF 1C 80 0D 03 02 00 00 00 00 96 [18:14:35]Write i2c OK [18:14:35]MH_I2C_Read... [18:14:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:35]Read from MH i2c: E2 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 0B 00 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 0B 00 FF 1C 00 A5 CB 2E 26 D7 45 DC B1 90 00 04 [18:14:35]RAPDU: A5 CB 2E 26 D7 45 DC B1 90 00 [18:14:35]wFMCommunicate OK [18:14:35]SAM_PROTO_SignData done [18:14:35]FM_MakeSignedData done [18:14:35]CreateOFDProtocolMessage [18:14:35]wFMCommunicate request_size=4 [18:14:35]MH_SAM_APDU [18:14:35]CAPDU: 80 11 00 00 [18:14:35]Write to MH i2c: E2 08 00 00 1D 80 11 00 00 00 00 00 00 97 [18:14:35]Write i2c OK [18:14:35]MH_I2C_Read... [18:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:35]Read from MH i2c: E2 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 17 00 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: E2 17 00 00 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EC [18:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:14:35]wFMCommunicate OK [18:14:35]CreateOFDProtocolMessage done [18:14:35]OFDSenderStorePacket 155643 [18:14:35]StoreOFDPacket docnum=155643 [18:14:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 33 01 07 01 68 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 8B 8E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 5F 02 00 35 04 06 00 E4 CB 40 55 F0 A1 A5 CB 2E 26 D7 45 DC B1 [18:14:35]CheckFolder [18:14:35]dirname=/storage/ofd_packets [18:14:35]CheckFolder done [18:14:35]ProducePacketName [18:14:35]name=ofd_packets/00155643 [18:14:35]NVStorageSaveData ofd_packets/00155643 [18:14:35]File name is /storage/ofd_packets/00155643 [18:14:35]Write 301 bytes [18:14:35]NVStorageSaveData done [18:14:35]OFDSenderStorePacket done [18:14:35]KKMCreateOFDPacket done [18:14:35]NVStorageSaveData kkm_last_timestamp [18:14:35]File name is /storage/kkm_last_timestamp [18:14:35]Write 4 bytes [18:14:35]NVStorageSaveData done [18:14:35]ExternCall_PrintAddStr [18:14:35]wPrintStart [18:14:35]Write to MH i2c: 01 00 00 01 1D 1E [18:14:35]Write i2c OK [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: 01 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: 01 07 00 [18:14:35]MH_I2C_Read... [18:14:35]Read from MH i2c: 01 07 00 01 1D 00 00 00 00 00 FF 0F 33 [18:14:35]RasterBufferAndPrint [18:14:35]line Счет N : (1)98449 [18:14:35]line ИНН: 02508201610067 [18:14:35]line Контрольно-Кассовый Чек [18:14:35]line ПРОДАЖА [18:14:35]line ТРК (МРК, ГНК) : 21 [18:14:35]line Товар: 2710124130 [18:14:35]line Аи-92-К-5 [18:14:35]line 14.950 * 66.90 [18:14:35]line = 1000.16 [18:14:35]line НДС 12% НСП 1% [18:14:35]line > о реализуемом товаре [18:14:35]line ОКРУГЛЕНИЕ: -0.16 [18:14:35]line ИТОГО: 1000.00 [18:14:35]line Внесено: 1000.00 [18:14:35]line СДАЧА: 0.00 [18:14:35]line НСП 1% : 8.85 [18:14:35]line НДС 12% : 106.21 [18:14:35]line Наличными: 1000.00 [18:14:35]line Безнал.: 0.00 [18:14:35]line Место: АЗС № 143 "Партнер Нефть" [18:14:35]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:14:35]line СНО: Общий режим [18:14:35]line Чек 268 24.10.2024 18:14 [18:14:35]line Смена: 534 ФФД: 1.0 [18:14:35]line ЗНМ: 0300000096 [18:14:35]line РНМ: 0000000000091693 [18:14:35]line Версия ККМ: 001 [18:14:35]line ФМ: 0000000000871792 [18:14:35]line ФД: 155643 [18:14:35]line ФПД: 251561608868001 [18:14:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181435&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155643&fm=251561608868001&tin=02508201610067®Number=0000000000091693&sum=100000 [18:14:36]OFD Sender: Processing packet 155643 [packets to send 31, broken 30] [18:14:36]ProducePacketName [18:14:36]name=ofd_packets/00155643 [18:14:36]OFD Sender: To server: pG, [18:14:36]CommunicateWithHost lk.salyk.kg:30040 [18:14:36]ConnectInit lk.salyk.kg [18:14:36]written 0, free lines is 4095 [18:14:36]Connected sock=10 [18:14:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 33 01 07 01 68 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 8B 8E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 5F 02 00 35 04 06 00 E4 CB 40 55 F0 A1 A5 CB 2E 26 D7 45 DC B1 [18:14: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 39 32 4F 00 00 00 58 4E 47 00 F0 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 39 32 10 04 04 00 FB 5F 02 00 F4 03 04 00 03 34 1A 67 B6 04 01 00 00 19 CF FA 68 99 79 B6 67 [18:14:36]CommunicateWithHost err = 0 [18:14:36]CheckOFDResponse [18:14:36]1017 (14) - 77093643461234 [18:14:36]1041 (16) - 0000000000871792 [18:14:36]1040 (4) - 155643 [18:14:36]1012 (4) - 24.10.2024 11:48 [18:14:36]1206 (1) - 0 [18:14:36]OFD Sender: Remove packet 155643 [18:14:36]ProducePacketName [18:14:36]name=ofd_packets/00155643 [18:14:36]NVStorageDeleteData [18:14:36]Write to MH i2c: 01 00 00 2C 1D 49 [18:14:36]Write i2c OK [18:14:36]MH_I2C_Read... [18:14:36]Read from MH i2c: 01 [18:14:36]MH_I2C_Read... [18:14:36]Read from MH i2c: 01 07 00 [18:14:36]MH_I2C_Read... [18:14:36]Read from MH i2c: 01 07 00 2C 1D 00 00 00 00 00 D8 0C 34 [18:14:36]RasterBufferAndPrint [18:14:36]line [18:14:36]line [18:14:36]line [18:14:36]line [18:14:36]line [18:14:36]written 0, free lines is 3295 [18:14:36]process_action close_receipt done [18:14:36]requested_data is exist [18:14:36]produce_requested_data [18:14:36]requested_item fm.sn is exist - process it [18:14:36]wFMCommunicate request_size=4 [18:14:36]MH_SAM_APDU [18:14:36]CAPDU: 80 11 00 00 [18:14:36]Write to MH i2c: E2 08 00 33 1D 80 11 00 00 00 00 00 00 CA [18:14:36]Write i2c OK [18:14:36]MH_I2C_Read... [18:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:36]Read from MH i2c: E2 [18:14:36]MH_I2C_Read... [18:14:36]Read from MH i2c: E2 17 00 [18:14:36]MH_I2C_Read... [18:14:36]Read from MH i2c: E2 17 00 33 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1F [18:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:14:36]wFMCommunicate OK [18:14:36]requested_item fd.num is exist - process it [18:14:36]SAM_PROTO_GetFieldsCounters [18:14:36]wFMCommunicate request_size=4 [18:14:36]MH_SAM_APDU [18:14:36]CAPDU: 80 13 00 00 [18:14:36]Write to MH i2c: E2 08 00 34 1D 80 13 00 00 00 00 00 00 CD [18:14:36]Write i2c OK [18:14:36]MH_I2C_Read... [18:14:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:36]Read from MH i2c: E2 [18:14:36]MH_I2C_Read... [18:14:36]Read from MH i2c: E2 62 00 [18:14:36]MH_I2C_Read... [18:14:36]Read from MH i2c: E2 62 00 34 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FB 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [18:14: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FB 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:36]wFMCommunicate OK [18:14:36]SAM_PROTO_GetFieldsCounters done [18:14:36]requested_item shift.num is exist - process it [18:14:36]requested_item shift.opened is exist - process it [18:14:36]req_shift_opened [18:14:36]FM_GetShiftState [18:14:36]SAM_PROTO_GetShiftState [18:14:36]wFMCommunicate request_size=4 [18:14:36]MH_SAM_APDU [18:14:36]CAPDU: 80 13 01 00 [18:14:36]Write to MH i2c: E2 08 00 35 1D 80 13 01 00 00 00 00 00 CF [18:14:36]Write i2c OK [18:14:36]MH_I2C_Read... [18:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:36]Read from MH i2c: E2 [18:14:36]MH_I2C_Read... [18:14:36]Read from MH i2c: E2 0E 00 [18:14:36]MH_I2C_Read... [18:14:36]Read from MH i2c: E2 0E 00 35 1D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1C [18:14:36]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:14:36]wFMCommunicate OK [18:14:36]SAM_PROTO_GetShiftState done [18:14:36]FM_GetShiftState done [18:14:36]req_shift_opened done [18:14:36]requested_item shift.open_date is exist - process it [18:14:36]req_shift_open_date [18:14:36]req_shift_open_date done [18:14:36]produce_requested_data done [18:14:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155643,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [18:14:36]process_action_free close_receipt [18:14:36]json_value_free [18:14:36]json_value_free done [18:14:36]process_json_proto returns [18:14:36]Send response to host [18:14:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155643,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [18:14:36]free response buf [18:14:36]execute_script done [18:14:36]execute_script returns [18:14:36]free content buf [18:14:36]Sock 9.Close socket [18:14:36]Sock 9.Thread stoped [18:14:36]OFD Sender: No OFD packet to send [18:14:41]OFD Sender: No OFD packet to send [18:14:46]OFD Sender: No OFD packet to send [18:14:51]OFD Sender: No OFD packet to send [18:14:56]OFD Sender: No OFD packet to send [18:15:01]OFD Sender: No OFD packet to send [18:15:06]OFD Sender: No OFD packet to send [18:15:11]OFD Sender: No OFD packet to send [18:15:16]OFD Sender: No OFD packet to send [18:15:21]OFD Sender: No OFD packet to send [18:15:26]OFD Sender: No OFD packet to send [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:38]accept exits with 8 [18:16:38]New connection [18:16:38]New thread 3066637668 created [18:16:38]Thread 3066781028 joined [18:16:38]Waiting for new connection... [18:16:38] Sock 8.Parse request [18:16:38]Sock 8.Check first char [18:16:38]Sock 8.First char is OK [18:16:38]request: POST /json_proto HTTP/1.0 [18:16:38]Method: POST [18:16:38]URL: /json_proto [18:16:38]Method is POST - this is cgi request [18:16:38]url: /json_proto [18:16:38]query_string will be loaded in cgi processing [18:16:38]execute_cgi json_proto POST (null) [18:16:38]execute_cgi path=json_proto method=POST [18:16:38]POST find Content-Length [18:16:38]Host: 172.17.63.3:8080 [18:16:38]Content-Length: 681 [18:16:38]Content-Type: application/json [18:16:38] [18:16:38]POST finish read [18:16:38]Found Content-Length = 681 [18:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:38]execute_script... [18:16:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:38]POST & json_proto [18:16:38]process_json_proto [18:16:38]json parsed OK: [18:16:38]protocol is kg_v1.0 [18:16:38]action value=close_receipt [18:16:38]process_action close_receipt [18:16:38]cmd_close_receipt [18:16:38]MH_GetDate [18:16:38]Write to MH i2c: F0 00 00 36 1D 42 [18:16:38]Write i2c OK [18:16:38]MH_I2C_Read... [18:16:38]Read from MH i2c: F0 [18:16:38]MH_I2C_Read... [18:16:38]Read from MH i2c: F0 09 00 [18:16:38]MH_I2C_Read... [18:16:38]Read from MH i2c: F0 09 00 36 1D 00 07 8F 1A 67 50 D1 6C 64 53 [18:16:38]GetLastDocTimeStamp 1729793675 [18:16:38]current date 1729793799 [18:16:38]FM_GetShiftState [18:16:38]SAM_PROTO_GetShiftState [18:16:38]wFMCommunicate request_size=4 [18:16:38]MH_SAM_APDU [18:16:38]CAPDU: 80 13 01 00 [18:16:38]Write to MH i2c: E2 08 00 37 1D 80 13 01 00 00 00 00 00 D1 [18:16:38]Write i2c OK [18:16:38]MH_I2C_Read... [18:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:38]Read from MH i2c: E2 [18:16:38]MH_I2C_Read... [18:16:38]Read from MH i2c: E2 0E 00 [18:16:38]MH_I2C_Read... [18:16:38]Read from MH i2c: E2 0E 00 37 1D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1E [18:16:38]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:16:38]wFMCommunicate OK [18:16:38]SAM_PROTO_GetShiftState done [18:16:38]FM_GetShiftState done [18:16:38]opened in 1729729836 [18:16:38]opened+sec_in_day 1729816236 [18:16:38]quantity*price = 100015 [18:16:38]sum+1 = 100017 [18:16:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 269 24.10.2024 18:16 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155644 ФПД: 117917926137922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181639&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155644&fm=117917926137922&tin=02508201610067®Number=0000000000091693&sum=100000 [18:16:39]StoreToDocumentArchive [18:16:39]shift 534 fd 155644 [18:16:39]save to /storage/0534/doc_00155644 [18:16:39]save last doc name /storage/0534/doc_00155644 to /storage/kkm_last_doc_name [18:16:39]save OK [18:16:39]Clear old archive folders... [18:16:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:39]tlvbuf is B6EB0AA0 [18:16:39]SAM_PROTO_ClearQueue [18:16:39]wFMCommunicate request_size=4 [18:16:39]MH_SAM_APDU [18:16:39]CAPDU: 80 09 00 00 [18:16:39]Write to MH i2c: E2 08 00 44 1D 80 09 00 00 00 00 00 00 D3 [18:16:39]Write i2c OK [18:16:39]MH_I2C_Read... [18:16:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:39]Read from MH i2c: E2 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 44 1D 00 90 00 D5 [18:16:39]RAPDU: 90 00 [18:16:39]wFMCommunicate OK [18:16:39]SAM_PROTO_ClearQueue done [18:16:39]KKMCreateOFDPacket [18:16:39]OFDProtocolAddRootSTLVToBuf [18:16:39]FM_MakeSignedData [18:16:39]FM_MakeSignedData [18:16:39]SAM_PROTO_SignData [18:16:39]wFMCommunicate request_size=4 [18:16:39]MH_SAM_APDU [18:16:39]CAPDU: 80 0D 01 02 [18:16:39]Write to MH i2c: E2 08 00 45 1D 80 0D 01 02 00 00 00 00 DB [18:16:39]Write i2c OK [18:16:39]MH_I2C_Read... [18:16:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:39]Read from MH i2c: E2 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 [18:16:39]MH_I2C_Read... [18:16:39]Read from MH i2c: E2 03 00 45 1D 00 90 00 D6 [18:16:39]RAPDU: 90 00 [18:16:39]wFMCommunicate OK [18:16:39]wFMCommunicate request_size=255 [18:16:39]MH_SAM_APDU [18:16:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 07 8F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 5F 02 00 35 04 06 00 6B [18:16:39]Write to MH i2c: E2 02 01 46 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 07 8F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 5F 02 00 35 04 06 00 6B 00 00 6E [18:16:39]Write i2c OK [18:16:39]MH_I2C_Read... [18:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:40]Read from MH i2c: E2 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 03 00 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 03 00 46 1D 00 90 00 D7 [18:16:40]RAPDU: 90 00 [18:16:40]wFMCommunicate OK [18:16:40]wFMCommunicate request_size=10 [18:16:40]MH_SAM_APDU [18:16:40]CAPDU: 80 0D 02 02 05 3E E8 19 A0 42 [18:16:40]Write to MH i2c: E2 0D 00 47 1D 80 0D 02 02 05 00 3E E8 19 A0 42 00 00 09 [18:16:40]Write i2c OK [18:16:40]MH_I2C_Read... [18:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:40]Read from MH i2c: E2 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 03 00 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 03 00 47 1D 00 90 00 D8 [18:16:40]RAPDU: 90 00 [18:16:40]wFMCommunicate OK [18:16:40]wFMCommunicate request_size=4 [18:16:40]MH_SAM_APDU [18:16:40]CAPDU: 80 0D 03 02 [18:16:40]Write to MH i2c: E2 08 00 48 1D 80 0D 03 02 00 00 00 00 E0 [18:16:40]Write i2c OK [18:16:40]MH_I2C_Read... [18:16:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:40]Read from MH i2c: E2 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 0B 00 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 0B 00 48 1D 00 F2 F5 C9 26 33 98 A2 A3 90 00 C7 [18:16:40]RAPDU: F2 F5 C9 26 33 98 A2 A3 90 00 [18:16:40]wFMCommunicate OK [18:16:40]SAM_PROTO_SignData done [18:16:40]FM_MakeSignedData done [18:16:40]CreateOFDProtocolMessage [18:16:40]wFMCommunicate request_size=4 [18:16:40]MH_SAM_APDU [18:16:40]CAPDU: 80 11 00 00 [18:16:40]Write to MH i2c: E2 08 00 49 1D 80 11 00 00 00 00 00 00 E0 [18:16:40]Write i2c OK [18:16:40]MH_I2C_Read... [18:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:40]Read from MH i2c: E2 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 17 00 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: E2 17 00 49 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 35 [18:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:16:40]wFMCommunicate OK [18:16:40]CreateOFDProtocolMessage done [18:16:40]OFDSenderStorePacket 155644 [18:16:40]StoreOFDPacket docnum=155644 [18:16:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 66 7C 07 01 C6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 07 8F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 5F 02 00 35 04 06 00 6B 3E E8 19 A0 42 F2 F5 C9 26 33 98 A2 A3 [18:16:40]CheckFolder [18:16:40]dirname=/storage/ofd_packets [18:16:40]CheckFolder done [18:16:40]ProducePacketName [18:16:40]name=ofd_packets/00155644 [18:16:40]NVStorageSaveData ofd_packets/00155644 [18:16:40]File name is /storage/ofd_packets/00155644 [18:16:40]Write 301 bytes [18:16:40]NVStorageSaveData done [18:16:40]OFDSenderStorePacket done [18:16:40]KKMCreateOFDPacket done [18:16:40]NVStorageSaveData kkm_last_timestamp [18:16:40]File name is /storage/kkm_last_timestamp [18:16:40]Write 4 bytes [18:16:40]NVStorageSaveData done [18:16:40]ExternCall_PrintAddStr [18:16:40]wPrintStart [18:16:40]Write to MH i2c: 01 00 00 4A 1D 67 [18:16:40]OFD Sender: Processing packet 155644 [packets to send 31, broken 30] [18:16:40]ProducePacketName [18:16:40]name=ofd_packets/00155644 [18:16:40]OFD Sender: To server: pG, [18:16:40]CommunicateWithHost lk.salyk.kg:30040 [18:16:40]ConnectInit lk.salyk.kg [18:16:40]Write i2c OK [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: 01 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: 01 07 00 [18:16:40]MH_I2C_Read... [18:16:40]Read from MH i2c: 01 07 00 4A 1D 00 00 00 00 00 FF 0F 7C [18:16:40]RasterBufferAndPrint [18:16:40]line Счет N : (1)98450 [18:16:40]line ИНН: 02508201610067 [18:16:40]line Контрольно-Кассовый Чек [18:16:40]line ПРОДАЖА [18:16:40]line ТРК (МРК, ГНК) : 11 [18:16:40]line Товар: 2710124130 [18:16:40]line Аи-92-К-5 [18:16:40]line 14.950 * 66.90 [18:16:40]line = 1000.16 [18:16:40]line НДС 12% НСП 1% [18:16:40]line > о реализуемом товаре [18:16:40]line ОКРУГЛЕНИЕ: -0.16 [18:16:40]line ИТОГО: 1000.00 [18:16:40]line Внесено: 1000.00 [18:16:40]line СДАЧА: 0.00 [18:16:40]line НСП 1% : 8.85 [18:16:40]line НДС 12% : 106.21 [18:16:40]line Наличными: 1000.00 [18:16:40]line Безнал.: 0.00 [18:16:40]line Место: АЗС № 143 "Партнер Нефть" [18:16:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:16:40]line СНО: Общий режим [18:16:40]line Чек 269 24.10.2024 18:16 [18:16:40]line Смена: 534 ФФД: 1.0 [18:16:40]line ЗНМ: 0300000096 [18:16:40]line РНМ: 0000000000091693 [18:16:40]line Версия ККМ: 001 [18:16:40]line ФМ: 0000000000871792 [18:16:40]line ФД: 155644 [18:16:40]line ФПД: 117917926137922 [18:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T181639&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155644&fm=117917926137922&tin=02508201610067®Number=0000000000091693&sum=100000 [18:16:40]Connected sock=10 [18:16:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 66 7C 07 01 C6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 07 8F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 5F 02 00 35 04 06 00 6B 3E E8 19 A0 42 F2 F5 C9 26 33 98 A2 A3 [18:16:40]written 0, free lines is 4095 [18:16:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 94 3C 47 00 07 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 39 32 10 04 04 00 FC 5F 02 00 F4 03 04 00 7F 34 1A 67 B6 04 01 00 00 1A AB CD 25 B4 B7 88 17 [18:16:40]CommunicateWithHost err = 0 [18:16:40]CheckOFDResponse [18:16:40]1017 (14) - 77093643461234 [18:16:40]1041 (16) - 0000000000871792 [18:16:40]1040 (4) - 155644 [18:16:40]1012 (4) - 24.10.2024 11:50 [18:16:40]1206 (1) - 0 [18:16:40]OFD Sender: Remove packet 155644 [18:16:40]ProducePacketName [18:16:40]name=ofd_packets/00155644 [18:16:40]NVStorageDeleteData [18:16:41]Write to MH i2c: 01 00 00 75 1D 92 [18:16:41]Write i2c OK [18:16:41]MH_I2C_Read... [18:16:41]Read from MH i2c: 01 [18:16:41]MH_I2C_Read... [18:16:41]Read from MH i2c: 01 07 00 [18:16:41]MH_I2C_Read... [18:16:41]Read from MH i2c: 01 07 00 75 1D 00 00 00 00 00 DD 0C 82 [18:16:41]RasterBufferAndPrint [18:16:41]line [18:16:41]line [18:16:41]line [18:16:41]line [18:16:41]line [18:16:41]written 0, free lines is 3299 [18:16:41]process_action close_receipt done [18:16:41]requested_data is exist [18:16:41]produce_requested_data [18:16:41]requested_item fm.sn is exist - process it [18:16:41]wFMCommunicate request_size=4 [18:16:41]MH_SAM_APDU [18:16:41]CAPDU: 80 11 00 00 [18:16:41]Write to MH i2c: E2 08 00 7C 1D 80 11 00 00 00 00 00 00 13 [18:16:41]Write i2c OK [18:16:41]MH_I2C_Read... [18:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:41]Read from MH i2c: E2 [18:16:41]MH_I2C_Read... [18:16:41]Read from MH i2c: E2 17 00 [18:16:41]MH_I2C_Read... [18:16:41]Read from MH i2c: E2 17 00 7C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 68 [18:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:16:41]wFMCommunicate OK [18:16:41]requested_item fd.num is exist - process it [18:16:41]SAM_PROTO_GetFieldsCounters [18:16:41]wFMCommunicate request_size=4 [18:16:41]MH_SAM_APDU [18:16:41]CAPDU: 80 13 00 00 [18:16:41]Write to MH i2c: E2 08 00 7D 1D 80 13 00 00 00 00 00 00 16 [18:16:41]Write i2c OK [18:16:41]MH_I2C_Read... [18:16:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:41]Read from MH i2c: E2 [18:16:41]MH_I2C_Read... [18:16:41]Read from MH i2c: E2 62 00 [18:16:41]MH_I2C_Read... [18:16:41]Read from MH i2c: E2 62 00 7D 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FC 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [18:16:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FC 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:41]wFMCommunicate OK [18:16:41]SAM_PROTO_GetFieldsCounters done [18:16:41]requested_item shift.num is exist - process it [18:16:41]requested_item shift.opened is exist - process it [18:16:41]req_shift_opened [18:16:41]FM_GetShiftState [18:16:41]SAM_PROTO_GetShiftState [18:16:41]wFMCommunicate request_size=4 [18:16:41]MH_SAM_APDU [18:16:41]CAPDU: 80 13 01 00 [18:16:41]Write to MH i2c: E2 08 00 7E 1D 80 13 01 00 00 00 00 00 18 [18:16:41]OFD Sender: No OFD packet to send [18:16:41]Write i2c OK [18:16:41]MH_I2C_Read... [18:16:41]Read from MH i2c: E2 [18:16:41]MH_I2C_Read... [18:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:41]Read from MH i2c: E2 0E 00 [18:16:41]MH_I2C_Read... [18:16:41]Read from MH i2c: E2 0E 00 7E 1D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 65 [18:16:41]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:16:41]wFMCommunicate OK [18:16:41]SAM_PROTO_GetShiftState done [18:16:41]FM_GetShiftState done [18:16:41]req_shift_opened done [18:16:41]requested_item shift.open_date is exist - process it [18:16:41]req_shift_open_date [18:16:41]req_shift_open_date done [18:16:41]produce_requested_data done [18:16:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155644,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [18:16:41]process_action_free close_receipt [18:16:41]json_value_free [18:16:41]json_value_free done [18:16:41]process_json_proto returns [18:16:41]Send response to host [18:16:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155644,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [18:16:41]free response buf [18:16:41]execute_script done [18:16:41]execute_script returns [18:16:41]free content buf [18:16:41]Sock 8.Close socket [18:16:41]Sock 8.Thread stoped [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:28]accept exits with 9 [18:21:28]New connection [18:21:28]New thread 3066781028 created [18:21:28]Thread 3066637668 joined [18:21:28]Waiting for new connection... [18:21:28] Sock 9.Parse request [18:21:28]Sock 9.Check first char [18:21:28]Sock 9.First char is OK [18:21:28]request: POST /json_proto HTTP/1.0 [18:21:28]Method: POST [18:21:28]URL: /json_proto [18:21:28]Method is POST - this is cgi request [18:21:28]url: /json_proto [18:21:28]query_string will be loaded in cgi processing [18:21:28]execute_cgi json_proto POST (null) [18:21:28]execute_cgi path=json_proto method=POST [18:21:28]POST find Content-Length [18:21:28]Host: 172.17.63.3:8080 [18:21:28]Content-Length: 678 [18:21:28]Content-Type: application/json [18:21:28] [18:21:28]POST finish read [18:21:28]Found Content-Length = 678 [18:21:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:28]execute_script... [18:21:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 17.070, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:28]POST & json_proto [18:21:28]process_json_proto [18:21:28]json parsed OK: [18:21:28]protocol is kg_v1.0 [18:21:28]action value=close_receipt [18:21:28]process_action close_receipt [18:21:28]cmd_close_receipt [18:21:28]MH_GetDate [18:21:28]Write to MH i2c: F0 00 00 7F 1D 8B [18:21:28]Write i2c OK [18:21:28]MH_I2C_Read... [18:21:28]Read from MH i2c: F0 [18:21:28]MH_I2C_Read... [18:21:28]Read from MH i2c: F0 09 00 [18:21:28]MH_I2C_Read... [18:21:28]Read from MH i2c: F0 09 00 7F 1D 00 29 90 1A 67 50 D1 6C 64 BF [18:21:28]GetLastDocTimeStamp 1729793799 [18:21:28]current date 1729794089 [18:21:28]FM_GetShiftState [18:21:28]SAM_PROTO_GetShiftState [18:21:28]wFMCommunicate request_size=4 [18:21:28]MH_SAM_APDU [18:21:28]CAPDU: 80 13 01 00 [18:21:28]Write to MH i2c: E2 08 00 80 1D 80 13 01 00 00 00 00 00 1A [18:21:28]Write i2c OK [18:21:28]MH_I2C_Read... [18:21:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:28]Read from MH i2c: E2 [18:21:28]MH_I2C_Read... [18:21:28]Read from MH i2c: E2 0E 00 [18:21:28]MH_I2C_Read... [18:21:28]Read from MH i2c: E2 0E 00 80 1D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 67 [18:21:28]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:21:28]wFMCommunicate OK [18:21:28]SAM_PROTO_GetShiftState done [18:21:28]FM_GetShiftState done [18:21:28]opened in 1729729836 [18:21:28]opened+sec_in_day 1729816236 [18:21:28]quantity*price = 130073 [18:21:28]sum+1 = 130074 [18:21:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 270 24.10.2024 18:21 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155645 ФПД: 107765982824322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182129&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155645&fm=107765982824322&tin=02508201610067®Number=0000000000091693&sum=130000 [18:21:29]StoreToDocumentArchive [18:21:29]shift 534 fd 155645 [18:21:29]save to /storage/0534/doc_00155645 [18:21:29]save last doc name /storage/0534/doc_00155645 to /storage/kkm_last_doc_name [18:21:29]save OK [18:21:29]Clear old archive folders... [18:21:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:21:29]tlvbuf is 01F4F140 [18:21:29]SAM_PROTO_ClearQueue [18:21:29]wFMCommunicate request_size=4 [18:21:29]MH_SAM_APDU [18:21:29]CAPDU: 80 09 00 00 [18:21:29]Write to MH i2c: E2 08 00 8D 1D 80 09 00 00 00 00 00 00 1C [18:21:29]Write i2c OK [18:21:29]MH_I2C_Read... [18:21:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:29]Read from MH i2c: E2 [18:21:29]MH_I2C_Read... [18:21:29]Read from MH i2c: E2 03 00 [18:21:29]MH_I2C_Read... [18:21:29]Read from MH i2c: E2 03 00 8D 1D 00 90 00 1E [18:21:29]RAPDU: 90 00 [18:21:29]wFMCommunicate OK [18:21:29]SAM_PROTO_ClearQueue done [18:21:29]KKMCreateOFDPacket [18:21:29]OFDProtocolAddRootSTLVToBuf [18:21:29]FM_MakeSignedData [18:21:29]FM_MakeSignedData [18:21:29]SAM_PROTO_SignData [18:21:29]wFMCommunicate request_size=4 [18:21:29]MH_SAM_APDU [18:21:29]CAPDU: 80 0D 01 02 [18:21:29]Write to MH i2c: E2 08 00 8E 1D 80 0D 01 02 00 00 00 00 24 [18:21:29]Write i2c OK [18:21:29]MH_I2C_Read... [18:21:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:30]Read from MH i2c: E2 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: E2 03 00 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: E2 03 00 8E 1D 00 90 00 1F [18:21:30]RAPDU: 90 00 [18:21:30]wFMCommunicate OK [18:21:30]wFMCommunicate request_size=255 [18:21:30]MH_SAM_APDU [18:21:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 29 90 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 5F 02 00 35 04 06 00 62 03 39 20 [18:21:30]Write to MH i2c: E2 02 01 8F 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 29 90 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 5F 02 00 35 04 06 00 62 03 39 20 00 00 2F [18:21:30]Write i2c OK [18:21:30]MH_I2C_Read... [18:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:30]Read from MH i2c: E2 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: E2 03 00 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: E2 03 00 8F 1D 00 90 00 20 [18:21:30]RAPDU: 90 00 [18:21:30]wFMCommunicate OK [18:21:30]wFMCommunicate request_size=7 [18:21:30]MH_SAM_APDU [18:21:30]CAPDU: 80 0D 02 02 02 07 82 [18:21:30]Write to MH i2c: E2 0A 00 90 1D 80 0D 02 02 02 00 07 82 00 00 B4 [18:21:30]Write i2c OK [18:21:30]MH_I2C_Read... [18:21:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:30]Read from MH i2c: E2 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: E2 03 00 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: E2 03 00 90 1D 00 90 00 21 [18:21:30]RAPDU: 90 00 [18:21:30]wFMCommunicate OK [18:21:30]wFMCommunicate request_size=4 [18:21:30]MH_SAM_APDU [18:21:30]CAPDU: 80 0D 03 02 [18:21:30]Write to MH i2c: E2 08 00 91 1D 80 0D 03 02 00 00 00 00 29 [18:21:30]Write i2c OK [18:21:30]MH_I2C_Read... [18:21:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:30]Read from MH i2c: E2 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: E2 0B 00 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: E2 0B 00 91 1D 00 F3 6F 18 BC 74 3C 70 AB 90 00 2B [18:21:30]RAPDU: F3 6F 18 BC 74 3C 70 AB 90 00 [18:21:30]wFMCommunicate OK [18:21:30]SAM_PROTO_SignData done [18:21:30]FM_MakeSignedData done [18:21:30]CreateOFDProtocolMessage [18:21:30]wFMCommunicate request_size=4 [18:21:30]MH_SAM_APDU [18:21:30]CAPDU: 80 11 00 00 [18:21:30]Write to MH i2c: E2 08 00 92 1D 80 11 00 00 00 00 00 00 29 [18:21:30]Write i2c OK [18:21:30]MH_I2C_Read... [18:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:30]Read from MH i2c: E2 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: E2 17 00 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: E2 17 00 92 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7E [18:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:21:30]wFMCommunicate OK [18:21:30]CreateOFDProtocolMessage done [18:21:30]OFDSenderStorePacket 155645 [18:21:30]StoreOFDPacket docnum=155645 [18:21:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 86 BB 04 01 4D 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 29 90 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 5F 02 00 35 04 06 00 62 03 39 20 07 82 F3 6F 18 BC 74 3C 70 AB [18:21:30]CheckFolder [18:21:30]dirname=/storage/ofd_packets [18:21:30]CheckFolder done [18:21:30]ProducePacketName [18:21:30]name=ofd_packets/00155645 [18:21:30]NVStorageSaveData ofd_packets/00155645 [18:21:30]File name is /storage/ofd_packets/00155645 [18:21:30]Write 298 bytes [18:21:30]NVStorageSaveData done [18:21:30]OFDSenderStorePacket done [18:21:30]KKMCreateOFDPacket done [18:21:30]NVStorageSaveData kkm_last_timestamp [18:21:30]File name is /storage/kkm_last_timestamp [18:21:30]Write 4 bytes [18:21:30]NVStorageSaveData done [18:21:30]ExternCall_PrintAddStr [18:21:30]wPrintStart [18:21:30]Write to MH i2c: 01 00 00 93 1D B0 [18:21:30]Write i2c OK [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: 01 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: 01 07 00 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: 01 07 00 93 1D 00 00 00 00 00 FF 0F C5 [18:21:30]RasterBufferAndPrint [18:21:30]line Счет N : (1)98451 [18:21:30]line ИНН: 02508201610067 [18:21:30]line Контрольно-Кассовый Чек [18:21:30]line ПРОДАЖА [18:21:30]line ТРК (МРК, ГНК) : 32 [18:21:30]line Товар: 2710194210 [18:21:30]line ДТ-К-5 [18:21:30]line 17.070 * 76.20 [18:21:30]line = 1300.73 [18:21:30]line НДС 12% НСП 1% [18:21:30]line > о реализуемом товаре [18:21:30]line ОКРУГЛЕНИЕ: -0.73 [18:21:30]line ИТОГО: 1300.00 [18:21:30]line Внесено: 1300.00 [18:21:30]line СДАЧА: 0.00 [18:21:30]line НСП 1% : 11.51 [18:21:30]line НДС 12% : 138.13 [18:21:30]line Наличными: 1300.00 [18:21:30]line Безнал.: 0.00 [18:21:30]line Место: АЗС № 143 "Партнер Нефть" [18:21:30]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:21:30]line СНО: Общий режим [18:21:30]line Чек 270 24.10.2024 18:21 [18:21:30]line Смена: 534 ФФД: 1.0 [18:21:30]line ЗНМ: 0300000096 [18:21:30]line РНМ: 0000000000091693 [18:21:30]line Версия ККМ: 001 [18:21:30]line ФМ: 0000000000871792 [18:21:30]line ФД: 155645 [18:21:30]line ФПД: 107765982824322 [18:21:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182129&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155645&fm=107765982824322&tin=02508201610067®Number=0000000000091693&sum=130000 [18:21:30]written 0, free lines is 4095 [18:21:30]OFD Sender: Processing packet 155645 [packets to send 31, broken 30] [18:21:30]ProducePacketName [18:21:30]name=ofd_packets/00155645 [18:21:30]OFD Sender: To server: pG, [18:21:30]CommunicateWithHost lk.salyk.kg:30040 [18:21:30]ConnectInit lk.salyk.kg [18:21:30]Connected sock=11 [18:21:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 86 BB 04 01 4D 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 29 90 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 5F 02 00 35 04 06 00 62 03 39 20 07 82 F3 6F 18 BC 74 3C 70 AB [18:21:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CA 73 47 00 8B 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 39 32 10 04 04 00 FD 5F 02 00 F4 03 04 00 A1 35 1A 67 B6 04 01 00 00 E5 4E 6F F4 32 86 A5 63 [18:21:30]CommunicateWithHost err = 0 [18:21:30]CheckOFDResponse [18:21:30]1017 (14) - 77093643461234 [18:21:30]1041 (16) - 0000000000871792 [18:21:30]1040 (4) - 155645 [18:21:30]1012 (4) - 24.10.2024 11:55 [18:21:30]1206 (1) - 0 [18:21:30]OFD Sender: Remove packet 155645 [18:21:30]ProducePacketName [18:21:30]name=ofd_packets/00155645 [18:21:30]NVStorageDeleteData [18:21:30]Write to MH i2c: 01 00 00 BE 1D DB [18:21:30]Write i2c OK [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: 01 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: 01 07 00 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: 01 07 00 BE 1D 00 00 00 00 00 EE 0C DC [18:21:30]RasterBufferAndPrint [18:21:30]line [18:21:30]line [18:21:30]line [18:21:30]line [18:21:30]line [18:21:30]written 0, free lines is 3316 [18:21:30]process_action close_receipt done [18:21:30]requested_data is exist [18:21:30]produce_requested_data [18:21:30]requested_item fm.sn is exist - process it [18:21:30]wFMCommunicate request_size=4 [18:21:30]MH_SAM_APDU [18:21:30]CAPDU: 80 11 00 00 [18:21:30]Write to MH i2c: E2 08 00 C5 1D 80 11 00 00 00 00 00 00 5C [18:21:30]Write i2c OK [18:21:30]MH_I2C_Read... [18:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:30]Read from MH i2c: E2 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: E2 17 00 [18:21:30]MH_I2C_Read... [18:21:30]Read from MH i2c: E2 17 00 C5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B1 [18:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:21:30]wFMCommunicate OK [18:21:30]requested_item fd.num is exist - process it [18:21:30]SAM_PROTO_GetFieldsCounters [18:21:30]wFMCommunicate request_size=4 [18:21:30]MH_SAM_APDU [18:21:30]CAPDU: 80 13 00 00 [18:21:30]Write to MH i2c: E2 08 00 C6 1D 80 13 00 00 00 00 00 00 5F [18:21:30]Write i2c OK [18:21:30]MH_I2C_Read... [18:21:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:31]Read from MH i2c: E2 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 62 00 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 62 00 C6 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FD 5F 02 00 0E 04 04 00 16 02 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 28 [18:21: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FD 5F 02 00 0E 04 04 00 16 02 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 [18:21:31]wFMCommunicate OK [18:21:31]SAM_PROTO_GetFieldsCounters done [18:21:31]requested_item shift.num is exist - process it [18:21:31]requested_item shift.opened is exist - process it [18:21:31]req_shift_opened [18:21:31]FM_GetShiftState [18:21:31]SAM_PROTO_GetShiftState [18:21:31]wFMCommunicate request_size=4 [18:21:31]MH_SAM_APDU [18:21:31]CAPDU: 80 13 01 00 [18:21:31]Write to MH i2c: E2 08 00 C7 1D 80 13 01 00 00 00 00 00 61 [18:21:31]Write i2c OK [18:21:31]MH_I2C_Read... [18:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:31]Read from MH i2c: E2 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 0E 00 [18:21:31]MH_I2C_Read... [18:21:31]Read from MH i2c: E2 0E 00 C7 1D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AE [18:21:31]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:21:31]wFMCommunicate OK [18:21:31]SAM_PROTO_GetShiftState done [18:21:31]FM_GetShiftState done [18:21:31]req_shift_opened done [18:21:31]requested_item shift.open_date is exist - process it [18:21:31]req_shift_open_date [18:21:31]req_shift_open_date done [18:21:31]produce_requested_data done [18:21:31]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155645,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [18:21:31]process_action_free close_receipt [18:21:31]json_value_free [18:21:31]json_value_free done [18:21:31]process_json_proto returns [18:21:31]Send response to host [18:21:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155645,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [18:21:31]free response buf [18:21:31]execute_script done [18:21:31]execute_script returns [18:21:31]free content buf [18:21:31]Sock 9.Close socket [18:21:31]Sock 9.Thread stoped [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:48]accept exits with 10 [18:21:48]New connection [18:21:48]New thread 3066637668 created [18:21:48]Thread 3066781028 joined [18:21:48]Waiting for new connection... [18:21:48] Sock 10.Parse request [18:21:48]Sock 10.Check first char [18:21:48]Sock 10.First char is OK [18:21:48]request: POST /json_proto HTTP/1.0 [18:21:48]Method: POST [18:21:48]URL: /json_proto [18:21:48]Method is POST - this is cgi request [18:21:48]url: /json_proto [18:21:48]query_string will be loaded in cgi processing [18:21:48]execute_cgi json_proto POST (null) [18:21:48]execute_cgi path=json_proto method=POST [18:21:48]POST find Content-Length [18:21:48]Host: 172.17.63.3:8080 [18:21:48]Content-Length: 677 [18:21:48]Content-Type: application/json [18:21:48] [18:21:48]POST finish read [18:21:48]Found Content-Length = 677 [18:21:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:48]execute_script... [18:21: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)98452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:48]POST & json_proto [18:21:48]process_json_proto [18:21:48]json parsed OK: [18:21:48]protocol is kg_v1.0 [18:21:48]action value=close_receipt [18:21:48]process_action close_receipt [18:21:48]cmd_close_receipt [18:21:48]MH_GetDate [18:21:48]Write to MH i2c: F0 00 00 C8 1D D4 [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: F0 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: F0 09 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: F0 09 00 C8 1D 00 3D 90 1A 67 50 D1 6C 64 1C [18:21:48]GetLastDocTimeStamp 1729794089 [18:21:48]current date 1729794109 [18:21:48]FM_GetShiftState [18:21:48]SAM_PROTO_GetShiftState [18:21:48]wFMCommunicate request_size=4 [18:21:48]MH_SAM_APDU [18:21:48]CAPDU: 80 13 01 00 [18:21:48]Write to MH i2c: E2 08 00 C9 1D 80 13 01 00 00 00 00 00 63 [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:48]Read from MH i2c: E2 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 0E 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 0E 00 C9 1D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 B0 [18:21:48]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:21:48]wFMCommunicate OK [18:21:48]SAM_PROTO_GetShiftState done [18:21:48]FM_GetShiftState done [18:21:48]opened in 1729729836 [18:21:48]opened+sec_in_day 1729816236 [18:21:48]quantity*price = 80012 [18:21:48]sum+1 = 80013 [18:21:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 271 24.10.2024 18:21 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155646 ФПД: 57478416756895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182149&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155646&fm=57478416756895&tin=02508201610067®Number=0000000000091693&sum=80000 [18:21:49]StoreToDocumentArchive [18:21:49]shift 534 fd 155646 [18:21:49]save to /storage/0534/doc_00155646 [18:21:49]save last doc name /storage/0534/doc_00155646 to /storage/kkm_last_doc_name [18:21:49]save OK [18:21:49]Clear old archive folders... [18:21:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:21:49]tlvbuf is 01F834D0 [18:21:49]SAM_PROTO_ClearQueue [18:21:49]wFMCommunicate request_size=4 [18:21:49]MH_SAM_APDU [18:21:49]CAPDU: 80 09 00 00 [18:21:49]Write to MH i2c: E2 08 00 D6 1D 80 09 00 00 00 00 00 00 65 [18:21:49]Write i2c OK [18:21:49]MH_I2C_Read... [18:21:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:49]Read from MH i2c: E2 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: E2 03 00 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: E2 03 00 D6 1D 00 90 00 67 [18:21:49]RAPDU: 90 00 [18:21:49]wFMCommunicate OK [18:21:49]SAM_PROTO_ClearQueue done [18:21:49]KKMCreateOFDPacket [18:21:49]OFDProtocolAddRootSTLVToBuf [18:21:49]FM_MakeSignedData [18:21:49]FM_MakeSignedData [18:21:49]SAM_PROTO_SignData [18:21:49]wFMCommunicate request_size=4 [18:21:49]MH_SAM_APDU [18:21:49]CAPDU: 80 0D 01 02 [18:21:49]Write to MH i2c: E2 08 00 D7 1D 80 0D 01 02 00 00 00 00 6D [18:21:49]Write i2c OK [18:21:49]MH_I2C_Read... [18:21:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:49]Read from MH i2c: E2 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: E2 03 00 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: E2 03 00 D7 1D 00 90 00 68 [18:21:49]RAPDU: 90 00 [18:21:49]wFMCommunicate OK [18:21:49]wFMCommunicate request_size=255 [18:21:49]MH_SAM_APDU [18:21: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 3D 90 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 5F 02 00 35 04 06 00 34 [18:21:49]Write to MH i2c: E2 02 01 D8 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 3D 90 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 5F 02 00 35 04 06 00 34 00 00 F6 [18:21:49]Write i2c OK [18:21:49]MH_I2C_Read... [18:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:50]Read from MH i2c: E2 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 03 00 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 03 00 D8 1D 00 90 00 69 [18:21:50]RAPDU: 90 00 [18:21:50]wFMCommunicate OK [18:21:50]wFMCommunicate request_size=10 [18:21:50]MH_SAM_APDU [18:21:50]CAPDU: 80 0D 02 02 05 46 BC 9C F0 9F [18:21:50]Write to MH i2c: E2 0D 00 D9 1D 80 0D 02 02 05 00 46 BC 9C F0 9F 00 00 A7 [18:21:50]Write i2c OK [18:21:50]MH_I2C_Read... [18:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:50]Read from MH i2c: E2 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 03 00 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 03 00 D9 1D 00 90 00 6A [18:21:50]RAPDU: 90 00 [18:21:50]wFMCommunicate OK [18:21:50]wFMCommunicate request_size=4 [18:21:50]MH_SAM_APDU [18:21:50]CAPDU: 80 0D 03 02 [18:21:50]Write to MH i2c: E2 08 00 DA 1D 80 0D 03 02 00 00 00 00 72 [18:21:50]Write i2c OK [18:21:50]MH_I2C_Read... [18:21:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:50]Read from MH i2c: E2 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 0B 00 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 0B 00 DA 1D 00 2B 73 9C 81 B4 0C 20 D4 90 00 E2 [18:21:50]RAPDU: 2B 73 9C 81 B4 0C 20 D4 90 00 [18:21:50]wFMCommunicate OK [18:21:50]SAM_PROTO_SignData done [18:21:50]FM_MakeSignedData done [18:21:50]CreateOFDProtocolMessage [18:21:50]wFMCommunicate request_size=4 [18:21:50]MH_SAM_APDU [18:21:50]CAPDU: 80 11 00 00 [18:21:50]Write to MH i2c: E2 08 00 DB 1D 80 11 00 00 00 00 00 00 72 [18:21:50]Write i2c OK [18:21:50]MH_I2C_Read... [18:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:50]Read from MH i2c: E2 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 17 00 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 17 00 DB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C7 [18:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:21:50]wFMCommunicate OK [18:21:50]CreateOFDProtocolMessage done [18:21:50]OFDSenderStorePacket 155646 [18:21:50]StoreOFDPacket docnum=155646 [18:21:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 73 9C 07 01 EE 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 3D 90 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 5F 02 00 35 04 06 00 34 46 BC 9C F0 9F 2B 73 9C 81 B4 0C 20 D4 [18:21:50]CheckFolder [18:21:50]dirname=/storage/ofd_packets [18:21:50]CheckFolder done [18:21:50]ProducePacketName [18:21:50]name=ofd_packets/00155646 [18:21:50]NVStorageSaveData ofd_packets/00155646 [18:21:50]File name is /storage/ofd_packets/00155646 [18:21:50]Write 301 bytes [18:21:50]NVStorageSaveData done [18:21:50]OFDSenderStorePacket done [18:21:50]KKMCreateOFDPacket done [18:21:50]NVStorageSaveData kkm_last_timestamp [18:21:50]File name is /storage/kkm_last_timestamp [18:21:50]Write 4 bytes [18:21:50]NVStorageSaveData done [18:21:50]ExternCall_PrintAddStr [18:21:50]wPrintStart [18:21:50]Write to MH i2c: 01 00 00 DC 1D F9 [18:21:50]Write i2c OK [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: 01 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: 01 07 00 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: 01 07 00 DC 1D 00 00 00 00 00 FF 0F 0E [18:21:50]RasterBufferAndPrint [18:21:50]line Счет N : (1)98452 [18:21:50]line ИНН: 02508201610067 [18:21:50]line Контрольно-Кассовый Чек [18:21:50]line ПРОДАЖА [18:21:50]line ТРК (МРК, ГНК) : 21 [18:21:50]line Товар: 2710124130 [18:21:50]line Аи-92-К-5 [18:21:50]line 11.960 * 66.90 [18:21:50]line = 800.12 [18:21:50]line НДС 12% НСП 1% [18:21:50]line > о реализуемом товаре [18:21:50]line ОКРУГЛЕНИЕ: -0.12 [18:21:50]line ИТОГО: 800.00 [18:21:50]line Внесено: 800.00 [18:21:50]line СДАЧА: 0.00 [18:21:50]line НСП 1% : 7.08 [18:21:50]line НДС 12% : 84.97 [18:21:50]line Наличными: 800.00 [18:21:50]line Безнал.: 0.00 [18:21:50]line Место: АЗС № 143 "Партнер Нефть" [18:21:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:21:50]line СНО: Общий режим [18:21:50]line Чек 271 24.10.2024 18:21 [18:21:50]line Смена: 534 ФФД: 1.0 [18:21:50]line ЗНМ: 0300000096 [18:21:50]line РНМ: 0000000000091693 [18:21:50]line Версия ККМ: 001 [18:21:50]line ФМ: 0000000000871792 [18:21:50]line ФД: 155646 [18:21:50]line ФПД: 57478416756895 [18:21:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182149&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155646&fm=57478416756895&tin=02508201610067®Number=0000000000091693&sum=80000 [18:21:50]written 0, free lines is 4095 [18:21:50]OFD Sender: Processing packet 155646 [packets to send 31, broken 30] [18:21:50]ProducePacketName [18:21:50]name=ofd_packets/00155646 [18:21:50]OFD Sender: To server: pG, [18:21:50]CommunicateWithHost lk.salyk.kg:30040 [18:21:50]ConnectInit lk.salyk.kg [18:21:50]Connected sock=8 [18:21: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 39 32 0F 01 00 00 73 9C 07 01 EE 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 3D 90 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 5F 02 00 35 04 06 00 34 46 BC 9C F0 9F 2B 73 9C 81 B4 0C 20 D4 [18:21: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 39 32 4F 00 00 00 CC 6E 47 00 AF 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 5F 02 00 F4 03 04 00 B5 35 1A 67 B6 04 01 00 00 EF 3D 97 64 4C 10 19 A3 [18:21:50]CommunicateWithHost err = 0 [18:21:50]CheckOFDResponse [18:21:50]1017 (14) - 77093643461234 [18:21:50]1041 (16) - 0000000000871792 [18:21:50]1040 (4) - 155646 [18:21:50]1012 (4) - 24.10.2024 11:55 [18:21:50]1206 (1) - 0 [18:21:50]OFD Sender: Remove packet 155646 [18:21:50]ProducePacketName [18:21:50]name=ofd_packets/00155646 [18:21:50]NVStorageDeleteData [18:21:50]Write to MH i2c: 01 00 00 07 1E 25 [18:21:50]Write i2c OK [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: 01 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: 01 07 00 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: 01 07 00 07 1E 00 00 00 00 00 F2 0C 2A [18:21:50]RasterBufferAndPrint [18:21:50]line [18:21:50]line [18:21:50]line [18:21:50]line [18:21:50]line [18:21:50]written 0, free lines is 3323 [18:21:50]process_action close_receipt done [18:21:50]requested_data is exist [18:21:50]produce_requested_data [18:21:50]requested_item fm.sn is exist - process it [18:21:50]wFMCommunicate request_size=4 [18:21:50]MH_SAM_APDU [18:21:50]CAPDU: 80 11 00 00 [18:21:50]Write to MH i2c: E2 08 00 0E 1E 80 11 00 00 00 00 00 00 A6 [18:21:50]Write i2c OK [18:21:50]MH_I2C_Read... [18:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:50]Read from MH i2c: E2 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 17 00 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 17 00 0E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FB [18:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:21:50]wFMCommunicate OK [18:21:50]requested_item fd.num is exist - process it [18:21:50]SAM_PROTO_GetFieldsCounters [18:21:50]wFMCommunicate request_size=4 [18:21:50]MH_SAM_APDU [18:21:50]CAPDU: 80 13 00 00 [18:21:50]Write to MH i2c: E2 08 00 0F 1E 80 13 00 00 00 00 00 00 A9 [18:21:50]Write i2c OK [18:21:50]MH_I2C_Read... [18:21:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:50]Read from MH i2c: E2 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 62 00 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 62 00 0F 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FE 5F 02 00 0E 04 04 00 16 02 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 76 [18:21: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FE 5F 02 00 0E 04 04 00 16 02 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 [18:21:50]wFMCommunicate OK [18:21:50]SAM_PROTO_GetFieldsCounters done [18:21:50]requested_item shift.num is exist - process it [18:21:50]requested_item shift.opened is exist - process it [18:21:50]req_shift_opened [18:21:50]FM_GetShiftState [18:21:50]SAM_PROTO_GetShiftState [18:21:50]wFMCommunicate request_size=4 [18:21:50]MH_SAM_APDU [18:21:50]CAPDU: 80 13 01 00 [18:21:50]Write to MH i2c: E2 08 00 10 1E 80 13 01 00 00 00 00 00 AB [18:21:50]Write i2c OK [18:21:50]MH_I2C_Read... [18:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:50]Read from MH i2c: E2 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 0E 00 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 0E 00 10 1E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F8 [18:21:50]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:21:50]wFMCommunicate OK [18:21:50]SAM_PROTO_GetShiftState done [18:21:50]FM_GetShiftState done [18:21:50]req_shift_opened done [18:21:50]requested_item shift.open_date is exist - process it [18:21:50]req_shift_open_date [18:21:50]req_shift_open_date done [18:21:50]produce_requested_data done [18:21:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155646,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [18:21:50]process_action_free close_receipt [18:21:50]json_value_free [18:21:50]json_value_free done [18:21:50]process_json_proto returns [18:21:50]Send response to host [18:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155646,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [18:21:50]free response buf [18:21:50]execute_script done [18:21:50]execute_script returns [18:21:50]free content buf [18:21:50]Sock 10.Close socket [18:21:50]Sock 10.Thread stoped [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:42]accept exits with 9 [18:22:42]New connection [18:22:42]New thread 3066781028 created [18:22:42]Thread 3066637668 joined [18:22:42]Waiting for new connection... [18:22:42] Sock 9.Parse request [18:22:42]Sock 9.Check first char [18:22:42]Sock 9.First char is OK [18:22:42]request: POST /json_proto HTTP/1.0 [18:22:42]Method: POST [18:22:42]URL: /json_proto [18:22:42]Method is POST - this is cgi request [18:22:42]url: /json_proto [18:22:42]query_string will be loaded in cgi processing [18:22:42]execute_cgi json_proto POST (null) [18:22:42]execute_cgi path=json_proto method=POST [18:22:42]POST find Content-Length [18:22:42]Host: 172.17.63.3:8080 [18:22:42]Content-Length: 676 [18:22:42]Content-Type: application/json [18:22:42] [18:22:42]POST finish read [18:22:42]Found Content-Length = 676 [18:22:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:42]execute_script... [18:22: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)98453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:42]POST & json_proto [18:22:42]process_json_proto [18:22:42]json parsed OK: [18:22:42]protocol is kg_v1.0 [18:22:42]action value=close_receipt [18:22:42]process_action close_receipt [18:22:42]cmd_close_receipt [18:22:42]MH_GetDate [18:22:42]Write to MH i2c: F0 00 00 11 1E 1E [18:22:42]Write i2c OK [18:22:42]MH_I2C_Read... [18:22:42]Read from MH i2c: F0 [18:22:42]MH_I2C_Read... [18:22:42]Read from MH i2c: F0 09 00 [18:22:42]MH_I2C_Read... [18:22:42]Read from MH i2c: F0 09 00 11 1E 00 74 90 1A 67 50 D1 6C 64 9D [18:22:42]GetLastDocTimeStamp 1729794109 [18:22:42]current date 1729794164 [18:22:42]FM_GetShiftState [18:22:42]SAM_PROTO_GetShiftState [18:22:42]wFMCommunicate request_size=4 [18:22:42]MH_SAM_APDU [18:22:42]CAPDU: 80 13 01 00 [18:22:42]Write to MH i2c: E2 08 00 12 1E 80 13 01 00 00 00 00 00 AD [18:22:42]Write i2c OK [18:22:42]MH_I2C_Read... [18:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:42]Read from MH i2c: E2 [18:22:42]MH_I2C_Read... [18:22:42]Read from MH i2c: E2 0E 00 [18:22:42]MH_I2C_Read... [18:22:42]Read from MH i2c: E2 0E 00 12 1E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 FA [18:22:42]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:22:42]wFMCommunicate OK [18:22:42]SAM_PROTO_GetShiftState done [18:22:42]FM_GetShiftState done [18:22:42]opened in 1729729836 [18:22:42]opened+sec_in_day 1729816236 [18:22:42]quantity*price = 30038 [18:22:42]sum+1 = 30039 [18:22:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 272 24.10.2024 18:22 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155647 ФПД: 271050816001505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182244&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155647&fm=271050816001505&tin=02508201610067®Number=0000000000091693&sum=30000 [18:22:43]StoreToDocumentArchive [18:22:43]shift 534 fd 155647 [18:22:43]save to /storage/0534/doc_00155647 [18:22:43]save last doc name /storage/0534/doc_00155647 to /storage/kkm_last_doc_name [18:22:43]save OK [18:22:43]Clear old archive folders... [18:22:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:43]tlvbuf is 01FF4E20 [18:22:43]SAM_PROTO_ClearQueue [18:22:43]wFMCommunicate request_size=4 [18:22:43]MH_SAM_APDU [18:22:43]CAPDU: 80 09 00 00 [18:22:43]Write to MH i2c: E2 08 00 1F 1E 80 09 00 00 00 00 00 00 AF [18:22:43]Write i2c OK [18:22:43]MH_I2C_Read... [18:22:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:43]Read from MH i2c: E2 [18:22:43]MH_I2C_Read... [18:22:43]Read from MH i2c: E2 03 00 [18:22:43]MH_I2C_Read... [18:22:43]Read from MH i2c: E2 03 00 1F 1E 00 90 00 B1 [18:22:43]RAPDU: 90 00 [18:22:43]wFMCommunicate OK [18:22:43]SAM_PROTO_ClearQueue done [18:22:43]KKMCreateOFDPacket [18:22:43]OFDProtocolAddRootSTLVToBuf [18:22:43]FM_MakeSignedData [18:22:43]FM_MakeSignedData [18:22:43]SAM_PROTO_SignData [18:22:43]wFMCommunicate request_size=4 [18:22:43]MH_SAM_APDU [18:22:43]CAPDU: 80 0D 01 02 [18:22:43]Write to MH i2c: E2 08 00 20 1E 80 0D 01 02 00 00 00 00 B7 [18:22:43]Write i2c OK [18:22:43]MH_I2C_Read... [18:22:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:43]Read from MH i2c: E2 [18:22:43]MH_I2C_Read... [18:22:43]Read from MH i2c: E2 03 00 [18:22:43]MH_I2C_Read... [18:22:43]Read from MH i2c: E2 03 00 20 1E 00 90 00 B2 [18:22:43]RAPDU: 90 00 [18:22:43]wFMCommunicate OK [18:22:43]wFMCommunicate request_size=255 [18:22:43]MH_SAM_APDU [18:22: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 74 90 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 5F 02 00 35 04 06 00 F6 [18:22:43]Write to MH i2c: E2 02 01 21 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 74 90 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 5F 02 00 35 04 06 00 F6 00 00 43 [18:22:44]Write i2c OK [18:22:44]MH_I2C_Read... [18:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:44]Read from MH i2c: E2 [18:22:44]MH_I2C_Read... [18:22:44]Read from MH i2c: E2 03 00 [18:22:44]MH_I2C_Read... [18:22:44]Read from MH i2c: E2 03 00 21 1E 00 90 00 B3 [18:22:44]RAPDU: 90 00 [18:22:44]wFMCommunicate OK [18:22:44]wFMCommunicate request_size=10 [18:22:44]MH_SAM_APDU [18:22:44]CAPDU: 80 0D 02 02 05 84 EF 9A 95 E1 [18:22:44]Write to MH i2c: E2 0D 00 22 1E 80 0D 02 02 05 00 84 EF 9A 95 E1 00 00 47 [18:22:44]Write i2c OK [18:22:44]MH_I2C_Read... [18:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:44]Read from MH i2c: E2 [18:22:44]MH_I2C_Read... [18:22:44]Read from MH i2c: E2 03 00 [18:22:44]MH_I2C_Read... [18:22:44]Read from MH i2c: E2 03 00 22 1E 00 90 00 B4 [18:22:44]RAPDU: 90 00 [18:22:44]wFMCommunicate OK [18:22:44]wFMCommunicate request_size=4 [18:22:44]MH_SAM_APDU [18:22:44]CAPDU: 80 0D 03 02 [18:22:44]Write to MH i2c: E2 08 00 23 1E 80 0D 03 02 00 00 00 00 BC [18:22:44]Write i2c OK [18:22:44]MH_I2C_Read... [18:22:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:44]Read from MH i2c: E2 [18:22:44]MH_I2C_Read... [18:22:44]Read from MH i2c: E2 0B 00 [18:22:44]MH_I2C_Read... [18:22:44]Read from MH i2c: E2 0B 00 23 1E 00 CA 07 C2 A8 28 B5 C7 12 90 00 AE [18:22:44]RAPDU: CA 07 C2 A8 28 B5 C7 12 90 00 [18:22:44]wFMCommunicate OK [18:22:44]SAM_PROTO_SignData done [18:22:44]FM_MakeSignedData done [18:22:44]CreateOFDProtocolMessage [18:22:44]wFMCommunicate request_size=4 [18:22:44]MH_SAM_APDU [18:22:44]CAPDU: 80 11 00 00 [18:22:44]Write to MH i2c: E2 08 00 24 1E 80 11 00 00 00 00 00 00 BC [18:22:44]Write i2c OK [18:22:44]MH_I2C_Read... [18:22:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:44]Read from MH i2c: E2 [18:22:44]MH_I2C_Read... [18:22:44]Read from MH i2c: E2 17 00 [18:22:44]MH_I2C_Read... [18:22:44]Read from MH i2c: E2 17 00 24 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 11 [18:22:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:22:44]wFMCommunicate OK [18:22:44]CreateOFDProtocolMessage done [18:22:44]OFDSenderStorePacket 155647 [18:22:44]StoreOFDPacket docnum=155647 [18:22:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7B 16 07 01 97 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 74 90 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 5F 02 00 35 04 06 00 F6 84 EF 9A 95 E1 CA 07 C2 A8 28 B5 C7 12 [18:22:44]CheckFolder [18:22:44]dirname=/storage/ofd_packets [18:22:44]CheckFolder done [18:22:44]ProducePacketName [18:22:44]name=ofd_packets/00155647 [18:22:44]NVStorageSaveData ofd_packets/00155647 [18:22:44]File name is /storage/ofd_packets/00155647 [18:22:44]Write 301 bytes [18:22:44]NVStorageSaveData done [18:22:44]OFDSenderStorePacket done [18:22:44]KKMCreateOFDPacket done [18:22:44]NVStorageSaveData kkm_last_timestamp [18:22:44]File name is /storage/kkm_last_timestamp [18:22:44]Write 4 bytes [18:22:44]NVStorageSaveData done [18:22:44]ExternCall_PrintAddStr [18:22:44]wPrintStart [18:22:44]Write to MH i2c: 01 00 00 25 1E 43 [18:22:44]Write i2c OK [18:22:44]MH_I2C_Read... [18:22:44]Read from MH i2c: 01 [18:22:44]MH_I2C_Read... [18:22:44]Read from MH i2c: 01 07 00 [18:22:44]MH_I2C_Read... [18:22:44]Read from MH i2c: 01 07 00 25 1E 00 00 00 00 00 FF 0F 58 [18:22:44]RasterBufferAndPrint [18:22:44]line Счет N : (1)98453 [18:22:44]line ИНН: 02508201610067 [18:22:44]line Контрольно-Кассовый Чек [18:22:44]line ПРОДАЖА [18:22:44]line ТРК (МРК, ГНК) : 21 [18:22:44]line Товар: 2710124130 [18:22:44]line Аи-92-К-5 [18:22:44]line 4.490 * 66.90 [18:22:44]line = 300.38 [18:22:44]line НДС 12% НСП 1% [18:22:44]line > о реализуемом товаре [18:22:44]line ОКРУГЛЕНИЕ: -0.38 [18:22:44]line ИТОГО: 300.00 [18:22:44]line Внесено: 300.00 [18:22:44]line СДАЧА: 0.00 [18:22:44]line НСП 1% : 2.66 [18:22:44]line НДС 12% : 31.90 [18:22:44]line Наличными: 300.00 [18:22:44]line Безнал.: 0.00 [18:22:44]line Место: АЗС № 143 "Партнер Нефть" [18:22:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:22:44]line СНО: Общий режим [18:22:44]line Чек 272 24.10.2024 18:22 [18:22:44]line Смена: 534 ФФД: 1.0 [18:22:44]line ЗНМ: 0300000096 [18:22:44]line РНМ: 0000000000091693 [18:22:44]line Версия ККМ: 001 [18:22:44]line ФМ: 0000000000871792 [18:22:44]line ФД: 155647 [18:22:44]line ФПД: 271050816001505 [18:22:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182244&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155647&fm=271050816001505&tin=02508201610067®Number=0000000000091693&sum=30000 [18:22:44]written 0, free lines is 4095 [18:22:44]OFD Sender: Processing packet 155647 [packets to send 31, broken 30] [18:22:44]ProducePacketName [18:22:44]name=ofd_packets/00155647 [18:22:44]OFD Sender: To server: pG, [18:22:44]CommunicateWithHost lk.salyk.kg:30040 [18:22:44]ConnectInit lk.salyk.kg [18:22:44]Connected sock=11 [18:22: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 39 32 0F 01 00 00 7B 16 07 01 97 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 74 90 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 5F 02 00 35 04 06 00 F6 84 EF 9A 95 E1 CA 07 C2 A8 28 B5 C7 12 [18:22:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CB 35 47 00 D6 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 39 32 10 04 04 00 FF 5F 02 00 F4 03 04 00 EC 35 1A 67 B6 04 01 00 00 38 A9 7B D4 EC AA 36 96 [18:22:45]CommunicateWithHost err = 0 [18:22:45]CheckOFDResponse [18:22:45]1017 (14) - 77093643461234 [18:22:45]1041 (16) - 0000000000871792 [18:22:45]1040 (4) - 155647 [18:22:45]1012 (4) - 24.10.2024 11:56 [18:22:45]1206 (1) - 0 [18:22:45]OFD Sender: Remove packet 155647 [18:22:45]ProducePacketName [18:22:45]name=ofd_packets/00155647 [18:22:45]NVStorageDeleteData [18:22:45]Write to MH i2c: 01 00 00 50 1E 6E [18:22:45]Write i2c OK [18:22:45]MH_I2C_Read... [18:22:45]Read from MH i2c: 01 [18:22:45]MH_I2C_Read... [18:22:45]Read from MH i2c: 01 07 00 [18:22:45]MH_I2C_Read... [18:22:45]Read from MH i2c: 01 07 00 50 1E 00 00 00 00 00 F6 0C 77 [18:22:45]RasterBufferAndPrint [18:22:45]line [18:22:45]line [18:22:45]line [18:22:45]line [18:22:45]line [18:22:45]written 0, free lines is 3333 [18:22:45]process_action close_receipt done [18:22:45]requested_data is exist [18:22:45]produce_requested_data [18:22:45]requested_item fm.sn is exist - process it [18:22:45]wFMCommunicate request_size=4 [18:22:45]MH_SAM_APDU [18:22:45]CAPDU: 80 11 00 00 [18:22:45]Write to MH i2c: E2 08 00 57 1E 80 11 00 00 00 00 00 00 EF [18:22:45]Write i2c OK [18:22:45]MH_I2C_Read... [18:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:45]Read from MH i2c: E2 [18:22:45]MH_I2C_Read... [18:22:45]Read from MH i2c: E2 17 00 [18:22:45]MH_I2C_Read... [18:22:45]Read from MH i2c: E2 17 00 57 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 44 [18:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:22:45]wFMCommunicate OK [18:22:45]requested_item fd.num is exist - process it [18:22:45]SAM_PROTO_GetFieldsCounters [18:22:45]wFMCommunicate request_size=4 [18:22:45]MH_SAM_APDU [18:22:45]CAPDU: 80 13 00 00 [18:22:45]Write to MH i2c: E2 08 00 58 1E 80 13 00 00 00 00 00 00 F2 [18:22:45]Write i2c OK [18:22:45]MH_I2C_Read... [18:22:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:45]Read from MH i2c: E2 [18:22:45]MH_I2C_Read... [18:22:45]Read from MH i2c: E2 62 00 [18:22:45]MH_I2C_Read... [18:22:45]Read from MH i2c: E2 62 00 58 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FF 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [18:22: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FF 5F 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:45]wFMCommunicate OK [18:22:45]SAM_PROTO_GetFieldsCounters done [18:22:45]requested_item shift.num is exist - process it [18:22:45]requested_item shift.opened is exist - process it [18:22:45]req_shift_opened [18:22:45]FM_GetShiftState [18:22:45]SAM_PROTO_GetShiftState [18:22:45]wFMCommunicate request_size=4 [18:22:45]MH_SAM_APDU [18:22:45]CAPDU: 80 13 01 00 [18:22:45]Write to MH i2c: E2 08 00 59 1E 80 13 01 00 00 00 00 00 F4 [18:22:45]Write i2c OK [18:22:45]MH_I2C_Read... [18:22:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:45]Read from MH i2c: E2 [18:22:45]MH_I2C_Read... [18:22:45]Read from MH i2c: E2 0E 00 [18:22:45]MH_I2C_Read... [18:22:45]Read from MH i2c: E2 0E 00 59 1E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 41 [18:22:45]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:22:45]wFMCommunicate OK [18:22:45]SAM_PROTO_GetShiftState done [18:22:45]FM_GetShiftState done [18:22:45]req_shift_opened done [18:22:45]requested_item shift.open_date is exist - process it [18:22:45]req_shift_open_date [18:22:45]req_shift_open_date done [18:22:45]produce_requested_data done [18:22:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155647,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [18:22:45]process_action_free close_receipt [18:22:45]json_value_free [18:22:45]json_value_free done [18:22:45]process_json_proto returns [18:22:45]Send response to host [18:22:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155647,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [18:22:45]free response buf [18:22:45]execute_script done [18:22:45]execute_script returns [18:22:45]free content buf [18:22:45]Sock 9.Close socket [18:22:45]Sock 9.Thread stoped [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:07]accept exits with 10 [18:24:07]New connection [18:24:07]New thread 3066637668 created [18:24:07]Thread 3066781028 joined [18:24:07]Waiting for new connection... [18:24:07] Sock 10.Parse request [18:24:07]Sock 10.Check first char [18:24:07]Sock 10.First char is OK [18:24:07]request: POST /json_proto HTTP/1.0 [18:24:07]Method: POST [18:24:07]URL: /json_proto [18:24:07]Method is POST - this is cgi request [18:24:07]url: /json_proto [18:24:07]query_string will be loaded in cgi processing [18:24:07]execute_cgi json_proto POST (null) [18:24:07]execute_cgi path=json_proto method=POST [18:24:07]POST find Content-Length [18:24:07]Host: 172.17.63.3:8080 [18:24:07]Content-Length: 676 [18:24:07]Content-Type: application/json [18:24:07] [18:24:07]POST finish read [18:24:07]Found Content-Length = 676 [18:24:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:07]execute_script... [18:24: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)98454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:07]POST & json_proto [18:24:07]process_json_proto [18:24:07]json parsed OK: [18:24:07]protocol is kg_v1.0 [18:24:07]action value=close_receipt [18:24:07]process_action close_receipt [18:24:07]cmd_close_receipt [18:24:07]MH_GetDate [18:24:07]Write to MH i2c: F0 00 00 5A 1E 67 [18:24:07]Write i2c OK [18:24:07]MH_I2C_Read... [18:24:07]Read from MH i2c: F0 [18:24:07]MH_I2C_Read... [18:24:07]Read from MH i2c: F0 09 00 [18:24:07]MH_I2C_Read... [18:24:07]Read from MH i2c: F0 09 00 5A 1E 00 C8 90 1A 67 50 D1 6C 64 3A [18:24:07]GetLastDocTimeStamp 1729794164 [18:24:07]current date 1729794248 [18:24:07]FM_GetShiftState [18:24:07]SAM_PROTO_GetShiftState [18:24:07]wFMCommunicate request_size=4 [18:24:07]MH_SAM_APDU [18:24:07]CAPDU: 80 13 01 00 [18:24:07]Write to MH i2c: E2 08 00 5B 1E 80 13 01 00 00 00 00 00 F6 [18:24:07]Write i2c OK [18:24:07]MH_I2C_Read... [18:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:07]Read from MH i2c: E2 [18:24:07]MH_I2C_Read... [18:24:07]Read from MH i2c: E2 0E 00 [18:24:07]MH_I2C_Read... [18:24:07]Read from MH i2c: E2 0E 00 5B 1E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 43 [18:24:07]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:24:07]wFMCommunicate OK [18:24:07]SAM_PROTO_GetShiftState done [18:24:07]FM_GetShiftState done [18:24:07]opened in 1729729836 [18:24:07]opened+sec_in_day 1729816236 [18:24:07]quantity*price = 40006 [18:24:07]sum+1 = 40007 [18:24:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 273 24.10.2024 18:24 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155648 ФПД: 198135679684278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182408&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155648&fm=198135679684278&tin=02508201610067®Number=0000000000091693&sum=40000 [18:24:08]StoreToDocumentArchive [18:24:08]shift 534 fd 155648 [18:24:08]save to /storage/0534/doc_00155648 [18:24:08]save last doc name /storage/0534/doc_00155648 to /storage/kkm_last_doc_name [18:24:08]save OK [18:24:08]Clear old archive folders... [18:24:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:24:08]tlvbuf is 01F34410 [18:24:08]SAM_PROTO_ClearQueue [18:24:08]wFMCommunicate request_size=4 [18:24:08]MH_SAM_APDU [18:24:08]CAPDU: 80 09 00 00 [18:24:08]Write to MH i2c: E2 08 00 68 1E 80 09 00 00 00 00 00 00 F8 [18:24:08]Write i2c OK [18:24:08]MH_I2C_Read... [18:24:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:08]Read from MH i2c: E2 [18:24:08]MH_I2C_Read... [18:24:08]Read from MH i2c: E2 03 00 [18:24:08]MH_I2C_Read... [18:24:08]Read from MH i2c: E2 03 00 68 1E 00 90 00 FA [18:24:08]RAPDU: 90 00 [18:24:08]wFMCommunicate OK [18:24:08]SAM_PROTO_ClearQueue done [18:24:08]KKMCreateOFDPacket [18:24:08]OFDProtocolAddRootSTLVToBuf [18:24:08]FM_MakeSignedData [18:24:08]FM_MakeSignedData [18:24:08]SAM_PROTO_SignData [18:24:08]wFMCommunicate request_size=4 [18:24:08]MH_SAM_APDU [18:24:08]CAPDU: 80 0D 01 02 [18:24:08]Write to MH i2c: E2 08 00 69 1E 80 0D 01 02 00 00 00 00 00 [18:24:08]Write i2c OK [18:24:08]MH_I2C_Read... [18:24:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:08]Read from MH i2c: E2 [18:24:08]MH_I2C_Read... [18:24:08]Read from MH i2c: E2 03 00 [18:24:08]MH_I2C_Read... [18:24:08]Read from MH i2c: E2 03 00 69 1E 00 90 00 FB [18:24:08]RAPDU: 90 00 [18:24:08]wFMCommunicate OK [18:24:08]wFMCommunicate request_size=255 [18:24:08]MH_SAM_APDU [18:24:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 C8 90 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 60 02 00 35 04 06 00 B4 [18:24:08]Write to MH i2c: E2 02 01 6A 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 C8 90 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 60 02 00 35 04 06 00 B4 00 00 7C [18:24:08]Write i2c OK [18:24:08]MH_I2C_Read... [18:24:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:08]Read from MH i2c: E2 [18:24:08]MH_I2C_Read... [18:24:08]Read from MH i2c: E2 03 00 [18:24:08]MH_I2C_Read... [18:24:08]Read from MH i2c: E2 03 00 6A 1E 00 90 00 FC [18:24:08]RAPDU: 90 00 [18:24:08]wFMCommunicate OK [18:24:08]wFMCommunicate request_size=10 [18:24:08]MH_SAM_APDU [18:24:08]CAPDU: 80 0D 02 02 05 34 0E CE 0E B6 [18:24:08]Write to MH i2c: E2 0D 00 6B 1E 80 0D 02 02 05 00 34 0E CE 0E B6 00 00 E1 [18:24:08]Write i2c OK [18:24:08]MH_I2C_Read... [18:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:09]Read from MH i2c: E2 [18:24:09]MH_I2C_Read... [18:24:09]Read from MH i2c: E2 03 00 [18:24:09]MH_I2C_Read... [18:24:09]Read from MH i2c: E2 03 00 6B 1E 00 90 00 FD [18:24:09]RAPDU: 90 00 [18:24:09]wFMCommunicate OK [18:24:09]wFMCommunicate request_size=4 [18:24:09]MH_SAM_APDU [18:24:09]CAPDU: 80 0D 03 02 [18:24:09]Write to MH i2c: E2 08 00 6C 1E 80 0D 03 02 00 00 00 00 05 [18:24:09]Write i2c OK [18:24:09]MH_I2C_Read... [18:24:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:09]Read from MH i2c: E2 [18:24:09]MH_I2C_Read... [18:24:09]Read from MH i2c: E2 0B 00 [18:24:09]MH_I2C_Read... [18:24:09]Read from MH i2c: E2 0B 00 6C 1E 00 06 25 FF 80 89 2B DD BB 90 00 FC [18:24:09]RAPDU: 06 25 FF 80 89 2B DD BB 90 00 [18:24:09]wFMCommunicate OK [18:24:09]SAM_PROTO_SignData done [18:24:09]FM_MakeSignedData done [18:24:09]CreateOFDProtocolMessage [18:24:09]wFMCommunicate request_size=4 [18:24:09]MH_SAM_APDU [18:24:09]CAPDU: 80 11 00 00 [18:24:09]Write to MH i2c: E2 08 00 6D 1E 80 11 00 00 00 00 00 00 05 [18:24:09]Write i2c OK [18:24:09]MH_I2C_Read... [18:24:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:09]Read from MH i2c: E2 [18:24:09]MH_I2C_Read... [18:24:09]Read from MH i2c: E2 17 00 [18:24:09]MH_I2C_Read... [18:24:09]Read from MH i2c: E2 17 00 6D 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5A [18:24:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:24:09]wFMCommunicate OK [18:24:09]CreateOFDProtocolMessage done [18:24:09]OFDSenderStorePacket 155648 [18:24:09]StoreOFDPacket docnum=155648 [18:24:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1F 47 07 01 3D 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 C8 90 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 60 02 00 35 04 06 00 B4 34 0E CE 0E B6 06 25 FF 80 89 2B DD BB [18:24:09]CheckFolder [18:24:09]dirname=/storage/ofd_packets [18:24:09]CheckFolder done [18:24:09]ProducePacketName [18:24:09]name=ofd_packets/00155648 [18:24:09]NVStorageSaveData ofd_packets/00155648 [18:24:09]File name is /storage/ofd_packets/00155648 [18:24:09]Write 301 bytes [18:24:09]NVStorageSaveData done [18:24:09]OFDSenderStorePacket done [18:24:09]KKMCreateOFDPacket done [18:24:09]NVStorageSaveData kkm_last_timestamp [18:24:09]File name is /storage/kkm_last_timestamp [18:24:09]Write 4 bytes [18:24:09]NVStorageSaveData done [18:24:09]ExternCall_PrintAddStr [18:24:09]wPrintStart [18:24:09]Write to MH i2c: 01 00 00 6E 1E 8C [18:24:09]Write i2c OK [18:24:09]MH_I2C_Read... [18:24:09]Read from MH i2c: 01 [18:24:09]MH_I2C_Read... [18:24:09]Read from MH i2c: 01 07 00 [18:24:09]MH_I2C_Read... [18:24:09]Read from MH i2c: 01 07 00 6E 1E 00 00 00 00 00 FF 0F A1 [18:24:09]RasterBufferAndPrint [18:24:09]line Счет N : (1)98454 [18:24:09]line ИНН: 02508201610067 [18:24:09]line Контрольно-Кассовый Чек [18:24:09]line ПРОДАЖА [18:24:09]line ТРК (МРК, ГНК) : 21 [18:24:09]line Товар: 2710124130 [18:24:09]line Аи-92-К-5 [18:24:09]line 5.980 * 66.90 [18:24:09]line = 400.06 [18:24:09]line НДС 12% НСП 1% [18:24:09]line > о реализуемом товаре [18:24:09]line ОКРУГЛЕНИЕ: -0.06 [18:24:09]line ИТОГО: 400.00 [18:24:09]line Внесено: 400.00 [18:24:09]line СДАЧА: 0.00 [18:24:09]line НСП 1% : 3.54 [18:24:09]line НДС 12% : 42.48 [18:24:09]line Наличными: 400.00 [18:24:09]line Безнал.: 0.00 [18:24:09]line Место: АЗС № 143 "Партнер Нефть" [18:24:09]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:24:09]line СНО: Общий режим [18:24:09]line Чек 273 24.10.2024 18:24 [18:24:09]line Смена: 534 ФФД: 1.0 [18:24:09]line ЗНМ: 0300000096 [18:24:09]line РНМ: 0000000000091693 [18:24:09]line Версия ККМ: 001 [18:24:09]line ФМ: 0000000000871792 [18:24:09]line ФД: 155648 [18:24:09]line ФПД: 198135679684278 [18:24:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182408&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155648&fm=198135679684278&tin=02508201610067®Number=0000000000091693&sum=40000 [18:24:09]written 0, free lines is 4095 [18:24:09]OFD Sender: Processing packet 155648 [packets to send 31, broken 30] [18:24:09]ProducePacketName [18:24:09]name=ofd_packets/00155648 [18:24:09]OFD Sender: To server: pG, [18:24:09]CommunicateWithHost lk.salyk.kg:30040 [18:24:09]ConnectInit lk.salyk.kg [18:24:09]Connected sock=9 [18:24: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 39 32 0F 01 00 00 1F 47 07 01 3D 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 C8 90 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 60 02 00 35 04 06 00 B4 34 0E CE 0E B6 06 25 FF 80 89 2B DD BB [18:24: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 39 32 4F 00 00 00 CE A6 47 00 E9 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 39 32 10 04 04 00 00 60 02 00 F4 03 04 00 40 36 1A 67 B6 04 01 00 00 53 40 FD 12 E9 13 91 0F [18:24:09]CommunicateWithHost err = 0 [18:24:09]CheckOFDResponse [18:24:09]1017 (14) - 77093643461234 [18:24:09]1041 (16) - 0000000000871792 [18:24:09]1040 (4) - 155648 [18:24:09]1012 (4) - 24.10.2024 11:57 [18:24:09]1206 (1) - 0 [18:24:09]OFD Sender: Remove packet 155648 [18:24:09]ProducePacketName [18:24:09]name=ofd_packets/00155648 [18:24:09]NVStorageDeleteData [18:24:09]Write to MH i2c: 01 00 00 99 1E B7 [18:24:09]Write i2c OK [18:24:09]MH_I2C_Read... [18:24:09]Read from MH i2c: 01 [18:24:09]MH_I2C_Read... [18:24:09]Read from MH i2c: 01 07 00 [18:24:09]MH_I2C_Read... [18:24:09]Read from MH i2c: 01 07 00 99 1E 00 00 00 00 00 F3 0C BD [18:24:09]RasterBufferAndPrint [18:24:09]line [18:24:09]line [18:24:09]line [18:24:09]line [18:24:09]line [18:24:09]written 0, free lines is 3333 [18:24:09]process_action close_receipt done [18:24:09]requested_data is exist [18:24:09]produce_requested_data [18:24:09]requested_item fm.sn is exist - process it [18:24:09]wFMCommunicate request_size=4 [18:24:09]MH_SAM_APDU [18:24:09]CAPDU: 80 11 00 00 [18:24:09]Write to MH i2c: E2 08 00 A0 1E 80 11 00 00 00 00 00 00 38 [18:24:09]Write i2c OK [18:24:09]MH_I2C_Read... [18:24:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:09]Read from MH i2c: E2 [18:24:09]MH_I2C_Read... [18:24:09]Read from MH i2c: E2 17 00 [18:24:09]MH_I2C_Read... [18:24:09]Read from MH i2c: E2 17 00 A0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8D [18:24:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:24:09]wFMCommunicate OK [18:24:09]requested_item fd.num is exist - process it [18:24:09]SAM_PROTO_GetFieldsCounters [18:24:09]wFMCommunicate request_size=4 [18:24:09]MH_SAM_APDU [18:24:09]CAPDU: 80 13 00 00 [18:24:09]Write to MH i2c: E2 08 00 A1 1E 80 13 00 00 00 00 00 00 3B [18:24:09]Write i2c OK [18:24:09]MH_I2C_Read... [18:24:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:09]Read from MH i2c: E2 [18:24:09]MH_I2C_Read... [18:24:09]Read from MH i2c: E2 62 00 [18:24:09]MH_I2C_Read... [18:24:09]Read from MH i2c: E2 62 00 A1 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 00 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 11 [18:24: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 00 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:09]wFMCommunicate OK [18:24:09]SAM_PROTO_GetFieldsCounters done [18:24:09]requested_item shift.num is exist - process it [18:24:09]requested_item shift.opened is exist - process it [18:24:09]req_shift_opened [18:24:09]FM_GetShiftState [18:24:09]SAM_PROTO_GetShiftState [18:24:09]wFMCommunicate request_size=4 [18:24:09]MH_SAM_APDU [18:24:09]CAPDU: 80 13 01 00 [18:24:09]Write to MH i2c: E2 08 00 A2 1E 80 13 01 00 00 00 00 00 3D [18:24:09]Write i2c OK [18:24:09]MH_I2C_Read... [18:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:09]Read from MH i2c: E2 [18:24:10]MH_I2C_Read... [18:24:10]Read from MH i2c: E2 0E 00 [18:24:10]MH_I2C_Read... [18:24:10]Read from MH i2c: E2 0E 00 A2 1E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8A [18:24:10]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:24:10]wFMCommunicate OK [18:24:10]SAM_PROTO_GetShiftState done [18:24:10]FM_GetShiftState done [18:24:10]req_shift_opened done [18:24:10]requested_item shift.open_date is exist - process it [18:24:10]req_shift_open_date [18:24:10]req_shift_open_date done [18:24:10]produce_requested_data done [18:24:10]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155648,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [18:24:10]process_action_free close_receipt [18:24:10]json_value_free [18:24:10]json_value_free done [18:24:10]process_json_proto returns [18:24:10]Send response to host [18:24:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155648,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [18:24:10]free response buf [18:24:10]execute_script done [18:24:10]execute_script returns [18:24:10]free content buf [18:24:10]Sock 10.Close socket [18:24:10]Sock 10.Thread stoped [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:45]OFD Sender: No OFD packet to send [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:48]accept exits with 8 [18:27:48]New connection [18:27:48]New thread 3066781028 created [18:27:48]Thread 3066637668 joined [18:27:48]Waiting for new connection... [18:27:48] Sock 8.Parse request [18:27:48]Sock 8.Check first char [18:27:48]Sock 8.First char is OK [18:27:48]request: POST /json_proto HTTP/1.0 [18:27:48]Method: POST [18:27:48]URL: /json_proto [18:27:48]Method is POST - this is cgi request [18:27:48]url: /json_proto [18:27:48]query_string will be loaded in cgi processing [18:27:48]execute_cgi json_proto POST (null) [18:27:48]execute_cgi path=json_proto method=POST [18:27:48]POST find Content-Length [18:27:48]Host: 172.17.63.3:8080 [18:27:48]Content-Length: 681 [18:27:48]Content-Type: application/json [18:27:48] [18:27:48]POST finish read [18:27:48]Found Content-Length = 681 [18:27:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:48]execute_script... [18:27: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)98455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:48]POST & json_proto [18:27:48]process_json_proto [18:27:48]json parsed OK: [18:27:48]protocol is kg_v1.0 [18:27:48]action value=close_receipt [18:27:48]process_action close_receipt [18:27:48]cmd_close_receipt [18:27:48]MH_GetDate [18:27:48]Write to MH i2c: F0 00 00 A3 1E B0 [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: F0 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: F0 09 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: F0 09 00 A3 1E 00 A5 91 1A 67 50 D1 6C 64 61 [18:27:48]GetLastDocTimeStamp 1729794248 [18:27:48]current date 1729794469 [18:27:48]FM_GetShiftState [18:27:48]SAM_PROTO_GetShiftState [18:27:48]wFMCommunicate request_size=4 [18:27:48]MH_SAM_APDU [18:27:48]CAPDU: 80 13 01 00 [18:27:48]Write to MH i2c: E2 08 00 A4 1E 80 13 01 00 00 00 00 00 3F [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:48]Read from MH i2c: E2 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 0E 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 0E 00 A4 1E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8C [18:27:48]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:27:48]wFMCommunicate OK [18:27:48]SAM_PROTO_GetShiftState done [18:27:48]FM_GetShiftState done [18:27:48]opened in 1729729836 [18:27:48]opened+sec_in_day 1729816236 [18:27:48]quantity*price = 140021 [18:27:48]sum+1 = 140023 [18:27:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 274 24.10.2024 18:27 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155649 ФПД: 198377593464840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182749&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155649&fm=198377593464840&tin=02508201610067®Number=0000000000091693&sum=140000 [18:27:49]StoreToDocumentArchive [18:27:49]shift 534 fd 155649 [18:27:49]save to /storage/0534/doc_00155649 [18:27:49]save last doc name /storage/0534/doc_00155649 to /storage/kkm_last_doc_name [18:27:49]save OK [18:27:49]Clear old archive folders... [18:27:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:49]tlvbuf is 01F95380 [18:27:49]SAM_PROTO_ClearQueue [18:27:49]wFMCommunicate request_size=4 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 09 00 00 [18:27:49]Write to MH i2c: E2 08 00 B1 1E 80 09 00 00 00 00 00 00 41 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 B1 1E 00 90 00 43 [18:27:49]RAPDU: 90 00 [18:27:49]wFMCommunicate OK [18:27:49]SAM_PROTO_ClearQueue done [18:27:49]KKMCreateOFDPacket [18:27:49]OFDProtocolAddRootSTLVToBuf [18:27:49]FM_MakeSignedData [18:27:49]FM_MakeSignedData [18:27:49]SAM_PROTO_SignData [18:27:49]wFMCommunicate request_size=4 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 0D 01 02 [18:27:49]Write to MH i2c: E2 08 00 B2 1E 80 0D 01 02 00 00 00 00 49 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 B2 1E 00 90 00 44 [18:27:49]RAPDU: 90 00 [18:27:49]wFMCommunicate OK [18:27:49]wFMCommunicate request_size=255 [18:27:49]MH_SAM_APDU [18:27: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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 A5 91 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 60 02 00 35 04 06 00 B4 [18:27:49]Write to MH i2c: E2 02 01 B3 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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 A5 91 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 60 02 00 35 04 06 00 B4 00 00 ED [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:50]Read from MH i2c: E2 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: E2 03 00 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: E2 03 00 B3 1E 00 90 00 45 [18:27:50]RAPDU: 90 00 [18:27:50]wFMCommunicate OK [18:27:50]wFMCommunicate request_size=10 [18:27:50]MH_SAM_APDU [18:27:50]CAPDU: 80 0D 02 02 05 6C 61 FD 68 08 [18:27:50]Write to MH i2c: E2 0D 00 B4 1E 80 0D 02 02 05 00 6C 61 FD 68 08 00 00 90 [18:27:50]Write i2c OK [18:27:50]MH_I2C_Read... [18:27:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:50]Read from MH i2c: E2 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: E2 03 00 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: E2 03 00 B4 1E 00 90 00 46 [18:27:50]RAPDU: 90 00 [18:27:50]wFMCommunicate OK [18:27:50]wFMCommunicate request_size=4 [18:27:50]MH_SAM_APDU [18:27:50]CAPDU: 80 0D 03 02 [18:27:50]Write to MH i2c: E2 08 00 B5 1E 80 0D 03 02 00 00 00 00 4E [18:27:50]Write i2c OK [18:27:50]MH_I2C_Read... [18:27:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:50]Read from MH i2c: E2 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: E2 0B 00 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: E2 0B 00 B5 1E 00 AD 6A 9A 15 C0 1A 8F 34 90 00 B2 [18:27:50]RAPDU: AD 6A 9A 15 C0 1A 8F 34 90 00 [18:27:50]wFMCommunicate OK [18:27:50]SAM_PROTO_SignData done [18:27:50]FM_MakeSignedData done [18:27:50]CreateOFDProtocolMessage [18:27:50]wFMCommunicate request_size=4 [18:27:50]MH_SAM_APDU [18:27:50]CAPDU: 80 11 00 00 [18:27:50]Write to MH i2c: E2 08 00 B6 1E 80 11 00 00 00 00 00 00 4E [18:27:50]Write i2c OK [18:27:50]MH_I2C_Read... [18:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:50]Read from MH i2c: E2 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: E2 17 00 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: E2 17 00 B6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A3 [18:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:27:50]wFMCommunicate OK [18:27:50]CreateOFDProtocolMessage done [18:27:50]OFDSenderStorePacket 155649 [18:27:50]StoreOFDPacket docnum=155649 [18:27:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1B 8A 07 01 65 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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 A5 91 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 60 02 00 35 04 06 00 B4 6C 61 FD 68 08 AD 6A 9A 15 C0 1A 8F 34 [18:27:50]CheckFolder [18:27:50]dirname=/storage/ofd_packets [18:27:50]CheckFolder done [18:27:50]ProducePacketName [18:27:50]name=ofd_packets/00155649 [18:27:50]NVStorageSaveData ofd_packets/00155649 [18:27:50]File name is /storage/ofd_packets/00155649 [18:27:50]Write 301 bytes [18:27:50]NVStorageSaveData done [18:27:50]OFDSenderStorePacket done [18:27:50]KKMCreateOFDPacket done [18:27:50]NVStorageSaveData kkm_last_timestamp [18:27:50]File name is /storage/kkm_last_timestamp [18:27:50]Write 4 bytes [18:27:50]NVStorageSaveData done [18:27:50]OFD Sender: Processing packet 155649 [packets to send 31, broken 30] [18:27:50]ProducePacketName [18:27:50]name=ofd_packets/00155649 [18:27:50]OFD Sender: To server: pG, [18:27:50]CommunicateWithHost lk.salyk.kg:30040 [18:27:50]ConnectInit lk.salyk.kg [18:27:50]ExternCall_PrintAddStr [18:27:50]wPrintStart [18:27:50]Write to MH i2c: 01 00 00 B7 1E D5 [18:27:50]Write i2c OK [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: 01 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: 01 07 00 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: 01 07 00 B7 1E 00 00 00 00 00 FF 0F EA [18:27:50]RasterBufferAndPrint [18:27:50]line Счет N : (1)98455 [18:27:50]line ИНН: 02508201610067 [18:27:50]line Контрольно-Кассовый Чек [18:27:50]line ПРОДАЖА [18:27:50]line ТРК (МРК, ГНК) : 31 [18:27:50]line Товар: 2710124130 [18:27:50]line Аи-92-К-5 [18:27:50]line 20.930 * 66.90 [18:27:50]line = 1400.22 [18:27:50]line НДС 12% НСП 1% [18:27:50]line > о реализуемом товаре [18:27:50]line ОКРУГЛЕНИЕ: -0.22 [18:27:50]line ИТОГО: 1400.00 [18:27:50]line Внесено: 1400.00 [18:27:50]line СДАЧА: 0.00 [18:27:50]line НСП 1% : 12.39 [18:27:50]line НДС 12% : 148.70 [18:27:50]line Наличными: 1400.00 [18:27:50]line Безнал.: 0.00 [18:27:50]line Место: АЗС № 143 "Партнер Нефть" [18:27:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:27:50]line СНО: Общий режим [18:27:50]line Чек 274 24.10.2024 18:27 [18:27:50]line Смена: 534 ФФД: 1.0 [18:27:50]line ЗНМ: 0300000096 [18:27:50]line РНМ: 0000000000091693 [18:27:50]line Версия ККМ: 001 [18:27:50]line ФМ: 0000000000871792 [18:27:50]line ФД: 155649 [18:27:50]line ФПД: 198377593464840 [18:27:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182749&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155649&fm=198377593464840&tin=02508201610067®Number=0000000000091693&sum=140000 [18:27:50]Connected sock=11 [18:27: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 39 32 0F 01 00 00 1B 8A 07 01 65 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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 A5 91 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 60 02 00 35 04 06 00 B4 6C 61 FD 68 08 AD 6A 9A 15 C0 1A 8F 34 [18:27:50]written 0, free lines is 4095 [18:27: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 39 32 4F 00 00 00 63 6D 47 00 EE 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 39 32 10 04 04 00 01 60 02 00 F4 03 04 00 1D 37 1A 67 B6 04 01 00 00 44 F4 B1 F0 DC 7D 92 FF [18:27:50]CommunicateWithHost err = 0 [18:27:50]CheckOFDResponse [18:27:50]1017 (14) - 77093643461234 [18:27:50]1041 (16) - 0000000000871792 [18:27:50]1040 (4) - 155649 [18:27:50]1012 (4) - 24.10.2024 12:01 [18:27:50]1206 (1) - 0 [18:27:50]OFD Sender: Remove packet 155649 [18:27:50]ProducePacketName [18:27:50]name=ofd_packets/00155649 [18:27:50]NVStorageDeleteData [18:27:51]Write to MH i2c: 01 00 00 E2 1E 00 [18:27:51]Write i2c OK [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: 01 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: 01 07 00 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: 01 07 00 E2 1E 00 00 00 00 00 E4 0C F7 [18:27:51]RasterBufferAndPrint [18:27:51]line [18:27:51]line [18:27:51]line [18:27:51]line [18:27:51]line [18:27:51]written 0, free lines is 3306 [18:27:51]process_action close_receipt done [18:27:51]requested_data is exist [18:27:51]produce_requested_data [18:27:51]requested_item fm.sn is exist - process it [18:27:51]wFMCommunicate request_size=4 [18:27:51]MH_SAM_APDU [18:27:51]CAPDU: 80 11 00 00 [18:27:51]Write to MH i2c: E2 08 00 E9 1E 80 11 00 00 00 00 00 00 81 [18:27:51]Write i2c OK [18:27:51]MH_I2C_Read... [18:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:51]Read from MH i2c: E2 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 17 00 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 17 00 E9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D6 [18:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:27:51]wFMCommunicate OK [18:27:51]requested_item fd.num is exist - process it [18:27:51]SAM_PROTO_GetFieldsCounters [18:27:51]wFMCommunicate request_size=4 [18:27:51]MH_SAM_APDU [18:27:51]CAPDU: 80 13 00 00 [18:27:51]Write to MH i2c: E2 08 00 EA 1E 80 13 00 00 00 00 00 00 84 [18:27:51]Write i2c OK [18:27:51]MH_I2C_Read... [18:27:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:51]Read from MH i2c: E2 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 62 00 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 62 00 EA 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 01 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [18:27: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 01 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:51]wFMCommunicate OK [18:27:51]SAM_PROTO_GetFieldsCounters done [18:27:51]requested_item shift.num is exist - process it [18:27:51]requested_item shift.opened is exist - process it [18:27:51]req_shift_opened [18:27:51]FM_GetShiftState [18:27:51]SAM_PROTO_GetShiftState [18:27:51]wFMCommunicate request_size=4 [18:27:51]MH_SAM_APDU [18:27:51]CAPDU: 80 13 01 00 [18:27:51]Write to MH i2c: E2 08 00 EB 1E 80 13 01 00 00 00 00 00 86 [18:27:51]OFD Sender: No OFD packet to send [18:27:51]Write i2c OK [18:27:51]MH_I2C_Read... [18:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:51]Read from MH i2c: E2 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 0E 00 [18:27:51]MH_I2C_Read... [18:27:51]Read from MH i2c: E2 0E 00 EB 1E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D3 [18:27:51]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:27:51]wFMCommunicate OK [18:27:51]SAM_PROTO_GetShiftState done [18:27:51]FM_GetShiftState done [18:27:51]req_shift_opened done [18:27:51]requested_item shift.open_date is exist - process it [18:27:51]req_shift_open_date [18:27:51]req_shift_open_date done [18:27:51]produce_requested_data done [18:27:51]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155649,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [18:27:51]process_action_free close_receipt [18:27:51]json_value_free [18:27:51]json_value_free done [18:27:51]process_json_proto returns [18:27:51]Send response to host [18:27:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155649,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [18:27:51]free response buf [18:27:51]execute_script done [18:27:51]execute_script returns [18:27:51]free content buf [18:27:51]Sock 8.Close socket [18:27:51]Sock 8.Thread stoped [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:23]accept exits with 9 [18:29:23]New connection [18:29:23]New thread 3066637668 created [18:29:23]Thread 3066781028 joined [18:29:23]Waiting for new connection... [18:29:23] Sock 9.Parse request [18:29:23]Sock 9.Check first char [18:29:23]Sock 9.First char is OK [18:29:23]request: POST /json_proto HTTP/1.0 [18:29:23]Method: POST [18:29:23]URL: /json_proto [18:29:23]Method is POST - this is cgi request [18:29:23]url: /json_proto [18:29:23]query_string will be loaded in cgi processing [18:29:23]execute_cgi json_proto POST (null) [18:29:23]execute_cgi path=json_proto method=POST [18:29:23]POST find Content-Length [18:29:23]Host: 172.17.63.3:8080 [18:29:23]Content-Length: 676 [18:29:23]Content-Type: application/json [18:29:23] [18:29:23]POST finish read [18:29:23]Found Content-Length = 676 [18:29:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:23]execute_script... [18:29: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)98456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:23]POST & json_proto [18:29:23]process_json_proto [18:29:23]json parsed OK: [18:29:23]protocol is kg_v1.0 [18:29:23]action value=close_receipt [18:29:23]process_action close_receipt [18:29:23]cmd_close_receipt [18:29:23]MH_GetDate [18:29:23]Write to MH i2c: F0 00 00 EC 1E F9 [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: F0 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: F0 09 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: F0 09 00 EC 1E 00 04 92 1A 67 50 D1 6C 64 0A [18:29:23]GetLastDocTimeStamp 1729794469 [18:29:23]current date 1729794564 [18:29:23]FM_GetShiftState [18:29:23]SAM_PROTO_GetShiftState [18:29:23]wFMCommunicate request_size=4 [18:29:23]MH_SAM_APDU [18:29:23]CAPDU: 80 13 01 00 [18:29:23]Write to MH i2c: E2 08 00 ED 1E 80 13 01 00 00 00 00 00 88 [18:29:23]Write i2c OK [18:29:23]MH_I2C_Read... [18:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:23]Read from MH i2c: E2 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 0E 00 [18:29:23]MH_I2C_Read... [18:29:23]Read from MH i2c: E2 0E 00 ED 1E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D5 [18:29:23]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:29:23]wFMCommunicate OK [18:29:23]SAM_PROTO_GetShiftState done [18:29:23]FM_GetShiftState done [18:29:23]opened in 1729729836 [18:29:23]opened+sec_in_day 1729816236 [18:29:23]quantity*price = 50041 [18:29:23]sum+1 = 50042 [18:29:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 275 24.10.2024 18:29 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155650 ФПД: 228816213238851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182924&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155650&fm=228816213238851&tin=02508201610067®Number=0000000000091693&sum=50000 [18:29:24]StoreToDocumentArchive [18:29:24]shift 534 fd 155650 [18:29:24]save to /storage/0534/doc_00155650 [18:29:24]save last doc name /storage/0534/doc_00155650 to /storage/kkm_last_doc_name [18:29:24]save OK [18:29:24]Clear old archive folders... [18:29:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:24]tlvbuf is 01F86130 [18:29:24]SAM_PROTO_ClearQueue [18:29:24]wFMCommunicate request_size=4 [18:29:24]MH_SAM_APDU [18:29:24]CAPDU: 80 09 00 00 [18:29:24]Write to MH i2c: E2 08 00 FA 1E 80 09 00 00 00 00 00 00 8A [18:29:24]Write i2c OK [18:29:24]MH_I2C_Read... [18:29:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:24]Read from MH i2c: E2 [18:29:24]MH_I2C_Read... [18:29:24]Read from MH i2c: E2 03 00 [18:29:24]MH_I2C_Read... [18:29:24]Read from MH i2c: E2 03 00 FA 1E 00 90 00 8C [18:29:24]RAPDU: 90 00 [18:29:24]wFMCommunicate OK [18:29:24]SAM_PROTO_ClearQueue done [18:29:24]KKMCreateOFDPacket [18:29:24]OFDProtocolAddRootSTLVToBuf [18:29:24]FM_MakeSignedData [18:29:24]FM_MakeSignedData [18:29:24]SAM_PROTO_SignData [18:29:24]wFMCommunicate request_size=4 [18:29:24]MH_SAM_APDU [18:29:24]CAPDU: 80 0D 01 02 [18:29:24]Write to MH i2c: E2 08 00 FB 1E 80 0D 01 02 00 00 00 00 92 [18:29:24]Write i2c OK [18:29:24]MH_I2C_Read... [18:29:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:24]Read from MH i2c: E2 [18:29:24]MH_I2C_Read... [18:29:24]Read from MH i2c: E2 03 00 [18:29:24]MH_I2C_Read... [18:29:24]Read from MH i2c: E2 03 00 FB 1E 00 90 00 8D [18:29:24]RAPDU: 90 00 [18:29:24]wFMCommunicate OK [18:29:24]wFMCommunicate request_size=255 [18:29:24]MH_SAM_APDU [18:29: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 04 92 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 60 02 00 35 04 06 00 D0 [18:29:24]Write to MH i2c: E2 02 01 FC 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 04 92 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 60 02 00 35 04 06 00 D0 00 00 9D [18:29:25]Write i2c OK [18:29:25]MH_I2C_Read... [18:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:25]Read from MH i2c: E2 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 03 00 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 03 00 FC 1E 00 90 00 8E [18:29:25]RAPDU: 90 00 [18:29:25]wFMCommunicate OK [18:29:25]wFMCommunicate request_size=10 [18:29:25]MH_SAM_APDU [18:29:25]CAPDU: 80 0D 02 02 05 1B 6D 1B E4 43 [18:29:25]Write to MH i2c: E2 0D 00 FD 1E 80 0D 02 02 05 00 1B 6D 1B E4 43 00 00 69 [18:29:25]Write i2c OK [18:29:25]MH_I2C_Read... [18:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:25]Read from MH i2c: E2 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 03 00 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 03 00 FD 1E 00 90 00 8F [18:29:25]RAPDU: 90 00 [18:29:25]wFMCommunicate OK [18:29:25]wFMCommunicate request_size=4 [18:29:25]MH_SAM_APDU [18:29:25]CAPDU: 80 0D 03 02 [18:29:25]Write to MH i2c: E2 08 00 FE 1E 80 0D 03 02 00 00 00 00 97 [18:29:25]Write i2c OK [18:29:25]MH_I2C_Read... [18:29:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:25]Read from MH i2c: E2 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 0B 00 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 0B 00 FE 1E 00 5F 09 DD 21 D3 14 27 2C 90 00 38 [18:29:25]RAPDU: 5F 09 DD 21 D3 14 27 2C 90 00 [18:29:25]wFMCommunicate OK [18:29:25]SAM_PROTO_SignData done [18:29:25]FM_MakeSignedData done [18:29:25]CreateOFDProtocolMessage [18:29:25]wFMCommunicate request_size=4 [18:29:25]MH_SAM_APDU [18:29:25]CAPDU: 80 11 00 00 [18:29:25]Write to MH i2c: E2 08 00 FF 1E 80 11 00 00 00 00 00 00 97 [18:29:25]Write i2c OK [18:29:25]MH_I2C_Read... [18:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:25]Read from MH i2c: E2 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 17 00 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: E2 17 00 FF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EC [18:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:29:25]wFMCommunicate OK [18:29:25]CreateOFDProtocolMessage done [18:29:25]OFDSenderStorePacket 155650 [18:29:25]StoreOFDPacket docnum=155650 [18:29:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1E F4 07 01 3A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 04 92 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 60 02 00 35 04 06 00 D0 1B 6D 1B E4 43 5F 09 DD 21 D3 14 27 2C [18:29:25]CheckFolder [18:29:25]dirname=/storage/ofd_packets [18:29:25]CheckFolder done [18:29:25]ProducePacketName [18:29:25]name=ofd_packets/00155650 [18:29:25]NVStorageSaveData ofd_packets/00155650 [18:29:25]File name is /storage/ofd_packets/00155650 [18:29:25]Write 301 bytes [18:29:25]NVStorageSaveData done [18:29:25]OFDSenderStorePacket done [18:29:25]KKMCreateOFDPacket done [18:29:25]NVStorageSaveData kkm_last_timestamp [18:29:25]File name is /storage/kkm_last_timestamp [18:29:25]Write 4 bytes [18:29:25]NVStorageSaveData done [18:29:25]ExternCall_PrintAddStr [18:29:25]wPrintStart [18:29:25]Write to MH i2c: 01 00 00 00 1F 1F [18:29:25]Write i2c OK [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: 01 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: 01 07 00 [18:29:25]MH_I2C_Read... [18:29:25]Read from MH i2c: 01 07 00 00 1F 00 00 00 00 00 FF 0F 34 [18:29:25]RasterBufferAndPrint [18:29:25]line Счет N : (1)98456 [18:29:25]line ИНН: 02508201610067 [18:29:25]line Контрольно-Кассовый Чек [18:29:25]line ПРОДАЖА [18:29:25]line ТРК (МРК, ГНК) : 31 [18:29:25]line Товар: 2710124130 [18:29:25]line Аи-92-К-5 [18:29:25]line 7.480 * 66.90 [18:29:25]line = 500.41 [18:29:25]line НДС 12% НСП 1% [18:29:25]line > о реализуемом товаре [18:29:25]line ОКРУГЛЕНИЕ: -0.41 [18:29:25]line ИТОГО: 500.00 [18:29:25]line Внесено: 500.00 [18:29:25]line СДАЧА: 0.00 [18:29:25]line НСП 1% : 4.43 [18:29:25]line НДС 12% : 53.14 [18:29:25]line Наличными: 500.00 [18:29:25]line Безнал.: 0.00 [18:29:25]line Место: АЗС № 143 "Партнер Нефть" [18:29:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:29:25]line СНО: Общий режим [18:29:25]line Чек 275 24.10.2024 18:29 [18:29:25]line Смена: 534 ФФД: 1.0 [18:29:25]line ЗНМ: 0300000096 [18:29:25]line РНМ: 0000000000091693 [18:29:25]line Версия ККМ: 001 [18:29:25]line ФМ: 0000000000871792 [18:29:25]line ФД: 155650 [18:29:25]line ФПД: 228816213238851 [18:29:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T182924&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155650&fm=228816213238851&tin=02508201610067®Number=0000000000091693&sum=50000 [18:29:25]OFD Sender: Processing packet 155650 [packets to send 31, broken 30] [18:29:25]ProducePacketName [18:29:25]name=ofd_packets/00155650 [18:29:25]OFD Sender: To server: pG, [18:29:25]CommunicateWithHost lk.salyk.kg:30040 [18:29:25]ConnectInit lk.salyk.kg [18:29:25]written 0, free lines is 4095 [18:29:25]Connected sock=10 [18:29: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 39 32 0F 01 00 00 1E F4 07 01 3A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 04 92 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 60 02 00 35 04 06 00 D0 1B 6D 1B E4 43 5F 09 DD 21 D3 14 27 2C [18:29: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 39 32 4F 00 00 00 7B 52 47 00 A7 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 39 32 10 04 04 00 02 60 02 00 F4 03 04 00 7D 37 1A 67 B6 04 01 00 00 4D 5E CA 4F A9 D1 49 8A [18:29:26]CommunicateWithHost err = 0 [18:29:26]CheckOFDResponse [18:29:26]1017 (14) - 77093643461234 [18:29:26]1041 (16) - 0000000000871792 [18:29:26]1040 (4) - 155650 [18:29:26]1012 (4) - 24.10.2024 12:03 [18:29:26]1206 (1) - 0 [18:29:26]OFD Sender: Remove packet 155650 [18:29:26]ProducePacketName [18:29:26]name=ofd_packets/00155650 [18:29:26]NVStorageDeleteData [18:29:26]Write to MH i2c: 01 00 00 2B 1F 4A [18:29:26]Write i2c OK [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: 01 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: 01 07 00 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: 01 07 00 2B 1F 00 00 00 00 00 DC 0C 39 [18:29:26]RasterBufferAndPrint [18:29:26]line [18:29:26]line [18:29:26]line [18:29:26]line [18:29:26]line [18:29:26]written 0, free lines is 3298 [18:29:26]process_action close_receipt done [18:29:26]requested_data is exist [18:29:26]produce_requested_data [18:29:26]requested_item fm.sn is exist - process it [18:29:26]wFMCommunicate request_size=4 [18:29:26]MH_SAM_APDU [18:29:26]CAPDU: 80 11 00 00 [18:29:26]Write to MH i2c: E2 08 00 32 1F 80 11 00 00 00 00 00 00 CB [18:29:26]Write i2c OK [18:29:26]MH_I2C_Read... [18:29:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:26]Read from MH i2c: E2 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: E2 17 00 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: E2 17 00 32 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 20 [18:29:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:29:26]wFMCommunicate OK [18:29:26]requested_item fd.num is exist - process it [18:29:26]SAM_PROTO_GetFieldsCounters [18:29:26]wFMCommunicate request_size=4 [18:29:26]MH_SAM_APDU [18:29:26]CAPDU: 80 13 00 00 [18:29:26]Write to MH i2c: E2 08 00 33 1F 80 13 00 00 00 00 00 00 CE [18:29:26]Write i2c OK [18:29:26]MH_I2C_Read... [18:29:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:26]Read from MH i2c: E2 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: E2 62 00 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: E2 62 00 33 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 02 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 AC [18:29: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 02 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:26]wFMCommunicate OK [18:29:26]SAM_PROTO_GetFieldsCounters done [18:29:26]requested_item shift.num is exist - process it [18:29:26]requested_item shift.opened is exist - process it [18:29:26]req_shift_opened [18:29:26]FM_GetShiftState [18:29:26]SAM_PROTO_GetShiftState [18:29:26]wFMCommunicate request_size=4 [18:29:26]MH_SAM_APDU [18:29:26]CAPDU: 80 13 01 00 [18:29:26]Write to MH i2c: E2 08 00 34 1F 80 13 01 00 00 00 00 00 D0 [18:29:26]Write i2c OK [18:29:26]MH_I2C_Read... [18:29:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:26]Read from MH i2c: E2 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: E2 0E 00 [18:29:26]MH_I2C_Read... [18:29:26]Read from MH i2c: E2 0E 00 34 1F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1D [18:29:26]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:29:26]wFMCommunicate OK [18:29:26]SAM_PROTO_GetShiftState done [18:29:26]FM_GetShiftState done [18:29:26]req_shift_opened done [18:29:26]requested_item shift.open_date is exist - process it [18:29:26]req_shift_open_date [18:29:26]req_shift_open_date done [18:29:26]produce_requested_data done [18:29:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155650,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [18:29:26]process_action_free close_receipt [18:29:26]json_value_free [18:29:26]json_value_free done [18:29:26]process_json_proto returns [18:29:26]Send response to host [18:29:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155650,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [18:29:26]free response buf [18:29:26]execute_script done [18:29:26]execute_script returns [18:29:26]free content buf [18:29:26]Sock 9.Close socket [18:29:26]Sock 9.Thread stoped [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:15]accept exits with 8 [18:35:15]New connection [18:35:15]New thread 3066781028 created [18:35:15]Thread 3066637668 joined [18:35:15]Waiting for new connection... [18:35:15] Sock 8.Parse request [18:35:15]Sock 8.Check first char [18:35:15]Sock 8.First char is OK [18:35:15]request: POST /json_proto HTTP/1.0 [18:35:15]Method: POST [18:35:15]URL: /json_proto [18:35:15]Method is POST - this is cgi request [18:35:15]url: /json_proto [18:35:15]query_string will be loaded in cgi processing [18:35:15]execute_cgi json_proto POST (null) [18:35:15]execute_cgi path=json_proto method=POST [18:35:15]POST find Content-Length [18:35:15]Host: 172.17.63.3:8080 [18:35:15]Content-Length: 681 [18:35:15]Content-Type: application/json [18:35:15] [18:35:15]POST finish read [18:35:15]Found Content-Length = 681 [18:35:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:15]execute_script... [18:35: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)98457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:15]POST & json_proto [18:35:15]process_json_proto [18:35:15]json parsed OK: [18:35:15]protocol is kg_v1.0 [18:35:15]action value=close_receipt [18:35:15]process_action close_receipt [18:35:15]cmd_close_receipt [18:35:15]MH_GetDate [18:35:15]Write to MH i2c: F0 00 00 35 1F 43 [18:35:15]Write i2c OK [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: F0 [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: F0 09 00 [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: F0 09 00 35 1F 00 64 93 1A 67 50 D1 6C 64 B5 [18:35:15]GetLastDocTimeStamp 1729794564 [18:35:15]current date 1729794916 [18:35:15]FM_GetShiftState [18:35:15]SAM_PROTO_GetShiftState [18:35:15]wFMCommunicate request_size=4 [18:35:15]MH_SAM_APDU [18:35:15]CAPDU: 80 13 01 00 [18:35:15]Write to MH i2c: E2 08 00 36 1F 80 13 01 00 00 00 00 00 D2 [18:35:15]Write i2c OK [18:35:15]MH_I2C_Read... [18:35:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:15]Read from MH i2c: E2 [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: E2 0E 00 [18:35:15]MH_I2C_Read... [18:35:15]Read from MH i2c: E2 0E 00 36 1F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1F [18:35:15]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:35:15]wFMCommunicate OK [18:35:15]SAM_PROTO_GetShiftState done [18:35:15]FM_GetShiftState done [18:35:15]opened in 1729729836 [18:35:15]opened+sec_in_day 1729816236 [18:35:15]quantity*price = 100015 [18:35:15]sum+1 = 100017 [18:35:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 276 24.10.2024 18:35 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155651 ФПД: 52734526969997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183516&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155651&fm=52734526969997&tin=02508201610067®Number=0000000000091693&sum=100000 [18:35:16]StoreToDocumentArchive [18:35:16]shift 534 fd 155651 [18:35:16]save to /storage/0534/doc_00155651 [18:35:16]save last doc name /storage/0534/doc_00155651 to /storage/kkm_last_doc_name [18:35:16]save OK [18:35:16]Clear old archive folders... [18:35:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:16]tlvbuf is 01F7D490 [18:35:16]SAM_PROTO_ClearQueue [18:35:16]wFMCommunicate request_size=4 [18:35:16]MH_SAM_APDU [18:35:16]CAPDU: 80 09 00 00 [18:35:16]Write to MH i2c: E2 08 00 43 1F 80 09 00 00 00 00 00 00 D4 [18:35:16]Write i2c OK [18:35:16]MH_I2C_Read... [18:35:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:16]Read from MH i2c: E2 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: E2 03 00 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: E2 03 00 43 1F 00 90 00 D6 [18:35:16]RAPDU: 90 00 [18:35:16]wFMCommunicate OK [18:35:16]SAM_PROTO_ClearQueue done [18:35:16]KKMCreateOFDPacket [18:35:16]OFDProtocolAddRootSTLVToBuf [18:35:16]FM_MakeSignedData [18:35:16]FM_MakeSignedData [18:35:16]SAM_PROTO_SignData [18:35:16]wFMCommunicate request_size=4 [18:35:16]MH_SAM_APDU [18:35:16]CAPDU: 80 0D 01 02 [18:35:16]Write to MH i2c: E2 08 00 44 1F 80 0D 01 02 00 00 00 00 DC [18:35:16]Write i2c OK [18:35:16]MH_I2C_Read... [18:35:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:16]Read from MH i2c: E2 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: E2 03 00 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: E2 03 00 44 1F 00 90 00 D7 [18:35:16]RAPDU: 90 00 [18:35:16]wFMCommunicate OK [18:35:16]wFMCommunicate request_size=255 [18:35:16]MH_SAM_APDU [18:35: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 64 93 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 03 60 02 00 35 04 06 00 2F [18:35:16]Write to MH i2c: E2 02 01 45 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 64 93 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 03 60 02 00 35 04 06 00 2F 00 00 A3 [18:35:16]Write i2c OK [18:35:16]MH_I2C_Read... [18:35:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:16]Read from MH i2c: E2 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: E2 03 00 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: E2 03 00 45 1F 00 90 00 D8 [18:35:16]RAPDU: 90 00 [18:35:16]wFMCommunicate OK [18:35:16]wFMCommunicate request_size=10 [18:35:16]MH_SAM_APDU [18:35:16]CAPDU: 80 0D 02 02 05 F6 36 BF 58 8D [18:35:16]Write to MH i2c: E2 0D 00 46 1F 80 0D 02 02 05 00 F6 36 BF 58 8D 00 00 B9 [18:35:16]Write i2c OK [18:35:16]MH_I2C_Read... [18:35:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:16]Read from MH i2c: E2 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: E2 03 00 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: E2 03 00 46 1F 00 90 00 D9 [18:35:16]RAPDU: 90 00 [18:35:16]wFMCommunicate OK [18:35:16]wFMCommunicate request_size=4 [18:35:16]MH_SAM_APDU [18:35:16]CAPDU: 80 0D 03 02 [18:35:16]Write to MH i2c: E2 08 00 47 1F 80 0D 03 02 00 00 00 00 E1 [18:35:16]Write i2c OK [18:35:16]MH_I2C_Read... [18:35:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:16]Read from MH i2c: E2 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: E2 0B 00 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: E2 0B 00 47 1F 00 EE AD 0C F4 FD 19 C8 4F 90 00 AA [18:35:16]RAPDU: EE AD 0C F4 FD 19 C8 4F 90 00 [18:35:16]wFMCommunicate OK [18:35:16]SAM_PROTO_SignData done [18:35:16]FM_MakeSignedData done [18:35:16]CreateOFDProtocolMessage [18:35:16]wFMCommunicate request_size=4 [18:35:16]MH_SAM_APDU [18:35:16]CAPDU: 80 11 00 00 [18:35:16]Write to MH i2c: E2 08 00 48 1F 80 11 00 00 00 00 00 00 E1 [18:35:16]Write i2c OK [18:35:16]MH_I2C_Read... [18:35:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:16]Read from MH i2c: E2 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: E2 17 00 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: E2 17 00 48 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 36 [18:35:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:35:16]wFMCommunicate OK [18:35:16]CreateOFDProtocolMessage done [18:35:16]OFDSenderStorePacket 155651 [18:35:16]StoreOFDPacket docnum=155651 [18:35:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8F 28 07 01 85 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 64 93 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 03 60 02 00 35 04 06 00 2F F6 36 BF 58 8D EE AD 0C F4 FD 19 C8 4F [18:35:16]CheckFolder [18:35:16]dirname=/storage/ofd_packets [18:35:16]CheckFolder done [18:35:16]ProducePacketName [18:35:16]name=ofd_packets/00155651 [18:35:16]NVStorageSaveData ofd_packets/00155651 [18:35:16]File name is /storage/ofd_packets/00155651 [18:35:16]Write 301 bytes [18:35:16]NVStorageSaveData done [18:35:16]OFDSenderStorePacket done [18:35:16]KKMCreateOFDPacket done [18:35:16]NVStorageSaveData kkm_last_timestamp [18:35:16]File name is /storage/kkm_last_timestamp [18:35:16]Write 4 bytes [18:35:16]NVStorageSaveData done [18:35:16]OFD Sender: Processing packet 155651 [packets to send 31, broken 30] [18:35:16]ProducePacketName [18:35:16]name=ofd_packets/00155651 [18:35:16]OFD Sender: To server: pG, [18:35:16]CommunicateWithHost lk.salyk.kg:30040 [18:35:16]ConnectInit lk.salyk.kg [18:35:16]ExternCall_PrintAddStr [18:35:16]wPrintStart [18:35:16]Write to MH i2c: 01 00 00 49 1F 68 [18:35:16]Write i2c OK [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: 01 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: 01 07 00 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: 01 07 00 49 1F 00 00 00 00 00 FF 0F 7D [18:35:16]RasterBufferAndPrint [18:35:16]line Счет N : (1)98457 [18:35:16]line ИНН: 02508201610067 [18:35:16]line Контрольно-Кассовый Чек [18:35:16]line ПРОДАЖА [18:35:16]line ТРК (МРК, ГНК) : 21 [18:35:16]line Товар: 2710124130 [18:35:16]line Аи-92-К-5 [18:35:16]line 14.950 * 66.90 [18:35:16]line = 1000.16 [18:35:16]line НДС 12% НСП 1% [18:35:16]line > о реализуемом товаре [18:35:16]line ОКРУГЛЕНИЕ: -0.16 [18:35:16]line ИТОГО: 1000.00 [18:35:16]line Внесено: 1000.00 [18:35:16]line СДАЧА: 0.00 [18:35:16]line НСП 1% : 8.85 [18:35:16]line НДС 12% : 106.21 [18:35:16]line Наличными: 1000.00 [18:35:16]line Безнал.: 0.00 [18:35:16]line Место: АЗС № 143 "Партнер Нефть" [18:35:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:35:16]line СНО: Общий режим [18:35:16]line Чек 276 24.10.2024 18:35 [18:35:16]line Смена: 534 ФФД: 1.0 [18:35:16]line ЗНМ: 0300000096 [18:35:16]line РНМ: 0000000000091693 [18:35:16]line Версия ККМ: 001 [18:35:16]line ФМ: 0000000000871792 [18:35:16]line ФД: 155651 [18:35:16]line ФПД: 52734526969997 [18:35:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T183516&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155651&fm=52734526969997&tin=02508201610067®Number=0000000000091693&sum=100000 [18:35:17]Connected sock=11 [18:35: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 39 32 0F 01 00 00 8F 28 07 01 85 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 64 93 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 03 60 02 00 35 04 06 00 2F F6 36 BF 58 8D EE AD 0C F4 FD 19 C8 4F [18:35:17]written 0, free lines is 4095 [18:35: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 39 32 4F 00 00 00 74 B6 47 00 63 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 39 32 10 04 04 00 03 60 02 00 F4 03 04 00 DC 38 1A 67 B6 04 01 00 00 AC 40 26 0D B1 4D 79 CC [18:35:17]CommunicateWithHost err = 0 [18:35:17]CheckOFDResponse [18:35:17]1017 (14) - 77093643461234 [18:35:17]1041 (16) - 0000000000871792 [18:35:17]1040 (4) - 155651 [18:35:17]1012 (4) - 24.10.2024 12:09 [18:35:17]1206 (1) - 0 [18:35:17]OFD Sender: Remove packet 155651 [18:35:17]ProducePacketName [18:35:17]name=ofd_packets/00155651 [18:35:17]NVStorageDeleteData [18:35:17]Write to MH i2c: 01 00 00 74 1F 93 [18:35:17]Write i2c OK [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: 01 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: 01 07 00 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: 01 07 00 74 1F 00 00 00 00 00 DA 0C 80 [18:35:17]RasterBufferAndPrint [18:35:17]line [18:35:17]line [18:35:17]line [18:35:17]line [18:35:17]line [18:35:17]written 0, free lines is 3297 [18:35:17]process_action close_receipt done [18:35:17]requested_data is exist [18:35:17]produce_requested_data [18:35:17]requested_item fm.sn is exist - process it [18:35:17]wFMCommunicate request_size=4 [18:35:17]MH_SAM_APDU [18:35:17]CAPDU: 80 11 00 00 [18:35:17]Write to MH i2c: E2 08 00 7B 1F 80 11 00 00 00 00 00 00 14 [18:35:17]Write i2c OK [18:35:17]MH_I2C_Read... [18:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:17]Read from MH i2c: E2 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: E2 17 00 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: E2 17 00 7B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 69 [18:35:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:35:17]wFMCommunicate OK [18:35:17]requested_item fd.num is exist - process it [18:35:17]SAM_PROTO_GetFieldsCounters [18:35:17]wFMCommunicate request_size=4 [18:35:17]MH_SAM_APDU [18:35:17]CAPDU: 80 13 00 00 [18:35:17]Write to MH i2c: E2 08 00 7C 1F 80 13 00 00 00 00 00 00 17 [18:35:17]Write i2c OK [18:35:17]MH_I2C_Read... [18:35:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:17]Read from MH i2c: E2 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: E2 62 00 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: E2 62 00 7C 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 03 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [18:35: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 03 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:17]wFMCommunicate OK [18:35:17]SAM_PROTO_GetFieldsCounters done [18:35:17]requested_item shift.num is exist - process it [18:35:17]requested_item shift.opened is exist - process it [18:35:17]req_shift_opened [18:35:17]FM_GetShiftState [18:35:17]SAM_PROTO_GetShiftState [18:35:17]wFMCommunicate request_size=4 [18:35:17]MH_SAM_APDU [18:35:17]CAPDU: 80 13 01 00 [18:35:17]Write to MH i2c: E2 08 00 7D 1F 80 13 01 00 00 00 00 00 19 [18:35:17]Write i2c OK [18:35:17]MH_I2C_Read... [18:35:17]OFD Sender: No OFD packet to send [18:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:18]Read from MH i2c: E2 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: E2 0E 00 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: E2 0E 00 7D 1F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 66 [18:35:18]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:35:18]wFMCommunicate OK [18:35:18]SAM_PROTO_GetShiftState done [18:35:18]FM_GetShiftState done [18:35:18]req_shift_opened done [18:35:18]requested_item shift.open_date is exist - process it [18:35:18]req_shift_open_date [18:35:18]req_shift_open_date done [18:35:18]produce_requested_data done [18:35:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155651,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [18:35:18]process_action_free close_receipt [18:35:18]json_value_free [18:35:18]json_value_free done [18:35:18]process_json_proto returns [18:35:18]Send response to host [18:35:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155651,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [18:35:18]free response buf [18:35:18]execute_script done [18:35:18]execute_script returns [18:35:18]free content buf [18:35:18]Sock 8.Close socket [18:35:18]Sock 8.Thread stoped [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:43]OFD Sender: No OFD packet to send [18:35:48]OFD Sender: No OFD packet to send [18:35:53]OFD Sender: No OFD packet to send [18:35:58]OFD Sender: No OFD packet to send [18:36:03]OFD Sender: No OFD packet to send [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:48]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:53]OFD Sender: No OFD packet to send [18:40:58]OFD Sender: No OFD packet to send [18:41:03]OFD Sender: No OFD packet to send [18:41:08]OFD Sender: No OFD packet to send [18:41:13]OFD Sender: No OFD packet to send [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:33]OFD Sender: No OFD packet to send [18:44:38]OFD Sender: No OFD packet to send [18:44:43]OFD Sender: No OFD packet to send [18:44:48]OFD Sender: No OFD packet to send [18:44:53]OFD Sender: No OFD packet to send [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:08]OFD Sender: No OFD packet to send [18:45:13]OFD Sender: No OFD packet to send [18:45:18]OFD Sender: No OFD packet to send [18:45:23]OFD Sender: No OFD packet to send [18:45:28]OFD Sender: No OFD packet to send [18:45:33]OFD Sender: No OFD packet to send [18:45:36]accept exits with 9 [18:45:36]New connection [18:45:36]New thread 3066637668 created [18:45:36]Thread 3066781028 joined [18:45:36]Waiting for new connection... [18:45:36] Sock 9.Parse request [18:45:36]Sock 9.Check first char [18:45:36]Sock 9.First char is OK [18:45:36]request: POST /json_proto HTTP/1.0 [18:45:36]Method: POST [18:45:36]URL: /json_proto [18:45:36]Method is POST - this is cgi request [18:45:36]url: /json_proto [18:45:36]query_string will be loaded in cgi processing [18:45:36]execute_cgi json_proto POST (null) [18:45:36]execute_cgi path=json_proto method=POST [18:45:36]POST find Content-Length [18:45:36]Host: 172.17.63.3:8080 [18:45:36]Content-Length: 681 [18:45:36]Content-Type: application/json [18:45:36] [18:45:36]POST finish read [18:45:36]Found Content-Length = 681 [18:45:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:36]execute_script... [18:45: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)98458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:36]POST & json_proto [18:45:36]process_json_proto [18:45:36]json parsed OK: [18:45:36]protocol is kg_v1.0 [18:45:36]action value=close_receipt [18:45:36]process_action close_receipt [18:45:36]cmd_close_receipt [18:45:36]MH_GetDate [18:45:36]Write to MH i2c: F0 00 00 7E 1F 8C [18:45:36]Write i2c OK [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: F0 [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: F0 09 00 [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: F0 09 00 7E 1F 00 D1 95 1A 67 50 D1 6C 64 6D [18:45:36]GetLastDocTimeStamp 1729794916 [18:45:36]current date 1729795537 [18:45:36]FM_GetShiftState [18:45:36]SAM_PROTO_GetShiftState [18:45:36]wFMCommunicate request_size=4 [18:45:36]MH_SAM_APDU [18:45:36]CAPDU: 80 13 01 00 [18:45:36]Write to MH i2c: E2 08 00 7F 1F 80 13 01 00 00 00 00 00 1B [18:45:36]Write i2c OK [18:45:36]MH_I2C_Read... [18:45:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:36]Read from MH i2c: E2 [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: E2 0E 00 [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: E2 0E 00 7F 1F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 68 [18:45:36]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:45:36]wFMCommunicate OK [18:45:36]SAM_PROTO_GetShiftState done [18:45:36]FM_GetShiftState done [18:45:36]opened in 1729729836 [18:45:36]opened+sec_in_day 1729816236 [18:45:36]quantity*price = 200031 [18:45:36]sum+1 = 200032 [18:45:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 277 24.10.2024 18:45 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155652 ФПД: 213772303293202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184537&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155652&fm=213772303293202&tin=02508201610067®Number=0000000000091693&sum=200000 [18:45:37]StoreToDocumentArchive [18:45:37]shift 534 fd 155652 [18:45:37]save to /storage/0534/doc_00155652 [18:45:37]save last doc name /storage/0534/doc_00155652 to /storage/kkm_last_doc_name [18:45:37]save OK [18:45:37]Clear old archive folders... [18:45:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:37]tlvbuf is B6D7E8D0 [18:45:37]SAM_PROTO_ClearQueue [18:45:37]wFMCommunicate request_size=4 [18:45:37]MH_SAM_APDU [18:45:37]CAPDU: 80 09 00 00 [18:45:37]Write to MH i2c: E2 08 00 8C 1F 80 09 00 00 00 00 00 00 1D [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:37]Read from MH i2c: E2 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 8C 1F 00 90 00 1F [18:45:37]RAPDU: 90 00 [18:45:37]wFMCommunicate OK [18:45:37]SAM_PROTO_ClearQueue done [18:45:37]KKMCreateOFDPacket [18:45:37]OFDProtocolAddRootSTLVToBuf [18:45:37]FM_MakeSignedData [18:45:37]FM_MakeSignedData [18:45:37]SAM_PROTO_SignData [18:45:37]wFMCommunicate request_size=4 [18:45:37]MH_SAM_APDU [18:45:37]CAPDU: 80 0D 01 02 [18:45:37]Write to MH i2c: E2 08 00 8D 1F 80 0D 01 02 00 00 00 00 25 [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:37]Read from MH i2c: E2 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 8D 1F 00 90 00 20 [18:45:37]RAPDU: 90 00 [18:45:37]wFMCommunicate OK [18:45:37]wFMCommunicate request_size=255 [18:45:37]MH_SAM_APDU [18:45: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 15 01 00 00 F4 03 04 00 D1 95 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 60 02 00 35 04 06 00 C2 [18:45:37]Write to MH i2c: E2 02 01 8E 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 15 01 00 00 F4 03 04 00 D1 95 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 60 02 00 35 04 06 00 C2 00 00 38 [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:37]Read from MH i2c: E2 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 8E 1F 00 90 00 21 [18:45:37]RAPDU: 90 00 [18:45:37]wFMCommunicate OK [18:45:37]wFMCommunicate request_size=10 [18:45:37]MH_SAM_APDU [18:45:37]CAPDU: 80 0D 02 02 05 6C BE 33 5B 12 [18:45:37]Write to MH i2c: E2 0D 00 8F 1F 80 0D 02 02 05 00 6C BE 33 5B 12 00 00 FC [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:37]Read from MH i2c: E2 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 03 00 8F 1F 00 90 00 22 [18:45:37]RAPDU: 90 00 [18:45:37]wFMCommunicate OK [18:45:37]wFMCommunicate request_size=4 [18:45:37]MH_SAM_APDU [18:45:37]CAPDU: 80 0D 03 02 [18:45:37]Write to MH i2c: E2 08 00 90 1F 80 0D 03 02 00 00 00 00 2A [18:45:37]Write i2c OK [18:45:37]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 0B 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 0B 00 90 1F 00 B6 3D 38 96 28 78 73 C3 90 00 C2 [18:45:38]RAPDU: B6 3D 38 96 28 78 73 C3 90 00 [18:45:38]wFMCommunicate OK [18:45:38]SAM_PROTO_SignData done [18:45:38]FM_MakeSignedData done [18:45:38]CreateOFDProtocolMessage [18:45:38]wFMCommunicate request_size=4 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 11 00 00 [18:45:38]Write to MH i2c: E2 08 00 91 1F 80 11 00 00 00 00 00 00 2A [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 17 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 17 00 91 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7F [18:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:45:38]wFMCommunicate OK [18:45:38]CreateOFDProtocolMessage done [18:45:38]OFDSenderStorePacket 155652 [18:45:38]StoreOFDPacket docnum=155652 [18:45:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A1 7B 07 01 6A 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 15 01 00 00 F4 03 04 00 D1 95 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 60 02 00 35 04 06 00 C2 6C BE 33 5B 12 B6 3D 38 96 28 78 73 C3 [18:45:38]CheckFolder [18:45:38]dirname=/storage/ofd_packets [18:45:38]CheckFolder done [18:45:38]ProducePacketName [18:45:38]name=ofd_packets/00155652 [18:45:38]NVStorageSaveData ofd_packets/00155652 [18:45:38]File name is /storage/ofd_packets/00155652 [18:45:38]Write 301 bytes [18:45:38]NVStorageSaveData done [18:45:38]OFDSenderStorePacket done [18:45:38]KKMCreateOFDPacket done [18:45:38]NVStorageSaveData kkm_last_timestamp [18:45:38]File name is /storage/kkm_last_timestamp [18:45:38]Write 4 bytes [18:45:38]NVStorageSaveData done [18:45:38]ExternCall_PrintAddStr [18:45:38]wPrintStart [18:45:38]Write to MH i2c: 01 00 00 92 1F B1 [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 07 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 07 00 92 1F 00 00 00 00 00 FF 0F C6 [18:45:38]RasterBufferAndPrint [18:45:38]line Счет N : (1)98458 [18:45:38]line ИНН: 02508201610067 [18:45:38]line Контрольно-Кассовый Чек [18:45:38]line ПРОДАЖА [18:45:38]line ТРК (МРК, ГНК) : 21 [18:45:38]line Товар: 2710124130 [18:45:38]line Аи-92-К-5 [18:45:38]line 29.900 * 66.90 [18:45:38]line = 2000.31 [18:45:38]line НДС 12% НСП 1% [18:45:38]line > о реализуемом товаре [18:45:38]line ОКРУГЛЕНИЕ: -0.31 [18:45:38]line ИТОГО: 2000.00 [18:45:38]line Внесено: 2000.00 [18:45:38]line СДАЧА: 0.00 [18:45:38]line НСП 1% : 17.70 [18:45:38]line НДС 12% : 212.42 [18:45:38]line Наличными: 2000.00 [18:45:38]line Безнал.: 0.00 [18:45:38]line Место: АЗС № 143 "Партнер Нефть" [18:45:38]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:45:38]line СНО: Общий режим [18:45:38]line Чек 277 24.10.2024 18:45 [18:45:38]line Смена: 534 ФФД: 1.0 [18:45:38]line ЗНМ: 0300000096 [18:45:38]line РНМ: 0000000000091693 [18:45:38]line Версия ККМ: 001 [18:45:38]line ФМ: 0000000000871792 [18:45:38]line ФД: 155652 [18:45:38]line ФПД: 213772303293202 [18:45:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184537&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155652&fm=213772303293202&tin=02508201610067®Number=0000000000091693&sum=200000 [18:45:38]OFD Sender: Processing packet 155652 [packets to send 31, broken 30] [18:45:38]ProducePacketName [18:45:38]name=ofd_packets/00155652 [18:45:38]OFD Sender: To server: pG, [18:45:38]CommunicateWithHost lk.salyk.kg:30040 [18:45:38]ConnectInit lk.salyk.kg [18:45:38]written 0, free lines is 4095 [18:45:38]Connected sock=10 [18:45: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 39 32 0F 01 00 00 A1 7B 07 01 6A 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 15 01 00 00 F4 03 04 00 D1 95 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 60 02 00 35 04 06 00 C2 6C BE 33 5B 12 B6 3D 38 96 28 78 73 C3 [18:45: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 39 32 4F 00 00 00 3C 7F 47 00 FD 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 60 02 00 F4 03 04 00 49 3B 1A 67 B6 04 01 00 00 F8 C7 9D B1 EB 14 2F AE [18:45:38]CommunicateWithHost err = 0 [18:45:38]CheckOFDResponse [18:45:38]1017 (14) - 77093643461234 [18:45:38]1041 (16) - 0000000000871792 [18:45:38]1040 (4) - 155652 [18:45:38]1012 (4) - 24.10.2024 12:19 [18:45:38]1206 (1) - 0 [18:45:38]OFD Sender: Remove packet 155652 [18:45:38]ProducePacketName [18:45:38]name=ofd_packets/00155652 [18:45:38]NVStorageDeleteData [18:45:38]Write to MH i2c: 01 00 00 BD 1F DC [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 07 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 07 00 BD 1F 00 00 00 00 00 DD 0C CC [18:45:38]RasterBufferAndPrint [18:45:38]line [18:45:38]line [18:45:38]line [18:45:38]line [18:45:38]line [18:45:38]written 0, free lines is 3300 [18:45:38]process_action close_receipt done [18:45:38]requested_data is exist [18:45:38]produce_requested_data [18:45:38]requested_item fm.sn is exist - process it [18:45:38]wFMCommunicate request_size=4 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 11 00 00 [18:45:38]Write to MH i2c: E2 08 00 C4 1F 80 11 00 00 00 00 00 00 5D [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 17 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 17 00 C4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B2 [18:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:45:38]wFMCommunicate OK [18:45:38]requested_item fd.num is exist - process it [18:45:38]SAM_PROTO_GetFieldsCounters [18:45:38]wFMCommunicate request_size=4 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 13 00 00 [18:45:38]Write to MH i2c: E2 08 00 C5 1F 80 13 00 00 00 00 00 00 60 [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:39]Read from MH i2c: E2 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: E2 62 00 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: E2 62 00 C5 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 04 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [18:45: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 04 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:39]wFMCommunicate OK [18:45:39]SAM_PROTO_GetFieldsCounters done [18:45:39]requested_item shift.num is exist - process it [18:45:39]requested_item shift.opened is exist - process it [18:45:39]req_shift_opened [18:45:39]FM_GetShiftState [18:45:39]SAM_PROTO_GetShiftState [18:45:39]wFMCommunicate request_size=4 [18:45:39]MH_SAM_APDU [18:45:39]CAPDU: 80 13 01 00 [18:45:39]Write to MH i2c: E2 08 00 C6 1F 80 13 01 00 00 00 00 00 62 [18:45:39]Write i2c OK [18:45:39]MH_I2C_Read... [18:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:39]Read from MH i2c: E2 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: E2 0E 00 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: E2 0E 00 C6 1F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AF [18:45:39]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:45:39]wFMCommunicate OK [18:45:39]SAM_PROTO_GetShiftState done [18:45:39]FM_GetShiftState done [18:45:39]req_shift_opened done [18:45:39]requested_item shift.open_date is exist - process it [18:45:39]req_shift_open_date [18:45:39]req_shift_open_date done [18:45:39]produce_requested_data done [18:45:39]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155652,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [18:45:39]process_action_free close_receipt [18:45:39]json_value_free [18:45:39]json_value_free done [18:45:39]process_json_proto returns [18:45:39]Send response to host [18:45:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155652,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [18:45:39]free response buf [18:45:39]execute_script done [18:45:39]execute_script returns [18:45:39]free content buf [18:45:39]Sock 9.Close socket [18:45:39]Sock 9.Thread stoped [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:17]accept exits with 8 [18:48:17]New connection [18:48:17]New thread 3066781028 created [18:48:17]Thread 3066637668 joined [18:48:17]Waiting for new connection... [18:48:17] Sock 8.Parse request [18:48:17]Sock 8.Check first char [18:48:17]Sock 8.First char is OK [18:48:17]request: POST /json_proto HTTP/1.0 [18:48:17]Method: POST [18:48:17]URL: /json_proto [18:48:17]Method is POST - this is cgi request [18:48:17]url: /json_proto [18:48:17]query_string will be loaded in cgi processing [18:48:17]execute_cgi json_proto POST (null) [18:48:17]execute_cgi path=json_proto method=POST [18:48:17]POST find Content-Length [18:48:17]Host: 172.17.63.3:8080 [18:48:17]Content-Length: 676 [18:48:17]Content-Type: application/json [18:48:17] [18:48:17]POST finish read [18:48:17]Found Content-Length = 676 [18:48:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:17]execute_script... [18:48: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)98459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:17]POST & json_proto [18:48:17]process_json_proto [18:48:17]json parsed OK: [18:48:17]protocol is kg_v1.0 [18:48:17]action value=close_receipt [18:48:17]process_action close_receipt [18:48:17]cmd_close_receipt [18:48:17]MH_GetDate [18:48:17]Write to MH i2c: F0 00 00 C7 1F D5 [18:48:17]Write i2c OK [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: F0 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: F0 09 00 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: F0 09 00 C7 1F 00 72 96 1A 67 50 D1 6C 64 58 [18:48:17]GetLastDocTimeStamp 1729795537 [18:48:17]current date 1729795698 [18:48:17]FM_GetShiftState [18:48:17]SAM_PROTO_GetShiftState [18:48:17]wFMCommunicate request_size=4 [18:48:17]MH_SAM_APDU [18:48:17]CAPDU: 80 13 01 00 [18:48:17]Write to MH i2c: E2 08 00 C8 1F 80 13 01 00 00 00 00 00 64 [18:48:17]Write i2c OK [18:48:17]MH_I2C_Read... [18:48:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:17]Read from MH i2c: E2 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: E2 0E 00 [18:48:17]MH_I2C_Read... [18:48:17]Read from MH i2c: E2 0E 00 C8 1F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 B1 [18:48:17]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:48:17]wFMCommunicate OK [18:48:17]SAM_PROTO_GetShiftState done [18:48:17]FM_GetShiftState done [18:48:17]opened in 1729729836 [18:48:17]opened+sec_in_day 1729816236 [18:48:17]quantity*price = 30038 [18:48:17]sum+1 = 30039 [18:48:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 278 24.10.2024 18:48 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155653 ФПД: 56034353436714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184818&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155653&fm=56034353436714&tin=02508201610067®Number=0000000000091693&sum=30000 [18:48:18]StoreToDocumentArchive [18:48:18]shift 534 fd 155653 [18:48:18]save to /storage/0534/doc_00155653 [18:48:18]save last doc name /storage/0534/doc_00155653 to /storage/kkm_last_doc_name [18:48:18]save OK [18:48:18]Clear old archive folders... [18:48:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:48:18]tlvbuf is B6F2B670 [18:48:18]SAM_PROTO_ClearQueue [18:48:18]wFMCommunicate request_size=4 [18:48:18]MH_SAM_APDU [18:48:18]CAPDU: 80 09 00 00 [18:48:18]Write to MH i2c: E2 08 00 D5 1F 80 09 00 00 00 00 00 00 66 [18:48:18]Write i2c OK [18:48:18]MH_I2C_Read... [18:48:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:18]Read from MH i2c: E2 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: E2 03 00 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: E2 03 00 D5 1F 00 90 00 68 [18:48:18]RAPDU: 90 00 [18:48:18]wFMCommunicate OK [18:48:18]SAM_PROTO_ClearQueue done [18:48:18]KKMCreateOFDPacket [18:48:18]OFDProtocolAddRootSTLVToBuf [18:48:18]FM_MakeSignedData [18:48:18]FM_MakeSignedData [18:48:18]SAM_PROTO_SignData [18:48:18]wFMCommunicate request_size=4 [18:48:18]MH_SAM_APDU [18:48:18]CAPDU: 80 0D 01 02 [18:48:18]Write to MH i2c: E2 08 00 D6 1F 80 0D 01 02 00 00 00 00 6E [18:48:18]Write i2c OK [18:48:18]MH_I2C_Read... [18:48:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:18]Read from MH i2c: E2 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: E2 03 00 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: E2 03 00 D6 1F 00 90 00 69 [18:48:18]RAPDU: 90 00 [18:48:18]wFMCommunicate OK [18:48:18]wFMCommunicate request_size=255 [18:48:18]MH_SAM_APDU [18:48: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 72 96 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 60 02 00 35 04 06 00 32 [18:48:18]Write to MH i2c: E2 02 01 D7 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 72 96 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 60 02 00 35 04 06 00 32 00 00 47 [18:48:18]Write i2c OK [18:48:18]MH_I2C_Read... [18:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:18]Read from MH i2c: E2 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: E2 03 00 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: E2 03 00 D7 1F 00 90 00 6A [18:48:18]RAPDU: 90 00 [18:48:18]wFMCommunicate OK [18:48:18]wFMCommunicate request_size=10 [18:48:18]MH_SAM_APDU [18:48:18]CAPDU: 80 0D 02 02 05 F6 83 BB 58 2A [18:48:18]Write to MH i2c: E2 0D 00 D8 1F 80 0D 02 02 05 00 F6 83 BB 58 2A 00 00 31 [18:48:18]Write i2c OK [18:48:18]MH_I2C_Read... [18:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:18]Read from MH i2c: E2 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: E2 03 00 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: E2 03 00 D8 1F 00 90 00 6B [18:48:18]RAPDU: 90 00 [18:48:18]wFMCommunicate OK [18:48:18]wFMCommunicate request_size=4 [18:48:18]MH_SAM_APDU [18:48:18]CAPDU: 80 0D 03 02 [18:48:18]Write to MH i2c: E2 08 00 D9 1F 80 0D 03 02 00 00 00 00 73 [18:48:18]Write i2c OK [18:48:18]MH_I2C_Read... [18:48:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:18]Read from MH i2c: E2 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: E2 0B 00 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: E2 0B 00 D9 1F 00 EE 4D 28 91 8F 4B 63 FC 90 00 A1 [18:48:18]RAPDU: EE 4D 28 91 8F 4B 63 FC 90 00 [18:48:18]wFMCommunicate OK [18:48:18]SAM_PROTO_SignData done [18:48:18]FM_MakeSignedData done [18:48:18]CreateOFDProtocolMessage [18:48:18]wFMCommunicate request_size=4 [18:48:18]MH_SAM_APDU [18:48:18]CAPDU: 80 11 00 00 [18:48:18]Write to MH i2c: E2 08 00 DA 1F 80 11 00 00 00 00 00 00 73 [18:48:18]Write i2c OK [18:48:18]MH_I2C_Read... [18:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:18]Read from MH i2c: E2 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: E2 17 00 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: E2 17 00 DA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C8 [18:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:48:18]wFMCommunicate OK [18:48:18]CreateOFDProtocolMessage done [18:48:18]OFDSenderStorePacket 155653 [18:48:18]StoreOFDPacket docnum=155653 [18:48:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EA 39 07 01 F6 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 72 96 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 60 02 00 35 04 06 00 32 F6 83 BB 58 2A EE 4D 28 91 8F 4B 63 FC [18:48:18]CheckFolder [18:48:18]dirname=/storage/ofd_packets [18:48:18]CheckFolder done [18:48:18]ProducePacketName [18:48:18]name=ofd_packets/00155653 [18:48:18]NVStorageSaveData ofd_packets/00155653 [18:48:18]File name is /storage/ofd_packets/00155653 [18:48:18]Write 301 bytes [18:48:18]NVStorageSaveData done [18:48:18]OFDSenderStorePacket done [18:48:18]KKMCreateOFDPacket done [18:48:18]NVStorageSaveData kkm_last_timestamp [18:48:18]File name is /storage/kkm_last_timestamp [18:48:18]Write 4 bytes [18:48:18]NVStorageSaveData done [18:48:18]ExternCall_PrintAddStr [18:48:18]wPrintStart [18:48:18]Write to MH i2c: 01 00 00 DB 1F FA [18:48:18]Write i2c OK [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: 01 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: 01 07 00 [18:48:18]MH_I2C_Read... [18:48:18]Read from MH i2c: 01 07 00 DB 1F 00 00 00 00 00 FF 0F 0F [18:48:18]RasterBufferAndPrint [18:48:18]line Счет N : (1)98459 [18:48:18]line ИНН: 02508201610067 [18:48:18]line Контрольно-Кассовый Чек [18:48:18]line ПРОДАЖА [18:48:18]line ТРК (МРК, ГНК) : 31 [18:48:18]line Товар: 2710124130 [18:48:18]line Аи-92-К-5 [18:48:18]line 4.490 * 66.90 [18:48:18]line = 300.38 [18:48:18]line НДС 12% НСП 1% [18:48:18]line > о реализуемом товаре [18:48:18]line ОКРУГЛЕНИЕ: -0.38 [18:48:18]line ИТОГО: 300.00 [18:48:18]line Внесено: 300.00 [18:48:18]line СДАЧА: 0.00 [18:48:18]line НСП 1% : 2.66 [18:48:18]line НДС 12% : 31.90 [18:48:18]line Наличными: 300.00 [18:48:18]line Безнал.: 0.00 [18:48:18]line Место: АЗС № 143 "Партнер Нефть" [18:48:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:48:18]line СНО: Общий режим [18:48:18]line Чек 278 24.10.2024 18:48 [18:48:18]line Смена: 534 ФФД: 1.0 [18:48:18]line ЗНМ: 0300000096 [18:48:18]line РНМ: 0000000000091693 [18:48:18]line Версия ККМ: 001 [18:48:18]line ФМ: 0000000000871792 [18:48:18]line ФД: 155653 [18:48:18]line ФПД: 56034353436714 [18:48:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T184818&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155653&fm=56034353436714&tin=02508201610067®Number=0000000000091693&sum=30000 [18:48:19]OFD Sender: Processing packet 155653 [packets to send 31, broken 30] [18:48:19]ProducePacketName [18:48:19]name=ofd_packets/00155653 [18:48:19]OFD Sender: To server: pG, [18:48:19]CommunicateWithHost lk.salyk.kg:30040 [18:48:19]ConnectInit lk.salyk.kg [18:48:19]written 0, free lines is 4095 [18:48:19]Connected sock=10 [18:48: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 39 32 0F 01 00 00 EA 39 07 01 F6 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 72 96 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 60 02 00 35 04 06 00 32 F6 83 BB 58 2A EE 4D 28 91 8F 4B 63 FC [18:48: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 39 32 4F 00 00 00 D6 96 47 00 6C 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 39 32 10 04 04 00 05 60 02 00 F4 03 04 00 EA 3B 1A 67 B6 04 01 00 00 14 FE B5 0B 5C 23 7A D6 [18:48:19]CommunicateWithHost err = 0 [18:48:19]CheckOFDResponse [18:48:19]1017 (14) - 77093643461234 [18:48:19]1041 (16) - 0000000000871792 [18:48:19]1040 (4) - 155653 [18:48:19]1012 (4) - 24.10.2024 12:22 [18:48:19]1206 (1) - 0 [18:48:19]OFD Sender: Remove packet 155653 [18:48:19]ProducePacketName [18:48:19]name=ofd_packets/00155653 [18:48:19]NVStorageDeleteData [18:48:19]Write to MH i2c: 01 00 00 06 20 26 [18:48:19]Write i2c OK [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: 01 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: 01 07 00 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: 01 07 00 06 20 00 00 00 00 00 E0 0C 19 [18:48:19]RasterBufferAndPrint [18:48:19]line [18:48:19]line [18:48:19]line [18:48:19]line [18:48:19]line [18:48:19]written 0, free lines is 3301 [18:48:19]process_action close_receipt done [18:48:19]requested_data is exist [18:48:19]produce_requested_data [18:48:19]requested_item fm.sn is exist - process it [18:48:19]wFMCommunicate request_size=4 [18:48:19]MH_SAM_APDU [18:48:19]CAPDU: 80 11 00 00 [18:48:19]Write to MH i2c: E2 08 00 0D 20 80 11 00 00 00 00 00 00 A7 [18:48:19]Write i2c OK [18:48:19]MH_I2C_Read... [18:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:19]Read from MH i2c: E2 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: E2 17 00 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: E2 17 00 0D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FC [18:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:48:19]wFMCommunicate OK [18:48:19]requested_item fd.num is exist - process it [18:48:19]SAM_PROTO_GetFieldsCounters [18:48:19]wFMCommunicate request_size=4 [18:48:19]MH_SAM_APDU [18:48:19]CAPDU: 80 13 00 00 [18:48:19]Write to MH i2c: E2 08 00 0E 20 80 13 00 00 00 00 00 00 AA [18:48:19]Write i2c OK [18:48:19]MH_I2C_Read... [18:48:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:19]Read from MH i2c: E2 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: E2 62 00 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: E2 62 00 0E 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 05 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [18:48: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 05 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:19]wFMCommunicate OK [18:48:19]SAM_PROTO_GetFieldsCounters done [18:48:19]requested_item shift.num is exist - process it [18:48:19]requested_item shift.opened is exist - process it [18:48:19]req_shift_opened [18:48:19]FM_GetShiftState [18:48:19]SAM_PROTO_GetShiftState [18:48:19]wFMCommunicate request_size=4 [18:48:19]MH_SAM_APDU [18:48:19]CAPDU: 80 13 01 00 [18:48:19]Write to MH i2c: E2 08 00 0F 20 80 13 01 00 00 00 00 00 AC [18:48:19]Write i2c OK [18:48:19]MH_I2C_Read... [18:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:19]Read from MH i2c: E2 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: E2 0E 00 [18:48:19]MH_I2C_Read... [18:48:19]Read from MH i2c: E2 0E 00 0F 20 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F9 [18:48:19]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:48:19]wFMCommunicate OK [18:48:19]SAM_PROTO_GetShiftState done [18:48:19]FM_GetShiftState done [18:48:19]req_shift_opened done [18:48:19]requested_item shift.open_date is exist - process it [18:48:19]req_shift_open_date [18:48:19]req_shift_open_date done [18:48:19]produce_requested_data done [18:48:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155653,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [18:48:19]process_action_free close_receipt [18:48:19]json_value_free [18:48:19]json_value_free done [18:48:19]process_json_proto returns [18:48:19]Send response to host [18:48:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155653,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [18:48:19]free response buf [18:48:19]execute_script done [18:48:19]execute_script returns [18:48:19]free content buf [18:48:19]Sock 8.Close socket [18:48:19]Sock 8.Thread stoped [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]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:19]accept exits with 9 [18:53:19]New connection [18:53:19]New thread 3066637668 created [18:53:19]Thread 3066781028 joined [18:53:19]Waiting for new connection... [18:53:19] Sock 9.Parse request [18:53:19]Sock 9.Check first char [18:53:19]Sock 9.First char is OK [18:53:19]request: POST /json_proto HTTP/1.0 [18:53:19]Method: POST [18:53:19]URL: /json_proto [18:53:19]Method is POST - this is cgi request [18:53:19]url: /json_proto [18:53:19]query_string will be loaded in cgi processing [18:53:19]execute_cgi json_proto POST (null) [18:53:19]execute_cgi path=json_proto method=POST [18:53:19]POST find Content-Length [18:53:19]Host: 172.17.63.3:8080 [18:53:19]Content-Length: 678 [18:53:19]Content-Type: application/json [18:53:19] [18:53:19]POST finish read [18:53:19]Found Content-Length = 678 [18:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:19]execute_script... [18:53: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)98460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:19]POST & json_proto [18:53:19]process_json_proto [18:53:19]json parsed OK: [18:53:19]protocol is kg_v1.0 [18:53:19]action value=close_receipt [18:53:19]process_action close_receipt [18:53:19]cmd_close_receipt [18:53:19]MH_GetDate [18:53:19]Write to MH i2c: F0 00 00 10 20 1F [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: F0 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: F0 09 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: F0 09 00 10 20 00 A1 97 1A 67 50 D1 6C 64 D2 [18:53:19]GetLastDocTimeStamp 1729795698 [18:53:19]current date 1729796001 [18:53:19]FM_GetShiftState [18:53:19]SAM_PROTO_GetShiftState [18:53:19]wFMCommunicate request_size=4 [18:53:19]MH_SAM_APDU [18:53:19]CAPDU: 80 13 01 00 [18:53:19]Write to MH i2c: E2 08 00 11 20 80 13 01 00 00 00 00 00 AE [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:19]Read from MH i2c: E2 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 0E 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 0E 00 11 20 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 FB [18:53:19]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:53:19]wFMCommunicate OK [18:53:19]SAM_PROTO_GetShiftState done [18:53:19]FM_GetShiftState done [18:53:19]opened in 1729729836 [18:53:19]opened+sec_in_day 1729816236 [18:53:19]quantity*price = 150037 [18:53:19]sum+1 = 150039 [18:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 279 24.10.2024 18:53 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155654 ФПД: 155812318484296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185321&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155654&fm=155812318484296&tin=02508201610067®Number=0000000000091693&sum=150000 [18:53:20]StoreToDocumentArchive [18:53:20]shift 534 fd 155654 [18:53:20]save to /storage/0534/doc_00155654 [18:53:20]save last doc name /storage/0534/doc_00155654 to /storage/kkm_last_doc_name [18:53:20]save OK [18:53:20]Clear old archive folders... [18:53:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:53:21]tlvbuf is 01FF9000 [18:53:21]SAM_PROTO_ClearQueue [18:53:21]wFMCommunicate request_size=4 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 09 00 00 [18:53:21]Write to MH i2c: E2 08 00 1E 20 80 09 00 00 00 00 00 00 B0 [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 03 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 03 00 1E 20 00 90 00 B2 [18:53:21]RAPDU: 90 00 [18:53:21]wFMCommunicate OK [18:53:21]SAM_PROTO_ClearQueue done [18:53:21]KKMCreateOFDPacket [18:53:21]OFDProtocolAddRootSTLVToBuf [18:53:21]FM_MakeSignedData [18:53:21]FM_MakeSignedData [18:53:21]SAM_PROTO_SignData [18:53:21]wFMCommunicate request_size=4 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 0D 01 02 [18:53:21]Write to MH i2c: E2 08 00 1F 20 80 0D 01 02 00 00 00 00 B8 [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 03 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 03 00 1F 20 00 90 00 B3 [18:53:21]RAPDU: 90 00 [18:53:21]wFMCommunicate OK [18:53:21]wFMCommunicate request_size=255 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 A1 97 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 60 02 00 35 04 06 00 8D B5 E1 E5 [18:53:21]Write to MH i2c: E2 02 01 20 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 A1 97 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 60 02 00 35 04 06 00 8D B5 E1 E5 00 00 12 [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 03 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 03 00 20 20 00 90 00 B4 [18:53:21]RAPDU: 90 00 [18:53:21]wFMCommunicate OK [18:53:21]wFMCommunicate request_size=7 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 0D 02 02 02 17 48 [18:53:21]Write to MH i2c: E2 0A 00 21 20 80 0D 02 02 02 00 17 48 00 00 1E [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 03 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 03 00 21 20 00 90 00 B5 [18:53:21]RAPDU: 90 00 [18:53:21]wFMCommunicate OK [18:53:21]wFMCommunicate request_size=4 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 0D 03 02 [18:53:21]Write to MH i2c: E2 08 00 22 20 80 0D 03 02 00 00 00 00 BD [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 0B 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 0B 00 22 20 00 DF 44 A4 7B 9E C3 48 B6 90 00 5F [18:53:21]RAPDU: DF 44 A4 7B 9E C3 48 B6 90 00 [18:53:21]wFMCommunicate OK [18:53:21]SAM_PROTO_SignData done [18:53:21]FM_MakeSignedData done [18:53:21]CreateOFDProtocolMessage [18:53:21]wFMCommunicate request_size=4 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 11 00 00 [18:53:21]Write to MH i2c: E2 08 00 23 20 80 11 00 00 00 00 00 00 BD [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 17 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 17 00 23 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 12 [18:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:53:21]wFMCommunicate OK [18:53:21]CreateOFDProtocolMessage done [18:53:21]OFDSenderStorePacket 155654 [18:53:21]StoreOFDPacket docnum=155654 [18:53:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 DA 2D 04 01 E3 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 A1 97 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 60 02 00 35 04 06 00 8D B5 E1 E5 17 48 DF 44 A4 7B 9E C3 48 B6 [18:53:21]CheckFolder [18:53:21]dirname=/storage/ofd_packets [18:53:21]CheckFolder done [18:53:21]ProducePacketName [18:53:21]name=ofd_packets/00155654 [18:53:21]NVStorageSaveData ofd_packets/00155654 [18:53:21]File name is /storage/ofd_packets/00155654 [18:53:21]Write 298 bytes [18:53:21]NVStorageSaveData done [18:53:21]OFDSenderStorePacket done [18:53:21]KKMCreateOFDPacket done [18:53:21]NVStorageSaveData kkm_last_timestamp [18:53:21]File name is /storage/kkm_last_timestamp [18:53:21]Write 4 bytes [18:53:21]NVStorageSaveData done [18:53:21]ExternCall_PrintAddStr [18:53:21]wPrintStart [18:53:21]Write to MH i2c: 01 00 00 24 20 44 [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: 01 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: 01 07 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: 01 07 00 24 20 00 00 00 00 00 FF 0F 59 [18:53:21]RasterBufferAndPrint [18:53:21]line Счет N : (1)98460 [18:53:21]line ИНН: 02508201610067 [18:53:21]line Контрольно-Кассовый Чек [18:53:21]line ПРОДАЖА [18:53:21]line ТРК (МРК, ГНК) : 32 [18:53:21]line Товар: 2710194210 [18:53:21]line ДТ-К-5 [18:53:21]line 19.690 * 76.20 [18:53:21]line = 1500.38 [18:53:21]line НДС 12% НСП 1% [18:53:21]line > о реализуемом товаре [18:53:21]line ОКРУГЛЕНИЕ: -0.38 [18:53:21]line ИТОГО: 1500.00 [18:53:21]line Внесено: 1500.00 [18:53:21]line СДАЧА: 0.00 [18:53:21]line НСП 1% : 13.28 [18:53:21]line НДС 12% : 159.33 [18:53:21]line Наличными: 1500.00 [18:53:21]line Безнал.: 0.00 [18:53:21]line Место: АЗС № 143 "Партнер Нефть" [18:53:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:53:21]line СНО: Общий режим [18:53:21]line Чек 279 24.10.2024 18:53 [18:53:21]line Смена: 534 ФФД: 1.0 [18:53:21]line ЗНМ: 0300000096 [18:53:21]line РНМ: 0000000000091693 [18:53:21]line Версия ККМ: 001 [18:53:21]line ФМ: 0000000000871792 [18:53:21]line ФД: 155654 [18:53:21]line ФПД: 155812318484296 [18:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185321&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155654&fm=155812318484296&tin=02508201610067®Number=0000000000091693&sum=150000 [18:53:21]OFD Sender: Processing packet 155654 [packets to send 31, broken 30] [18:53:21]ProducePacketName [18:53:21]name=ofd_packets/00155654 [18:53:21]OFD Sender: To server: pG, [18:53:21]CommunicateWithHost lk.salyk.kg:30040 [18:53:21]ConnectInit lk.salyk.kg [18:53:21]written 0, free lines is 4095 [18:53:21]Connected sock=10 [18:53:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 DA 2D 04 01 E3 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 A1 97 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 60 02 00 35 04 06 00 8D B5 E1 E5 17 48 DF 44 A4 7B 9E C3 48 B6 [18:53:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D9 D7 47 00 9A B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 60 02 00 F4 03 04 00 19 3D 1A 67 B6 04 01 00 00 B0 18 08 6C 20 E3 28 A1 [18:53:22]CommunicateWithHost err = 0 [18:53:22]CheckOFDResponse [18:53:22]1017 (14) - 77093643461234 [18:53:22]1041 (16) - 0000000000871792 [18:53:22]1040 (4) - 155654 [18:53:22]1012 (4) - 24.10.2024 12:27 [18:53:22]1206 (1) - 0 [18:53:22]OFD Sender: Remove packet 155654 [18:53:22]ProducePacketName [18:53:22]name=ofd_packets/00155654 [18:53:22]NVStorageDeleteData [18:53:22]Write to MH i2c: 01 00 00 4F 20 6F [18:53:22]Write i2c OK [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: 01 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: 01 07 00 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: 01 07 00 4F 20 00 00 00 00 00 EA 0C 6C [18:53:22]RasterBufferAndPrint [18:53:22]line [18:53:22]line [18:53:22]line [18:53:22]line [18:53:22]line [18:53:22]written 0, free lines is 3312 [18:53:22]process_action close_receipt done [18:53:22]requested_data is exist [18:53:22]produce_requested_data [18:53:22]requested_item fm.sn is exist - process it [18:53:22]wFMCommunicate request_size=4 [18:53:22]MH_SAM_APDU [18:53:22]CAPDU: 80 11 00 00 [18:53:22]Write to MH i2c: E2 08 00 56 20 80 11 00 00 00 00 00 00 F0 [18:53:22]Write i2c OK [18:53:22]MH_I2C_Read... [18:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:22]Read from MH i2c: E2 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: E2 17 00 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: E2 17 00 56 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 45 [18:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:53:22]wFMCommunicate OK [18:53:22]requested_item fd.num is exist - process it [18:53:22]SAM_PROTO_GetFieldsCounters [18:53:22]wFMCommunicate request_size=4 [18:53:22]MH_SAM_APDU [18:53:22]CAPDU: 80 13 00 00 [18:53:22]Write to MH i2c: E2 08 00 57 20 80 13 00 00 00 00 00 00 F3 [18:53:22]Write i2c OK [18:53:22]MH_I2C_Read... [18:53:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:22]Read from MH i2c: E2 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: E2 62 00 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: E2 62 00 57 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 06 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 E1 [18:53:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 06 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:22]wFMCommunicate OK [18:53:22]SAM_PROTO_GetFieldsCounters done [18:53:22]requested_item shift.num is exist - process it [18:53:22]requested_item shift.opened is exist - process it [18:53:22]req_shift_opened [18:53:22]FM_GetShiftState [18:53:22]SAM_PROTO_GetShiftState [18:53:22]wFMCommunicate request_size=4 [18:53:22]MH_SAM_APDU [18:53:22]CAPDU: 80 13 01 00 [18:53:22]Write to MH i2c: E2 08 00 58 20 80 13 01 00 00 00 00 00 F5 [18:53:22]Write i2c OK [18:53:22]MH_I2C_Read... [18:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:22]Read from MH i2c: E2 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: E2 0E 00 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: E2 0E 00 58 20 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 42 [18:53:22]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:53:22]wFMCommunicate OK [18:53:22]SAM_PROTO_GetShiftState done [18:53:22]FM_GetShiftState done [18:53:22]req_shift_opened done [18:53:22]requested_item shift.open_date is exist - process it [18:53:22]req_shift_open_date [18:53:22]req_shift_open_date done [18:53:22]produce_requested_data done [18:53:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155654,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [18:53:22]process_action_free close_receipt [18:53:22]json_value_free [18:53:22]json_value_free done [18:53:22]process_json_proto returns [18:53:22]Send response to host [18:53:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155654,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [18:53:22]free response buf [18:53:22]execute_script done [18:53:22]execute_script returns [18:53:22]free content buf [18:53:22]Sock 9.Close socket [18:53:22]Sock 9.Thread stoped [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [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:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:57]OFD Sender: No OFD packet to send [18:55:02]OFD Sender: No OFD packet to send [18:55:07]OFD Sender: No OFD packet to send [18:55:12]OFD Sender: No OFD packet to send [18:55:17]OFD Sender: No OFD packet to send [18:55:22]OFD Sender: No OFD packet to send [18:55:27]OFD Sender: No OFD packet to send [18:55:32]OFD Sender: No OFD packet to send [18:55:37]OFD Sender: No OFD packet to send [18:55:42]OFD Sender: No OFD packet to send [18:55:47]OFD Sender: No OFD packet to send [18:55:52]OFD Sender: No OFD packet to send [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:27]OFD Sender: No OFD packet to send [18:56:32]OFD Sender: No OFD packet to send [18:56:37]OFD Sender: No OFD packet to send [18:56:42]OFD Sender: No OFD packet to send [18:56:47]OFD Sender: No OFD packet to send [18:56:52]OFD Sender: No OFD packet to send [18:56:57]OFD Sender: No OFD packet to send [18:57:02]OFD Sender: No OFD packet to send [18:57:07]OFD Sender: No OFD packet to send [18:57:12]OFD Sender: No OFD packet to send [18:57:17]OFD Sender: No OFD packet to send [18:57:22]OFD Sender: No OFD packet to send [18:57:27]OFD Sender: No OFD packet to send [18:57:30]accept exits with 8 [18:57:30]New connection [18:57:30]New thread 3066781028 created [18:57:30]Thread 3066637668 joined [18:57:30]Waiting for new connection... [18:57:30] Sock 8.Parse request [18:57:30]Sock 8.Check first char [18:57:30]Sock 8.First char is OK [18:57:30]request: POST /json_proto HTTP/1.0 [18:57:30]Method: POST [18:57:30]URL: /json_proto [18:57:30]Method is POST - this is cgi request [18:57:30]url: /json_proto [18:57:30]query_string will be loaded in cgi processing [18:57:30]execute_cgi json_proto POST (null) [18:57:30]execute_cgi path=json_proto method=POST [18:57:30]POST find Content-Length [18:57:30]Host: 172.17.63.3:8080 [18:57:30]Content-Length: 765 [18:57:30]Content-Type: application/json [18:57:30] [18:57:30]POST finish read [18:57:30]Found Content-Length = 765 [18:57:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:30]execute_script... [18:57: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)98461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:30]POST & json_proto [18:57:30]process_json_proto [18:57:30]json parsed OK: [18:57:30]protocol is kg_v1.0 [18:57:30]action value=close_receipt [18:57:30]process_action close_receipt [18:57:30]cmd_close_receipt [18:57:30]MH_GetDate [18:57:30]Write to MH i2c: F0 00 00 59 20 68 [18:57:30]Write i2c OK [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: F0 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: F0 09 00 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: F0 09 00 59 20 00 9B 98 1A 67 50 D1 6C 64 16 [18:57:30]GetLastDocTimeStamp 1729796001 [18:57:30]current date 1729796251 [18:57:30]FM_GetShiftState [18:57:30]SAM_PROTO_GetShiftState [18:57:30]wFMCommunicate request_size=4 [18:57:30]MH_SAM_APDU [18:57:30]CAPDU: 80 13 01 00 [18:57:30]Write to MH i2c: E2 08 00 5A 20 80 13 01 00 00 00 00 00 F7 [18:57:30]Write i2c OK [18:57:30]MH_I2C_Read... [18:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:30]Read from MH i2c: E2 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 0E 00 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 0E 00 5A 20 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 44 [18:57:30]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:57:30]wFMCommunicate OK [18:57:30]SAM_PROTO_GetShiftState done [18:57:30]FM_GetShiftState done [18:57:30]opened in 1729729836 [18:57:30]opened+sec_in_day 1729816236 [18:57:30]quantity*price = 50041 [18:57:30]sum+1 = 50042 [18:57:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 280 24.10.2024 18:57 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155655 ФПД: 62931861537390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185731&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155655&fm=62931861537390&tin=02508201610067®Number=0000000000091693&sum=50041 [18:57:31]StoreToDocumentArchive [18:57:31]shift 534 fd 155655 [18:57:31]save to /storage/0534/doc_00155655 [18:57:31]save last doc name /storage/0534/doc_00155655 to /storage/kkm_last_doc_name [18:57:31]save OK [18:57:31]Clear old archive folders... [18:57:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:31]tlvbuf is 01FF8A50 [18:57:31]SAM_PROTO_ClearQueue [18:57:31]wFMCommunicate request_size=4 [18:57:31]MH_SAM_APDU [18:57:31]CAPDU: 80 09 00 00 [18:57:31]Write to MH i2c: E2 08 00 67 20 80 09 00 00 00 00 00 00 F9 [18:57:31]Write i2c OK [18:57:31]MH_I2C_Read... [18:57:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:31]Read from MH i2c: E2 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 03 00 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 03 00 67 20 00 90 00 FB [18:57:31]RAPDU: 90 00 [18:57:31]wFMCommunicate OK [18:57:31]SAM_PROTO_ClearQueue done [18:57:31]KKMCreateOFDPacket [18:57:31]OFDProtocolAddRootSTLVToBuf [18:57:31]FM_MakeSignedData [18:57:31]FM_MakeSignedData [18:57:31]SAM_PROTO_SignData [18:57:31]wFMCommunicate request_size=4 [18:57:31]MH_SAM_APDU [18:57:31]CAPDU: 80 0D 01 02 [18:57:31]Write to MH i2c: E2 08 00 68 20 80 0D 01 02 00 00 00 00 01 [18:57:31]Write i2c OK [18:57:31]MH_I2C_Read... [18:57:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:31]Read from MH i2c: E2 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 03 00 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 03 00 68 20 00 90 00 FC [18:57:31]RAPDU: 90 00 [18:57:31]wFMCommunicate OK [18:57:31]wFMCommunicate request_size=255 [18:57:31]MH_SAM_APDU [18:57: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 9B 98 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 60 02 00 35 04 06 00 39 [18:57:31]Write to MH i2c: E2 02 01 69 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 9B 98 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 60 02 00 35 04 06 00 39 00 00 6E [18:57:31]Write i2c OK [18:57:31]MH_I2C_Read... [18:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:31]Read from MH i2c: E2 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 03 00 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 03 00 69 20 00 90 00 FD [18:57:31]RAPDU: 90 00 [18:57:31]wFMCommunicate OK [18:57:31]wFMCommunicate request_size=10 [18:57:31]MH_SAM_APDU [18:57:31]CAPDU: 80 0D 02 02 05 3C 77 40 82 6E [18:57:31]Write to MH i2c: E2 0D 00 6A 20 80 0D 02 02 05 00 3C 77 40 82 6E 00 00 F1 [18:57:31]Write i2c OK [18:57:31]MH_I2C_Read... [18:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:31]Read from MH i2c: E2 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 03 00 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 03 00 6A 20 00 90 00 FE [18:57:31]RAPDU: 90 00 [18:57:31]wFMCommunicate OK [18:57:31]wFMCommunicate request_size=4 [18:57:31]MH_SAM_APDU [18:57:31]CAPDU: 80 0D 03 02 [18:57:31]Write to MH i2c: E2 08 00 6B 20 80 0D 03 02 00 00 00 00 06 [18:57:31]Write i2c OK [18:57:31]MH_I2C_Read... [18:57:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:31]Read from MH i2c: E2 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 0B 00 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 0B 00 6B 20 00 59 A9 F5 F4 A5 18 10 AF 90 00 6E [18:57:31]RAPDU: 59 A9 F5 F4 A5 18 10 AF 90 00 [18:57:31]wFMCommunicate OK [18:57:31]SAM_PROTO_SignData done [18:57:31]FM_MakeSignedData done [18:57:31]CreateOFDProtocolMessage [18:57:31]wFMCommunicate request_size=4 [18:57:31]MH_SAM_APDU [18:57:31]CAPDU: 80 11 00 00 [18:57:31]Write to MH i2c: E2 08 00 6C 20 80 11 00 00 00 00 00 00 06 [18:57:31]Write i2c OK [18:57:31]MH_I2C_Read... [18:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:31]Read from MH i2c: E2 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 17 00 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 17 00 6C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5B [18:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:57:31]wFMCommunicate OK [18:57:31]CreateOFDProtocolMessage done [18:57:31]OFDSenderStorePacket 155655 [18:57:31]StoreOFDPacket docnum=155655 [18:57:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 47 E0 07 01 53 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 9B 98 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 60 02 00 35 04 06 00 39 3C 77 40 82 6E 59 A9 F5 F4 A5 18 10 AF [18:57:31]CheckFolder [18:57:31]dirname=/storage/ofd_packets [18:57:31]CheckFolder done [18:57:31]ProducePacketName [18:57:31]name=ofd_packets/00155655 [18:57:31]NVStorageSaveData ofd_packets/00155655 [18:57:31]File name is /storage/ofd_packets/00155655 [18:57:31]Write 301 bytes [18:57:31]NVStorageSaveData done [18:57:31]OFDSenderStorePacket done [18:57:31]KKMCreateOFDPacket done [18:57:31]NVStorageSaveData kkm_last_timestamp [18:57:31]File name is /storage/kkm_last_timestamp [18:57:31]Write 4 bytes [18:57:31]NVStorageSaveData done [18:57:31]ExternCall_PrintAddStr [18:57:31]wPrintStart [18:57:31]Write to MH i2c: 01 00 00 6D 20 8D [18:57:31]Write i2c OK [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: 01 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: 01 07 00 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: 01 07 00 6D 20 00 00 00 00 00 FF 0F A2 [18:57:31]RasterBufferAndPrint [18:57:31]line Счет N : (1)98461 [18:57:31]line ИНН: 02508201610067 [18:57:31]line Контрольно-Кассовый Чек [18:57:31]line ПРОДАЖА [18:57:31]line ТРК (МРК, ГНК) : 11 [18:57:31]line Товар: 2710124130 [18:57:31]line Аи-92-К-5 [18:57:31]line 7.480 * 66.90 [18:57:31]line = 500.41 [18:57:31]line НДС 12% НСП 1% [18:57:31]line > о реализуемом товаре [18:57:31]line ИТОГО: 500.41 [18:57:31]line НСП 1% : 4.43 [18:57:31]line НДС 12% : 53.14 [18:57:31]line Наличными: 0.00 [18:57:31]line Безнал.: 500.41 [18:57:31]line Место: АЗС № 143 "Партнер Нефть" [18:57:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:57:31]line СНО: Общий режим [18:57:31]line Чек 280 24.10.2024 18:57 [18:57:31]line Смена: 534 ФФД: 1.0 [18:57:31]line ЗНМ: 0300000096 [18:57:31]line РНМ: 0000000000091693 [18:57:31]line Версия ККМ: 001 [18:57:31]line Платежная система: Mbank [18:57:31]line ФМ: 0000000000871792 [18:57:31]line ФД: 155655 [18:57:31]line ФПД: 62931861537390 [18:57:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T185731&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155655&fm=62931861537390&tin=02508201610067®Number=0000000000091693&sum=50041 [18:57:32]OFD Sender: Processing packet 155655 [packets to send 31, broken 30] [18:57:32]ProducePacketName [18:57:32]name=ofd_packets/00155655 [18:57:32]OFD Sender: To server: pG, [18:57:32]CommunicateWithHost lk.salyk.kg:30040 [18:57:32]ConnectInit lk.salyk.kg [18:57:32]written 0, free lines is 4095 [18:57:32]Connected sock=10 [18:57:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 47 E0 07 01 53 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 9B 98 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 60 02 00 35 04 06 00 39 3C 77 40 82 6E 59 A9 F5 F4 A5 18 10 AF [18: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 39 32 4F 00 00 00 6C 3B 47 00 C1 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 60 02 00 F4 03 04 00 13 3E 1A 67 B6 04 01 00 00 B2 5D 23 49 0F B1 2B C8 [18:57:32]CommunicateWithHost err = 0 [18:57:32]CheckOFDResponse [18:57:32]1017 (14) - 77093643461234 [18:57:32]1041 (16) - 0000000000871792 [18:57:32]1040 (4) - 155655 [18:57:32]1012 (4) - 24.10.2024 12:31 [18:57:32]1206 (1) - 0 [18:57:32]OFD Sender: Remove packet 155655 [18:57:32]ProducePacketName [18:57:32]name=ofd_packets/00155655 [18:57:32]NVStorageDeleteData [18:57:32]Write to MH i2c: 01 00 00 96 20 B6 [18:57:32]Write i2c OK [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: 01 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: 01 07 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: 01 07 00 96 20 00 00 00 00 00 F9 0C C2 [18:57:32]RasterBufferAndPrint [18:57:32]line [18:57:32]line [18:57:32]line [18:57:32]line [18:57:32]line [18:57:32]written 0, free lines is 3327 [18:57:32]process_action close_receipt done [18:57:32]requested_data is exist [18:57:32]produce_requested_data [18:57:32]requested_item fm.sn is exist - process it [18:57:32]wFMCommunicate request_size=4 [18:57:32]MH_SAM_APDU [18:57:32]CAPDU: 80 11 00 00 [18:57:32]Write to MH i2c: E2 08 00 9D 20 80 11 00 00 00 00 00 00 37 [18:57:32]Write i2c OK [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 [18:57:32]MH_I2C_Read... [18:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:32]Read from MH i2c: E2 17 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 17 00 9D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8C [18:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:57:32]wFMCommunicate OK [18:57:32]requested_item fd.num is exist - process it [18:57:32]SAM_PROTO_GetFieldsCounters [18:57:32]wFMCommunicate request_size=4 [18:57:32]MH_SAM_APDU [18:57:32]CAPDU: 80 13 00 00 [18:57:32]Write to MH i2c: E2 08 00 9E 20 80 13 00 00 00 00 00 00 3A [18:57:32]Write i2c OK [18:57:32]MH_I2C_Read... [18:57:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:32]Read from MH i2c: E2 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 62 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 62 00 9E 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 07 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [18:57:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 07 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:32]wFMCommunicate OK [18:57:32]SAM_PROTO_GetFieldsCounters done [18:57:32]requested_item shift.num is exist - process it [18:57:32]requested_item shift.opened is exist - process it [18:57:32]req_shift_opened [18:57:32]FM_GetShiftState [18:57:32]SAM_PROTO_GetShiftState [18:57:32]wFMCommunicate request_size=4 [18:57:32]MH_SAM_APDU [18:57:32]CAPDU: 80 13 01 00 [18:57:32]Write to MH i2c: E2 08 00 9F 20 80 13 01 00 00 00 00 00 3C [18:57:32]Write i2c OK [18:57:32]MH_I2C_Read... [18:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:32]Read from MH i2c: E2 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 0E 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 0E 00 9F 20 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 89 [18:57:32]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [18:57:32]wFMCommunicate OK [18:57:32]SAM_PROTO_GetShiftState done [18:57:32]FM_GetShiftState done [18:57:32]req_shift_opened done [18:57:32]requested_item shift.open_date is exist - process it [18:57:32]req_shift_open_date [18:57:32]req_shift_open_date done [18:57:32]produce_requested_data done [18:57:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155655,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [18:57:32]process_action_free close_receipt [18:57:32]json_value_free [18:57:32]json_value_free done [18:57:32]process_json_proto returns [18:57:32]Send response to host [18:57:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155655,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [18:57:32]free response buf [18:57:32]execute_script done [18:57:32]execute_script returns [18:57:32]free content buf [18:57:32]Sock 8.Close socket [18:57:32]Sock 8.Thread stoped [18:57:32]OFD Sender: No OFD packet to send [18:57:37]OFD Sender: No OFD packet to send [18:57:42]OFD Sender: No OFD packet to send [18:57:47]OFD Sender: No OFD packet to send [18:57:52]OFD Sender: No OFD packet to send [18:57:57]OFD Sender: No OFD packet to send [18:58:02]OFD Sender: No OFD packet to send [18:58:07]OFD Sender: No OFD packet to send [18:58:12]OFD Sender: No OFD packet to send [18:58:17]OFD Sender: No OFD packet to send [18:58:22]OFD Sender: No OFD packet to send [18:58:27]OFD Sender: No OFD packet to send [18:58:32]OFD Sender: No OFD packet to send [18:58:37]OFD Sender: No OFD packet to send [18:58:42]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58: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:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:02:58]accept exits with 9 [19:02:58]New connection [19:02:58]New thread 3066637668 created [19:02:58]Thread 3066781028 joined [19:02:58]Waiting for new connection... [19:02:58] Sock 9.Parse request [19:02:58]Sock 9.Check first char [19:02:58]Sock 9.First char is OK [19:02:58]request: POST /json_proto HTTP/1.0 [19:02:58]Method: POST [19:02:58]URL: /json_proto [19:02:58]Method is POST - this is cgi request [19:02:58]url: /json_proto [19:02:58]query_string will be loaded in cgi processing [19:02:58]execute_cgi json_proto POST (null) [19:02:58]execute_cgi path=json_proto method=POST [19:02:58]POST find Content-Length [19:02:58]Host: 172.17.63.3:8080 [19:02:58]Content-Length: 676 [19:02:58]Content-Type: application/json [19:02:58] [19:02:58]POST finish read [19:02:58]Found Content-Length = 676 [19:02:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:58]execute_script... [19:02: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)98462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:58]POST & json_proto [19:02:58]process_json_proto [19:02:58]json parsed OK: [19:02:58]protocol is kg_v1.0 [19:02:58]action value=close_receipt [19:02:58]process_action close_receipt [19:02:58]cmd_close_receipt [19:02:58]MH_GetDate [19:02:58]Write to MH i2c: F0 00 00 A0 20 AF [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: F0 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: F0 09 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: F0 09 00 A0 20 00 E4 99 1A 67 50 D1 6C 64 A7 [19:02:58]GetLastDocTimeStamp 1729796251 [19:02:58]current date 1729796580 [19:02:58]FM_GetShiftState [19:02:58]SAM_PROTO_GetShiftState [19:02:58]wFMCommunicate request_size=4 [19:02:58]MH_SAM_APDU [19:02:58]CAPDU: 80 13 01 00 [19:02:58]Write to MH i2c: E2 08 00 A1 20 80 13 01 00 00 00 00 00 3E [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:58]Read from MH i2c: E2 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 0E 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 0E 00 A1 20 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8B [19:02:58]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:02:58]wFMCommunicate OK [19:02:58]SAM_PROTO_GetShiftState done [19:02:58]FM_GetShiftState done [19:02:58]opened in 1729729836 [19:02:58]opened+sec_in_day 1729816236 [19:02:58]quantity*price = 60009 [19:02:58]sum+1 = 60010 [19:02:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 281 24.10.2024 19:03 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155656 ФПД: 104760713577231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190300&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155656&fm=104760713577231&tin=02508201610067®Number=0000000000091693&sum=60000 [19:03:00]StoreToDocumentArchive [19:03:00]shift 534 fd 155656 [19:03:00]save to /storage/0534/doc_00155656 [19:03:00]save last doc name /storage/0534/doc_00155656 to /storage/kkm_last_doc_name [19:03:00]save OK [19:03:00]Clear old archive folders... [19:03:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:00]tlvbuf is B6EB0510 [19:03:00]SAM_PROTO_ClearQueue [19:03:00]wFMCommunicate request_size=4 [19:03:00]MH_SAM_APDU [19:03:00]CAPDU: 80 09 00 00 [19:03:00]Write to MH i2c: E2 08 00 AE 20 80 09 00 00 00 00 00 00 40 [19:03:00]Write i2c OK [19:03:00]MH_I2C_Read... [19:03:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:00]Read from MH i2c: E2 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: E2 03 00 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: E2 03 00 AE 20 00 90 00 42 [19:03:00]RAPDU: 90 00 [19:03:00]wFMCommunicate OK [19:03:00]SAM_PROTO_ClearQueue done [19:03:00]KKMCreateOFDPacket [19:03:00]OFDProtocolAddRootSTLVToBuf [19:03:00]FM_MakeSignedData [19:03:00]FM_MakeSignedData [19:03:00]SAM_PROTO_SignData [19:03:00]wFMCommunicate request_size=4 [19:03:00]MH_SAM_APDU [19:03:00]CAPDU: 80 0D 01 02 [19:03:00]Write to MH i2c: E2 08 00 AF 20 80 0D 01 02 00 00 00 00 48 [19:03:00]Write i2c OK [19:03:00]MH_I2C_Read... [19:03:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:00]Read from MH i2c: E2 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: E2 03 00 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: E2 03 00 AF 20 00 90 00 43 [19:03:00]RAPDU: 90 00 [19:03:00]wFMCommunicate OK [19:03:00]wFMCommunicate request_size=255 [19:03:00]MH_SAM_APDU [19:03: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 E4 99 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 60 02 00 35 04 06 00 5F [19:03:00]Write to MH i2c: E2 02 01 B0 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 E4 99 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 60 02 00 35 04 06 00 5F 00 00 B2 [19:03:00]Write i2c OK [19:03:00]MH_I2C_Read... [19:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:00]Read from MH i2c: E2 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: E2 03 00 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: E2 03 00 B0 20 00 90 00 44 [19:03:00]RAPDU: 90 00 [19:03:00]wFMCommunicate OK [19:03:00]wFMCommunicate request_size=10 [19:03:00]MH_SAM_APDU [19:03:00]CAPDU: 80 0D 02 02 05 47 81 1E 83 0F [19:03:00]Write to MH i2c: E2 0D 00 B1 20 80 0D 02 02 05 00 47 81 1E 83 0F 00 00 CD [19:03:00]Write i2c OK [19:03:00]MH_I2C_Read... [19:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:00]Read from MH i2c: E2 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: E2 03 00 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: E2 03 00 B1 20 00 90 00 45 [19:03:00]RAPDU: 90 00 [19:03:00]wFMCommunicate OK [19:03:00]wFMCommunicate request_size=4 [19:03:00]MH_SAM_APDU [19:03:00]CAPDU: 80 0D 03 02 [19:03:00]Write to MH i2c: E2 08 00 B2 20 80 0D 03 02 00 00 00 00 4D [19:03:00]Write i2c OK [19:03:00]MH_I2C_Read... [19:03:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:00]Read from MH i2c: E2 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: E2 0B 00 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: E2 0B 00 B2 20 00 95 AC 02 0B EB D0 C9 B1 90 00 D1 [19:03:00]RAPDU: 95 AC 02 0B EB D0 C9 B1 90 00 [19:03:00]wFMCommunicate OK [19:03:00]SAM_PROTO_SignData done [19:03:00]FM_MakeSignedData done [19:03:00]CreateOFDProtocolMessage [19:03:00]wFMCommunicate request_size=4 [19:03:00]MH_SAM_APDU [19:03:00]CAPDU: 80 11 00 00 [19:03:00]Write to MH i2c: E2 08 00 B3 20 80 11 00 00 00 00 00 00 4D [19:03:00]Write i2c OK [19:03:00]MH_I2C_Read... [19:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:00]Read from MH i2c: E2 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: E2 17 00 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: E2 17 00 B3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A2 [19:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:03:00]wFMCommunicate OK [19:03:00]CreateOFDProtocolMessage done [19:03:00]OFDSenderStorePacket 155656 [19:03:00]StoreOFDPacket docnum=155656 [19:03:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FA 5D 07 01 29 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 E4 99 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 60 02 00 35 04 06 00 5F 47 81 1E 83 0F 95 AC 02 0B EB D0 C9 B1 [19:03:00]CheckFolder [19:03:00]dirname=/storage/ofd_packets [19:03:00]CheckFolder done [19:03:00]ProducePacketName [19:03:00]name=ofd_packets/00155656 [19:03:00]NVStorageSaveData ofd_packets/00155656 [19:03:00]File name is /storage/ofd_packets/00155656 [19:03:00]Write 301 bytes [19:03:00]NVStorageSaveData done [19:03:00]OFDSenderStorePacket done [19:03:00]KKMCreateOFDPacket done [19:03:00]NVStorageSaveData kkm_last_timestamp [19:03:00]File name is /storage/kkm_last_timestamp [19:03:00]Write 4 bytes [19:03:00]NVStorageSaveData done [19:03:00]ExternCall_PrintAddStr [19:03:00]wPrintStart [19:03:00]Write to MH i2c: 01 00 00 B4 20 D4 [19:03:00]Write i2c OK [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: 01 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: 01 07 00 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: 01 07 00 B4 20 00 00 00 00 00 FF 0F E9 [19:03:00]RasterBufferAndPrint [19:03:00]line Счет N : (1)98462 [19:03:00]line ИНН: 02508201610067 [19:03:00]line Контрольно-Кассовый Чек [19:03:00]line ПРОДАЖА [19:03:00]line ТРК (МРК, ГНК) : 11 [19:03:00]line Товар: 2710124130 [19:03:00]line Аи-92-К-5 [19:03:00]line 8.970 * 66.90 [19:03:00]line = 600.09 [19:03:00]line НДС 12% НСП 1% [19:03:00]line > о реализуемом товаре [19:03:00]line ОКРУГЛЕНИЕ: -0.09 [19:03:00]line ИТОГО: 600.00 [19:03:00]line Внесено: 600.00 [19:03:00]line СДАЧА: 0.00 [19:03:00]line НСП 1% : 5.31 [19:03:00]line НДС 12% : 63.73 [19:03:00]line Наличными: 600.00 [19:03:00]line Безнал.: 0.00 [19:03:00]line Место: АЗС № 143 "Партнер Нефть" [19:03:00]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:03:00]line СНО: Общий режим [19:03:00]line Чек 281 24.10.2024 19:03 [19:03:00]line Смена: 534 ФФД: 1.0 [19:03:00]line ЗНМ: 0300000096 [19:03:00]line РНМ: 0000000000091693 [19:03:00]line Версия ККМ: 001 [19:03:00]line ФМ: 0000000000871792 [19:03:00]line ФД: 155656 [19:03:00]line ФПД: 104760713577231 [19:03:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190300&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155656&fm=104760713577231&tin=02508201610067®Number=0000000000091693&sum=60000 [19:03:00]OFD Sender: Processing packet 155656 [packets to send 31, broken 30] [19:03:00]ProducePacketName [19:03:00]name=ofd_packets/00155656 [19:03:00]OFD Sender: To server: pG, [19:03:00]CommunicateWithHost lk.salyk.kg:30040 [19:03:00]ConnectInit lk.salyk.kg [19:03:00]written 0, free lines is 4095 [19:03:01]Connected sock=10 [19:03: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 39 32 0F 01 00 00 FA 5D 07 01 29 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 E4 99 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 60 02 00 35 04 06 00 5F 47 81 1E 83 0F 95 AC 02 0B EB D0 C9 B1 [19:03: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 39 32 4F 00 00 00 32 B2 47 00 15 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 39 32 10 04 04 00 08 60 02 00 F4 03 04 00 5C 3F 1A 67 B6 04 01 00 00 A8 D4 41 73 70 40 8C BF [19:03:01]CommunicateWithHost err = 0 [19:03:01]CheckOFDResponse [19:03:01]1017 (14) - 77093643461234 [19:03:01]1041 (16) - 0000000000871792 [19:03:01]1040 (4) - 155656 [19:03:01]1012 (4) - 24.10.2024 12:36 [19:03:01]1206 (1) - 0 [19:03:01]OFD Sender: Remove packet 155656 [19:03:01]ProducePacketName [19:03:01]name=ofd_packets/00155656 [19:03:01]NVStorageDeleteData [19:03:01]Write to MH i2c: 01 00 00 DF 20 FF [19:03:01]Write i2c OK [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: 01 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: 01 07 00 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: 01 07 00 DF 20 00 00 00 00 00 E0 0C F2 [19:03:01]RasterBufferAndPrint [19:03:01]line [19:03:01]line [19:03:01]line [19:03:01]line [19:03:01]line [19:03:01]written 0, free lines is 3302 [19:03:01]process_action close_receipt done [19:03:01]requested_data is exist [19:03:01]produce_requested_data [19:03:01]requested_item fm.sn is exist - process it [19:03:01]wFMCommunicate request_size=4 [19:03:01]MH_SAM_APDU [19:03:01]CAPDU: 80 11 00 00 [19:03:01]Write to MH i2c: E2 08 00 E6 20 80 11 00 00 00 00 00 00 80 [19:03:01]Write i2c OK [19:03:01]MH_I2C_Read... [19:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:01]Read from MH i2c: E2 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: E2 17 00 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: E2 17 00 E6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D5 [19:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:03:01]wFMCommunicate OK [19:03:01]requested_item fd.num is exist - process it [19:03:01]SAM_PROTO_GetFieldsCounters [19:03:01]wFMCommunicate request_size=4 [19:03:01]MH_SAM_APDU [19:03:01]CAPDU: 80 13 00 00 [19:03:01]Write to MH i2c: E2 08 00 E7 20 80 13 00 00 00 00 00 00 83 [19:03:01]Write i2c OK [19:03:01]MH_I2C_Read... [19:03:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:01]Read from MH i2c: E2 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: E2 62 00 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: E2 62 00 E7 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 08 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [19: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 08 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:01]wFMCommunicate OK [19:03:01]SAM_PROTO_GetFieldsCounters done [19:03:01]requested_item shift.num is exist - process it [19:03:01]requested_item shift.opened is exist - process it [19:03:01]req_shift_opened [19:03:01]FM_GetShiftState [19:03:01]SAM_PROTO_GetShiftState [19:03:01]wFMCommunicate request_size=4 [19:03:01]MH_SAM_APDU [19:03:01]CAPDU: 80 13 01 00 [19:03:01]Write to MH i2c: E2 08 00 E8 20 80 13 01 00 00 00 00 00 85 [19:03:01]Write i2c OK [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: E2 [19:03:01]MH_I2C_Read... [19:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:01]Read from MH i2c: E2 0E 00 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: E2 0E 00 E8 20 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D2 [19:03:01]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:03:01]wFMCommunicate OK [19:03:01]SAM_PROTO_GetShiftState done [19:03:01]FM_GetShiftState done [19:03:01]req_shift_opened done [19:03:01]requested_item shift.open_date is exist - process it [19:03:01]req_shift_open_date [19:03:01]req_shift_open_date done [19:03:01]produce_requested_data done [19:03:01]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155656,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:03:01]process_action_free close_receipt [19:03:01]json_value_free [19:03:01]json_value_free done [19:03:01]process_json_proto returns [19:03:01]Send response to host [19:03:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155656,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:03:01]free response buf [19:03:01]execute_script done [19:03:01]execute_script returns [19:03:01]free content buf [19:03:01]Sock 9.Close socket [19:03:01]Sock 9.Thread stoped [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:29]accept exits with 8 [19:05:29]New connection [19:05:29]New thread 3066781028 created [19:05:29]Thread 3066637668 joined [19:05:29]Waiting for new connection... [19:05:29] Sock 8.Parse request [19:05:29]Sock 8.Check first char [19:05:29]Sock 8.First char is OK [19:05:29]request: POST /json_proto HTTP/1.0 [19:05:29]Method: POST [19:05:29]URL: /json_proto [19:05:29]Method is POST - this is cgi request [19:05:29]url: /json_proto [19:05:29]query_string will be loaded in cgi processing [19:05:29]execute_cgi json_proto POST (null) [19:05:29]execute_cgi path=json_proto method=POST [19:05:29]POST find Content-Length [19:05:29]Host: 172.17.63.3:8080 [19:05:29]Content-Length: 799 [19:05:29]Content-Type: application/json [19:05:29] [19:05:29]POST finish read [19:05:29]Found Content-Length = 799 [19:05:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949101", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:29]execute_script... [19:05:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949101", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:29]POST & json_proto [19:05:29]process_json_proto [19:05:29]json parsed OK: [19:05:29]protocol is kg_v1.0 [19:05:29]action value=close_receipt [19:05:29]process_action close_receipt [19:05:29]cmd_close_receipt [19:05:29]MH_GetDate [19:05:29]Write to MH i2c: F0 00 00 E9 20 F8 [19:05:29]Write i2c OK [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: F0 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: F0 09 00 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: F0 09 00 E9 20 00 7B 9A 1A 67 50 D1 6C 64 88 [19:05:29]GetLastDocTimeStamp 1729796580 [19:05:29]current date 1729796731 [19:05:29]FM_GetShiftState [19:05:29]SAM_PROTO_GetShiftState [19:05:29]wFMCommunicate request_size=4 [19:05:29]MH_SAM_APDU [19:05:29]CAPDU: 80 13 01 00 [19:05:29]Write to MH i2c: E2 08 00 EA 20 80 13 01 00 00 00 00 00 87 [19:05:29]Write i2c OK [19:05:29]MH_I2C_Read... [19:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:29]Read from MH i2c: E2 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: E2 0E 00 [19:05:29]MH_I2C_Read... [19:05:29]Read from MH i2c: E2 0E 00 EA 20 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D4 [19:05:29]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:05:29]wFMCommunicate OK [19:05:29]SAM_PROTO_GetShiftState done [19:05:29]FM_GetShiftState done [19:05:29]opened in 1729729836 [19:05:29]opened+sec_in_day 1729816236 [19:05:29]quantity*price = 0 [19:05:29]sum+1 = 1 [19:05:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 282 24.10.2024 19:05 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 3949101 ФМ: 0000000000871792 ФД: 155657 ФПД: 88363259498521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190531&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155657&fm=88363259498521&tin=02508201610067®Number=0000000000091693&sum=0 [19:05:31]StoreToDocumentArchive [19:05:31]shift 534 fd 155657 [19:05:31]save to /storage/0534/doc_00155657 [19:05:31]save last doc name /storage/0534/doc_00155657 to /storage/kkm_last_doc_name [19:05:31]save OK [19:05:31]Clear old archive folders... [19:05:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:31]tlvbuf is 01FEAF40 [19:05:31]SAM_PROTO_ClearQueue [19:05:31]wFMCommunicate request_size=4 [19:05:31]MH_SAM_APDU [19:05:31]CAPDU: 80 09 00 00 [19:05:31]Write to MH i2c: E2 08 00 F7 20 80 09 00 00 00 00 00 00 89 [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:31]Read from MH i2c: E2 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 03 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 03 00 F7 20 00 90 00 8B [19:05:31]RAPDU: 90 00 [19:05:31]wFMCommunicate OK [19:05:31]SAM_PROTO_ClearQueue done [19:05:31]KKMCreateOFDPacket [19:05:31]OFDProtocolAddRootSTLVToBuf [19:05:31]FM_MakeSignedData [19:05:31]FM_MakeSignedData [19:05:31]SAM_PROTO_SignData [19:05:31]wFMCommunicate request_size=4 [19:05:31]MH_SAM_APDU [19:05:31]CAPDU: 80 0D 01 02 [19:05:31]Write to MH i2c: E2 08 00 F8 20 80 0D 01 02 00 00 00 00 91 [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:31]Read from MH i2c: E2 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 03 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 03 00 F8 20 00 90 00 8C [19:05:31]RAPDU: 90 00 [19:05:31]wFMCommunicate OK [19:05:31]wFMCommunicate request_size=255 [19:05:31]MH_SAM_APDU [19:05:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 01 00 00 F4 03 04 00 7B 9A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 60 02 00 35 04 06 00 50 [19:05:31]Write to MH i2c: E2 02 01 F9 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 1A 01 00 00 F4 03 04 00 7B 9A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 60 02 00 35 04 06 00 50 00 00 92 [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:31]Read from MH i2c: E2 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 03 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 03 00 F9 20 00 90 00 8D [19:05:31]RAPDU: 90 00 [19:05:31]wFMCommunicate OK [19:05:31]wFMCommunicate request_size=10 [19:05:31]MH_SAM_APDU [19:05:31]CAPDU: 80 0D 02 02 05 5D AC B1 90 19 [19:05:31]Write to MH i2c: E2 0D 00 FA 20 80 0D 02 02 05 00 5D AC B1 90 19 00 00 01 [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:31]Read from MH i2c: E2 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 03 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 03 00 FA 20 00 90 00 8E [19:05:31]RAPDU: 90 00 [19:05:31]wFMCommunicate OK [19:05:31]wFMCommunicate request_size=4 [19:05:31]MH_SAM_APDU [19:05:31]CAPDU: 80 0D 03 02 [19:05:31]Write to MH i2c: E2 08 00 FB 20 80 0D 03 02 00 00 00 00 96 [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:31]Read from MH i2c: E2 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 0B 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 0B 00 FB 20 00 69 02 DE C5 1A 64 C4 AF 90 00 96 [19:05:31]RAPDU: 69 02 DE C5 1A 64 C4 AF 90 00 [19:05:31]wFMCommunicate OK [19:05:31]SAM_PROTO_SignData done [19:05:31]FM_MakeSignedData done [19:05:31]CreateOFDProtocolMessage [19:05:31]wFMCommunicate request_size=4 [19:05:31]MH_SAM_APDU [19:05:31]CAPDU: 80 11 00 00 [19:05:31]Write to MH i2c: E2 08 00 FC 20 80 11 00 00 00 00 00 00 96 [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:31]Read from MH i2c: E2 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 17 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: E2 17 00 FC 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EB [19:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:05:31]wFMCommunicate OK [19:05:31]CreateOFDProtocolMessage done [19:05:31]OFDSenderStorePacket 155657 [19:05:31]StoreOFDPacket docnum=155657 [19:05:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A1 00 07 01 14 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 01 00 00 F4 03 04 00 7B 9A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 60 02 00 35 04 06 00 50 5D AC B1 90 19 69 02 DE C5 1A 64 C4 AF [19:05:31]CheckFolder [19:05:31]dirname=/storage/ofd_packets [19:05:31]CheckFolder done [19:05:31]ProducePacketName [19:05:31]name=ofd_packets/00155657 [19:05:31]NVStorageSaveData ofd_packets/00155657 [19:05:31]File name is /storage/ofd_packets/00155657 [19:05:31]Write 301 bytes [19:05:31]NVStorageSaveData done [19:05:31]OFDSenderStorePacket done [19:05:31]KKMCreateOFDPacket done [19:05:31]NVStorageSaveData kkm_last_timestamp [19:05:31]File name is /storage/kkm_last_timestamp [19:05:31]Write 4 bytes [19:05:31]NVStorageSaveData done [19:05:31]ExternCall_PrintAddStr [19:05:31]wPrintStart [19:05:31]Write to MH i2c: 01 00 00 FD 20 1D [19:05:31]Write i2c OK [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: 01 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: 01 07 00 [19:05:31]MH_I2C_Read... [19:05:31]Read from MH i2c: 01 07 00 FD 20 00 00 00 00 00 FF 0F 32 [19:05:31]RasterBufferAndPrint [19:05:31]line Счет N : (1)98463 [19:05:31]line ИНН: 02508201610067 [19:05:31]line Контрольно-Кассовый Чек [19:05:31]line ПРОДАЖА [19:05:31]line ТРК (МРК, ГНК) : 21 [19:05:31]line Товар: 2710124130 [19:05:31]line Аи-92-К-5 [19:05:31]line 20.000 * 0.00 [19:05:31]line = 0.00 [19:05:31]line НДС 12% НСП 1% [19:05:31]line > о реализуемом товаре [19:05:31]line ИТОГО: 0.00 [19:05:31]line НСП 1% : 0.00 [19:05:31]line НДС 12% : 0.00 [19:05:31]line Наличными: 0.00 [19:05:31]line Безнал.: 0.00 [19:05:31]line Место: АЗС № 143 "Партнер Нефть" [19:05:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:05:31]line СНО: Общий режим [19:05:31]line Чек 282 24.10.2024 19:05 [19:05:31]line Смена: 534 ФФД: 1.0 [19:05:31]line ЗНМ: 0300000096 [19:05:31]line РНМ: 0000000000091693 [19:05:31]line Версия ККМ: 001 [19:05:31]line Талоны: Топливные Талоны [19:05:31]line 3949101 [19:05:31]line ФМ: 0000000000871792 [19:05:31]line ФД: 155657 [19:05:31]line ФПД: 88363259498521 [19:05:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190531&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155657&fm=88363259498521&tin=02508201610067®Number=0000000000091693&sum=0 [19:05:31]written 0, free lines is 4095 [19:05:31]OFD Sender: Processing packet 155657 [packets to send 31, broken 30] [19:05:31]ProducePacketName [19:05:31]name=ofd_packets/00155657 [19:05:31]OFD Sender: To server: pG, [19:05:31]CommunicateWithHost lk.salyk.kg:30040 [19:05:31]ConnectInit lk.salyk.kg [19:05:32]Connected sock=10 [19:05:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A1 00 07 01 14 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 01 00 00 F4 03 04 00 7B 9A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 60 02 00 35 04 06 00 50 5D AC B1 90 19 69 02 DE C5 1A 64 C4 AF [19:05:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AB DE 47 00 56 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 39 32 10 04 04 00 09 60 02 00 F4 03 04 00 F3 3F 1A 67 B6 04 01 00 00 BC 5D 47 B7 9E 7F B3 29 [19:05:32]CommunicateWithHost err = 0 [19:05:32]CheckOFDResponse [19:05:32]1017 (14) - 77093643461234 [19:05:32]1041 (16) - 0000000000871792 [19:05:32]1040 (4) - 155657 [19:05:32]1012 (4) - 24.10.2024 12:39 [19:05:32]1206 (1) - 0 [19:05:32]OFD Sender: Remove packet 155657 [19:05:32]ProducePacketName [19:05:32]name=ofd_packets/00155657 [19:05:32]NVStorageDeleteData [19:05:32]Write to MH i2c: 01 00 00 27 21 48 [19:05:32]Write i2c OK [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 07 00 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: 01 07 00 27 21 00 00 00 00 00 ED 0C 48 [19:05:32]RasterBufferAndPrint [19:05:32]line [19:05:32]line [19:05:32]line [19:05:32]line [19:05:32]line [19:05:32]written 0, free lines is 3315 [19:05:32]process_action close_receipt done [19:05:32]requested_data is exist [19:05:32]produce_requested_data [19:05:32]requested_item fm.sn is exist - process it [19:05:32]wFMCommunicate request_size=4 [19:05:32]MH_SAM_APDU [19:05:32]CAPDU: 80 11 00 00 [19:05:32]Write to MH i2c: E2 08 00 2E 21 80 11 00 00 00 00 00 00 C9 [19:05:32]Write i2c OK [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: E2 [19:05:32]MH_I2C_Read... [19:05:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:32]Read from MH i2c: E2 17 00 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: E2 17 00 2E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1E [19:05:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:05:32]wFMCommunicate OK [19:05:32]requested_item fd.num is exist - process it [19:05:32]SAM_PROTO_GetFieldsCounters [19:05:32]wFMCommunicate request_size=4 [19:05:32]MH_SAM_APDU [19:05:32]CAPDU: 80 13 00 00 [19:05:32]Write to MH i2c: E2 08 00 2F 21 80 13 00 00 00 00 00 00 CC [19:05:32]Write i2c OK [19:05:32]MH_I2C_Read... [19:05:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:32]Read from MH i2c: E2 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: E2 62 00 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: E2 62 00 2F 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 09 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [19: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 09 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:32]wFMCommunicate OK [19:05:32]SAM_PROTO_GetFieldsCounters done [19:05:32]requested_item shift.num is exist - process it [19:05:32]requested_item shift.opened is exist - process it [19:05:32]req_shift_opened [19:05:32]FM_GetShiftState [19:05:32]SAM_PROTO_GetShiftState [19:05:32]wFMCommunicate request_size=4 [19:05:32]MH_SAM_APDU [19:05:32]CAPDU: 80 13 01 00 [19:05:32]Write to MH i2c: E2 08 00 30 21 80 13 01 00 00 00 00 00 CE [19:05:32]Write i2c OK [19:05:32]MH_I2C_Read... [19:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:32]Read from MH i2c: E2 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: E2 0E 00 [19:05:32]MH_I2C_Read... [19:05:32]Read from MH i2c: E2 0E 00 30 21 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1B [19:05:32]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:05:32]wFMCommunicate OK [19:05:32]SAM_PROTO_GetShiftState done [19:05:32]FM_GetShiftState done [19:05:32]req_shift_opened done [19:05:32]requested_item shift.open_date is exist - process it [19:05:32]req_shift_open_date [19:05:32]req_shift_open_date done [19:05:32]produce_requested_data done [19:05:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155657,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:05:32]process_action_free close_receipt [19:05:32]json_value_free [19:05:32]json_value_free done [19:05:32]process_json_proto returns [19:05:32]Send response to host [19:05:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155657,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:05:32]free response buf [19:05:32]execute_script done [19:05:32]execute_script returns [19:05:32]free content buf [19:05:32]Sock 8.Close socket [19:05:32]Sock 8.Thread stoped [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]accept exits with 9 [19:06:47]New connection [19:06:47]New thread 3066637668 created [19:06:47]Thread 3066781028 joined [19:06:47]Waiting for new connection... [19:06:47] Sock 9.Parse request [19:06:47]Sock 9.Check first char [19:06:47]Sock 9.First char is OK [19:06:47]request: POST /json_proto HTTP/1.0 [19:06:47]Method: POST [19:06:47]URL: /json_proto [19:06:47]Method is POST - this is cgi request [19:06:47]url: /json_proto [19:06:47]query_string will be loaded in cgi processing [19:06:47]execute_cgi json_proto POST (null) [19:06:47]execute_cgi path=json_proto method=POST [19:06:47]POST find Content-Length [19:06:47]Host: 172.17.63.3:8080 [19:06:47]Content-Length: 796 [19:06:47]Content-Type: application/json [19:06:47] [19:06:47]POST finish read [19:06:47]Found Content-Length = 796 [19:06:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4754603", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:47]execute_script... [19:06: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)98464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4754603", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:47]POST & json_proto [19:06:47]process_json_proto [19:06:47]json parsed OK: [19:06:47]protocol is kg_v1.0 [19:06:47]action value=close_receipt [19:06:47]process_action close_receipt [19:06:47]cmd_close_receipt [19:06:47]MH_GetDate [19:06:47]Write to MH i2c: F0 00 00 31 21 41 [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: F0 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: F0 09 00 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: F0 09 00 31 21 00 C8 9A 1A 67 50 D1 6C 64 1E [19:06:47]GetLastDocTimeStamp 1729796731 [19:06:47]current date 1729796808 [19:06:47]FM_GetShiftState [19:06:47]SAM_PROTO_GetShiftState [19:06:47]wFMCommunicate request_size=4 [19:06:47]MH_SAM_APDU [19:06:47]CAPDU: 80 13 01 00 [19:06:47]Write to MH i2c: E2 08 00 32 21 80 13 01 00 00 00 00 00 D0 [19:06:47]Write i2c OK [19:06:47]MH_I2C_Read... [19:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:47]Read from MH i2c: E2 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 0E 00 [19:06:47]MH_I2C_Read... [19:06:47]Read from MH i2c: E2 0E 00 32 21 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1D [19:06:47]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:06:47]wFMCommunicate OK [19:06:47]SAM_PROTO_GetShiftState done [19:06:47]FM_GetShiftState done [19:06:47]opened in 1729729836 [19:06:47]opened+sec_in_day 1729816236 [19:06:47]quantity*price = 0 [19:06:47]sum+1 = 1 [19:06:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 283 24.10.2024 19:06 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4754603 ФМ: 0000000000871792 ФД: 155658 ФПД: 209748200470326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190649&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155658&fm=209748200470326&tin=02508201610067®Number=0000000000091693&sum=0 [19:06:48]StoreToDocumentArchive [19:06:48]shift 534 fd 155658 [19:06:48]save to /storage/0534/doc_00155658 [19:06:48]save last doc name /storage/0534/doc_00155658 to /storage/kkm_last_doc_name [19:06:48]save OK [19:06:48]Clear old archive folders... [19:06:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:06:48]tlvbuf is 01F534C0 [19:06:48]SAM_PROTO_ClearQueue [19:06:48]wFMCommunicate request_size=4 [19:06:48]MH_SAM_APDU [19:06:48]CAPDU: 80 09 00 00 [19:06:48]Write to MH i2c: E2 08 00 3F 21 80 09 00 00 00 00 00 00 D2 [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:48]Read from MH i2c: E2 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 03 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 03 00 3F 21 00 90 00 D4 [19:06:48]RAPDU: 90 00 [19:06:48]wFMCommunicate OK [19:06:48]SAM_PROTO_ClearQueue done [19:06:48]KKMCreateOFDPacket [19:06:48]OFDProtocolAddRootSTLVToBuf [19:06:48]FM_MakeSignedData [19:06:48]FM_MakeSignedData [19:06:48]SAM_PROTO_SignData [19:06:48]wFMCommunicate request_size=4 [19:06:48]MH_SAM_APDU [19:06:48]CAPDU: 80 0D 01 02 [19:06:48]Write to MH i2c: E2 08 00 40 21 80 0D 01 02 00 00 00 00 DA [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:48]Read from MH i2c: E2 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 03 00 [19:06:48]MH_I2C_Read... [19:06:48]Read from MH i2c: E2 03 00 40 21 00 90 00 D5 [19:06:48]RAPDU: 90 00 [19:06:48]wFMCommunicate OK [19:06:48]wFMCommunicate request_size=255 [19:06:48]MH_SAM_APDU [19:06:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 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 1B 01 00 00 F4 03 04 00 C9 9A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 60 02 00 35 04 06 00 BE C3 CE FB [19:06:48]Write to MH i2c: E2 02 01 41 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 C9 9A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 60 02 00 35 04 06 00 BE C3 CE FB 00 00 1D [19:06:48]Write i2c OK [19:06:48]MH_I2C_Read... [19:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:49]Read from MH i2c: E2 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 03 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 03 00 41 21 00 90 00 D6 [19:06:49]RAPDU: 90 00 [19:06:49]wFMCommunicate OK [19:06:49]wFMCommunicate request_size=7 [19:06:49]MH_SAM_APDU [19:06:49]CAPDU: 80 0D 02 02 02 37 36 [19:06:49]Write to MH i2c: E2 0A 00 42 21 80 0D 02 02 02 00 37 36 00 00 4E [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:49]Read from MH i2c: E2 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 03 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 03 00 42 21 00 90 00 D7 [19:06:49]RAPDU: 90 00 [19:06:49]wFMCommunicate OK [19:06:49]wFMCommunicate request_size=4 [19:06:49]MH_SAM_APDU [19:06:49]CAPDU: 80 0D 03 02 [19:06:49]Write to MH i2c: E2 08 00 43 21 80 0D 03 02 00 00 00 00 DF [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:49]Read from MH i2c: E2 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 0B 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 0B 00 43 21 00 BA CC 46 F0 DF 7C A1 5F 90 00 F7 [19:06:49]RAPDU: BA CC 46 F0 DF 7C A1 5F 90 00 [19:06:49]wFMCommunicate OK [19:06:49]SAM_PROTO_SignData done [19:06:49]FM_MakeSignedData done [19:06:49]CreateOFDProtocolMessage [19:06:49]wFMCommunicate request_size=4 [19:06:49]MH_SAM_APDU [19:06:49]CAPDU: 80 11 00 00 [19:06:49]Write to MH i2c: E2 08 00 44 21 80 11 00 00 00 00 00 00 DF [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:49]Read from MH i2c: E2 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 17 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: E2 17 00 44 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 34 [19:06:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:06:49]wFMCommunicate OK [19:06:49]CreateOFDProtocolMessage done [19:06:49]OFDSenderStorePacket 155658 [19:06:49]StoreOFDPacket docnum=155658 [19:06:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 37 1D 04 01 21 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 C9 9A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 60 02 00 35 04 06 00 BE C3 CE FB 37 36 BA CC 46 F0 DF 7C A1 5F [19:06:49]CheckFolder [19:06:49]dirname=/storage/ofd_packets [19:06:49]CheckFolder done [19:06:49]ProducePacketName [19:06:49]name=ofd_packets/00155658 [19:06:49]NVStorageSaveData ofd_packets/00155658 [19:06:49]File name is /storage/ofd_packets/00155658 [19:06:49]Write 298 bytes [19:06:49]NVStorageSaveData done [19:06:49]OFDSenderStorePacket done [19:06:49]KKMCreateOFDPacket done [19:06:49]NVStorageSaveData kkm_last_timestamp [19:06:49]File name is /storage/kkm_last_timestamp [19:06:49]Write 4 bytes [19:06:49]NVStorageSaveData done [19:06:49]ExternCall_PrintAddStr [19:06:49]wPrintStart [19:06:49]Write to MH i2c: 01 00 00 45 21 66 [19:06:49]Write i2c OK [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: 01 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: 01 07 00 [19:06:49]MH_I2C_Read... [19:06:49]Read from MH i2c: 01 07 00 45 21 00 00 00 00 00 FF 0F 7B [19:06:49]RasterBufferAndPrint [19:06:49]line Счет N : (1)98464 [19:06:49]line ИНН: 02508201610067 [19:06:49]line Контрольно-Кассовый Чек [19:06:49]line ПРОДАЖА [19:06:49]line ТРК (МРК, ГНК) : 32 [19:06:49]line Товар: 2710194210 [19:06:49]line ДТ-К-5 [19:06:49]line 50.000 * 0.00 [19:06:49]line = 0.00 [19:06:49]line НДС 12% НСП 1% [19:06:49]line > о реализуемом товаре [19:06:49]line ИТОГО: 0.00 [19:06:49]line НСП 1% : 0.00 [19:06:49]line НДС 12% : 0.00 [19:06:49]line Наличными: 0.00 [19:06:49]line Безнал.: 0.00 [19:06:49]line Место: АЗС № 143 "Партнер Нефть" [19:06:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:06:49]line СНО: Общий режим [19:06:49]line Чек 283 24.10.2024 19:06 [19:06:49]line Смена: 534 ФФД: 1.0 [19:06:49]line ЗНМ: 0300000096 [19:06:49]line РНМ: 0000000000091693 [19:06:49]line Версия ККМ: 001 [19:06:49]line Талоны: Топливные Талоны [19:06:49]line 4754603 [19:06:49]line ФМ: 0000000000871792 [19:06:49]line ФД: 155658 [19:06:49]line ФПД: 209748200470326 [19:06:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190649&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155658&fm=209748200470326&tin=02508201610067®Number=0000000000091693&sum=0 [19:06:49]OFD Sender: Processing packet 155658 [packets to send 31, broken 30] [19:06:49]ProducePacketName [19:06:49]name=ofd_packets/00155658 [19:06:49]OFD Sender: To server: pG, [19:06:49]CommunicateWithHost lk.salyk.kg:30040 [19:06:49]ConnectInit lk.salyk.kg [19:06:49]written 0, free lines is 4095 [19:06:49]Connected sock=8 [19:06: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 39 32 0C 01 00 00 37 1D 04 01 21 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 C9 9A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 60 02 00 35 04 06 00 BE C3 CE FB 37 36 BA CC 46 F0 DF 7C A1 5F [19:06: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 39 32 4F 00 00 00 24 43 47 00 40 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 39 32 10 04 04 00 0A 60 02 00 F4 03 04 00 41 40 1A 67 B6 04 01 00 00 27 9E 15 36 27 0D 64 C8 [19:06:49]CommunicateWithHost err = 0 [19:06:49]CheckOFDResponse [19:06:49]1017 (14) - 77093643461234 [19:06:49]1041 (16) - 0000000000871792 [19:06:49]1040 (4) - 155658 [19:06:49]1012 (4) - 24.10.2024 12:40 [19:06:49]1206 (1) - 0 [19:06:49]OFD Sender: Remove packet 155658 [19:06:49]ProducePacketName [19:06:49]name=ofd_packets/00155658 [19:06:49]NVStorageDeleteData [19:06:50]Write to MH i2c: 01 00 00 6F 21 90 [19:06:50]Write i2c OK [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: 01 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: 01 07 00 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: 01 07 00 6F 21 00 00 00 00 00 F2 0C 95 [19:06:50]RasterBufferAndPrint [19:06:50]line [19:06:50]line [19:06:50]line [19:06:50]line [19:06:50]line [19:06:50]written 0, free lines is 3319 [19:06:50]process_action close_receipt done [19:06:50]requested_data is exist [19:06:50]produce_requested_data [19:06:50]requested_item fm.sn is exist - process it [19:06:50]wFMCommunicate request_size=4 [19:06:50]MH_SAM_APDU [19:06:50]CAPDU: 80 11 00 00 [19:06:50]Write to MH i2c: E2 08 00 76 21 80 11 00 00 00 00 00 00 11 [19:06:50]Write i2c OK [19:06:50]MH_I2C_Read... [19:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:50]Read from MH i2c: E2 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 17 00 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 17 00 76 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 66 [19:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:06:50]wFMCommunicate OK [19:06:50]requested_item fd.num is exist - process it [19:06:50]SAM_PROTO_GetFieldsCounters [19:06:50]wFMCommunicate request_size=4 [19:06:50]MH_SAM_APDU [19:06:50]CAPDU: 80 13 00 00 [19:06:50]Write to MH i2c: E2 08 00 77 21 80 13 00 00 00 00 00 00 14 [19:06:50]Write i2c OK [19:06:50]MH_I2C_Read... [19:06:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:50]Read from MH i2c: E2 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 62 00 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 62 00 77 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0A 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [19:06:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0A 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:50]wFMCommunicate OK [19:06:50]SAM_PROTO_GetFieldsCounters done [19:06:50]requested_item shift.num is exist - process it [19:06:50]requested_item shift.opened is exist - process it [19:06:50]req_shift_opened [19:06:50]FM_GetShiftState [19:06:50]SAM_PROTO_GetShiftState [19:06:50]wFMCommunicate request_size=4 [19:06:50]MH_SAM_APDU [19:06:50]CAPDU: 80 13 01 00 [19:06:50]Write to MH i2c: E2 08 00 78 21 80 13 01 00 00 00 00 00 16 [19:06:50]Write i2c OK [19:06:50]MH_I2C_Read... [19:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:50]Read from MH i2c: E2 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 0E 00 [19:06:50]MH_I2C_Read... [19:06:50]Read from MH i2c: E2 0E 00 78 21 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 63 [19:06:50]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:06:50]wFMCommunicate OK [19:06:50]SAM_PROTO_GetShiftState done [19:06:50]FM_GetShiftState done [19:06:50]req_shift_opened done [19:06:50]requested_item shift.open_date is exist - process it [19:06:50]req_shift_open_date [19:06:50]req_shift_open_date done [19:06:50]produce_requested_data done [19:06:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155658,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:06:50]process_action_free close_receipt [19:06:50]json_value_free [19:06:50]json_value_free done [19:06:50]process_json_proto returns [19:06:50]Send response to host [19:06:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155658,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:06:50]free response buf [19:06:50]execute_script done [19:06:50]execute_script returns [19:06:50]free content buf [19:06:50]Sock 9.Close socket [19:06:50]Sock 9.Thread stoped [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:12]accept exits with 10 [19:07:12]New connection [19:07:12]New thread 3066781028 created [19:07:12]Thread 3066637668 joined [19:07:12]Waiting for new connection... [19:07:12] Sock 10.Parse request [19:07:12]Sock 10.Check first char [19:07:12]Sock 10.First char is OK [19:07:12]request: POST /json_proto HTTP/1.0 [19:07:12]Method: POST [19:07:12]URL: /json_proto [19:07:12]Method is POST - this is cgi request [19:07:12]url: /json_proto [19:07:12]query_string will be loaded in cgi processing [19:07:12]execute_cgi json_proto POST (null) [19:07:12]execute_cgi path=json_proto method=POST [19:07:12]POST find Content-Length [19:07:12]Host: 172.17.63.3:8080 [19:07:12]Content-Length: 681 [19:07:12]Content-Type: application/json [19:07:12] [19:07:12]POST finish read [19:07:12]Found Content-Length = 681 [19:07:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:12]execute_script... [19: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)98465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:12]POST & json_proto [19:07:12]process_json_proto [19:07:12]json parsed OK: [19:07:12]protocol is kg_v1.0 [19:07:12]action value=close_receipt [19:07:12]process_action close_receipt [19:07:12]cmd_close_receipt [19:07:12]MH_GetDate [19:07:12]Write to MH i2c: F0 00 00 79 21 89 [19:07:12]Write i2c OK [19:07:12]MH_I2C_Read... [19:07:12]Read from MH i2c: F0 [19:07:12]MH_I2C_Read... [19:07:12]Read from MH i2c: F0 09 00 [19:07:12]MH_I2C_Read... [19:07:12]Read from MH i2c: F0 09 00 79 21 00 E1 9A 1A 67 50 D1 6C 64 7F [19:07:12]GetLastDocTimeStamp 1729796809 [19:07:12]current date 1729796833 [19:07:12]FM_GetShiftState [19:07:12]SAM_PROTO_GetShiftState [19:07:12]wFMCommunicate request_size=4 [19:07:12]MH_SAM_APDU [19:07:12]CAPDU: 80 13 01 00 [19:07:12]Write to MH i2c: E2 08 00 7A 21 80 13 01 00 00 00 00 00 18 [19:07:12]Write i2c OK [19:07:12]MH_I2C_Read... [19:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:12]Read from MH i2c: E2 [19:07:12]MH_I2C_Read... [19:07:12]Read from MH i2c: E2 0E 00 [19:07:12]MH_I2C_Read... [19:07:12]Read from MH i2c: E2 0E 00 7A 21 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 65 [19:07:12]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:07:12]wFMCommunicate OK [19:07:12]SAM_PROTO_GetShiftState done [19:07:12]FM_GetShiftState done [19:07:12]opened in 1729729836 [19:07:12]opened+sec_in_day 1729816236 [19:07:12]quantity*price = 100015 [19:07:12]sum+1 = 100017 [19:07:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 284 24.10.2024 19:07 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155659 ФПД: 78538996154341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190714&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155659&fm=78538996154341&tin=02508201610067®Number=0000000000091693&sum=100000 [19:07:13]StoreToDocumentArchive [19:07:13]shift 534 fd 155659 [19:07:13]save to /storage/0534/doc_00155659 [19:07:13]save last doc name /storage/0534/doc_00155659 to /storage/kkm_last_doc_name [19:07:13]save OK [19:07:13]Clear old archive folders... [19:07:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:07:13]tlvbuf is 01FBE990 [19:07:13]SAM_PROTO_ClearQueue [19:07:13]wFMCommunicate request_size=4 [19:07:13]MH_SAM_APDU [19:07:13]CAPDU: 80 09 00 00 [19:07:13]Write to MH i2c: E2 08 00 87 21 80 09 00 00 00 00 00 00 1A [19:07:13]Write i2c OK [19:07:13]MH_I2C_Read... [19:07:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:13]Read from MH i2c: E2 [19:07:13]MH_I2C_Read... [19:07:13]Read from MH i2c: E2 03 00 [19:07:13]MH_I2C_Read... [19:07:13]Read from MH i2c: E2 03 00 87 21 00 90 00 1C [19:07:13]RAPDU: 90 00 [19:07:13]wFMCommunicate OK [19:07:13]SAM_PROTO_ClearQueue done [19:07:13]KKMCreateOFDPacket [19:07:13]OFDProtocolAddRootSTLVToBuf [19:07:13]FM_MakeSignedData [19:07:13]FM_MakeSignedData [19:07:13]SAM_PROTO_SignData [19:07:13]wFMCommunicate request_size=4 [19:07:13]MH_SAM_APDU [19:07:13]CAPDU: 80 0D 01 02 [19:07:13]Write to MH i2c: E2 08 00 88 21 80 0D 01 02 00 00 00 00 22 [19:07:13]Write i2c OK [19:07:13]MH_I2C_Read... [19:07:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:13]Read from MH i2c: E2 [19:07:13]MH_I2C_Read... [19:07:13]Read from MH i2c: E2 03 00 [19:07:13]MH_I2C_Read... [19:07:13]Read from MH i2c: E2 03 00 88 21 00 90 00 1D [19:07:13]RAPDU: 90 00 [19:07:13]wFMCommunicate OK [19:07:13]wFMCommunicate request_size=255 [19:07:13]MH_SAM_APDU [19: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 E2 9A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 60 02 00 35 04 06 00 47 [19:07:13]Write to MH i2c: E2 02 01 89 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 E2 9A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 60 02 00 35 04 06 00 47 00 00 96 [19:07:13]Write i2c OK [19:07:13]MH_I2C_Read... [19:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:14]Read from MH i2c: E2 [19:07:14]MH_I2C_Read... [19:07:14]Read from MH i2c: E2 03 00 [19:07:14]MH_I2C_Read... [19:07:14]Read from MH i2c: E2 03 00 89 21 00 90 00 1E [19:07:14]RAPDU: 90 00 [19:07:14]wFMCommunicate OK [19:07:14]wFMCommunicate request_size=10 [19:07:14]MH_SAM_APDU [19:07:14]CAPDU: 80 0D 02 02 05 6E 48 F7 7F E5 [19:07:14]Write to MH i2c: E2 0D 00 8A 21 80 0D 02 02 05 00 6E 48 F7 7F E5 00 00 40 [19:07:14]Write i2c OK [19:07:14]MH_I2C_Read... [19:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:14]Read from MH i2c: E2 [19:07:14]MH_I2C_Read... [19:07:14]Read from MH i2c: E2 03 00 [19:07:14]MH_I2C_Read... [19:07:14]Read from MH i2c: E2 03 00 8A 21 00 90 00 1F [19:07:14]RAPDU: 90 00 [19:07:14]wFMCommunicate OK [19:07:14]wFMCommunicate request_size=4 [19:07:14]MH_SAM_APDU [19:07:14]CAPDU: 80 0D 03 02 [19:07:14]Write to MH i2c: E2 08 00 8B 21 80 0D 03 02 00 00 00 00 27 [19:07:14]Write i2c OK [19:07:14]MH_I2C_Read... [19:07:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:14]Read from MH i2c: E2 [19:07:14]MH_I2C_Read... [19:07:14]Read from MH i2c: E2 0B 00 [19:07:14]MH_I2C_Read... [19:07:14]Read from MH i2c: E2 0B 00 8B 21 00 AD B4 28 30 39 1D 8C DE 90 00 A1 [19:07:14]RAPDU: AD B4 28 30 39 1D 8C DE 90 00 [19:07:14]wFMCommunicate OK [19:07:14]SAM_PROTO_SignData done [19:07:14]FM_MakeSignedData done [19:07:14]CreateOFDProtocolMessage [19:07:14]wFMCommunicate request_size=4 [19:07:14]MH_SAM_APDU [19:07:14]CAPDU: 80 11 00 00 [19:07:14]Write to MH i2c: E2 08 00 8C 21 80 11 00 00 00 00 00 00 27 [19:07:14]Write i2c OK [19:07:14]MH_I2C_Read... [19:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:14]Read from MH i2c: E2 [19:07:14]MH_I2C_Read... [19:07:14]Read from MH i2c: E2 17 00 [19:07:14]MH_I2C_Read... [19:07:14]Read from MH i2c: E2 17 00 8C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7C [19:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:07:14]wFMCommunicate OK [19:07:14]CreateOFDProtocolMessage done [19:07:14]OFDSenderStorePacket 155659 [19:07:14]StoreOFDPacket docnum=155659 [19:07:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DB DC 07 01 B1 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 E2 9A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 60 02 00 35 04 06 00 47 6E 48 F7 7F E5 AD B4 28 30 39 1D 8C DE [19:07:14]CheckFolder [19:07:14]dirname=/storage/ofd_packets [19:07:14]CheckFolder done [19:07:14]ProducePacketName [19:07:14]name=ofd_packets/00155659 [19:07:14]NVStorageSaveData ofd_packets/00155659 [19:07:14]File name is /storage/ofd_packets/00155659 [19:07:14]Write 301 bytes [19:07:14]NVStorageSaveData done [19:07:14]OFDSenderStorePacket done [19:07:14]KKMCreateOFDPacket done [19:07:14]NVStorageSaveData kkm_last_timestamp [19:07:14]File name is /storage/kkm_last_timestamp [19:07:14]Write 4 bytes [19:07:14]NVStorageSaveData done [19:07:14]ExternCall_PrintAddStr [19:07:14]wPrintStart [19:07:14]Write to MH i2c: 01 00 00 8D 21 AE [19:07:14]Write i2c OK [19:07:14]MH_I2C_Read... [19:07:14]Read from MH i2c: 01 [19:07:14]MH_I2C_Read... [19:07:14]Read from MH i2c: 01 07 00 [19:07:14]MH_I2C_Read... [19:07:14]Read from MH i2c: 01 07 00 8D 21 00 00 00 00 00 FF 0F C3 [19:07:14]RasterBufferAndPrint [19:07:14]line Счет N : (1)98465 [19:07:14]line ИНН: 02508201610067 [19:07:14]line Контрольно-Кассовый Чек [19:07:14]line ПРОДАЖА [19:07:14]line ТРК (МРК, ГНК) : 21 [19:07:14]line Товар: 2710124130 [19:07:14]line Аи-92-К-5 [19:07:14]line 14.950 * 66.90 [19:07:14]line = 1000.16 [19:07:14]line НДС 12% НСП 1% [19:07:14]line > о реализуемом товаре [19:07:14]line ОКРУГЛЕНИЕ: -0.16 [19:07:14]line ИТОГО: 1000.00 [19:07:14]line Внесено: 1000.00 [19:07:14]line СДАЧА: 0.00 [19:07:14]line НСП 1% : 8.85 [19:07:14]line НДС 12% : 106.21 [19:07:14]line Наличными: 1000.00 [19:07:14]line Безнал.: 0.00 [19:07:14]line Место: АЗС № 143 "Партнер Нефть" [19:07:14]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:07:14]line СНО: Общий режим [19:07:14]line Чек 284 24.10.2024 19:07 [19:07:14]line Смена: 534 ФФД: 1.0 [19:07:14]line ЗНМ: 0300000096 [19:07:14]line РНМ: 0000000000091693 [19:07:14]line Версия ККМ: 001 [19:07:14]line ФМ: 0000000000871792 [19:07:14]line ФД: 155659 [19:07:14]line ФПД: 78538996154341 [19:07:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190714&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155659&fm=78538996154341&tin=02508201610067®Number=0000000000091693&sum=100000 [19:07:14]OFD Sender: Processing packet 155659 [packets to send 31, broken 30] [19:07:14]ProducePacketName [19:07:14]name=ofd_packets/00155659 [19:07:14]OFD Sender: To server: pG, [19:07:14]CommunicateWithHost lk.salyk.kg:30040 [19:07:14]ConnectInit lk.salyk.kg [19:07:14]written 0, free lines is 4095 [19:07:14]Connected sock=9 [19: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 39 32 0F 01 00 00 DB DC 07 01 B1 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 E2 9A 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 60 02 00 35 04 06 00 47 6E 48 F7 7F E5 AD B4 28 30 39 1D 8C DE [19: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 39 32 4F 00 00 00 98 90 47 00 E5 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 60 02 00 F4 03 04 00 5A 40 1A 67 B6 04 01 00 00 56 FD 29 D5 71 D5 BA 4F [19:07:14]CommunicateWithHost err = 0 [19:07:14]CheckOFDResponse [19:07:14]1017 (14) - 77093643461234 [19:07:14]1041 (16) - 0000000000871792 [19:07:14]1040 (4) - 155659 [19:07:14]1012 (4) - 24.10.2024 12:40 [19:07:14]1206 (1) - 0 [19:07:14]OFD Sender: Remove packet 155659 [19:07:14]ProducePacketName [19:07:14]name=ofd_packets/00155659 [19:07:14]NVStorageDeleteData [19:07:15]Write to MH i2c: 01 00 00 B8 21 D9 [19:07:15]Write i2c OK [19:07:15]MH_I2C_Read... [19:07:15]Read from MH i2c: 01 [19:07:15]MH_I2C_Read... [19:07:15]Read from MH i2c: 01 07 00 [19:07:15]MH_I2C_Read... [19:07:15]Read from MH i2c: 01 07 00 B8 21 00 00 00 00 00 E4 0C D0 [19:07:15]RasterBufferAndPrint [19:07:15]line [19:07:15]line [19:07:15]line [19:07:15]line [19:07:15]line [19:07:15]written 0, free lines is 3306 [19:07:15]process_action close_receipt done [19:07:15]requested_data is exist [19:07:15]produce_requested_data [19:07:15]requested_item fm.sn is exist - process it [19:07:15]wFMCommunicate request_size=4 [19:07:15]MH_SAM_APDU [19:07:15]CAPDU: 80 11 00 00 [19:07:15]Write to MH i2c: E2 08 00 BF 21 80 11 00 00 00 00 00 00 5A [19:07:15]Write i2c OK [19:07:15]MH_I2C_Read... [19:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:15]Read from MH i2c: E2 [19:07:15]MH_I2C_Read... [19:07:15]Read from MH i2c: E2 17 00 [19:07:15]MH_I2C_Read... [19:07:15]Read from MH i2c: E2 17 00 BF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AF [19:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:07:15]wFMCommunicate OK [19:07:15]requested_item fd.num is exist - process it [19:07:15]SAM_PROTO_GetFieldsCounters [19:07:15]wFMCommunicate request_size=4 [19:07:15]MH_SAM_APDU [19:07:15]CAPDU: 80 13 00 00 [19:07:15]Write to MH i2c: E2 08 00 C0 21 80 13 00 00 00 00 00 00 5D [19:07:15]Write i2c OK [19:07:15]MH_I2C_Read... [19:07:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:15]Read from MH i2c: E2 [19:07:15]MH_I2C_Read... [19:07:15]Read from MH i2c: E2 62 00 [19:07:15]MH_I2C_Read... [19:07:15]Read from MH i2c: E2 62 00 C0 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0B 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 5F [19:07: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0B 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:07:15]wFMCommunicate OK [19:07:15]SAM_PROTO_GetFieldsCounters done [19:07:15]requested_item shift.num is exist - process it [19:07:15]requested_item shift.opened is exist - process it [19:07:15]req_shift_opened [19:07:15]FM_GetShiftState [19:07:15]SAM_PROTO_GetShiftState [19:07:15]wFMCommunicate request_size=4 [19:07:15]MH_SAM_APDU [19:07:15]CAPDU: 80 13 01 00 [19:07:15]Write to MH i2c: E2 08 00 C1 21 80 13 01 00 00 00 00 00 5F [19:07:15]Write i2c OK [19:07:15]MH_I2C_Read... [19:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:15]Read from MH i2c: E2 [19:07:15]MH_I2C_Read... [19:07:15]Read from MH i2c: E2 0E 00 [19:07:15]MH_I2C_Read... [19:07:15]Read from MH i2c: E2 0E 00 C1 21 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AC [19:07:15]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:07:15]wFMCommunicate OK [19:07:15]SAM_PROTO_GetShiftState done [19:07:15]FM_GetShiftState done [19:07:15]req_shift_opened done [19:07:15]requested_item shift.open_date is exist - process it [19:07:15]req_shift_open_date [19:07:15]req_shift_open_date done [19:07:15]produce_requested_data done [19:07:15]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155659,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:07:15]process_action_free close_receipt [19:07:15]json_value_free [19:07:15]json_value_free done [19:07:15]process_json_proto returns [19:07:15]Send response to host [19:07:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155659,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:07:15]free response buf [19:07:15]execute_script done [19:07:15]execute_script returns [19:07:15]free content buf [19:07:15]Sock 10.Close socket [19:07:15]Sock 10.Thread stoped [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:07]accept exits with 8 [19:09:07]New connection [19:09:07]New thread 3066637668 created [19:09:07]Thread 3066781028 joined [19:09:07]Waiting for new connection... [19:09:07] Sock 8.Parse request [19:09:07]Sock 8.Check first char [19:09:07]Sock 8.First char is OK [19:09:07]request: POST /json_proto HTTP/1.0 [19:09:07]Method: POST [19:09:07]URL: /json_proto [19:09:07]Method is POST - this is cgi request [19:09:07]url: /json_proto [19:09:07]query_string will be loaded in cgi processing [19:09:07]execute_cgi json_proto POST (null) [19:09:07]execute_cgi path=json_proto method=POST [19:09:07]POST find Content-Length [19:09:07]Host: 172.17.63.3:8080 [19:09:07]Content-Length: 676 [19:09:07]Content-Type: application/json [19:09:07] [19:09:07]POST finish read [19:09:07]Found Content-Length = 676 [19:09:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:07]execute_script... [19:09: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)98466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:07]POST & json_proto [19:09:07]process_json_proto [19:09:07]json parsed OK: [19:09:07]protocol is kg_v1.0 [19:09:07]action value=close_receipt [19:09:07]process_action close_receipt [19:09:07]cmd_close_receipt [19:09:07]MH_GetDate [19:09:07]Write to MH i2c: F0 00 00 C2 21 D2 [19:09:07]Write i2c OK [19:09:07]MH_I2C_Read... [19:09:07]Read from MH i2c: F0 [19:09:07]MH_I2C_Read... [19:09:07]Read from MH i2c: F0 09 00 [19:09:07]MH_I2C_Read... [19:09:07]Read from MH i2c: F0 09 00 C2 21 00 54 9B 1A 67 50 D1 6C 64 3C [19:09:07]GetLastDocTimeStamp 1729796834 [19:09:07]current date 1729796948 [19:09:07]FM_GetShiftState [19:09:07]SAM_PROTO_GetShiftState [19:09:07]wFMCommunicate request_size=4 [19:09:07]MH_SAM_APDU [19:09:07]CAPDU: 80 13 01 00 [19:09:07]Write to MH i2c: E2 08 00 C3 21 80 13 01 00 00 00 00 00 61 [19:09:07]Write i2c OK [19:09:07]MH_I2C_Read... [19:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:07]Read from MH i2c: E2 [19:09:07]MH_I2C_Read... [19:09:07]Read from MH i2c: E2 0E 00 [19:09:07]MH_I2C_Read... [19:09:07]Read from MH i2c: E2 0E 00 C3 21 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AE [19:09:07]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:09:07]wFMCommunicate OK [19:09:07]SAM_PROTO_GetShiftState done [19:09:07]FM_GetShiftState done [19:09:07]opened in 1729729836 [19:09:07]opened+sec_in_day 1729816236 [19:09:07]quantity*price = 50041 [19:09:07]sum+1 = 50042 [19:09:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 285 24.10.2024 19:09 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155660 ФПД: 10964960207350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190908&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155660&fm=10964960207350&tin=02508201610067®Number=0000000000091693&sum=50000 [19:09:08]StoreToDocumentArchive [19:09:08]shift 534 fd 155660 [19:09:08]save to /storage/0534/doc_00155660 [19:09:08]save last doc name /storage/0534/doc_00155660 to /storage/kkm_last_doc_name [19:09:08]save OK [19:09:08]Clear old archive folders... [19:09:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:08]tlvbuf is B6F2B010 [19:09:08]SAM_PROTO_ClearQueue [19:09:08]wFMCommunicate request_size=4 [19:09:08]MH_SAM_APDU [19:09:08]CAPDU: 80 09 00 00 [19:09:08]Write to MH i2c: E2 08 00 D0 21 80 09 00 00 00 00 00 00 63 [19:09:08]Write i2c OK [19:09:08]MH_I2C_Read... [19:09:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:08]Read from MH i2c: E2 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 03 00 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 03 00 D0 21 00 90 00 65 [19:09:08]RAPDU: 90 00 [19:09:08]wFMCommunicate OK [19:09:08]SAM_PROTO_ClearQueue done [19:09:08]KKMCreateOFDPacket [19:09:08]OFDProtocolAddRootSTLVToBuf [19:09:08]FM_MakeSignedData [19:09:08]FM_MakeSignedData [19:09:08]SAM_PROTO_SignData [19:09:08]wFMCommunicate request_size=4 [19:09:08]MH_SAM_APDU [19:09:08]CAPDU: 80 0D 01 02 [19:09:08]Write to MH i2c: E2 08 00 D1 21 80 0D 01 02 00 00 00 00 6B [19:09:08]Write i2c OK [19:09:08]MH_I2C_Read... [19:09:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:08]Read from MH i2c: E2 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 03 00 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 03 00 D1 21 00 90 00 66 [19:09:08]RAPDU: 90 00 [19:09:08]wFMCommunicate OK [19:09:08]wFMCommunicate request_size=255 [19:09:08]MH_SAM_APDU [19:09: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 54 9B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 60 02 00 35 04 06 00 09 [19:09:08]Write to MH i2c: E2 02 01 D2 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 54 9B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 60 02 00 35 04 06 00 09 00 00 1C [19:09:08]Write i2c OK [19:09:08]MH_I2C_Read... [19:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:08]Read from MH i2c: E2 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 03 00 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 03 00 D2 21 00 90 00 67 [19:09:08]RAPDU: 90 00 [19:09:08]wFMCommunicate OK [19:09:08]wFMCommunicate request_size=10 [19:09:08]MH_SAM_APDU [19:09:08]CAPDU: 80 0D 02 02 05 F8 FA 8E E1 F6 [19:09:08]Write to MH i2c: E2 0D 00 D3 21 80 0D 02 02 05 00 F8 FA 8E E1 F6 00 00 CF [19:09:08]Write i2c OK [19:09:08]MH_I2C_Read... [19:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:08]Read from MH i2c: E2 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 03 00 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 03 00 D3 21 00 90 00 68 [19:09:08]RAPDU: 90 00 [19:09:08]wFMCommunicate OK [19:09:08]wFMCommunicate request_size=4 [19:09:08]MH_SAM_APDU [19:09:08]CAPDU: 80 0D 03 02 [19:09:08]Write to MH i2c: E2 08 00 D4 21 80 0D 03 02 00 00 00 00 70 [19:09:08]Write i2c OK [19:09:08]MH_I2C_Read... [19:09:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:08]Read from MH i2c: E2 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 0B 00 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 0B 00 D4 21 00 9B 4C 28 F1 7F 69 5D 65 90 00 1B [19:09:08]RAPDU: 9B 4C 28 F1 7F 69 5D 65 90 00 [19:09:08]wFMCommunicate OK [19:09:08]SAM_PROTO_SignData done [19:09:08]FM_MakeSignedData done [19:09:08]CreateOFDProtocolMessage [19:09:08]wFMCommunicate request_size=4 [19:09:08]MH_SAM_APDU [19:09:08]CAPDU: 80 11 00 00 [19:09:08]Write to MH i2c: E2 08 00 D5 21 80 11 00 00 00 00 00 00 70 [19:09:08]Write i2c OK [19:09:08]MH_I2C_Read... [19:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:08]Read from MH i2c: E2 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 17 00 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: E2 17 00 D5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C5 [19:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:09:08]wFMCommunicate OK [19:09:08]CreateOFDProtocolMessage done [19:09:08]OFDSenderStorePacket 155660 [19:09:08]StoreOFDPacket docnum=155660 [19:09:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E4 AB 07 01 58 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 54 9B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 60 02 00 35 04 06 00 09 F8 FA 8E E1 F6 9B 4C 28 F1 7F 69 5D 65 [19:09:08]CheckFolder [19:09:08]dirname=/storage/ofd_packets [19:09:08]CheckFolder done [19:09:08]ProducePacketName [19:09:08]name=ofd_packets/00155660 [19:09:08]NVStorageSaveData ofd_packets/00155660 [19:09:08]File name is /storage/ofd_packets/00155660 [19:09:08]Write 301 bytes [19:09:08]NVStorageSaveData done [19:09:08]OFDSenderStorePacket done [19:09:08]KKMCreateOFDPacket done [19:09:08]NVStorageSaveData kkm_last_timestamp [19:09:08]File name is /storage/kkm_last_timestamp [19:09:08]Write 4 bytes [19:09:08]NVStorageSaveData done [19:09:08]ExternCall_PrintAddStr [19:09:08]wPrintStart [19:09:08]Write to MH i2c: 01 00 00 D6 21 F7 [19:09:08]Write i2c OK [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: 01 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: 01 07 00 [19:09:08]MH_I2C_Read... [19:09:08]Read from MH i2c: 01 07 00 D6 21 00 00 00 00 00 FF 0F 0C [19:09:08]RasterBufferAndPrint [19:09:08]line Счет N : (1)98466 [19:09:08]line ИНН: 02508201610067 [19:09:08]line Контрольно-Кассовый Чек [19:09:08]line ПРОДАЖА [19:09:08]line ТРК (МРК, ГНК) : 31 [19:09:08]line Товар: 2710124130 [19:09:08]line Аи-92-К-5 [19:09:08]line 7.480 * 66.90 [19:09:08]line = 500.41 [19:09:08]line НДС 12% НСП 1% [19:09:08]line > о реализуемом товаре [19:09:08]line ОКРУГЛЕНИЕ: -0.41 [19:09:08]line ИТОГО: 500.00 [19:09:08]line Внесено: 500.00 [19:09:08]line СДАЧА: 0.00 [19:09:08]line НСП 1% : 4.43 [19:09:08]line НДС 12% : 53.14 [19:09:08]line Наличными: 500.00 [19:09:08]line Безнал.: 0.00 [19:09:08]line Место: АЗС № 143 "Партнер Нефть" [19:09:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:09:08]line СНО: Общий режим [19:09:08]line Чек 285 24.10.2024 19:09 [19:09:08]line Смена: 534 ФФД: 1.0 [19:09:08]line ЗНМ: 0300000096 [19:09:08]line РНМ: 0000000000091693 [19:09:08]line Версия ККМ: 001 [19:09:08]line ФМ: 0000000000871792 [19:09:08]line ФД: 155660 [19:09:08]line ФПД: 10964960207350 [19:09:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190908&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155660&fm=10964960207350&tin=02508201610067®Number=0000000000091693&sum=50000 [19:09:09]OFD Sender: Processing packet 155660 [packets to send 31, broken 30] [19:09:09]ProducePacketName [19:09:09]name=ofd_packets/00155660 [19:09:09]OFD Sender: To server: pG, [19:09:09]CommunicateWithHost lk.salyk.kg:30040 [19:09:09]ConnectInit lk.salyk.kg [19:09:09]written 0, free lines is 4095 [19:09:09]Connected sock=10 [19:09: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 39 32 0F 01 00 00 E4 AB 07 01 58 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 54 9B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 60 02 00 35 04 06 00 09 F8 FA 8E E1 F6 9B 4C 28 F1 7F 69 5D 65 [19:09: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 39 32 4F 00 00 00 81 04 47 00 24 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 60 02 00 F4 03 04 00 CC 40 1A 67 B6 04 01 00 00 77 C5 75 4F 6B 06 C7 61 [19:09:09]CommunicateWithHost err = 0 [19:09:09]CheckOFDResponse [19:09:09]1017 (14) - 77093643461234 [19:09:09]1041 (16) - 0000000000871792 [19:09:09]1040 (4) - 155660 [19:09:09]1012 (4) - 24.10.2024 12:42 [19:09:09]1206 (1) - 0 [19:09:09]OFD Sender: Remove packet 155660 [19:09:09]ProducePacketName [19:09:09]name=ofd_packets/00155660 [19:09:09]NVStorageDeleteData [19:09:09]Write to MH i2c: 01 00 00 01 22 23 [19:09:09]Write i2c OK [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: 01 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: 01 07 00 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: 01 07 00 01 22 00 00 00 00 00 D4 0C 0A [19:09:09]RasterBufferAndPrint [19:09:09]line [19:09:09]line [19:09:09]line [19:09:09]line [19:09:09]line [19:09:09]written 0, free lines is 3292 [19:09:09]process_action close_receipt done [19:09:09]requested_data is exist [19:09:09]produce_requested_data [19:09:09]requested_item fm.sn is exist - process it [19:09:09]wFMCommunicate request_size=4 [19:09:09]MH_SAM_APDU [19:09:09]CAPDU: 80 11 00 00 [19:09:09]Write to MH i2c: E2 08 00 08 22 80 11 00 00 00 00 00 00 A4 [19:09:09]Write i2c OK [19:09:09]MH_I2C_Read... [19:09:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:09]Read from MH i2c: E2 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: E2 17 00 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: E2 17 00 08 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F9 [19:09:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:09:09]wFMCommunicate OK [19:09:09]requested_item fd.num is exist - process it [19:09:09]SAM_PROTO_GetFieldsCounters [19:09:09]wFMCommunicate request_size=4 [19:09:09]MH_SAM_APDU [19:09:09]CAPDU: 80 13 00 00 [19:09:09]Write to MH i2c: E2 08 00 09 22 80 13 00 00 00 00 00 00 A7 [19:09:09]Write i2c OK [19:09:09]MH_I2C_Read... [19:09:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:09]Read from MH i2c: E2 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: E2 62 00 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: E2 62 00 09 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0C 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [19:09: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0C 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:09]wFMCommunicate OK [19:09:09]SAM_PROTO_GetFieldsCounters done [19:09:09]requested_item shift.num is exist - process it [19:09:09]requested_item shift.opened is exist - process it [19:09:09]req_shift_opened [19:09:09]FM_GetShiftState [19:09:09]SAM_PROTO_GetShiftState [19:09:09]wFMCommunicate request_size=4 [19:09:09]MH_SAM_APDU [19:09:09]CAPDU: 80 13 01 00 [19:09:09]Write to MH i2c: E2 08 00 0A 22 80 13 01 00 00 00 00 00 A9 [19:09:09]Write i2c OK [19:09:09]MH_I2C_Read... [19:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:09]Read from MH i2c: E2 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: E2 0E 00 [19:09:09]MH_I2C_Read... [19:09:09]Read from MH i2c: E2 0E 00 0A 22 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F6 [19:09:09]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:09:09]wFMCommunicate OK [19:09:09]SAM_PROTO_GetShiftState done [19:09:09]FM_GetShiftState done [19:09:09]req_shift_opened done [19:09:09]requested_item shift.open_date is exist - process it [19:09:09]req_shift_open_date [19:09:09]req_shift_open_date done [19:09:09]produce_requested_data done [19:09:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155660,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:09:09]process_action_free close_receipt [19:09:09]json_value_free [19:09:09]json_value_free done [19:09:09]process_json_proto returns [19:09:09]Send response to host [19:09:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155660,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:09:09]free response buf [19:09:09]execute_script done [19:09:09]execute_script returns [19:09:09]free content buf [19:09:09]Sock 8.Close socket [19:09:09]Sock 8.Thread stoped [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]accept exits with 9 [19:09:39]New connection [19:09:39]New thread 3066781028 created [19:09:39]Thread 3066637668 joined [19:09:39]Waiting for new connection... [19:09:39] Sock 9.Parse request [19:09:39]Sock 9.Check first char [19:09:39]Sock 9.First char is OK [19:09:39]request: POST /json_proto HTTP/1.0 [19:09:39]Method: POST [19:09:39]URL: /json_proto [19:09:39]Method is POST - this is cgi request [19:09:39]url: /json_proto [19:09:39]query_string will be loaded in cgi processing [19:09:39]execute_cgi json_proto POST (null) [19:09:39]execute_cgi path=json_proto method=POST [19:09:39]POST find Content-Length [19:09:39]Host: 172.17.63.3:8080 [19:09:39]Content-Length: 791 [19:09:39]Content-Type: application/json [19:09:39] [19:09:39]POST finish read [19:09:39]Found Content-Length = 791 [19:09:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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\u000A02635", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:39]execute_script... [19:09: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)98467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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\u000A02635", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:39]POST & json_proto [19:09:39]process_json_proto [19:09:39]json parsed OK: [19:09:39]protocol is kg_v1.0 [19:09:39]action value=close_receipt [19:09:39]process_action close_receipt [19:09:39]cmd_close_receipt [19:09:39]MH_GetDate [19:09:39]Write to MH i2c: F0 00 00 0B 22 1C [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: F0 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: F0 09 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: F0 09 00 0B 22 00 74 9B 1A 67 50 D1 6C 64 A6 [19:09:39]GetLastDocTimeStamp 1729796948 [19:09:39]current date 1729796980 [19:09:39]FM_GetShiftState [19:09:39]SAM_PROTO_GetShiftState [19:09:39]wFMCommunicate request_size=4 [19:09:39]MH_SAM_APDU [19:09:39]CAPDU: 80 13 01 00 [19:09:39]Write to MH i2c: E2 08 00 0C 22 80 13 01 00 00 00 00 00 AB [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 0E 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 0E 00 0C 22 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F8 [19:09:39]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:09:39]wFMCommunicate OK [19:09:39]SAM_PROTO_GetShiftState done [19:09:39]FM_GetShiftState done [19:09:39]opened in 1729729836 [19:09:39]opened+sec_in_day 1729816236 [19:09:39]quantity*price = 0 [19:09:39]sum+1 = 1 [19:09:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 286 24.10.2024 19:09 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливная Карта 02635 ФМ: 0000000000871792 ФД: 155661 ФПД: 234983535410053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190941&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155661&fm=234983535410053&tin=02508201610067®Number=0000000000091693&sum=0 [19:09:40]StoreToDocumentArchive [19:09:40]shift 534 fd 155661 [19:09:40]save to /storage/0534/doc_00155661 [19:09:40]save last doc name /storage/0534/doc_00155661 to /storage/kkm_last_doc_name [19:09:40]save OK [19:09:40]Clear old archive folders... [19:09:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:40]tlvbuf is 01F2F780 [19:09:40]SAM_PROTO_ClearQueue [19:09:40]wFMCommunicate request_size=4 [19:09:40]MH_SAM_APDU [19:09:40]CAPDU: 80 09 00 00 [19:09:40]Write to MH i2c: E2 08 00 19 22 80 09 00 00 00 00 00 00 AD [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:40]Read from MH i2c: E2 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 19 22 00 90 00 AF [19:09:40]RAPDU: 90 00 [19:09:40]wFMCommunicate OK [19:09:40]SAM_PROTO_ClearQueue done [19:09:40]KKMCreateOFDPacket [19:09:40]OFDProtocolAddRootSTLVToBuf [19:09:40]FM_MakeSignedData [19:09:40]FM_MakeSignedData [19:09:40]SAM_PROTO_SignData [19:09:40]wFMCommunicate request_size=4 [19:09:40]MH_SAM_APDU [19:09:40]CAPDU: 80 0D 01 02 [19:09:40]Write to MH i2c: E2 08 00 1A 22 80 0D 01 02 00 00 00 00 B5 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:40]Read from MH i2c: E2 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 1A 22 00 90 00 B0 [19:09:40]RAPDU: 90 00 [19:09:40]wFMCommunicate OK [19:09:40]wFMCommunicate request_size=255 [19:09:40]MH_SAM_APDU [19:09: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 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 1E 01 00 00 F4 03 04 00 75 9B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 60 02 00 35 04 06 00 D5 [19:09:40]Write to MH i2c: E2 02 01 1B 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 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 1E 01 00 00 F4 03 04 00 75 9B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 60 02 00 35 04 06 00 D5 00 00 3E [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:41]Read from MH i2c: E2 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 03 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 03 00 1B 22 00 90 00 B1 [19:09:41]RAPDU: 90 00 [19:09:41]wFMCommunicate OK [19:09:41]wFMCommunicate request_size=10 [19:09:41]MH_SAM_APDU [19:09:41]CAPDU: 80 0D 02 02 05 B7 5E 27 FB 85 [19:09:41]Write to MH i2c: E2 0D 00 1C 22 80 0D 02 02 05 00 B7 5E 27 FB 85 00 00 7E [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:41]Read from MH i2c: E2 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 03 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 03 00 1C 22 00 90 00 B2 [19:09:41]RAPDU: 90 00 [19:09:41]wFMCommunicate OK [19:09:41]wFMCommunicate request_size=4 [19:09:41]MH_SAM_APDU [19:09:41]CAPDU: 80 0D 03 02 [19:09:41]Write to MH i2c: E2 08 00 1D 22 80 0D 03 02 00 00 00 00 BA [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:41]Read from MH i2c: E2 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 0B 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 0B 00 1D 22 00 94 4A 37 80 8F DA 12 BC 90 00 87 [19:09:41]RAPDU: 94 4A 37 80 8F DA 12 BC 90 00 [19:09:41]wFMCommunicate OK [19:09:41]SAM_PROTO_SignData done [19:09:41]FM_MakeSignedData done [19:09:41]CreateOFDProtocolMessage [19:09:41]wFMCommunicate request_size=4 [19:09:41]MH_SAM_APDU [19:09:41]CAPDU: 80 11 00 00 [19:09:41]Write to MH i2c: E2 08 00 1E 22 80 11 00 00 00 00 00 00 BA [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:41]Read from MH i2c: E2 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 17 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: E2 17 00 1E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0F [19:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:09:41]wFMCommunicate OK [19:09:41]CreateOFDProtocolMessage done [19:09:41]OFDSenderStorePacket 155661 [19:09:41]StoreOFDPacket docnum=155661 [19:09:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 53 F2 07 01 18 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1E 01 00 00 F4 03 04 00 75 9B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 60 02 00 35 04 06 00 D5 B7 5E 27 FB 85 94 4A 37 80 8F DA 12 BC [19:09:41]CheckFolder [19:09:41]dirname=/storage/ofd_packets [19:09:41]CheckFolder done [19:09:41]ProducePacketName [19:09:41]name=ofd_packets/00155661 [19:09:41]NVStorageSaveData ofd_packets/00155661 [19:09:41]File name is /storage/ofd_packets/00155661 [19:09:41]Write 301 bytes [19:09:41]NVStorageSaveData done [19:09:41]OFDSenderStorePacket done [19:09:41]KKMCreateOFDPacket done [19:09:41]NVStorageSaveData kkm_last_timestamp [19:09:41]File name is /storage/kkm_last_timestamp [19:09:41]Write 4 bytes [19:09:41]NVStorageSaveData done [19:09:41]ExternCall_PrintAddStr [19:09:41]wPrintStart [19:09:41]Write to MH i2c: 01 00 00 1F 22 41 [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: 01 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: 01 07 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: 01 07 00 1F 22 00 00 00 00 00 FF 0F 56 [19:09:41]RasterBufferAndPrint [19:09:41]line Счет N : (1)98467 [19:09:41]line ИНН: 02508201610067 [19:09:41]line Контрольно-Кассовый Чек [19:09:41]line ПРОДАЖА [19:09:41]line ТРК (МРК, ГНК) : 21 [19:09:41]line Товар: 2710124130 [19:09:41]line Аи-92-К-5 [19:09:41]line 20.000 * 0.00 [19:09:41]line = 0.00 [19:09:41]line НДС 12% НСП 1% [19:09:41]line > о реализуемом товаре [19:09:41]line ИТОГО: 0.00 [19:09:41]line НСП 1% : 0.00 [19:09:41]line НДС 12% : 0.00 [19:09:41]line Наличными: 0.00 [19:09:41]line Безнал.: 0.00 [19:09:41]line Место: АЗС № 143 "Партнер Нефть" [19:09:41]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:09:41]line СНО: Общий режим [19:09:41]line Чек 286 24.10.2024 19:09 [19:09:41]line Смена: 534 ФФД: 1.0 [19:09:41]line ЗНМ: 0300000096 [19:09:41]line РНМ: 0000000000091693 [19:09:41]line Версия ККМ: 001 [19:09:41]line Талоны: Топливная Карта [19:09:41]line 02635 [19:09:41]line ФМ: 0000000000871792 [19:09:41]line ФД: 155661 [19:09:41]line ФПД: 234983535410053 [19:09:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T190941&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155661&fm=234983535410053&tin=02508201610067®Number=0000000000091693&sum=0 [19:09:41]written 0, free lines is 4095 [19:09:41]OFD Sender: Processing packet 155661 [packets to send 31, broken 30] [19:09:41]ProducePacketName [19:09:41]name=ofd_packets/00155661 [19:09:41]OFD Sender: To server: pG, [19:09:41]CommunicateWithHost lk.salyk.kg:30040 [19:09:41]ConnectInit lk.salyk.kg [19:09:41]Connected sock=10 [19:09: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 39 32 0F 01 00 00 53 F2 07 01 18 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1E 01 00 00 F4 03 04 00 75 9B 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 60 02 00 35 04 06 00 D5 B7 5E 27 FB 85 94 4A 37 80 8F DA 12 BC [19:09: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 39 32 4F 00 00 00 C9 85 47 00 5D 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 39 32 10 04 04 00 0D 60 02 00 F4 03 04 00 ED 40 1A 67 B6 04 01 00 00 26 5C 3C 34 11 30 74 F2 [19:09:41]CommunicateWithHost err = 0 [19:09:41]CheckOFDResponse [19:09:41]1017 (14) - 77093643461234 [19:09:41]1041 (16) - 0000000000871792 [19:09:41]1040 (4) - 155661 [19:09:41]1012 (4) - 24.10.2024 12:43 [19:09:41]1206 (1) - 0 [19:09:41]OFD Sender: Remove packet 155661 [19:09:41]ProducePacketName [19:09:41]name=ofd_packets/00155661 [19:09:41]NVStorageDeleteData [19:09:42]Write to MH i2c: 01 00 00 49 22 6B [19:09:42]Write i2c OK [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: 01 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: 01 07 00 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: 01 07 00 49 22 00 00 00 00 00 EE 0C 6C [19:09:42]RasterBufferAndPrint [19:09:42]line [19:09:42]line [19:09:42]line [19:09:42]line [19:09:42]line [19:09:42]written 0, free lines is 3318 [19:09:42]process_action close_receipt done [19:09:42]requested_data is exist [19:09:42]produce_requested_data [19:09:42]requested_item fm.sn is exist - process it [19:09:42]wFMCommunicate request_size=4 [19:09:42]MH_SAM_APDU [19:09:42]CAPDU: 80 11 00 00 [19:09:42]Write to MH i2c: E2 08 00 50 22 80 11 00 00 00 00 00 00 EC [19:09:42]Write i2c OK [19:09:42]MH_I2C_Read... [19:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:42]Read from MH i2c: E2 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 17 00 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 17 00 50 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 41 [19:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:09:42]wFMCommunicate OK [19:09:42]requested_item fd.num is exist - process it [19:09:42]SAM_PROTO_GetFieldsCounters [19:09:42]wFMCommunicate request_size=4 [19:09:42]MH_SAM_APDU [19:09:42]CAPDU: 80 13 00 00 [19:09:42]Write to MH i2c: E2 08 00 51 22 80 13 00 00 00 00 00 00 EF [19:09:42]Write i2c OK [19:09:42]MH_I2C_Read... [19:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:42]Read from MH i2c: E2 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 62 00 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 62 00 51 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0D 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [19:09:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0D 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:42]wFMCommunicate OK [19:09:42]SAM_PROTO_GetFieldsCounters done [19:09:42]requested_item shift.num is exist - process it [19:09:42]requested_item shift.opened is exist - process it [19:09:42]req_shift_opened [19:09:42]FM_GetShiftState [19:09:42]SAM_PROTO_GetShiftState [19:09:42]wFMCommunicate request_size=4 [19:09:42]MH_SAM_APDU [19:09:42]CAPDU: 80 13 01 00 [19:09:42]Write to MH i2c: E2 08 00 52 22 80 13 01 00 00 00 00 00 F1 [19:09:42]Write i2c OK [19:09:42]MH_I2C_Read... [19:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:42]Read from MH i2c: E2 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 0E 00 [19:09:42]MH_I2C_Read... [19:09:42]Read from MH i2c: E2 0E 00 52 22 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3E [19:09:42]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:09:42]wFMCommunicate OK [19:09:42]SAM_PROTO_GetShiftState done [19:09:42]FM_GetShiftState done [19:09:42]req_shift_opened done [19:09:42]requested_item shift.open_date is exist - process it [19:09:42]req_shift_open_date [19:09:42]req_shift_open_date done [19:09:42]produce_requested_data done [19:09:42]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155661,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:09:42]process_action_free close_receipt [19:09:42]json_value_free [19:09:42]json_value_free done [19:09:42]process_json_proto returns [19:09:42]Send response to host [19:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155661,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:09:42]free response buf [19:09:42]execute_script done [19:09:42]execute_script returns [19:09:42]free content buf [19:09:42]Sock 9.Close socket [19:09:42]Sock 9.Thread stoped [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11: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:09]accept exits with 8 [19:12:09]New connection [19:12:09]New thread 3066637668 created [19:12:09]Thread 3066781028 joined [19:12:09]Waiting for new connection... [19:12:09] Sock 8.Parse request [19:12:09]Sock 8.Check first char [19:12:09]Sock 8.First char is OK [19:12:09]request: POST /json_proto HTTP/1.0 [19:12:09]Method: POST [19:12:09]URL: /json_proto [19:12:09]Method is POST - this is cgi request [19:12:09]url: /json_proto [19:12:09]query_string will be loaded in cgi processing [19:12:09]execute_cgi json_proto POST (null) [19:12:09]execute_cgi path=json_proto method=POST [19:12:09]POST find Content-Length [19:12:09]Host: 172.17.63.3:8080 [19:12:09]Content-Length: 674 [19:12:09]Content-Type: application/json [19:12:09] [19:12:09]POST finish read [19:12:09]Found Content-Length = 674 [19:12:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:09]execute_script... [19:12: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)98468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:09]POST & json_proto [19:12:09]process_json_proto [19:12:09]json parsed OK: [19:12:09]protocol is kg_v1.0 [19:12:09]action value=close_receipt [19:12:09]process_action close_receipt [19:12:09]cmd_close_receipt [19:12:09]MH_GetDate [19:12:09]Write to MH i2c: F0 00 00 53 22 64 [19:12:09]Write i2c OK [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: F0 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: F0 09 00 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: F0 09 00 53 22 00 0A 9C 1A 67 50 D1 6C 64 85 [19:12:09]GetLastDocTimeStamp 1729796981 [19:12:09]current date 1729797130 [19:12:09]FM_GetShiftState [19:12:09]SAM_PROTO_GetShiftState [19:12:09]wFMCommunicate request_size=4 [19:12:09]MH_SAM_APDU [19:12:09]CAPDU: 80 13 01 00 [19:12:09]Write to MH i2c: E2 08 00 54 22 80 13 01 00 00 00 00 00 F3 [19:12:09]Write i2c OK [19:12:09]MH_I2C_Read... [19:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:09]Read from MH i2c: E2 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: E2 0E 00 [19:12:09]MH_I2C_Read... [19:12:09]Read from MH i2c: E2 0E 00 54 22 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 40 [19:12:09]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:12:09]wFMCommunicate OK [19:12:09]SAM_PROTO_GetShiftState done [19:12:09]FM_GetShiftState done [19:12:09]opened in 1729729836 [19:12:09]opened+sec_in_day 1729816236 [19:12:09]quantity*price = 80010 [19:12:09]sum+1 = 80011 [19:12:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 287 24.10.2024 19:12 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155662 ФПД: 196759845473747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191210&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155662&fm=196759845473747&tin=02508201610067®Number=0000000000091693&sum=80000 [19:12:10]StoreToDocumentArchive [19:12:10]shift 534 fd 155662 [19:12:10]save to /storage/0534/doc_00155662 [19:12:10]save last doc name /storage/0534/doc_00155662 to /storage/kkm_last_doc_name [19:12:10]save OK [19:12:10]Clear old archive folders... [19:12:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:12:10]tlvbuf is B6EB0BE0 [19:12:10]SAM_PROTO_ClearQueue [19:12:10]wFMCommunicate request_size=4 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 09 00 00 [19:12:10]Write to MH i2c: E2 08 00 61 22 80 09 00 00 00 00 00 00 F5 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 61 22 00 90 00 F7 [19:12:10]RAPDU: 90 00 [19:12:10]wFMCommunicate OK [19:12:10]SAM_PROTO_ClearQueue done [19:12:10]KKMCreateOFDPacket [19:12:10]OFDProtocolAddRootSTLVToBuf [19:12:10]FM_MakeSignedData [19:12:10]FM_MakeSignedData [19:12:10]SAM_PROTO_SignData [19:12:10]wFMCommunicate request_size=4 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 0D 01 02 [19:12:10]Write to MH i2c: E2 08 00 62 22 80 0D 01 02 00 00 00 00 FD [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 62 22 00 90 00 F8 [19:12:10]RAPDU: 90 00 [19:12:10]wFMCommunicate OK [19:12:10]wFMCommunicate request_size=255 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 0A 9C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 60 02 00 35 04 06 00 B2 F3 B8 B2 [19:12:10]Write to MH i2c: E2 02 01 63 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 0A 9C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 60 02 00 35 04 06 00 B2 F3 B8 B2 00 00 98 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 63 22 00 90 00 F9 [19:12:10]RAPDU: 90 00 [19:12:10]wFMCommunicate OK [19:12:10]wFMCommunicate request_size=7 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 0D 02 02 02 0D D3 [19:12:10]Write to MH i2c: E2 0A 00 64 22 80 0D 02 02 02 00 0D D3 00 00 E4 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 03 00 64 22 00 90 00 FA [19:12:10]RAPDU: 90 00 [19:12:10]wFMCommunicate OK [19:12:10]wFMCommunicate request_size=4 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 0D 03 02 [19:12:10]Write to MH i2c: E2 08 00 65 22 80 0D 03 02 00 00 00 00 02 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 0B 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 0B 00 65 22 00 B4 0B D8 84 7A 28 4B 2F 90 00 3A [19:12:10]RAPDU: B4 0B D8 84 7A 28 4B 2F 90 00 [19:12:10]wFMCommunicate OK [19:12:10]SAM_PROTO_SignData done [19:12:10]FM_MakeSignedData done [19:12:10]CreateOFDProtocolMessage [19:12:10]wFMCommunicate request_size=4 [19:12:10]MH_SAM_APDU [19:12:10]CAPDU: 80 11 00 00 [19:12:10]Write to MH i2c: E2 08 00 66 22 80 11 00 00 00 00 00 00 02 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:10]Read from MH i2c: E2 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 17 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: E2 17 00 66 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 57 [19:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:12:10]wFMCommunicate OK [19:12:10]CreateOFDProtocolMessage done [19:12:10]OFDSenderStorePacket 155662 [19:12:10]StoreOFDPacket docnum=155662 [19:12:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 47 AB 04 01 63 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 0A 9C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 60 02 00 35 04 06 00 B2 F3 B8 B2 0D D3 B4 0B D8 84 7A 28 4B 2F [19:12:10]CheckFolder [19:12:10]dirname=/storage/ofd_packets [19:12:10]CheckFolder done [19:12:10]ProducePacketName [19:12:10]name=ofd_packets/00155662 [19:12:10]NVStorageSaveData ofd_packets/00155662 [19:12:10]File name is /storage/ofd_packets/00155662 [19:12:10]Write 298 bytes [19:12:10]NVStorageSaveData done [19:12:10]OFDSenderStorePacket done [19:12:10]KKMCreateOFDPacket done [19:12:10]NVStorageSaveData kkm_last_timestamp [19:12:10]File name is /storage/kkm_last_timestamp [19:12:10]Write 4 bytes [19:12:10]NVStorageSaveData done [19:12:10]ExternCall_PrintAddStr [19:12:10]wPrintStart [19:12:10]Write to MH i2c: 01 00 00 67 22 89 [19:12:10]Write i2c OK [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: 01 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: 01 07 00 [19:12:10]MH_I2C_Read... [19:12:10]Read from MH i2c: 01 07 00 67 22 00 00 00 00 00 FF 0F 9E [19:12:10]RasterBufferAndPrint [19:12:10]line Счет N : (1)98468 [19:12:10]line ИНН: 02508201610067 [19:12:10]line Контрольно-Кассовый Чек [19:12:10]line ПРОДАЖА [19:12:10]line ТРК (МРК, ГНК) : 32 [19:12:10]line Товар: 2710194210 [19:12:10]line ДТ-К-5 [19:12:10]line 10.500 * 76.20 [19:12:10]line = 800.10 [19:12:10]line НДС 12% НСП 1% [19:12:10]line > о реализуемом товаре [19:12:10]line ОКРУГЛЕНИЕ: -0.10 [19:12:10]line ИТОГО: 800.00 [19:12:10]line Внесено: 800.00 [19:12:10]line СДАЧА: 0.00 [19:12:10]line НСП 1% : 7.08 [19:12:10]line НДС 12% : 84.97 [19:12:10]line Наличными: 800.00 [19:12:10]line Безнал.: 0.00 [19:12:10]line Место: АЗС № 143 "Партнер Нефть" [19:12:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:12:10]line СНО: Общий режим [19:12:10]line Чек 287 24.10.2024 19:12 [19:12:10]line Смена: 534 ФФД: 1.0 [19:12:10]line ЗНМ: 0300000096 [19:12:10]line РНМ: 0000000000091693 [19:12:10]line Версия ККМ: 001 [19:12:10]line ФМ: 0000000000871792 [19:12:10]line ФД: 155662 [19:12:10]line ФПД: 196759845473747 [19:12:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191210&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155662&fm=196759845473747&tin=02508201610067®Number=0000000000091693&sum=80000 [19:12:11]OFD Sender: Processing packet 155662 [packets to send 31, broken 30] [19:12:11]ProducePacketName [19:12:11]name=ofd_packets/00155662 [19:12:11]OFD Sender: To server: pG, [19:12:11]CommunicateWithHost lk.salyk.kg:30040 [19:12:11]ConnectInit lk.salyk.kg [19:12:11]written 0, free lines is 4095 [19:12:11]Connected sock=11 [19:12: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 39 32 0C 01 00 00 47 AB 04 01 63 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 0A 9C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 60 02 00 35 04 06 00 B2 F3 B8 B2 0D D3 B4 0B D8 84 7A 28 4B 2F [19:12: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 39 32 4F 00 00 00 08 B7 47 00 EB 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 39 32 10 04 04 00 0E 60 02 00 F4 03 04 00 82 41 1A 67 B6 04 01 00 00 BF 6D EC D0 F9 81 09 E8 [19:12:11]CommunicateWithHost err = 0 [19:12:11]CheckOFDResponse [19:12:11]1017 (14) - 77093643461234 [19:12:11]1041 (16) - 0000000000871792 [19:12:11]1040 (4) - 155662 [19:12:11]1012 (4) - 24.10.2024 12:45 [19:12:11]1206 (1) - 0 [19:12:11]OFD Sender: Remove packet 155662 [19:12:11]ProducePacketName [19:12:11]name=ofd_packets/00155662 [19:12:11]NVStorageDeleteData [19:12:11]Write to MH i2c: 01 00 00 92 22 B4 [19:12:11]Write i2c OK [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: 01 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: 01 07 00 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: 01 07 00 92 22 00 00 00 00 00 D7 0C 9E [19:12:11]RasterBufferAndPrint [19:12:11]line [19:12:11]line [19:12:11]line [19:12:11]line [19:12:11]line [19:12:11]written 0, free lines is 3290 [19:12:11]process_action close_receipt done [19:12:11]requested_data is exist [19:12:11]produce_requested_data [19:12:11]requested_item fm.sn is exist - process it [19:12:11]wFMCommunicate request_size=4 [19:12:11]MH_SAM_APDU [19:12:11]CAPDU: 80 11 00 00 [19:12:11]Write to MH i2c: E2 08 00 99 22 80 11 00 00 00 00 00 00 35 [19:12:11]Write i2c OK [19:12:11]MH_I2C_Read... [19:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:11]Read from MH i2c: E2 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: E2 17 00 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: E2 17 00 99 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8A [19:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:12:11]wFMCommunicate OK [19:12:11]requested_item fd.num is exist - process it [19:12:11]SAM_PROTO_GetFieldsCounters [19:12:11]wFMCommunicate request_size=4 [19:12:11]MH_SAM_APDU [19:12:11]CAPDU: 80 13 00 00 [19:12:11]Write to MH i2c: E2 08 00 9A 22 80 13 00 00 00 00 00 00 38 [19:12:11]Write i2c OK [19:12:11]MH_I2C_Read... [19:12:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:11]Read from MH i2c: E2 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: E2 62 00 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: E2 62 00 9A 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0E 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [19:12: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0E 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:11]wFMCommunicate OK [19:12:11]SAM_PROTO_GetFieldsCounters done [19:12:11]requested_item shift.num is exist - process it [19:12:11]requested_item shift.opened is exist - process it [19:12:11]req_shift_opened [19:12:11]FM_GetShiftState [19:12:11]SAM_PROTO_GetShiftState [19:12:11]wFMCommunicate request_size=4 [19:12:11]MH_SAM_APDU [19:12:11]CAPDU: 80 13 01 00 [19:12:11]Write to MH i2c: E2 08 00 9B 22 80 13 01 00 00 00 00 00 3A [19:12:11]Write i2c OK [19:12:11]MH_I2C_Read... [19:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:11]Read from MH i2c: E2 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: E2 0E 00 [19:12:11]MH_I2C_Read... [19:12:11]Read from MH i2c: E2 0E 00 9B 22 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 87 [19:12:11]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:12:11]wFMCommunicate OK [19:12:11]SAM_PROTO_GetShiftState done [19:12:11]FM_GetShiftState done [19:12:11]req_shift_opened done [19:12:11]requested_item shift.open_date is exist - process it [19:12:11]req_shift_open_date [19:12:11]req_shift_open_date done [19:12:11]produce_requested_data done [19:12:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155662,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:12:11]process_action_free close_receipt [19:12:11]json_value_free [19:12:11]json_value_free done [19:12:11]process_json_proto returns [19:12:11]Send response to host [19:12:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155662,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:12:11]free response buf [19:12:11]execute_script done [19:12:11]execute_script returns [19:12:11]free content buf [19:12:11]Sock 8.Close socket [19:12:11]Sock 8.Thread stoped [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]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 9 [19:15:12]New connection [19:15:12]New thread 3066781028 created [19:15:12]Thread 3066637668 joined [19:15:12]Waiting for new connection... [19:15:12] Sock 9.Parse request [19:15:12]Sock 9.Check first char [19:15:12]Sock 9.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.63.3:8080 [19:15:12]Content-Length: 676 [19:15:12]Content-Type: application/json [19:15:12] [19:15:12]POST finish read [19:15:12]Found Content-Length = 676 [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)98469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.390, "sum" : 360.59, "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" ] } } [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)98469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.390, "sum" : 360.59, "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" ] } } [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 9C 22 AD [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 9C 22 00 C2 9C 1A 67 50 D1 6C 64 86 [19:15:12]GetLastDocTimeStamp 1729797130 [19:15:12]current date 1729797314 [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 9D 22 80 13 01 00 00 00 00 00 3C [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 9D 22 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 89 [19:15:12]RAPDU: 09 00 01 2C 95 19 67 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 1729729836 [19:15:12]opened+sec_in_day 1729816236 [19:15:12]quantity*price = 36059 [19:15:12]sum+1 = 36060 [19:15:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 360.00 Внесено: 360.00 СДАЧА: 0.00 НСП 1% : 3.19 НДС 12% : 38.29 Наличными: 360.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 288 24.10.2024 19:15 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155663 ФПД: 188801682017709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191514&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155663&fm=188801682017709&tin=02508201610067®Number=0000000000091693&sum=36000 [19:15:13]StoreToDocumentArchive [19:15:13]shift 534 fd 155663 [19:15:13]save to /storage/0534/doc_00155663 [19:15:13]save last doc name /storage/0534/doc_00155663 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=251 [19:15:13]tlvbuf is 01F4F5D0 [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 AA 22 80 09 00 00 00 00 00 00 3E [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 AA 22 00 90 00 40 [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 AB 22 80 0D 01 02 00 00 00 00 46 [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 AB 22 00 90 00 41 [19:15:13]RAPDU: 90 00 [19:15:13]wFMCommunicate OK [19:15:13]wFMCommunicate request_size=255 [19:15:13]MH_SAM_APDU [19:15: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 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 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 F5 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 20 01 00 00 F4 03 04 00 C2 9C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 60 02 00 35 04 06 00 AB [19:15:13]Write to MH i2c: E2 02 01 AC 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 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 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 F5 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 20 01 00 00 F4 03 04 00 C2 9C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 60 02 00 35 04 06 00 AB 00 00 EA [19:15:13]Write i2c OK [19:15:13]MH_I2C_Read... [19:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:14]Read from MH i2c: E2 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: E2 03 00 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: E2 03 00 AC 22 00 90 00 42 [19:15:14]RAPDU: 90 00 [19:15:14]wFMCommunicate OK [19:15:14]wFMCommunicate request_size=10 [19:15:14]MH_SAM_APDU [19:15:14]CAPDU: 80 0D 02 02 05 B6 D1 30 8D AD [19:15:14]Write to MH i2c: E2 0D 00 AD 22 80 0D 02 02 05 00 B6 D1 30 8D AD 00 00 44 [19:15:14]Write i2c OK [19:15:14]MH_I2C_Read... [19:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:14]Read from MH i2c: E2 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: E2 03 00 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: E2 03 00 AD 22 00 90 00 43 [19:15:14]RAPDU: 90 00 [19:15:14]wFMCommunicate OK [19:15:14]wFMCommunicate request_size=4 [19:15:14]MH_SAM_APDU [19:15:14]CAPDU: 80 0D 03 02 [19:15:14]Write to MH i2c: E2 08 00 AE 22 80 0D 03 02 00 00 00 00 4B [19:15:14]Write i2c OK [19:15:14]MH_I2C_Read... [19:15:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:14]Read from MH i2c: E2 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: E2 0B 00 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: E2 0B 00 AE 22 00 5E E1 44 C3 1D D7 12 71 90 00 09 [19:15:14]RAPDU: 5E E1 44 C3 1D D7 12 71 90 00 [19:15:14]wFMCommunicate OK [19:15:14]SAM_PROTO_SignData done [19:15:14]FM_MakeSignedData done [19:15:14]CreateOFDProtocolMessage [19:15:14]wFMCommunicate request_size=4 [19:15:14]MH_SAM_APDU [19:15:14]CAPDU: 80 11 00 00 [19:15:14]Write to MH i2c: E2 08 00 AF 22 80 11 00 00 00 00 00 00 4B [19:15:14]Write i2c OK [19:15:14]MH_I2C_Read... [19:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:14]Read from MH i2c: E2 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: E2 17 00 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: E2 17 00 AF 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A0 [19:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:15:14]wFMCommunicate OK [19:15:14]CreateOFDProtocolMessage done [19:15:14]OFDSenderStorePacket 155663 [19:15:14]StoreOFDPacket docnum=155663 [19:15:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DF F0 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 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 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 F5 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 20 01 00 00 F4 03 04 00 C2 9C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 60 02 00 35 04 06 00 AB B6 D1 30 8D AD 5E E1 44 C3 1D D7 12 71 [19:15:14]CheckFolder [19:15:14]dirname=/storage/ofd_packets [19:15:14]CheckFolder done [19:15:14]ProducePacketName [19:15:14]name=ofd_packets/00155663 [19:15:14]NVStorageSaveData ofd_packets/00155663 [19:15:14]File name is /storage/ofd_packets/00155663 [19:15:14]Write 301 bytes [19:15:14]NVStorageSaveData done [19:15:14]OFDSenderStorePacket done [19:15:14]KKMCreateOFDPacket done [19:15:14]NVStorageSaveData kkm_last_timestamp [19:15:14]File name is /storage/kkm_last_timestamp [19:15:14]Write 4 bytes [19:15:14]NVStorageSaveData done [19:15:14]ExternCall_PrintAddStr [19:15:14]wPrintStart [19:15:14]Write to MH i2c: 01 00 00 B0 22 D2 [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 B0 22 00 00 00 00 00 FF 0F E7 [19:15:14]RasterBufferAndPrint [19:15:14]line Счет N : (1)98469 [19:15:14]line ИНН: 02508201610067 [19:15:14]line Контрольно-Кассовый Чек [19:15:14]line ПРОДАЖА [19:15:14]line ТРК (МРК, ГНК) : 21 [19:15:14]line Товар: 2710124130 [19:15:14]line Аи-92-К-5 [19:15:14]line 5.390 * 66.90 [19:15:14]line = 360.59 [19:15:14]line НДС 12% НСП 1% [19:15:14]line > о реализуемом товаре [19:15:14]line ОКРУГЛЕНИЕ: -0.59 [19:15:14]line ИТОГО: 360.00 [19:15:14]line Внесено: 360.00 [19:15:14]line СДАЧА: 0.00 [19:15:14]line НСП 1% : 3.19 [19:15:14]line НДС 12% : 38.29 [19:15:14]line Наличными: 360.00 [19:15:14]line Безнал.: 0.00 [19:15:14]line Место: АЗС № 143 "Партнер Нефть" [19:15:14]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:15:14]line СНО: Общий режим [19:15:14]line Чек 288 24.10.2024 19:15 [19:15:14]line Смена: 534 ФФД: 1.0 [19:15:14]line ЗНМ: 0300000096 [19:15:14]line РНМ: 0000000000091693 [19:15:14]line Версия ККМ: 001 [19:15:14]line ФМ: 0000000000871792 [19:15:14]line ФД: 155663 [19:15:14]line ФПД: 188801682017709 [19:15:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191514&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155663&fm=188801682017709&tin=02508201610067®Number=0000000000091693&sum=36000 [19:15:14]OFD Sender: Processing packet 155663 [packets to send 31, broken 30] [19:15:14]ProducePacketName [19:15:14]name=ofd_packets/00155663 [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=10 [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 39 32 0F 01 00 00 DF F0 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 0E 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DB 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 F5 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 20 01 00 00 F4 03 04 00 C2 9C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 60 02 00 35 04 06 00 AB B6 D1 30 8D AD 5E E1 44 C3 1D D7 12 71 [19:15: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 39 32 4F 00 00 00 6F A1 47 00 B1 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 39 32 10 04 04 00 0F 60 02 00 F4 03 04 00 3A 42 1A 67 B6 04 01 00 00 26 06 2D FF 3F 7E EE 10 [19:15:15]CommunicateWithHost err = 0 [19:15:15]CheckOFDResponse [19:15:15]1017 (14) - 77093643461234 [19:15:15]1041 (16) - 0000000000871792 [19:15:15]1040 (4) - 155663 [19:15:15]1012 (4) - 24.10.2024 12:48 [19:15:15]1206 (1) - 0 [19:15:15]OFD Sender: Remove packet 155663 [19:15:15]ProducePacketName [19:15:15]name=ofd_packets/00155663 [19:15:15]NVStorageDeleteData [19:15:15]Write to MH i2c: 01 00 00 DB 22 FD [19:15:15]Write i2c OK [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: 01 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: 01 07 00 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: 01 07 00 DB 22 00 00 00 00 00 E0 0C F0 [19:15:15]RasterBufferAndPrint [19:15:15]line [19:15:15]line [19:15:15]line [19:15:15]line [19:15:15]line [19:15:15]written 0, free lines is 3305 [19:15:15]process_action close_receipt done [19:15:15]requested_data is exist [19:15:15]produce_requested_data [19:15:15]requested_item fm.sn is exist - process it [19:15:15]wFMCommunicate request_size=4 [19:15:15]MH_SAM_APDU [19:15:15]CAPDU: 80 11 00 00 [19:15:15]Write to MH i2c: E2 08 00 E2 22 80 11 00 00 00 00 00 00 7E [19:15:15]Write i2c OK [19:15:15]MH_I2C_Read... [19:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:15]Read from MH i2c: E2 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: E2 17 00 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: E2 17 00 E2 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D3 [19:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:15:15]wFMCommunicate OK [19:15:15]requested_item fd.num is exist - process it [19:15:15]SAM_PROTO_GetFieldsCounters [19:15:15]wFMCommunicate request_size=4 [19:15:15]MH_SAM_APDU [19:15:15]CAPDU: 80 13 00 00 [19:15:15]Write to MH i2c: E2 08 00 E3 22 80 13 00 00 00 00 00 00 81 [19:15:15]Write i2c OK [19:15:15]MH_I2C_Read... [19:15:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:15]Read from MH i2c: E2 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: E2 62 00 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: E2 62 00 E3 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0F 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 93 [19:15: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0F 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:15]wFMCommunicate OK [19:15:15]SAM_PROTO_GetFieldsCounters done [19:15:15]requested_item shift.num is exist - process it [19:15:15]requested_item shift.opened is exist - process it [19:15:15]req_shift_opened [19:15:15]FM_GetShiftState [19:15:15]SAM_PROTO_GetShiftState [19:15:15]wFMCommunicate request_size=4 [19:15:15]MH_SAM_APDU [19:15:15]CAPDU: 80 13 01 00 [19:15:15]Write to MH i2c: E2 08 00 E4 22 80 13 01 00 00 00 00 00 83 [19:15:15]Write i2c OK [19:15:15]MH_I2C_Read... [19:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:15]Read from MH i2c: E2 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: E2 0E 00 [19:15:15]MH_I2C_Read... [19:15:15]Read from MH i2c: E2 0E 00 E4 22 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D0 [19:15:15]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:15:15]wFMCommunicate OK [19:15:15]SAM_PROTO_GetShiftState done [19:15:15]FM_GetShiftState done [19:15:15]req_shift_opened done [19:15:15]requested_item shift.open_date is exist - process it [19:15:15]req_shift_open_date [19:15:15]req_shift_open_date done [19:15:15]produce_requested_data done [19:15:15]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155663,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:15:15]process_action_free close_receipt [19:15:15]json_value_free [19:15:15]json_value_free done [19:15:15]process_json_proto returns [19:15:15]Send response to host [19:15:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155663,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:15:15]free response buf [19:15:15]execute_script done [19:15:15]execute_script returns [19:15:15]free content buf [19:15:15]Sock 9.Close socket [19:15:15]Sock 9.Thread stoped [19:15:15]OFD Sender: No OFD packet to send [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: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:02]accept exits with 8 [19:16:02]New connection [19:16:02]New thread 3066637668 created [19:16:02]Thread 3066781028 joined [19:16:02]Waiting for new connection... [19:16:02] Sock 8.Parse request [19:16:02]Sock 8.Check first char [19:16:02]Sock 8.First char is OK [19:16:02]request: POST /json_proto HTTP/1.0 [19:16:02]Method: POST [19:16:02]URL: /json_proto [19:16:02]Method is POST - this is cgi request [19:16:02]url: /json_proto [19:16:02]query_string will be loaded in cgi processing [19:16:02]execute_cgi json_proto POST (null) [19:16:02]execute_cgi path=json_proto method=POST [19:16:02]POST find Content-Length [19:16:02]Host: 172.17.63.3:8080 [19:16:02]Content-Length: 765 [19:16:02]Content-Type: application/json [19:16:02] [19:16:02]POST finish read [19:16:02]Found Content-Length = 765 [19:16:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:02]execute_script... [19:16: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)98470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:02]POST & json_proto [19:16:02]process_json_proto [19:16:02]json parsed OK: [19:16:02]protocol is kg_v1.0 [19:16:02]action value=close_receipt [19:16:02]process_action close_receipt [19:16:02]cmd_close_receipt [19:16:02]MH_GetDate [19:16:02]Write to MH i2c: F0 00 00 E5 22 F6 [19:16:02]Write i2c OK [19:16:02]MH_I2C_Read... [19:16:02]Read from MH i2c: F0 [19:16:02]MH_I2C_Read... [19:16:02]Read from MH i2c: F0 09 00 [19:16:02]MH_I2C_Read... [19:16:02]Read from MH i2c: F0 09 00 E5 22 00 F4 9C 1A 67 50 D1 6C 64 01 [19:16:02]GetLastDocTimeStamp 1729797314 [19:16:02]current date 1729797364 [19:16:02]FM_GetShiftState [19:16:02]SAM_PROTO_GetShiftState [19:16:02]wFMCommunicate request_size=4 [19:16:02]MH_SAM_APDU [19:16:02]CAPDU: 80 13 01 00 [19:16:02]Write to MH i2c: E2 08 00 E6 22 80 13 01 00 00 00 00 00 85 [19:16:02]Write i2c OK [19:16:02]MH_I2C_Read... [19:16:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:02]Read from MH i2c: E2 [19:16:02]MH_I2C_Read... [19:16:02]Read from MH i2c: E2 0E 00 [19:16:02]MH_I2C_Read... [19:16:02]Read from MH i2c: E2 0E 00 E6 22 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D2 [19:16:02]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:16:02]wFMCommunicate OK [19:16:02]SAM_PROTO_GetShiftState done [19:16:02]FM_GetShiftState done [19:16:02]opened in 1729729836 [19:16:02]opened+sec_in_day 1729816236 [19:16:02]quantity*price = 50041 [19:16:02]sum+1 = 50042 [19:16:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 289 24.10.2024 19:16 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155664 ФПД: 5861488485572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191604&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155664&fm=5861488485572&tin=02508201610067®Number=0000000000091693&sum=50041 [19:16:03]StoreToDocumentArchive [19:16:03]shift 534 fd 155664 [19:16:03]save to /storage/0534/doc_00155664 [19:16:03]save last doc name /storage/0534/doc_00155664 to /storage/kkm_last_doc_name [19:16:03]save OK [19:16:03]Clear old archive folders... [19:16:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:03]tlvbuf is 01F34A50 [19:16:03]SAM_PROTO_ClearQueue [19:16:03]wFMCommunicate request_size=4 [19:16:03]MH_SAM_APDU [19:16:03]CAPDU: 80 09 00 00 [19:16:03]Write to MH i2c: E2 08 00 F3 22 80 09 00 00 00 00 00 00 87 [19:16:03]Write i2c OK [19:16:03]MH_I2C_Read... [19:16:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:04]Read from MH i2c: E2 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 03 00 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 03 00 F3 22 00 90 00 89 [19:16:04]RAPDU: 90 00 [19:16:04]wFMCommunicate OK [19:16:04]SAM_PROTO_ClearQueue done [19:16:04]KKMCreateOFDPacket [19:16:04]OFDProtocolAddRootSTLVToBuf [19:16:04]FM_MakeSignedData [19:16:04]FM_MakeSignedData [19:16:04]SAM_PROTO_SignData [19:16:04]wFMCommunicate request_size=4 [19:16:04]MH_SAM_APDU [19:16:04]CAPDU: 80 0D 01 02 [19:16:04]Write to MH i2c: E2 08 00 F4 22 80 0D 01 02 00 00 00 00 8F [19:16:04]Write i2c OK [19:16:04]MH_I2C_Read... [19:16:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:04]Read from MH i2c: E2 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 03 00 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 03 00 F4 22 00 90 00 8A [19:16:04]RAPDU: 90 00 [19:16:04]wFMCommunicate OK [19:16:04]wFMCommunicate request_size=255 [19:16:04]MH_SAM_APDU [19:16: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 F4 9C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 60 02 00 35 04 06 00 05 [19:16:04]Write to MH i2c: E2 02 01 F5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 F4 9C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 60 02 00 35 04 06 00 05 00 00 37 [19:16:04]Write i2c OK [19:16:04]MH_I2C_Read... [19:16:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:04]Read from MH i2c: E2 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 03 00 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 03 00 F5 22 00 90 00 8B [19:16:04]RAPDU: 90 00 [19:16:04]wFMCommunicate OK [19:16:04]wFMCommunicate request_size=10 [19:16:04]MH_SAM_APDU [19:16:04]CAPDU: 80 0D 02 02 05 54 BB F0 64 C4 [19:16:04]Write to MH i2c: E2 0D 00 F6 22 80 0D 02 02 05 00 54 BB F0 64 C4 00 00 C3 [19:16:04]Write i2c OK [19:16:04]MH_I2C_Read... [19:16:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:04]Read from MH i2c: E2 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 03 00 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 03 00 F6 22 00 90 00 8C [19:16:04]RAPDU: 90 00 [19:16:04]wFMCommunicate OK [19:16:04]wFMCommunicate request_size=4 [19:16:04]MH_SAM_APDU [19:16:04]CAPDU: 80 0D 03 02 [19:16:04]Write to MH i2c: E2 08 00 F7 22 80 0D 03 02 00 00 00 00 94 [19:16:04]Write i2c OK [19:16:04]MH_I2C_Read... [19:16:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:04]Read from MH i2c: E2 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 0B 00 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 0B 00 F7 22 00 42 6F 41 B6 67 4F 78 39 90 00 A4 [19:16:04]RAPDU: 42 6F 41 B6 67 4F 78 39 90 00 [19:16:04]wFMCommunicate OK [19:16:04]SAM_PROTO_SignData done [19:16:04]FM_MakeSignedData done [19:16:04]CreateOFDProtocolMessage [19:16:04]wFMCommunicate request_size=4 [19:16:04]MH_SAM_APDU [19:16:04]CAPDU: 80 11 00 00 [19:16:04]Write to MH i2c: E2 08 00 F8 22 80 11 00 00 00 00 00 00 94 [19:16:04]Write i2c OK [19:16:04]MH_I2C_Read... [19:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:04]Read from MH i2c: E2 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 17 00 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: E2 17 00 F8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E9 [19:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:16:04]wFMCommunicate OK [19:16:04]CreateOFDProtocolMessage done [19:16:04]OFDSenderStorePacket 155664 [19:16:04]StoreOFDPacket docnum=155664 [19:16:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DB 15 07 01 F2 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 F4 9C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 60 02 00 35 04 06 00 05 54 BB F0 64 C4 42 6F 41 B6 67 4F 78 39 [19:16:04]CheckFolder [19:16:04]dirname=/storage/ofd_packets [19:16:04]CheckFolder done [19:16:04]ProducePacketName [19:16:04]name=ofd_packets/00155664 [19:16:04]NVStorageSaveData ofd_packets/00155664 [19:16:04]File name is /storage/ofd_packets/00155664 [19:16:04]Write 301 bytes [19:16:04]NVStorageSaveData done [19:16:04]OFDSenderStorePacket done [19:16:04]KKMCreateOFDPacket done [19:16:04]NVStorageSaveData kkm_last_timestamp [19:16:04]File name is /storage/kkm_last_timestamp [19:16:04]Write 4 bytes [19:16:04]NVStorageSaveData done [19:16:04]ExternCall_PrintAddStr [19:16:04]wPrintStart [19:16:04]Write to MH i2c: 01 00 00 F9 22 1B [19:16:04]Write i2c OK [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: 01 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: 01 07 00 [19:16:04]MH_I2C_Read... [19:16:04]Read from MH i2c: 01 07 00 F9 22 00 00 00 00 00 FF 0F 30 [19:16:04]RasterBufferAndPrint [19:16:04]line Счет N : (1)98470 [19:16:04]line ИНН: 02508201610067 [19:16:04]line Контрольно-Кассовый Чек [19:16:04]line ПРОДАЖА [19:16:04]line ТРК (МРК, ГНК) : 11 [19:16:04]line Товар: 2710124130 [19:16:04]line Аи-92-К-5 [19:16:04]line 7.480 * 66.90 [19:16:04]line = 500.41 [19:16:04]line НДС 12% НСП 1% [19:16:04]line > о реализуемом товаре [19:16:04]line ИТОГО: 500.41 [19:16:04]line НСП 1% : 4.43 [19:16:04]line НДС 12% : 53.14 [19:16:04]line Наличными: 0.00 [19:16:04]line Безнал.: 500.41 [19:16:04]line Место: АЗС № 143 "Партнер Нефть" [19:16:04]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:16:04]line СНО: Общий режим [19:16:04]line Чек 289 24.10.2024 19:16 [19:16:04]line Смена: 534 ФФД: 1.0 [19:16:04]line ЗНМ: 0300000096 [19:16:04]line РНМ: 0000000000091693 [19:16:04]line Версия ККМ: 001 [19:16:04]line Платежная система: Mbank [19:16:04]line ФМ: 0000000000871792 [19:16:04]line ФД: 155664 [19:16:04]line ФПД: 5861488485572 [19:16:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191604&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155664&fm=5861488485572&tin=02508201610067®Number=0000000000091693&sum=50041 [19:16:04]OFD Sender: Processing packet 155664 [packets to send 31, broken 30] [19:16:04]ProducePacketName [19:16:04]name=ofd_packets/00155664 [19:16:04]OFD Sender: To server: pG, [19:16:04]CommunicateWithHost lk.salyk.kg:30040 [19:16:04]ConnectInit lk.salyk.kg [19:16:04]written 0, free lines is 4095 [19:16:04]Connected sock=10 [19:16: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 39 32 0F 01 00 00 DB 15 07 01 F2 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 F4 9C 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 60 02 00 35 04 06 00 05 54 BB F0 64 C4 42 6F 41 B6 67 4F 78 39 [19:16: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 39 32 4F 00 00 00 E5 59 47 00 AC 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 39 32 10 04 04 00 10 60 02 00 F4 03 04 00 6C 42 1A 67 B6 04 01 00 00 8C 66 1C 79 D2 CB 45 96 [19:16:05]CommunicateWithHost err = 0 [19:16:05]CheckOFDResponse [19:16:05]1017 (14) - 77093643461234 [19:16:05]1041 (16) - 0000000000871792 [19:16:05]1040 (4) - 155664 [19:16:05]1012 (4) - 24.10.2024 12:49 [19:16:05]1206 (1) - 0 [19:16:05]OFD Sender: Remove packet 155664 [19:16:05]ProducePacketName [19:16:05]name=ofd_packets/00155664 [19:16:05]NVStorageDeleteData [19:16:05]Write to MH i2c: 01 00 00 22 23 45 [19:16:05]Write i2c OK [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: 01 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: 01 07 00 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: 01 07 00 22 23 00 00 00 00 00 FB 0C 53 [19:16:05]RasterBufferAndPrint [19:16:05]line [19:16:05]line [19:16:05]line [19:16:05]line [19:16:05]line [19:16:05]written 0, free lines is 3329 [19:16:05]process_action close_receipt done [19:16:05]requested_data is exist [19:16:05]produce_requested_data [19:16:05]requested_item fm.sn is exist - process it [19:16:05]wFMCommunicate request_size=4 [19:16:05]MH_SAM_APDU [19:16:05]CAPDU: 80 11 00 00 [19:16:05]Write to MH i2c: E2 08 00 29 23 80 11 00 00 00 00 00 00 C6 [19:16:05]Write i2c OK [19:16:05]MH_I2C_Read... [19:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:05]Read from MH i2c: E2 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: E2 17 00 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: E2 17 00 29 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1B [19:16:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:16:05]wFMCommunicate OK [19:16:05]requested_item fd.num is exist - process it [19:16:05]SAM_PROTO_GetFieldsCounters [19:16:05]wFMCommunicate request_size=4 [19:16:05]MH_SAM_APDU [19:16:05]CAPDU: 80 13 00 00 [19:16:05]Write to MH i2c: E2 08 00 2A 23 80 13 00 00 00 00 00 00 C9 [19:16:05]Write i2c OK [19:16:05]MH_I2C_Read... [19:16:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:05]Read from MH i2c: E2 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: E2 62 00 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: E2 62 00 2A 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 10 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 DF [19:16: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 10 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:05]wFMCommunicate OK [19:16:05]SAM_PROTO_GetFieldsCounters done [19:16:05]requested_item shift.num is exist - process it [19:16:05]requested_item shift.opened is exist - process it [19:16:05]req_shift_opened [19:16:05]FM_GetShiftState [19:16:05]SAM_PROTO_GetShiftState [19:16:05]wFMCommunicate request_size=4 [19:16:05]MH_SAM_APDU [19:16:05]CAPDU: 80 13 01 00 [19:16:05]Write to MH i2c: E2 08 00 2B 23 80 13 01 00 00 00 00 00 CB [19:16:05]Write i2c OK [19:16:05]MH_I2C_Read... [19:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:05]Read from MH i2c: E2 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: E2 0E 00 [19:16:05]MH_I2C_Read... [19:16:05]Read from MH i2c: E2 0E 00 2B 23 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 18 [19:16:05]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:16:05]wFMCommunicate OK [19:16:05]SAM_PROTO_GetShiftState done [19:16:05]FM_GetShiftState done [19:16:05]req_shift_opened done [19:16:05]requested_item shift.open_date is exist - process it [19:16:05]req_shift_open_date [19:16:05]req_shift_open_date done [19:16:05]produce_requested_data done [19:16:05]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155664,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:16:05]process_action_free close_receipt [19:16:05]json_value_free [19:16:05]json_value_free done [19:16:05]process_json_proto returns [19:16:05]Send response to host [19:16:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155664,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:16:05]free response buf [19:16:05]execute_script done [19:16:05]execute_script returns [19:16:05]free content buf [19:16:05]Sock 8.Close socket [19:16:05]Sock 8.Thread stoped [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:53]accept exits with 9 [19:16:53]New connection [19:16:53]New thread 3066781028 created [19:16:53]Thread 3066637668 joined [19:16:53]Waiting for new connection... [19:16:53] Sock 9.Parse request [19:16:53]Sock 9.Check first char [19:16:53]Sock 9.First char is OK [19:16:53]request: POST /json_proto HTTP/1.0 [19:16:53]Method: POST [19:16:53]URL: /json_proto [19:16:53]Method is POST - this is cgi request [19:16:53]url: /json_proto [19:16:53]query_string will be loaded in cgi processing [19:16:53]execute_cgi json_proto POST (null) [19:16:53]execute_cgi path=json_proto method=POST [19:16:53]POST find Content-Length [19:16:53]Host: 172.17.63.3:8080 [19:16:53]Content-Length: 799 [19:16:53]Content-Type: application/json [19:16:53] [19:16:53]POST finish read [19:16:53]Found Content-Length = 799 [19:16:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4582913", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:53]execute_script... [19: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)98471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4582913", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:53]POST & json_proto [19:16:53]process_json_proto [19:16:53]json parsed OK: [19:16:53]protocol is kg_v1.0 [19:16:53]action value=close_receipt [19:16:53]process_action close_receipt [19:16:53]cmd_close_receipt [19:16:53]MH_GetDate [19:16:53]Write to MH i2c: F0 00 00 2C 23 3E [19:16:53]Write i2c OK [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: F0 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: F0 09 00 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: F0 09 00 2C 23 00 27 9D 1A 67 50 D1 6C 64 7D [19:16:53]GetLastDocTimeStamp 1729797364 [19:16:53]current date 1729797415 [19:16:53]FM_GetShiftState [19:16:53]SAM_PROTO_GetShiftState [19:16:53]wFMCommunicate request_size=4 [19:16:53]MH_SAM_APDU [19:16:53]CAPDU: 80 13 01 00 [19:16:53]Write to MH i2c: E2 08 00 2D 23 80 13 01 00 00 00 00 00 CD [19:16:53]Write i2c OK [19:16:53]MH_I2C_Read... [19:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:53]Read from MH i2c: E2 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: E2 0E 00 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: E2 0E 00 2D 23 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1A [19:16:53]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:16:53]wFMCommunicate OK [19:16:53]SAM_PROTO_GetShiftState done [19:16:53]FM_GetShiftState done [19:16:53]opened in 1729729836 [19:16:53]opened+sec_in_day 1729816236 [19:16:53]quantity*price = 0 [19:16:53]sum+1 = 1 [19:16:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 290 24.10.2024 19:16 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4582913 ФМ: 0000000000871792 ФД: 155665 ФПД: 171055570982998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191655&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155665&fm=171055570982998&tin=02508201610067®Number=0000000000091693&sum=0 [19:16:54]StoreToDocumentArchive [19:16:54]shift 534 fd 155665 [19:16:54]save to /storage/0534/doc_00155665 [19:16:54]save last doc name /storage/0534/doc_00155665 to /storage/kkm_last_doc_name [19:16:54]save OK [19:16:54]Clear old archive folders... [19:16:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:16:54]tlvbuf is 01F4EF40 [19:16:54]SAM_PROTO_ClearQueue [19:16:54]wFMCommunicate request_size=4 [19:16:54]MH_SAM_APDU [19:16:54]CAPDU: 80 09 00 00 [19:16:54]Write to MH i2c: E2 08 00 3A 23 80 09 00 00 00 00 00 00 CF [19:16:54]Write i2c OK [19:16:54]MH_I2C_Read... [19:16:54]*** iso7816_exchange 80 09 00 00... 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 3A 23 00 90 00 D1 [19:16:54]RAPDU: 90 00 [19:16:54]wFMCommunicate OK [19:16:54]SAM_PROTO_ClearQueue done [19:16:54]KKMCreateOFDPacket [19:16:54]OFDProtocolAddRootSTLVToBuf [19:16:54]FM_MakeSignedData [19:16:54]FM_MakeSignedData [19:16:54]SAM_PROTO_SignData [19:16:54]wFMCommunicate request_size=4 [19:16:54]MH_SAM_APDU [19:16:54]CAPDU: 80 0D 01 02 [19:16:54]Write to MH i2c: E2 08 00 3B 23 80 0D 01 02 00 00 00 00 D7 [19:16:54]Write i2c OK [19:16:54]MH_I2C_Read... [19:16:54]*** iso7816_exchange 80 0D 01 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 3B 23 00 90 00 D2 [19:16:54]RAPDU: 90 00 [19:16:54]wFMCommunicate OK [19:16:54]wFMCommunicate request_size=255 [19:16:54]MH_SAM_APDU [19: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 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 22 01 00 00 F4 03 04 00 27 9D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 60 02 00 35 04 06 00 9B [19:16:54]Write to MH i2c: E2 02 01 3C 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 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 22 01 00 00 F4 03 04 00 27 9D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 60 02 00 35 04 06 00 9B 00 00 AB [19:16:54]Write i2c OK [19:16:54]MH_I2C_Read... [19:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:55]Read from MH i2c: E2 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: E2 03 00 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: E2 03 00 3C 23 00 90 00 D3 [19:16:55]RAPDU: 90 00 [19:16:55]wFMCommunicate OK [19:16:55]wFMCommunicate request_size=10 [19:16:55]MH_SAM_APDU [19:16:55]CAPDU: 80 0D 02 02 05 92 FA 8B 98 56 [19:16:55]Write to MH i2c: E2 0D 00 3D 23 80 0D 02 02 05 00 92 FA 8B 98 56 00 00 E9 [19:16:55]Write i2c OK [19:16:55]MH_I2C_Read... [19:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:55]Read from MH i2c: E2 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: E2 03 00 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: E2 03 00 3D 23 00 90 00 D4 [19:16:55]RAPDU: 90 00 [19:16:55]wFMCommunicate OK [19:16:55]wFMCommunicate request_size=4 [19:16:55]MH_SAM_APDU [19:16:55]CAPDU: 80 0D 03 02 [19:16:55]Write to MH i2c: E2 08 00 3E 23 80 0D 03 02 00 00 00 00 DC [19:16:55]Write i2c OK [19:16:55]MH_I2C_Read... [19:16:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:55]Read from MH i2c: E2 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: E2 0B 00 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: E2 0B 00 3E 23 00 03 E1 17 28 79 97 F4 F4 90 00 F8 [19:16:55]RAPDU: 03 E1 17 28 79 97 F4 F4 90 00 [19:16:55]wFMCommunicate OK [19:16:55]SAM_PROTO_SignData done [19:16:55]FM_MakeSignedData done [19:16:55]CreateOFDProtocolMessage [19:16:55]wFMCommunicate request_size=4 [19:16:55]MH_SAM_APDU [19:16:55]CAPDU: 80 11 00 00 [19:16:55]Write to MH i2c: E2 08 00 3F 23 80 11 00 00 00 00 00 00 DC [19:16:55]Write i2c OK [19:16:55]MH_I2C_Read... [19:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:55]Read from MH i2c: E2 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: E2 17 00 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: E2 17 00 3F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 31 [19:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:16:55]wFMCommunicate OK [19:16:55]CreateOFDProtocolMessage done [19:16:55]OFDSenderStorePacket 155665 [19:16:55]StoreOFDPacket docnum=155665 [19:16:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 18 EC 07 01 ED AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 22 01 00 00 F4 03 04 00 27 9D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 60 02 00 35 04 06 00 9B 92 FA 8B 98 56 03 E1 17 28 79 97 F4 F4 [19:16:55]CheckFolder [19:16:55]dirname=/storage/ofd_packets [19:16:55]CheckFolder done [19:16:55]ProducePacketName [19:16:55]name=ofd_packets/00155665 [19:16:55]NVStorageSaveData ofd_packets/00155665 [19:16:55]File name is /storage/ofd_packets/00155665 [19:16:55]Write 301 bytes [19:16:55]NVStorageSaveData done [19:16:55]OFDSenderStorePacket done [19:16:55]KKMCreateOFDPacket done [19:16:55]NVStorageSaveData kkm_last_timestamp [19:16:55]File name is /storage/kkm_last_timestamp [19:16:55]Write 4 bytes [19:16:55]NVStorageSaveData done [19:16:55]ExternCall_PrintAddStr [19:16:55]wPrintStart [19:16:55]Write to MH i2c: 01 00 00 40 23 63 [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 40 23 00 00 00 00 00 FF 0F 78 [19:16:55]RasterBufferAndPrint [19:16:55]line Счет N : (1)98471 [19:16:55]line ИНН: 02508201610067 [19:16:55]line Контрольно-Кассовый Чек [19:16:55]line ПРОДАЖА [19:16:55]line ТРК (МРК, ГНК) : 21 [19:16:55]line Товар: 2710124130 [19:16:55]line Аи-92-К-5 [19:16:55]line 10.000 * 0.00 [19:16:55]line = 0.00 [19:16:55]line НДС 12% НСП 1% [19:16:55]line > о реализуемом товаре [19:16:55]line ИТОГО: 0.00 [19:16:55]line НСП 1% : 0.00 [19:16:55]line НДС 12% : 0.00 [19:16:55]line Наличными: 0.00 [19:16:55]line Безнал.: 0.00 [19:16:55]line Место: АЗС № 143 "Партнер Нефть" [19:16:55]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:16:55]line СНО: Общий режим [19:16:55]line Чек 290 24.10.2024 19:16 [19:16:55]line Смена: 534 ФФД: 1.0 [19:16:55]line ЗНМ: 0300000096 [19:16:55]line РНМ: 0000000000091693 [19:16:55]line Версия ККМ: 001 [19:16:55]line Талоны: Топливные Талоны [19:16:55]line 4582913 [19:16:55]line ФМ: 0000000000871792 [19:16:55]line ФД: 155665 [19:16:55]line ФПД: 171055570982998 [19:16:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191655&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155665&fm=171055570982998&tin=02508201610067®Number=0000000000091693&sum=0 [19:16:55]written 0, free lines is 4095 [19:16:55]OFD Sender: Processing packet 155665 [packets to send 31, broken 30] [19:16:55]ProducePacketName [19:16:55]name=ofd_packets/00155665 [19:16:55]OFD Sender: To server: pG, [19:16:55]CommunicateWithHost lk.salyk.kg:30040 [19:16:55]ConnectInit lk.salyk.kg [19:16:55]Connected sock=10 [19: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 39 32 0F 01 00 00 18 EC 07 01 ED AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 22 01 00 00 F4 03 04 00 27 9D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 60 02 00 35 04 06 00 9B 92 FA 8B 98 56 03 E1 17 28 79 97 F4 F4 [19:16:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A1 28 47 00 FD 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 39 32 10 04 04 00 11 60 02 00 F4 03 04 00 9F 42 1A 67 B6 04 01 00 00 AC 01 8F AB 9D DA 05 E3 [19:16:56]CommunicateWithHost err = 0 [19:16:56]CheckOFDResponse [19:16:56]1017 (14) - 77093643461234 [19:16:56]1041 (16) - 0000000000871792 [19:16:56]1040 (4) - 155665 [19:16:56]1012 (4) - 24.10.2024 12:50 [19:16:56]1206 (1) - 0 [19:16:56]OFD Sender: Remove packet 155665 [19:16:56]ProducePacketName [19:16:56]name=ofd_packets/00155665 [19:16:56]NVStorageDeleteData [19:16:56]Write to MH i2c: 01 00 00 6A 23 8D [19:16:56]Write i2c OK [19:16:56]MH_I2C_Read... [19:16:56]Read from MH i2c: 01 [19:16:56]MH_I2C_Read... [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 6A 23 00 00 00 00 00 FB 0C 9B [19:16:56]RasterBufferAndPrint [19:16:56]line [19:16:56]line [19:16:56]line [19:16:56]line [19:16:56]line [19:16:56]written 0, free lines is 3329 [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 71 23 80 11 00 00 00 00 00 00 0E [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 71 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 63 [19:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 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 72 23 80 13 00 00 00 00 00 00 11 [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 72 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 11 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 11 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [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 73 23 80 13 01 00 00 00 00 00 13 [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 73 23 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 60 [19:16:56]RAPDU: 09 00 01 2C 95 19 67 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":"0000000000871792","fd.num":155665,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [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":"0000000000871792","fd.num":155665,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [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 9.Close socket [19:16:56]Sock 9.Thread stoped [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:16]OFD Sender: No OFD packet to send [19:17:21]OFD Sender: No OFD packet to send [19:17:26]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [19:18:09]accept exits with 8 [19:18:09]New connection [19:18:09]New thread 3066637668 created [19:18:09]Thread 3066781028 joined [19:18:09]Waiting for new connection... [19:18:09] Sock 8.Parse request [19:18:09]Sock 8.Check first char [19:18:09]Sock 8.First char is OK [19:18:09]request: POST /json_proto HTTP/1.0 [19:18:09]Method: POST [19:18:09]URL: /json_proto [19:18:09]Method is POST - this is cgi request [19:18:09]url: /json_proto [19:18:09]query_string will be loaded in cgi processing [19:18:09]execute_cgi json_proto POST (null) [19:18:09]execute_cgi path=json_proto method=POST [19:18:09]POST find Content-Length [19:18:09]Host: 172.17.63.3:8080 [19:18:09]Content-Length: 678 [19:18:09]Content-Type: application/json [19:18:09] [19:18:09]POST finish read [19:18:09]Found Content-Length = 678 [19:18:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [19:18:09]execute_script... [19:18: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)98472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [19:18:09]POST & json_proto [19:18:09]process_json_proto [19:18:09]json parsed OK: [19:18:09]protocol is kg_v1.0 [19:18:09]action value=close_receipt [19:18:09]process_action close_receipt [19:18:09]cmd_close_receipt [19:18:09]MH_GetDate [19:18:09]Write to MH i2c: F0 00 00 74 23 86 [19:18:09]Write i2c OK [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: F0 [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: F0 09 00 [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: F0 09 00 74 23 00 72 9D 1A 67 50 D1 6C 64 10 [19:18:09]GetLastDocTimeStamp 1729797415 [19:18:09]current date 1729797490 [19:18:09]FM_GetShiftState [19:18:09]SAM_PROTO_GetShiftState [19:18:09]wFMCommunicate request_size=4 [19:18:09]MH_SAM_APDU [19:18:09]CAPDU: 80 13 01 00 [19:18:09]Write to MH i2c: E2 08 00 75 23 80 13 01 00 00 00 00 00 15 [19:18:09]Write i2c OK [19:18:09]MH_I2C_Read... [19:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:09]Read from MH i2c: E2 [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: E2 0E 00 [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: E2 0E 00 75 23 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 62 [19:18:09]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:18:09]wFMCommunicate OK [19:18:09]SAM_PROTO_GetShiftState done [19:18:09]FM_GetShiftState done [19:18:09]opened in 1729729836 [19:18:09]opened+sec_in_day 1729816236 [19:18:09]quantity*price = 250012 [19:18:09]sum+1 = 250013 [19:18:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 291 24.10.2024 19:18 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155666 ФПД: 36541875003566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191810&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155666&fm=36541875003566&tin=02508201610067®Number=0000000000091693&sum=250000 [19:18:10]StoreToDocumentArchive [19:18:10]shift 534 fd 155666 [19:18:10]save to /storage/0534/doc_00155666 [19:18:10]save last doc name /storage/0534/doc_00155666 to /storage/kkm_last_doc_name [19:18:10]save OK [19:18:10]Clear old archive folders... [19:18:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:18:10]tlvbuf is 01F349C0 [19:18:10]SAM_PROTO_ClearQueue [19:18:10]wFMCommunicate request_size=4 [19:18:10]MH_SAM_APDU [19:18:10]CAPDU: 80 09 00 00 [19:18:10]Write to MH i2c: E2 08 00 82 23 80 09 00 00 00 00 00 00 17 [19:18:10]Write i2c OK [19:18:10]MH_I2C_Read... [19:18:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:10]Read from MH i2c: E2 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 03 00 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 03 00 82 23 00 90 00 19 [19:18:10]RAPDU: 90 00 [19:18:10]wFMCommunicate OK [19:18:10]SAM_PROTO_ClearQueue done [19:18:10]KKMCreateOFDPacket [19:18:10]OFDProtocolAddRootSTLVToBuf [19:18:10]FM_MakeSignedData [19:18:10]FM_MakeSignedData [19:18:10]SAM_PROTO_SignData [19:18:10]wFMCommunicate request_size=4 [19:18:10]MH_SAM_APDU [19:18:10]CAPDU: 80 0D 01 02 [19:18:10]Write to MH i2c: E2 08 00 83 23 80 0D 01 02 00 00 00 00 1F [19:18:10]Write i2c OK [19:18:10]MH_I2C_Read... [19:18:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:10]Read from MH i2c: E2 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 03 00 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 03 00 83 23 00 90 00 1A [19:18:10]RAPDU: 90 00 [19:18:10]wFMCommunicate OK [19:18:10]wFMCommunicate request_size=255 [19:18:10]MH_SAM_APDU [19:18:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 23 01 00 00 F4 03 04 00 72 9D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 60 02 00 35 04 06 00 21 3C 11 7A [19:18:10]Write to MH i2c: E2 02 01 84 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 23 01 00 00 F4 03 04 00 72 9D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 60 02 00 35 04 06 00 21 3C 11 7A 00 00 32 [19:18:10]Write i2c OK [19:18:10]MH_I2C_Read... [19:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:10]Read from MH i2c: E2 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 03 00 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 03 00 84 23 00 90 00 1B [19:18:10]RAPDU: 90 00 [19:18:10]wFMCommunicate OK [19:18:10]wFMCommunicate request_size=7 [19:18:10]MH_SAM_APDU [19:18:10]CAPDU: 80 0D 02 02 02 A0 AE [19:18:10]Write to MH i2c: E2 0A 00 85 23 80 0D 02 02 02 00 A0 AE 00 00 74 [19:18:10]Write i2c OK [19:18:10]MH_I2C_Read... [19:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:10]Read from MH i2c: E2 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 03 00 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 03 00 85 23 00 90 00 1C [19:18:10]RAPDU: 90 00 [19:18:10]wFMCommunicate OK [19:18:10]wFMCommunicate request_size=4 [19:18:10]MH_SAM_APDU [19:18:10]CAPDU: 80 0D 03 02 [19:18:10]Write to MH i2c: E2 08 00 86 23 80 0D 03 02 00 00 00 00 24 [19:18:10]Write i2c OK [19:18:10]MH_I2C_Read... [19:18:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:10]Read from MH i2c: E2 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 0B 00 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 0B 00 86 23 00 ED 78 66 76 A1 18 FF 21 90 00 3F [19:18:10]RAPDU: ED 78 66 76 A1 18 FF 21 90 00 [19:18:10]wFMCommunicate OK [19:18:10]SAM_PROTO_SignData done [19:18:10]FM_MakeSignedData done [19:18:10]CreateOFDProtocolMessage [19:18:10]wFMCommunicate request_size=4 [19:18:10]MH_SAM_APDU [19:18:10]CAPDU: 80 11 00 00 [19:18:10]Write to MH i2c: E2 08 00 87 23 80 11 00 00 00 00 00 00 24 [19:18:10]Write i2c OK [19:18:10]MH_I2C_Read... [19:18:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:10]Read from MH i2c: E2 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 17 00 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 17 00 87 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 79 [19:18:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:18:10]wFMCommunicate OK [19:18:10]CreateOFDProtocolMessage done [19:18:10]OFDSenderStorePacket 155666 [19:18:10]StoreOFDPacket docnum=155666 [19:18:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 5D C6 04 01 E4 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 23 01 00 00 F4 03 04 00 72 9D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 60 02 00 35 04 06 00 21 3C 11 7A A0 AE ED 78 66 76 A1 18 FF 21 [19:18:10]CheckFolder [19:18:10]dirname=/storage/ofd_packets [19:18:10]CheckFolder done [19:18:10]ProducePacketName [19:18:10]name=ofd_packets/00155666 [19:18:10]NVStorageSaveData ofd_packets/00155666 [19:18:10]File name is /storage/ofd_packets/00155666 [19:18:10]Write 298 bytes [19:18:10]NVStorageSaveData done [19:18:10]OFDSenderStorePacket done [19:18:10]KKMCreateOFDPacket done [19:18:10]NVStorageSaveData kkm_last_timestamp [19:18:10]File name is /storage/kkm_last_timestamp [19:18:10]Write 4 bytes [19:18:10]NVStorageSaveData done [19:18:10]ExternCall_PrintAddStr [19:18:10]wPrintStart [19:18:10]Write to MH i2c: 01 00 00 88 23 AB [19:18:10]Write i2c OK [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: 01 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: 01 07 00 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: 01 07 00 88 23 00 00 00 00 00 FF 0F C0 [19:18:10]RasterBufferAndPrint [19:18:10]line Счет N : (1)98472 [19:18:10]line ИНН: 02508201610067 [19:18:10]line Контрольно-Кассовый Чек [19:18:10]line ПРОДАЖА [19:18:10]line ТРК (МРК, ГНК) : 32 [19:18:10]line Товар: 2710194210 [19:18:10]line ДТ-К-5 [19:18:10]line 32.810 * 76.20 [19:18:10]line = 2500.12 [19:18:10]line НДС 12% НСП 1% [19:18:10]line > о реализуемом товаре [19:18:10]line ОКРУГЛЕНИЕ: -0.12 [19:18:10]line ИТОГО: 2500.00 [19:18:10]line Внесено: 2500.00 [19:18:10]line СДАЧА: 0.00 [19:18:10]line НСП 1% : 22.12 [19:18:10]line НДС 12% : 265.50 [19:18:10]line Наличными: 2500.00 [19:18:10]line Безнал.: 0.00 [19:18:10]line Место: АЗС № 143 "Партнер Нефть" [19:18:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:18:10]line СНО: Общий режим [19:18:10]line Чек 291 24.10.2024 19:18 [19:18:10]line Смена: 534 ФФД: 1.0 [19:18:10]line ЗНМ: 0300000096 [19:18:10]line РНМ: 0000000000091693 [19:18:10]line Версия ККМ: 001 [19:18:10]line ФМ: 0000000000871792 [19:18:10]line ФД: 155666 [19:18:10]line ФПД: 36541875003566 [19:18:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191810&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155666&fm=36541875003566&tin=02508201610067®Number=0000000000091693&sum=250000 [19:18:11]OFD Sender: Processing packet 155666 [packets to send 31, broken 30] [19:18:11]ProducePacketName [19:18:11]name=ofd_packets/00155666 [19:18:11]OFD Sender: To server: pG, [19:18:11]CommunicateWithHost lk.salyk.kg:30040 [19:18:11]ConnectInit lk.salyk.kg [19:18:11]written 0, free lines is 4095 [19:18:11]Connected sock=10 [19:18: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 39 32 0C 01 00 00 5D C6 04 01 E4 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 23 01 00 00 F4 03 04 00 72 9D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 60 02 00 35 04 06 00 21 3C 11 7A A0 AE ED 78 66 76 A1 18 FF 21 [19:18: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 39 32 4F 00 00 00 BA 95 47 00 D1 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 39 32 10 04 04 00 12 60 02 00 F4 03 04 00 EA 42 1A 67 B6 04 01 00 00 AA E9 9C 87 2E FD 75 2E [19:18:11]CommunicateWithHost err = 0 [19:18:11]CheckOFDResponse [19:18:11]1017 (14) - 77093643461234 [19:18:11]1041 (16) - 0000000000871792 [19:18:11]1040 (4) - 155666 [19:18:11]1012 (4) - 24.10.2024 12:51 [19:18:11]1206 (1) - 0 [19:18:11]OFD Sender: Remove packet 155666 [19:18:11]ProducePacketName [19:18:11]name=ofd_packets/00155666 [19:18:11]NVStorageDeleteData [19:18:11]Write to MH i2c: 01 00 00 B3 23 D6 [19:18:11]Write i2c OK [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: 01 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: 01 07 00 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: 01 07 00 B3 23 00 00 00 00 00 E4 0C CD [19:18:11]RasterBufferAndPrint [19:18:11]line [19:18:11]line [19:18:11]line [19:18:11]line [19:18:11]line [19:18:11]written 0, free lines is 3306 [19:18:11]process_action close_receipt done [19:18:11]requested_data is exist [19:18:11]produce_requested_data [19:18:11]requested_item fm.sn is exist - process it [19:18:11]wFMCommunicate request_size=4 [19:18:11]MH_SAM_APDU [19:18:11]CAPDU: 80 11 00 00 [19:18:11]Write to MH i2c: E2 08 00 BA 23 80 11 00 00 00 00 00 00 57 [19:18:11]Write i2c OK [19:18:11]MH_I2C_Read... [19:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:11]Read from MH i2c: E2 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 17 00 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 17 00 BA 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AC [19:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:18:11]wFMCommunicate OK [19:18:11]requested_item fd.num is exist - process it [19:18:11]SAM_PROTO_GetFieldsCounters [19:18:11]wFMCommunicate request_size=4 [19:18:11]MH_SAM_APDU [19:18:11]CAPDU: 80 13 00 00 [19:18:11]Write to MH i2c: E2 08 00 BB 23 80 13 00 00 00 00 00 00 5A [19:18:11]Write i2c OK [19:18:11]MH_I2C_Read... [19:18:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:11]Read from MH i2c: E2 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 62 00 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 62 00 BB 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 12 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 78 [19:18: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 12 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:11]wFMCommunicate OK [19:18:11]SAM_PROTO_GetFieldsCounters done [19:18:11]requested_item shift.num is exist - process it [19:18:11]requested_item shift.opened is exist - process it [19:18:11]req_shift_opened [19:18:11]FM_GetShiftState [19:18:11]SAM_PROTO_GetShiftState [19:18:11]wFMCommunicate request_size=4 [19:18:11]MH_SAM_APDU [19:18:11]CAPDU: 80 13 01 00 [19:18:11]Write to MH i2c: E2 08 00 BC 23 80 13 01 00 00 00 00 00 5C [19:18:11]Write i2c OK [19:18:11]MH_I2C_Read... [19:18:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:11]Read from MH i2c: E2 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 0E 00 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 0E 00 BC 23 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 A9 [19:18:11]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:18:11]wFMCommunicate OK [19:18:11]SAM_PROTO_GetShiftState done [19:18:11]FM_GetShiftState done [19:18:11]req_shift_opened done [19:18:11]requested_item shift.open_date is exist - process it [19:18:11]req_shift_open_date [19:18:11]req_shift_open_date done [19:18:11]produce_requested_data done [19:18:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155666,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:18:11]process_action_free close_receipt [19:18:11]json_value_free [19:18:11]json_value_free done [19:18:11]process_json_proto returns [19:18:11]Send response to host [19:18:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155666,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:18:11]free response buf [19:18:11]execute_script done [19:18:11]execute_script returns [19:18:11]free content buf [19:18:11]Sock 8.Close socket [19:18:11]Sock 8.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:23]accept exits with 9 [19:18:23]New connection [19:18:23]New thread 3066781028 created [19:18:23]Thread 3066637668 joined [19:18:23]Waiting for new connection... [19:18:23] Sock 9.Parse request [19:18:23]Sock 9.Check first char [19:18:23]Sock 9.First char is OK [19:18:23]request: POST /json_proto HTTP/1.0 [19:18:23]Method: POST [19:18:23]URL: /json_proto [19:18:23]Method is POST - this is cgi request [19:18:23]url: /json_proto [19:18:23]query_string will be loaded in cgi processing [19:18:23]execute_cgi json_proto POST (null) [19:18:23]execute_cgi path=json_proto method=POST [19:18:23]POST find Content-Length [19:18:23]Host: 172.17.63.3:8080 [19:18:23]Content-Length: 681 [19:18:23]Content-Type: application/json [19:18:23] [19:18:23]POST finish read [19:18:23]Found Content-Length = 681 [19:18:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:23]execute_script... [19:18: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)98473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:23]POST & json_proto [19:18:23]process_json_proto [19:18:23]json parsed OK: [19:18:23]protocol is kg_v1.0 [19:18:23]action value=close_receipt [19:18:23]process_action close_receipt [19:18:23]cmd_close_receipt [19:18:23]MH_GetDate [19:18:23]Write to MH i2c: F0 00 00 BD 23 CF [19:18:23]Write i2c OK [19:18:23]MH_I2C_Read... [19:18:23]Read from MH i2c: F0 [19:18:23]MH_I2C_Read... [19:18:23]Read from MH i2c: F0 09 00 [19:18:23]MH_I2C_Read... [19:18:23]Read from MH i2c: F0 09 00 BD 23 00 81 9D 1A 67 50 D1 6C 64 68 [19:18:23]GetLastDocTimeStamp 1729797490 [19:18:23]current date 1729797505 [19:18:23]FM_GetShiftState [19:18:23]SAM_PROTO_GetShiftState [19:18:23]wFMCommunicate request_size=4 [19:18:23]MH_SAM_APDU [19:18:23]CAPDU: 80 13 01 00 [19:18:23]Write to MH i2c: E2 08 00 BE 23 80 13 01 00 00 00 00 00 5E [19:18:23]Write i2c OK [19:18:23]MH_I2C_Read... [19:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:23]Read from MH i2c: E2 [19:18:23]MH_I2C_Read... [19:18:23]Read from MH i2c: E2 0E 00 [19:18:23]MH_I2C_Read... [19:18:23]Read from MH i2c: E2 0E 00 BE 23 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AB [19:18:23]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:18:23]wFMCommunicate OK [19:18:23]SAM_PROTO_GetShiftState done [19:18:23]FM_GetShiftState done [19:18:23]opened in 1729729836 [19:18:23]opened+sec_in_day 1729816236 [19:18:23]quantity*price = 100015 [19:18:23]sum+1 = 100017 [19:18:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 292 24.10.2024 19:18 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155667 ФПД: 124200983573669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191825&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155667&fm=124200983573669&tin=02508201610067®Number=0000000000091693&sum=100000 [19:18:25]StoreToDocumentArchive [19:18:25]shift 534 fd 155667 [19:18:25]save to /storage/0534/doc_00155667 [19:18:25]save last doc name /storage/0534/doc_00155667 to /storage/kkm_last_doc_name [19:18:25]save OK [19:18:25]Clear old archive folders... [19:18:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:18:25]tlvbuf is 01FEB6F0 [19:18:25]SAM_PROTO_ClearQueue [19:18:25]wFMCommunicate request_size=4 [19:18:25]MH_SAM_APDU [19:18:25]CAPDU: 80 09 00 00 [19:18:25]Write to MH i2c: E2 08 00 CB 23 80 09 00 00 00 00 00 00 60 [19:18:25]Write i2c OK [19:18:25]MH_I2C_Read... [19:18:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:25]Read from MH i2c: E2 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 03 00 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 03 00 CB 23 00 90 00 62 [19:18:25]RAPDU: 90 00 [19:18:25]wFMCommunicate OK [19:18:25]SAM_PROTO_ClearQueue done [19:18:25]KKMCreateOFDPacket [19:18:25]OFDProtocolAddRootSTLVToBuf [19:18:25]FM_MakeSignedData [19:18:25]FM_MakeSignedData [19:18:25]SAM_PROTO_SignData [19:18:25]wFMCommunicate request_size=4 [19:18:25]MH_SAM_APDU [19:18:25]CAPDU: 80 0D 01 02 [19:18:25]Write to MH i2c: E2 08 00 CC 23 80 0D 01 02 00 00 00 00 68 [19:18:25]Write i2c OK [19:18:25]MH_I2C_Read... [19:18:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:25]Read from MH i2c: E2 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 03 00 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 03 00 CC 23 00 90 00 63 [19:18:25]RAPDU: 90 00 [19:18:25]wFMCommunicate OK [19:18:25]wFMCommunicate request_size=255 [19:18:25]MH_SAM_APDU [19:18: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 81 9D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 60 02 00 35 04 06 00 70 [19:18:25]Write to MH i2c: E2 02 01 CD 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 81 9D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 60 02 00 35 04 06 00 70 00 00 B7 [19:18:25]Write i2c OK [19:18:25]MH_I2C_Read... [19:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:25]Read from MH i2c: E2 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 03 00 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 03 00 CD 23 00 90 00 64 [19:18:25]RAPDU: 90 00 [19:18:25]wFMCommunicate OK [19:18:25]wFMCommunicate request_size=10 [19:18:25]MH_SAM_APDU [19:18:25]CAPDU: 80 0D 02 02 05 F5 CB 81 B4 A5 [19:18:25]Write to MH i2c: E2 0D 00 CE 23 80 0D 02 02 05 00 F5 CB 81 B4 A5 00 00 0F [19:18:25]Write i2c OK [19:18:25]MH_I2C_Read... [19:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:25]Read from MH i2c: E2 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 03 00 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 03 00 CE 23 00 90 00 65 [19:18:25]RAPDU: 90 00 [19:18:25]wFMCommunicate OK [19:18:25]wFMCommunicate request_size=4 [19:18:25]MH_SAM_APDU [19:18:25]CAPDU: 80 0D 03 02 [19:18:25]Write to MH i2c: E2 08 00 CF 23 80 0D 03 02 00 00 00 00 6D [19:18:25]Write i2c OK [19:18:25]MH_I2C_Read... [19:18:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:25]Read from MH i2c: E2 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 0B 00 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 0B 00 CF 23 00 95 20 A6 E5 8E 12 6C 0C 90 00 C6 [19:18:25]RAPDU: 95 20 A6 E5 8E 12 6C 0C 90 00 [19:18:25]wFMCommunicate OK [19:18:25]SAM_PROTO_SignData done [19:18:25]FM_MakeSignedData done [19:18:25]CreateOFDProtocolMessage [19:18:25]wFMCommunicate request_size=4 [19:18:25]MH_SAM_APDU [19:18:25]CAPDU: 80 11 00 00 [19:18:25]Write to MH i2c: E2 08 00 D0 23 80 11 00 00 00 00 00 00 6D [19:18:25]Write i2c OK [19:18:25]MH_I2C_Read... [19:18:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:25]Read from MH i2c: E2 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 17 00 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 17 00 D0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C2 [19:18:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:18:25]wFMCommunicate OK [19:18:25]CreateOFDProtocolMessage done [19:18:25]OFDSenderStorePacket 155667 [19:18:25]StoreOFDPacket docnum=155667 [19:18:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 97 1D 07 01 A0 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 81 9D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 60 02 00 35 04 06 00 70 F5 CB 81 B4 A5 95 20 A6 E5 8E 12 6C 0C [19:18:25]CheckFolder [19:18:25]dirname=/storage/ofd_packets [19:18:25]CheckFolder done [19:18:25]ProducePacketName [19:18:25]name=ofd_packets/00155667 [19:18:25]NVStorageSaveData ofd_packets/00155667 [19:18:25]File name is /storage/ofd_packets/00155667 [19:18:25]Write 301 bytes [19:18:25]NVStorageSaveData done [19:18:25]OFDSenderStorePacket done [19:18:25]KKMCreateOFDPacket done [19:18:25]NVStorageSaveData kkm_last_timestamp [19:18:25]File name is /storage/kkm_last_timestamp [19:18:25]Write 4 bytes [19:18:25]NVStorageSaveData done [19:18:25]OFD Sender: Processing packet 155667 [packets to send 31, broken 30] [19:18:25]ProducePacketName [19:18:25]name=ofd_packets/00155667 [19:18:25]OFD Sender: To server: pG, [19:18:25]CommunicateWithHost lk.salyk.kg:30040 [19:18:25]ConnectInit lk.salyk.kg [19:18:25]ExternCall_PrintAddStr [19:18:25]wPrintStart [19:18:25]Write to MH i2c: 01 00 00 D1 23 F4 [19:18:25]Write i2c OK [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: 01 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: 01 07 00 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: 01 07 00 D1 23 00 00 00 00 00 FF 0F 09 [19:18:25]RasterBufferAndPrint [19:18:25]line Счет N : (1)98473 [19:18:25]line ИНН: 02508201610067 [19:18:25]line Контрольно-Кассовый Чек [19:18:25]line ПРОДАЖА [19:18:25]line ТРК (МРК, ГНК) : 21 [19:18:25]line Товар: 2710124130 [19:18:25]line Аи-92-К-5 [19:18:25]line 14.950 * 66.90 [19:18:25]line = 1000.16 [19:18:25]line НДС 12% НСП 1% [19:18:25]line > о реализуемом товаре [19:18:25]line ОКРУГЛЕНИЕ: -0.16 [19:18:25]line ИТОГО: 1000.00 [19:18:25]line Внесено: 1000.00 [19:18:25]line СДАЧА: 0.00 [19:18:25]line НСП 1% : 8.85 [19:18:25]line НДС 12% : 106.21 [19:18:25]line Наличными: 1000.00 [19:18:25]line Безнал.: 0.00 [19:18:25]line Место: АЗС № 143 "Партнер Нефть" [19:18:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:18:25]line СНО: Общий режим [19:18:25]line Чек 292 24.10.2024 19:18 [19:18:25]line Смена: 534 ФФД: 1.0 [19:18:25]line ЗНМ: 0300000096 [19:18:25]line РНМ: 0000000000091693 [19:18:25]line Версия ККМ: 001 [19:18:25]line ФМ: 0000000000871792 [19:18:25]line ФД: 155667 [19:18:25]line ФПД: 124200983573669 [19:18:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191825&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155667&fm=124200983573669&tin=02508201610067®Number=0000000000091693&sum=100000 [19:18:25]Connected sock=11 [19:18: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 39 32 0F 01 00 00 97 1D 07 01 A0 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 81 9D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 60 02 00 35 04 06 00 70 F5 CB 81 B4 A5 95 20 A6 E5 8E 12 6C 0C [19:18:25]written 0, free lines is 4095 [19:18: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 39 32 4F 00 00 00 62 D2 47 00 2E 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 60 02 00 F4 03 04 00 F9 42 1A 67 B6 04 01 00 00 CE BE 02 C5 C5 8D 9C 58 [19:18:26]CommunicateWithHost err = 0 [19:18:26]CheckOFDResponse [19:18:26]1017 (14) - 77093643461234 [19:18:26]1041 (16) - 0000000000871792 [19:18:26]1040 (4) - 155667 [19:18:26]1012 (4) - 24.10.2024 12:52 [19:18:26]1206 (1) - 0 [19:18:26]OFD Sender: Remove packet 155667 [19:18:26]ProducePacketName [19:18:26]name=ofd_packets/00155667 [19:18:26]NVStorageDeleteData [19:18:26]Write to MH i2c: 01 00 00 FC 23 1F [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: 01 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: 01 07 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: 01 07 00 FC 23 00 00 00 00 00 DD 0C 0F [19:18:26]RasterBufferAndPrint [19:18:26]line [19:18:26]line [19:18:26]line [19:18:26]line [19:18:26]line [19:18:26]written 0, free lines is 3302 [19:18:26]process_action close_receipt done [19:18:26]requested_data is exist [19:18:26]produce_requested_data [19:18:26]requested_item fm.sn is exist - process it [19:18:26]wFMCommunicate request_size=4 [19:18:26]MH_SAM_APDU [19:18:26]CAPDU: 80 11 00 00 [19:18:26]Write to MH i2c: E2 08 00 03 24 80 11 00 00 00 00 00 00 A1 [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:26]Read from MH i2c: E2 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 17 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 17 00 03 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F6 [19:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:18:26]wFMCommunicate OK [19:18:26]requested_item fd.num is exist - process it [19:18:26]SAM_PROTO_GetFieldsCounters [19:18:26]wFMCommunicate request_size=4 [19:18:26]MH_SAM_APDU [19:18:26]CAPDU: 80 13 00 00 [19:18:26]Write to MH i2c: E2 08 00 04 24 80 13 00 00 00 00 00 00 A4 [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:26]Read from MH i2c: E2 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 62 00 [19:18:26]MH_I2C_Read... [19:18:26]OFD Sender: No OFD packet to send [19:18:26]Read from MH i2c: E2 62 00 04 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 13 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [19:18: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 13 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:26]wFMCommunicate OK [19:18:26]SAM_PROTO_GetFieldsCounters done [19:18:26]requested_item shift.num is exist - process it [19:18:26]requested_item shift.opened is exist - process it [19:18:26]req_shift_opened [19:18:26]FM_GetShiftState [19:18:26]SAM_PROTO_GetShiftState [19:18:26]wFMCommunicate request_size=4 [19:18:26]MH_SAM_APDU [19:18:26]CAPDU: 80 13 01 00 [19:18:26]Write to MH i2c: E2 08 00 05 24 80 13 01 00 00 00 00 00 A6 [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:26]Read from MH i2c: E2 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 0E 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 0E 00 05 24 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F3 [19:18:26]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:18:26]wFMCommunicate OK [19:18:26]SAM_PROTO_GetShiftState done [19:18:26]FM_GetShiftState done [19:18:26]req_shift_opened done [19:18:26]requested_item shift.open_date is exist - process it [19:18:26]req_shift_open_date [19:18:26]req_shift_open_date done [19:18:26]produce_requested_data done [19:18:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155667,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:18:26]process_action_free close_receipt [19:18:26]json_value_free [19:18:26]json_value_free done [19:18:26]process_json_proto returns [19:18:26]Send response to host [19:18:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155667,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:18:26]free response buf [19:18:26]execute_script done [19:18:26]execute_script returns [19:18:26]free content buf [19:18:26]Sock 9.Close socket [19:18:26]Sock 9.Thread stoped [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:06]OFD Sender: No OFD packet to send [19:19:11]OFD Sender: No OFD packet to send [19:19:16]OFD Sender: No OFD packet to send [19:19:21]OFD Sender: No OFD packet to send [19:19:26]OFD Sender: No OFD packet to send [19:19:31]OFD Sender: No OFD packet to send [19:19:36]OFD Sender: No OFD packet to send [19:19:41]accept exits with 8 [19:19:41]New connection [19:19:41]New thread 3066637668 created [19:19:41]Thread 3066781028 joined [19:19:41]Waiting for new connection... [19:19:41] Sock 8.Parse request [19:19:41]Sock 8.Check first char [19:19:41]Sock 8.First char is OK [19:19:41]request: POST /json_proto HTTP/1.0 [19:19:41]Method: POST [19:19:41]URL: /json_proto [19:19:41]Method is POST - this is cgi request [19:19:41]url: /json_proto [19:19:41]query_string will be loaded in cgi processing [19:19:41]execute_cgi json_proto POST (null) [19:19:41]execute_cgi path=json_proto method=POST [19:19:41]POST find Content-Length [19:19:41]Host: 172.17.63.3:8080 [19:19:41]Content-Length: 676 [19:19:41]Content-Type: application/json [19:19:41] [19:19:41]POST finish read [19:19:41]Found Content-Length = 676 [19:19:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:41]execute_script... [19: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)98474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:41]POST & json_proto [19:19:41]process_json_proto [19:19:41]json parsed OK: [19:19:41]protocol is kg_v1.0 [19:19:41]action value=close_receipt [19:19:41]process_action close_receipt [19:19:41]cmd_close_receipt [19:19:41]MH_GetDate [19:19:41]Write to MH i2c: F0 00 00 06 24 19 [19:19:41]Write i2c OK [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: F0 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: F0 09 00 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: F0 09 00 06 24 00 CE 9D 1A 67 50 D1 6C 64 FF [19:19:41]GetLastDocTimeStamp 1729797505 [19:19:41]current date 1729797582 [19:19:41]FM_GetShiftState [19:19:41]SAM_PROTO_GetShiftState [19:19:41]wFMCommunicate request_size=4 [19:19:41]MH_SAM_APDU [19:19:41]CAPDU: 80 13 01 00 [19:19:41]Write to MH i2c: E2 08 00 07 24 80 13 01 00 00 00 00 00 A8 [19:19:41]Write i2c OK [19:19:41]MH_I2C_Read... [19:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:41]Read from MH i2c: E2 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 0E 00 [19:19:41]MH_I2C_Read... [19:19:41]Read from MH i2c: E2 0E 00 07 24 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F5 [19:19:41]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:19:41]wFMCommunicate OK [19:19:41]SAM_PROTO_GetShiftState done [19:19:41]FM_GetShiftState done [19:19:41]opened in 1729729836 [19:19:41]opened+sec_in_day 1729816236 [19:19:41]quantity*price = 20003 [19:19:41]sum+1 = 20004 [19:19:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 293 24.10.2024 19:19 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155668 ФПД: 170837448318659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191942&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155668&fm=170837448318659&tin=02508201610067®Number=0000000000091693&sum=20000 [19:19:42]StoreToDocumentArchive [19:19:42]shift 534 fd 155668 [19:19:42]save to /storage/0534/doc_00155668 [19:19:42]save last doc name /storage/0534/doc_00155668 to /storage/kkm_last_doc_name [19:19:42]save OK [19:19:42]Clear old archive folders... [19:19:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:42]tlvbuf is 01F4F400 [19:19:42]SAM_PROTO_ClearQueue [19:19:42]wFMCommunicate request_size=4 [19:19:42]MH_SAM_APDU [19:19:42]CAPDU: 80 09 00 00 [19:19:42]Write to MH i2c: E2 08 00 14 24 80 09 00 00 00 00 00 00 AA [19:19:42]Write i2c OK [19:19:42]MH_I2C_Read... [19:19:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:42]Read from MH i2c: E2 [19:19:42]MH_I2C_Read... [19:19:42]Read from MH i2c: E2 03 00 [19:19:42]MH_I2C_Read... [19:19:42]Read from MH i2c: E2 03 00 14 24 00 90 00 AC [19:19:42]RAPDU: 90 00 [19:19:42]wFMCommunicate OK [19:19:42]SAM_PROTO_ClearQueue done [19:19:42]KKMCreateOFDPacket [19:19:42]OFDProtocolAddRootSTLVToBuf [19:19:42]FM_MakeSignedData [19:19:42]FM_MakeSignedData [19:19:42]SAM_PROTO_SignData [19:19:42]wFMCommunicate request_size=4 [19:19:42]MH_SAM_APDU [19:19:42]CAPDU: 80 0D 01 02 [19:19:42]Write to MH i2c: E2 08 00 15 24 80 0D 01 02 00 00 00 00 B2 [19:19:42]Write i2c OK [19:19:42]MH_I2C_Read... [19:19:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:42]Read from MH i2c: E2 [19:19:42]MH_I2C_Read... [19:19:42]Read from MH i2c: E2 03 00 [19:19:42]MH_I2C_Read... [19:19:42]Read from MH i2c: E2 03 00 15 24 00 90 00 AD [19:19:42]RAPDU: 90 00 [19:19:42]wFMCommunicate OK [19:19:42]wFMCommunicate request_size=255 [19:19:42]MH_SAM_APDU [19:19:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 CE 9D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 60 02 00 35 04 06 00 9B [19:19:42]Write to MH i2c: E2 02 01 16 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 CE 9D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 60 02 00 35 04 06 00 9B 00 00 43 [19:19:42]Write i2c OK [19:19:42]MH_I2C_Read... [19:19:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:42]Read from MH i2c: E2 [19:19:42]MH_I2C_Read... [19:19:42]Read from MH i2c: E2 03 00 [19:19:42]MH_I2C_Read... [19:19:42]Read from MH i2c: E2 03 00 16 24 00 90 00 AE [19:19:42]RAPDU: 90 00 [19:19:42]wFMCommunicate OK [19:19:42]wFMCommunicate request_size=10 [19:19:42]MH_SAM_APDU [19:19:42]CAPDU: 80 0D 02 02 05 60 31 6B DE C3 [19:19:42]Write to MH i2c: E2 0D 00 17 24 80 0D 02 02 05 00 60 31 6B DE C3 00 00 5C [19:19:42]Write i2c OK [19:19:42]MH_I2C_Read... [19:19:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:42]Read from MH i2c: E2 [19:19:42]MH_I2C_Read... [19:19:42]Read from MH i2c: E2 03 00 [19:19:42]MH_I2C_Read... [19:19:42]Read from MH i2c: E2 03 00 17 24 00 90 00 AF [19:19:42]RAPDU: 90 00 [19:19:42]wFMCommunicate OK [19:19:42]wFMCommunicate request_size=4 [19:19:42]MH_SAM_APDU [19:19:42]CAPDU: 80 0D 03 02 [19:19:42]Write to MH i2c: E2 08 00 18 24 80 0D 03 02 00 00 00 00 B7 [19:19:42]Write i2c OK [19:19:42]MH_I2C_Read... [19:19:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:42]Read from MH i2c: E2 [19:19:42]MH_I2C_Read... [19:19:42]Read from MH i2c: E2 0B 00 [19:19:42]MH_I2C_Read... [19:19:42]Read from MH i2c: E2 0B 00 18 24 00 04 D6 29 DA 3C 3F 32 71 90 00 B3 [19:19:42]RAPDU: 04 D6 29 DA 3C 3F 32 71 90 00 [19:19:42]wFMCommunicate OK [19:19:42]SAM_PROTO_SignData done [19:19:42]FM_MakeSignedData done [19:19:42]CreateOFDProtocolMessage [19:19:42]wFMCommunicate request_size=4 [19:19:42]MH_SAM_APDU [19:19:42]CAPDU: 80 11 00 00 [19:19:42]Write to MH i2c: E2 08 00 19 24 80 11 00 00 00 00 00 00 B7 [19:19:42]Write i2c OK [19:19:42]MH_I2C_Read... [19:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:42]Read from MH i2c: E2 [19:19:42]MH_I2C_Read... [19:19:42]Read from MH i2c: E2 17 00 [19:19:42]MH_I2C_Read... [19:19:42]Read from MH i2c: E2 17 00 19 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0C [19:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:19:42]wFMCommunicate OK [19:19:42]CreateOFDProtocolMessage done [19:19:42]OFDSenderStorePacket 155668 [19:19:42]StoreOFDPacket docnum=155668 [19:19:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 78 FE 07 01 83 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 CE 9D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 60 02 00 35 04 06 00 9B 60 31 6B DE C3 04 D6 29 DA 3C 3F 32 71 [19:19:42]CheckFolder [19:19:42]dirname=/storage/ofd_packets [19:19:42]CheckFolder done [19:19:42]ProducePacketName [19:19:42]name=ofd_packets/00155668 [19:19:42]NVStorageSaveData ofd_packets/00155668 [19:19:42]File name is /storage/ofd_packets/00155668 [19:19:42]Write 301 bytes [19:19:42]NVStorageSaveData done [19:19:42]OFDSenderStorePacket done [19:19:42]KKMCreateOFDPacket done [19:19:42]NVStorageSaveData kkm_last_timestamp [19:19:42]File name is /storage/kkm_last_timestamp [19:19:42]Write 4 bytes [19:19:42]NVStorageSaveData done [19:19:42]ExternCall_PrintAddStr [19:19:42]wPrintStart [19:19:42]Write to MH i2c: 01 00 00 1A 24 3E [19:19:42]Write i2c OK [19:19:42]MH_I2C_Read... [19:19:42]Read from MH i2c: 01 [19:19:42]MH_I2C_Read... [19:19:42]Read from MH i2c: 01 07 00 [19:19:42]MH_I2C_Read... [19:19:42]Read from MH i2c: 01 07 00 1A 24 00 00 00 00 00 FF 0F 53 [19:19:42]RasterBufferAndPrint [19:19:42]line Счет N : (1)98474 [19:19:42]line ИНН: 02508201610067 [19:19:42]line Контрольно-Кассовый Чек [19:19:42]line ПРОДАЖА [19:19:42]line ТРК (МРК, ГНК) : 31 [19:19:42]line Товар: 2710124130 [19:19:42]line Аи-92-К-5 [19:19:42]line 2.990 * 66.90 [19:19:42]line = 200.03 [19:19:42]line НДС 12% НСП 1% [19:19:42]line > о реализуемом товаре [19:19:42]line ОКРУГЛЕНИЕ: -0.03 [19:19:42]line ИТОГО: 200.00 [19:19:42]line Внесено: 200.00 [19:19:42]line СДАЧА: 0.00 [19:19:42]line НСП 1% : 1.77 [19:19:42]line НДС 12% : 21.24 [19:19:42]line Наличными: 200.00 [19:19:42]line Безнал.: 0.00 [19:19:42]line Место: АЗС № 143 "Партнер Нефть" [19:19:42]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:19:42]line СНО: Общий режим [19:19:42]line Чек 293 24.10.2024 19:19 [19:19:42]line Смена: 534 ФФД: 1.0 [19:19:42]line ЗНМ: 0300000096 [19:19:42]line РНМ: 0000000000091693 [19:19:42]line Версия ККМ: 001 [19:19:42]line ФМ: 0000000000871792 [19:19:42]line ФД: 155668 [19:19:42]line ФПД: 170837448318659 [19:19:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T191942&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155668&fm=170837448318659&tin=02508201610067®Number=0000000000091693&sum=20000 [19:19:43]OFD Sender: Processing packet 155668 [packets to send 31, broken 30] [19:19:43]ProducePacketName [19:19:43]name=ofd_packets/00155668 [19:19:43]OFD Sender: To server: pG, [19:19:43]CommunicateWithHost lk.salyk.kg:30040 [19:19:43]ConnectInit lk.salyk.kg [19:19:43]written 0, free lines is 4095 [19:19:43]Connected sock=10 [19: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 39 32 0F 01 00 00 78 FE 07 01 83 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 CE 9D 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 60 02 00 35 04 06 00 9B 60 31 6B DE C3 04 D6 29 DA 3C 3F 32 71 [19:19:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CF 9B 47 00 E8 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 60 02 00 F4 03 04 00 46 43 1A 67 B6 04 01 00 00 6C AC D6 9F A0 76 D6 A0 [19:19:43]CommunicateWithHost err = 0 [19:19:43]CheckOFDResponse [19:19:43]1017 (14) - 77093643461234 [19:19:43]1041 (16) - 0000000000871792 [19:19:43]1040 (4) - 155668 [19:19:43]1012 (4) - 24.10.2024 12:53 [19:19:43]1206 (1) - 0 [19:19:43]OFD Sender: Remove packet 155668 [19:19:43]ProducePacketName [19:19:43]name=ofd_packets/00155668 [19:19:43]NVStorageDeleteData [19:19:43]Write to MH i2c: 01 00 00 45 24 69 [19:19:43]Write i2c OK [19:19:43]MH_I2C_Read... [19:19:43]Read from MH i2c: 01 [19:19:43]MH_I2C_Read... [19:19:43]Read from MH i2c: 01 07 00 [19:19:43]MH_I2C_Read... [19:19:43]Read from MH i2c: 01 07 00 45 24 00 00 00 00 00 EF 0C 6B [19:19:43]RasterBufferAndPrint [19:19:43]line [19:19:43]line [19:19:43]line [19:19:43]line [19:19:43]line [19:19:43]written 0, free lines is 3317 [19:19:43]process_action close_receipt done [19:19:43]requested_data is exist [19:19:43]produce_requested_data [19:19:43]requested_item fm.sn is exist - process it [19:19:43]wFMCommunicate request_size=4 [19:19:43]MH_SAM_APDU [19:19:43]CAPDU: 80 11 00 00 [19:19:43]Write to MH i2c: E2 08 00 4C 24 80 11 00 00 00 00 00 00 EA [19:19:43]Write i2c OK [19:19:43]MH_I2C_Read... [19:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:43]Read from MH i2c: E2 [19:19:43]MH_I2C_Read... [19:19:43]Read from MH i2c: E2 17 00 [19:19:43]MH_I2C_Read... [19:19:43]Read from MH i2c: E2 17 00 4C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3F [19:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:19:43]wFMCommunicate OK [19:19:43]requested_item fd.num is exist - process it [19:19:43]SAM_PROTO_GetFieldsCounters [19:19:43]wFMCommunicate request_size=4 [19:19:43]MH_SAM_APDU [19:19:43]CAPDU: 80 13 00 00 [19:19:43]Write to MH i2c: E2 08 00 4D 24 80 13 00 00 00 00 00 00 ED [19:19:43]Write i2c OK [19:19:43]MH_I2C_Read... [19:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:43]Read from MH i2c: E2 [19:19:43]MH_I2C_Read... [19:19:43]Read from MH i2c: E2 62 00 [19:19:43]MH_I2C_Read... [19:19:43]Read from MH i2c: E2 62 00 4D 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 14 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 13 [19:19: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 14 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:19:43]wFMCommunicate OK [19:19:43]SAM_PROTO_GetFieldsCounters done [19:19:43]requested_item shift.num is exist - process it [19:19:43]requested_item shift.opened is exist - process it [19:19:43]req_shift_opened [19:19:43]FM_GetShiftState [19:19:43]SAM_PROTO_GetShiftState [19:19:43]wFMCommunicate request_size=4 [19:19:43]MH_SAM_APDU [19:19:43]CAPDU: 80 13 01 00 [19:19:43]Write to MH i2c: E2 08 00 4E 24 80 13 01 00 00 00 00 00 EF [19:19:43]Write i2c OK [19:19:43]MH_I2C_Read... [19:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:43]Read from MH i2c: E2 [19:19:43]MH_I2C_Read... [19:19:43]Read from MH i2c: E2 0E 00 [19:19:43]MH_I2C_Read... [19:19:43]Read from MH i2c: E2 0E 00 4E 24 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3C [19:19:43]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:19:43]wFMCommunicate OK [19:19:43]SAM_PROTO_GetShiftState done [19:19:43]FM_GetShiftState done [19:19:43]req_shift_opened done [19:19:43]requested_item shift.open_date is exist - process it [19:19:43]req_shift_open_date [19:19:43]req_shift_open_date done [19:19:43]produce_requested_data done [19:19:43]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155668,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:19:43]process_action_free close_receipt [19:19:43]json_value_free [19:19:43]json_value_free done [19:19:43]process_json_proto returns [19:19:43]Send response to host [19:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155668,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:19:43]free response buf [19:19:43]execute_script done [19:19:43]execute_script returns [19:19:43]free content buf [19:19:43]Sock 8.Close socket [19:19:43]Sock 8.Thread stoped [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:28]accept exits with 9 [19:22:28]New connection [19:22:28]New thread 3066781028 created [19:22:28]Thread 3066637668 joined [19:22:28]Waiting for new connection... [19:22:28] Sock 9.Parse request [19:22:28]Sock 9.Check first char [19:22:28]Sock 9.First char is OK [19:22:28]request: POST /json_proto HTTP/1.0 [19:22:28]Method: POST [19:22:28]URL: /json_proto [19:22:28]Method is POST - this is cgi request [19:22:28]url: /json_proto [19:22:28]query_string will be loaded in cgi processing [19:22:28]execute_cgi json_proto POST (null) [19:22:28]execute_cgi path=json_proto method=POST [19:22:28]POST find Content-Length [19:22:28]Host: 172.17.63.3:8080 [19:22:28]Content-Length: 678 [19:22:28]Content-Type: application/json [19:22:28] [19:22:28]POST finish read [19:22:28]Found Content-Length = 678 [19:22:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:28]execute_script... [19:22: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)98475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:22:28]POST & json_proto [19:22:28]process_json_proto [19:22:28]json parsed OK: [19:22:28]protocol is kg_v1.0 [19:22:28]action value=close_receipt [19:22:28]process_action close_receipt [19:22:28]cmd_close_receipt [19:22:28]MH_GetDate [19:22:28]Write to MH i2c: F0 00 00 4F 24 62 [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: F0 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: F0 09 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: F0 09 00 4F 24 00 76 9E 1A 67 50 D1 6C 64 F1 [19:22:28]GetLastDocTimeStamp 1729797582 [19:22:28]current date 1729797750 [19:22:28]FM_GetShiftState [19:22:28]SAM_PROTO_GetShiftState [19:22:28]wFMCommunicate request_size=4 [19:22:28]MH_SAM_APDU [19:22:28]CAPDU: 80 13 01 00 [19:22:28]Write to MH i2c: E2 08 00 50 24 80 13 01 00 00 00 00 00 F1 [19:22:28]Write i2c OK [19:22:28]MH_I2C_Read... [19:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:28]Read from MH i2c: E2 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 0E 00 [19:22:28]MH_I2C_Read... [19:22:28]Read from MH i2c: E2 0E 00 50 24 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3E [19:22:28]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:22:28]wFMCommunicate OK [19:22:28]SAM_PROTO_GetShiftState done [19:22:28]FM_GetShiftState done [19:22:28]opened in 1729729836 [19:22:28]opened+sec_in_day 1729816236 [19:22:28]quantity*price = 500024 [19:22:28]sum+1 = 500025 [19:22:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 294 24.10.2024 19:22 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155669 ФПД: 258312734866104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192230&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155669&fm=258312734866104&tin=02508201610067®Number=0000000000091693&sum=500000 [19:22:29]StoreToDocumentArchive [19:22:29]shift 534 fd 155669 [19:22:29]save to /storage/0534/doc_00155669 [19:22:29]save last doc name /storage/0534/doc_00155669 to /storage/kkm_last_doc_name [19:22:29]save OK [19:22:29]Clear old archive folders... [19:22:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:22:29]tlvbuf is B6EB0D10 [19:22:29]SAM_PROTO_ClearQueue [19:22:29]wFMCommunicate request_size=4 [19:22:29]MH_SAM_APDU [19:22:29]CAPDU: 80 09 00 00 [19:22:29]Write to MH i2c: E2 08 00 5D 24 80 09 00 00 00 00 00 00 F3 [19:22:29]Write i2c OK [19:22:29]MH_I2C_Read... [19:22:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:22:29]Read from MH i2c: E2 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: E2 03 00 [19:22:29]MH_I2C_Read... [19:22:29]Read from MH i2c: E2 03 00 5D 24 00 90 00 F5 [19:22:29]RAPDU: 90 00 [19:22:29]wFMCommunicate OK [19:22:29]SAM_PROTO_ClearQueue done [19:22:29]KKMCreateOFDPacket [19:22:29]OFDProtocolAddRootSTLVToBuf [19:22:29]FM_MakeSignedData [19:22:29]FM_MakeSignedData [19:22:29]SAM_PROTO_SignData [19:22:29]wFMCommunicate request_size=4 [19:22:29]MH_SAM_APDU [19:22:29]CAPDU: 80 0D 01 02 [19:22:29]Write to MH i2c: E2 08 00 5E 24 80 0D 01 02 00 00 00 00 FB [19:22:30]Write i2c OK [19:22:30]MH_I2C_Read... [19:22:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:22:30]Read from MH i2c: E2 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 03 00 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 03 00 5E 24 00 90 00 F6 [19:22:30]RAPDU: 90 00 [19:22:30]wFMCommunicate OK [19:22:30]wFMCommunicate request_size=255 [19:22:30]MH_SAM_APDU [19:22:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 76 9E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 60 02 00 35 04 06 00 EA EF 1E CD [19:22:30]Write to MH i2c: E2 02 01 5F 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 76 9E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 60 02 00 35 04 06 00 EA EF 1E CD 00 00 A7 [19:22:30]Write i2c OK [19:22:30]MH_I2C_Read... [19:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:30]Read from MH i2c: E2 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 03 00 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 03 00 5F 24 00 90 00 F7 [19:22:30]RAPDU: 90 00 [19:22:30]wFMCommunicate OK [19:22:30]wFMCommunicate request_size=7 [19:22:30]MH_SAM_APDU [19:22:30]CAPDU: 80 0D 02 02 02 7A B8 [19:22:30]Write to MH i2c: E2 0A 00 60 24 80 0D 02 02 02 00 7A B8 00 00 34 [19:22:30]Write i2c OK [19:22:30]MH_I2C_Read... [19:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:22:30]Read from MH i2c: E2 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 03 00 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 03 00 60 24 00 90 00 F8 [19:22:30]RAPDU: 90 00 [19:22:30]wFMCommunicate OK [19:22:30]wFMCommunicate request_size=4 [19:22:30]MH_SAM_APDU [19:22:30]CAPDU: 80 0D 03 02 [19:22:30]Write to MH i2c: E2 08 00 61 24 80 0D 03 02 00 00 00 00 00 [19:22:30]Write i2c OK [19:22:30]MH_I2C_Read... [19:22:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:22:30]Read from MH i2c: E2 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 0B 00 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 0B 00 61 24 00 F2 0C 58 26 08 90 A1 32 90 00 E8 [19:22:30]RAPDU: F2 0C 58 26 08 90 A1 32 90 00 [19:22:30]wFMCommunicate OK [19:22:30]SAM_PROTO_SignData done [19:22:30]FM_MakeSignedData done [19:22:30]CreateOFDProtocolMessage [19:22:30]wFMCommunicate request_size=4 [19:22:30]MH_SAM_APDU [19:22:30]CAPDU: 80 11 00 00 [19:22:30]Write to MH i2c: E2 08 00 62 24 80 11 00 00 00 00 00 00 00 [19:22:30]Write i2c OK [19:22:30]MH_I2C_Read... [19:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:30]Read from MH i2c: E2 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 17 00 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: E2 17 00 62 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 55 [19:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:22:30]wFMCommunicate OK [19:22:30]CreateOFDProtocolMessage done [19:22:30]OFDSenderStorePacket 155669 [19:22:30]StoreOFDPacket docnum=155669 [19:22:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 8F 0F 04 01 99 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 76 9E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 60 02 00 35 04 06 00 EA EF 1E CD 7A B8 F2 0C 58 26 08 90 A1 32 [19:22:30]CheckFolder [19:22:30]dirname=/storage/ofd_packets [19:22:30]CheckFolder done [19:22:30]ProducePacketName [19:22:30]name=ofd_packets/00155669 [19:22:30]NVStorageSaveData ofd_packets/00155669 [19:22:30]File name is /storage/ofd_packets/00155669 [19:22:30]Write 298 bytes [19:22:30]NVStorageSaveData done [19:22:30]OFDSenderStorePacket done [19:22:30]KKMCreateOFDPacket done [19:22:30]NVStorageSaveData kkm_last_timestamp [19:22:30]File name is /storage/kkm_last_timestamp [19:22:30]Write 4 bytes [19:22:30]NVStorageSaveData done [19:22:30]ExternCall_PrintAddStr [19:22:30]wPrintStart [19:22:30]Write to MH i2c: 01 00 00 63 24 87 [19:22:30]Write i2c OK [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: 01 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: 01 07 00 [19:22:30]MH_I2C_Read... [19:22:30]Read from MH i2c: 01 07 00 63 24 00 00 00 00 00 FF 0F 9C [19:22:30]RasterBufferAndPrint [19:22:30]line Счет N : (1)98475 [19:22:30]line ИНН: 02508201610067 [19:22:30]line Контрольно-Кассовый Чек [19:22:30]line ПРОДАЖА [19:22:30]line ТРК (МРК, ГНК) : 32 [19:22:30]line Товар: 2710194210 [19:22:30]line ДТ-К-5 [19:22:30]line 65.620 * 76.20 [19:22:30]line = 5000.24 [19:22:30]line НДС 12% НСП 1% [19:22:30]line > о реализуемом товаре [19:22:30]line ОКРУГЛЕНИЕ: -0.24 [19:22:30]line ИТОГО: 5000.00 [19:22:30]line Внесено: 5000.00 [19:22:30]line СДАЧА: 0.00 [19:22:30]line НСП 1% : 44.25 [19:22:30]line НДС 12% : 531.00 [19:22:30]line Наличными: 5000.00 [19:22:30]line Безнал.: 0.00 [19:22:30]line Место: АЗС № 143 "Партнер Нефть" [19:22:30]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:22:30]line СНО: Общий режим [19:22:30]line Чек 294 24.10.2024 19:22 [19:22:30]line Смена: 534 ФФД: 1.0 [19:22:30]line ЗНМ: 0300000096 [19:22:30]line РНМ: 0000000000091693 [19:22:30]line Версия ККМ: 001 [19:22:30]line ФМ: 0000000000871792 [19:22:30]line ФД: 155669 [19:22:30]line ФПД: 258312734866104 [19:22:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192230&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155669&fm=258312734866104&tin=02508201610067®Number=0000000000091693&sum=500000 [19:22:30]OFD Sender: Processing packet 155669 [packets to send 31, broken 30] [19:22:30]ProducePacketName [19:22:30]name=ofd_packets/00155669 [19:22:30]OFD Sender: To server: pG, [19:22:30]CommunicateWithHost lk.salyk.kg:30040 [19:22:30]ConnectInit lk.salyk.kg [19:22:30]written 0, free lines is 4095 [19:22:30]Connected sock=10 [19:22: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 39 32 0C 01 00 00 8F 0F 04 01 99 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 76 9E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 60 02 00 35 04 06 00 EA EF 1E CD 7A B8 F2 0C 58 26 08 90 A1 32 [19:22: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 39 32 4F 00 00 00 C2 F0 47 00 41 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 39 32 10 04 04 00 15 60 02 00 F4 03 04 00 EE 43 1A 67 B6 04 01 00 00 51 87 58 10 01 65 00 9F [19:22:30]CommunicateWithHost err = 0 [19:22:30]CheckOFDResponse [19:22:30]1017 (14) - 77093643461234 [19:22:30]1041 (16) - 0000000000871792 [19:22:30]1040 (4) - 155669 [19:22:30]1012 (4) - 24.10.2024 12:56 [19:22:30]1206 (1) - 0 [19:22:30]OFD Sender: Remove packet 155669 [19:22:30]ProducePacketName [19:22:30]name=ofd_packets/00155669 [19:22:30]NVStorageDeleteData [19:22:31]Write to MH i2c: 01 00 00 8E 24 B2 [19:22:31]Write i2c OK [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: 01 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: 01 07 00 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: 01 07 00 8E 24 00 00 00 00 00 E2 0C A7 [19:22:31]RasterBufferAndPrint [19:22:31]line [19:22:31]line [19:22:31]line [19:22:31]line [19:22:31]line [19:22:31]written 0, free lines is 3304 [19:22:31]process_action close_receipt done [19:22:31]requested_data is exist [19:22:31]produce_requested_data [19:22:31]requested_item fm.sn is exist - process it [19:22:31]wFMCommunicate request_size=4 [19:22:31]MH_SAM_APDU [19:22:31]CAPDU: 80 11 00 00 [19:22:31]Write to MH i2c: E2 08 00 95 24 80 11 00 00 00 00 00 00 33 [19:22:31]Write i2c OK [19:22:31]MH_I2C_Read... [19:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:22:31]Read from MH i2c: E2 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 17 00 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 17 00 95 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 88 [19:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:22:31]wFMCommunicate OK [19:22:31]requested_item fd.num is exist - process it [19:22:31]SAM_PROTO_GetFieldsCounters [19:22:31]wFMCommunicate request_size=4 [19:22:31]MH_SAM_APDU [19:22:31]CAPDU: 80 13 00 00 [19:22:31]Write to MH i2c: E2 08 00 96 24 80 13 00 00 00 00 00 00 36 [19:22:31]Write i2c OK [19:22:31]MH_I2C_Read... [19:22:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:22:31]Read from MH i2c: E2 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 62 00 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 62 00 96 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 15 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [19:22: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 15 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:22:31]wFMCommunicate OK [19:22:31]SAM_PROTO_GetFieldsCounters done [19:22:31]requested_item shift.num is exist - process it [19:22:31]requested_item shift.opened is exist - process it [19:22:31]req_shift_opened [19:22:31]FM_GetShiftState [19:22:31]SAM_PROTO_GetShiftState [19:22:31]wFMCommunicate request_size=4 [19:22:31]MH_SAM_APDU [19:22:31]CAPDU: 80 13 01 00 [19:22:31]Write to MH i2c: E2 08 00 97 24 80 13 01 00 00 00 00 00 38 [19:22:31]Write i2c OK [19:22:31]MH_I2C_Read... [19:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:22:31]Read from MH i2c: E2 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 0E 00 [19:22:31]MH_I2C_Read... [19:22:31]Read from MH i2c: E2 0E 00 97 24 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 85 [19:22:31]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:22:31]wFMCommunicate OK [19:22:31]SAM_PROTO_GetShiftState done [19:22:31]FM_GetShiftState done [19:22:31]req_shift_opened done [19:22:31]requested_item shift.open_date is exist - process it [19:22:31]req_shift_open_date [19:22:31]req_shift_open_date done [19:22:31]produce_requested_data done [19:22:31]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155669,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:22:31]process_action_free close_receipt [19:22:31]json_value_free [19:22:31]json_value_free done [19:22:31]process_json_proto returns [19:22:31]Send response to host [19:22:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155669,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:22:31]free response buf [19:22:31]execute_script done [19:22:31]execute_script returns [19:22:31]free content buf [19:22:31]Sock 9.Close socket [19:22:31]Sock 9.Thread stoped [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:29]accept exits with 8 [19:23:29]New connection [19:23:29]New thread 3066637668 created [19:23:29]Thread 3066781028 joined [19:23:29]Waiting for new connection... [19:23:29] Sock 8.Parse request [19:23:29]Sock 8.Check first char [19:23:29]Sock 8.First char is OK [19:23:29]request: POST /json_proto HTTP/1.0 [19:23:29]Method: POST [19:23:29]URL: /json_proto [19:23:29]Method is POST - this is cgi request [19:23:29]url: /json_proto [19:23:29]query_string will be loaded in cgi processing [19:23:29]execute_cgi json_proto POST (null) [19:23:29]execute_cgi path=json_proto method=POST [19:23:29]POST find Content-Length [19:23:29]Host: 172.17.63.3:8080 [19:23:29]Content-Length: 676 [19:23:29]Content-Type: application/json [19:23:29] [19:23:29]POST finish read [19:23:29]Found Content-Length = 676 [19:23:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:29]execute_script... [19:23: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)98476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:29]POST & json_proto [19:23:29]process_json_proto [19:23:29]json parsed OK: [19:23:29]protocol is kg_v1.0 [19:23:29]action value=close_receipt [19:23:29]process_action close_receipt [19:23:29]cmd_close_receipt [19:23:29]MH_GetDate [19:23:29]Write to MH i2c: F0 00 00 98 24 AB [19:23:29]Write i2c OK [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: F0 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: F0 09 00 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: F0 09 00 98 24 00 B3 9E 1A 67 50 D1 6C 64 77 [19:23:29]GetLastDocTimeStamp 1729797750 [19:23:29]current date 1729797811 [19:23:29]FM_GetShiftState [19:23:29]SAM_PROTO_GetShiftState [19:23:29]wFMCommunicate request_size=4 [19:23:29]MH_SAM_APDU [19:23:29]CAPDU: 80 13 01 00 [19:23:29]Write to MH i2c: E2 08 00 99 24 80 13 01 00 00 00 00 00 3A [19:23:29]Write i2c OK [19:23:29]MH_I2C_Read... [19:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:29]Read from MH i2c: E2 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 0E 00 [19:23:29]MH_I2C_Read... [19:23:29]Read from MH i2c: E2 0E 00 99 24 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 87 [19:23:29]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:23:29]wFMCommunicate OK [19:23:29]SAM_PROTO_GetShiftState done [19:23:29]FM_GetShiftState done [19:23:29]opened in 1729729836 [19:23:29]opened+sec_in_day 1729816236 [19:23:29]quantity*price = 20003 [19:23:29]sum+1 = 20004 [19:23:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 295 24.10.2024 19:23 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155670 ФПД: 56256193586961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192331&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155670&fm=56256193586961&tin=02508201610067®Number=0000000000091693&sum=20000 [19:23:30]StoreToDocumentArchive [19:23:30]shift 534 fd 155670 [19:23:30]save to /storage/0534/doc_00155670 [19:23:30]save last doc name /storage/0534/doc_00155670 to /storage/kkm_last_doc_name [19:23:30]save OK [19:23:30]Clear old archive folders... [19:23:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:30]tlvbuf is 01F86140 [19:23:30]SAM_PROTO_ClearQueue [19:23:30]wFMCommunicate request_size=4 [19:23:30]MH_SAM_APDU [19:23:30]CAPDU: 80 09 00 00 [19:23:30]Write to MH i2c: E2 08 00 A6 24 80 09 00 00 00 00 00 00 3C [19:23:30]Write i2c OK [19:23:30]MH_I2C_Read... [19:23:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:30]Read from MH i2c: E2 [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: E2 03 00 [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: E2 03 00 A6 24 00 90 00 3E [19:23:30]RAPDU: 90 00 [19:23:30]wFMCommunicate OK [19:23:30]SAM_PROTO_ClearQueue done [19:23:30]KKMCreateOFDPacket [19:23:30]OFDProtocolAddRootSTLVToBuf [19:23:30]FM_MakeSignedData [19:23:30]FM_MakeSignedData [19:23:30]SAM_PROTO_SignData [19:23:30]wFMCommunicate request_size=4 [19:23:30]MH_SAM_APDU [19:23:30]CAPDU: 80 0D 01 02 [19:23:30]Write to MH i2c: E2 08 00 A7 24 80 0D 01 02 00 00 00 00 44 [19:23:30]Write i2c OK [19:23:30]MH_I2C_Read... [19:23:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:30]Read from MH i2c: E2 [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: E2 03 00 [19:23:30]MH_I2C_Read... [19:23:30]Read from MH i2c: E2 03 00 A7 24 00 90 00 3F [19:23:30]RAPDU: 90 00 [19:23:30]wFMCommunicate OK [19:23:30]wFMCommunicate request_size=255 [19:23:30]MH_SAM_APDU [19:23: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 B3 9E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 60 02 00 35 04 06 00 33 [19:23:30]Write to MH i2c: E2 02 01 A8 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 B3 9E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 60 02 00 35 04 06 00 33 00 00 57 [19:23:30]Write i2c OK [19:23:30]MH_I2C_Read... [19:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:31]Read from MH i2c: E2 [19:23:31]MH_I2C_Read... [19:23:31]Read from MH i2c: E2 03 00 [19:23:31]MH_I2C_Read... [19:23:31]Read from MH i2c: E2 03 00 A8 24 00 90 00 40 [19:23:31]RAPDU: 90 00 [19:23:31]wFMCommunicate OK [19:23:31]wFMCommunicate request_size=10 [19:23:31]MH_SAM_APDU [19:23:31]CAPDU: 80 0D 02 02 05 2A 2A 6F 67 11 [19:23:31]Write to MH i2c: E2 0D 00 A9 24 80 0D 02 02 05 00 2A 2A 6F 67 11 00 00 8C [19:23:31]Write i2c OK [19:23:31]MH_I2C_Read... [19:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:31]Read from MH i2c: E2 [19:23:31]MH_I2C_Read... [19:23:31]Read from MH i2c: E2 03 00 [19:23:31]MH_I2C_Read... [19:23:31]Read from MH i2c: E2 03 00 A9 24 00 90 00 41 [19:23:31]RAPDU: 90 00 [19:23:31]wFMCommunicate OK [19:23:31]wFMCommunicate request_size=4 [19:23:31]MH_SAM_APDU [19:23:31]CAPDU: 80 0D 03 02 [19:23:31]Write to MH i2c: E2 08 00 AA 24 80 0D 03 02 00 00 00 00 49 [19:23:31]Write i2c OK [19:23:31]MH_I2C_Read... [19:23:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:31]Read from MH i2c: E2 [19:23:31]MH_I2C_Read... [19:23:31]Read from MH i2c: E2 0B 00 [19:23:31]MH_I2C_Read... [19:23:31]Read from MH i2c: E2 0B 00 AA 24 00 E7 46 F4 22 BF 99 7C 26 90 00 87 [19:23:31]RAPDU: E7 46 F4 22 BF 99 7C 26 90 00 [19:23:31]wFMCommunicate OK [19:23:31]SAM_PROTO_SignData done [19:23:31]FM_MakeSignedData done [19:23:31]CreateOFDProtocolMessage [19:23:31]wFMCommunicate request_size=4 [19:23:31]MH_SAM_APDU [19:23:31]CAPDU: 80 11 00 00 [19:23:31]Write to MH i2c: E2 08 00 AB 24 80 11 00 00 00 00 00 00 49 [19:23:31]Write i2c OK [19:23:31]MH_I2C_Read... [19:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:31]Read from MH i2c: E2 [19:23:31]MH_I2C_Read... [19:23:31]Read from MH i2c: E2 17 00 [19:23:31]MH_I2C_Read... [19:23:31]Read from MH i2c: E2 17 00 AB 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9E [19:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:23:31]wFMCommunicate OK [19:23:31]CreateOFDProtocolMessage done [19:23:31]OFDSenderStorePacket 155670 [19:23:31]StoreOFDPacket docnum=155670 [19:23:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8D 26 07 01 89 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 B3 9E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 60 02 00 35 04 06 00 33 2A 2A 6F 67 11 E7 46 F4 22 BF 99 7C 26 [19:23:31]CheckFolder [19:23:31]dirname=/storage/ofd_packets [19:23:31]CheckFolder done [19:23:31]ProducePacketName [19:23:31]name=ofd_packets/00155670 [19:23:31]NVStorageSaveData ofd_packets/00155670 [19:23:31]File name is /storage/ofd_packets/00155670 [19:23:31]Write 301 bytes [19:23:31]NVStorageSaveData done [19:23:31]OFDSenderStorePacket done [19:23:31]KKMCreateOFDPacket done [19:23:31]NVStorageSaveData kkm_last_timestamp [19:23:31]File name is /storage/kkm_last_timestamp [19:23:31]Write 4 bytes [19:23:31]NVStorageSaveData done [19:23:31]ExternCall_PrintAddStr [19:23:31]wPrintStart [19:23:31]Write to MH i2c: 01 00 00 AC 24 D0 [19:23:31]Write i2c OK [19:23:31]MH_I2C_Read... [19:23:31]Read from MH i2c: 01 [19:23:31]MH_I2C_Read... [19:23:31]Read from MH i2c: 01 07 00 [19:23:31]MH_I2C_Read... [19:23:31]Read from MH i2c: 01 07 00 AC 24 00 00 00 00 00 FF 0F E5 [19:23:31]RasterBufferAndPrint [19:23:31]line Счет N : (1)98476 [19:23:31]line ИНН: 02508201610067 [19:23:31]line Контрольно-Кассовый Чек [19:23:31]line ПРОДАЖА [19:23:31]line ТРК (МРК, ГНК) : 31 [19:23:31]line Товар: 2710124130 [19:23:31]line Аи-92-К-5 [19:23:31]line 2.990 * 66.90 [19:23:31]line = 200.03 [19:23:31]line НДС 12% НСП 1% [19:23:31]line > о реализуемом товаре [19:23:31]line ОКРУГЛЕНИЕ: -0.03 [19:23:31]line ИТОГО: 200.00 [19:23:31]line Внесено: 200.00 [19:23:31]line СДАЧА: 0.00 [19:23:31]line НСП 1% : 1.77 [19:23:31]line НДС 12% : 21.24 [19:23:31]line Наличными: 200.00 [19:23:31]line Безнал.: 0.00 [19:23:31]line Место: АЗС № 143 "Партнер Нефть" [19:23:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:23:31]line СНО: Общий режим [19:23:31]line Чек 295 24.10.2024 19:23 [19:23:31]line Смена: 534 ФФД: 1.0 [19:23:31]line ЗНМ: 0300000096 [19:23:31]line РНМ: 0000000000091693 [19:23:31]line Версия ККМ: 001 [19:23:31]line ФМ: 0000000000871792 [19:23:31]line ФД: 155670 [19:23:31]line ФПД: 56256193586961 [19:23:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192331&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155670&fm=56256193586961&tin=02508201610067®Number=0000000000091693&sum=20000 [19:23:31]OFD Sender: Processing packet 155670 [packets to send 31, broken 30] [19:23:31]ProducePacketName [19:23:31]name=ofd_packets/00155670 [19:23:31]OFD Sender: To server: pG, [19:23:31]CommunicateWithHost lk.salyk.kg:30040 [19:23:31]ConnectInit lk.salyk.kg [19:23:31]written 0, free lines is 4095 [19:23:31]Connected sock=9 [19:23: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 39 32 0F 01 00 00 8D 26 07 01 89 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 B3 9E 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 60 02 00 35 04 06 00 33 2A 2A 6F 67 11 E7 46 F4 22 BF 99 7C 26 [19:23: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 39 32 4F 00 00 00 76 CC 47 00 AB 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 39 32 10 04 04 00 16 60 02 00 F4 03 04 00 2B 44 1A 67 B6 04 01 00 00 99 B5 45 47 EC B1 DB B3 [19:23:32]CommunicateWithHost err = 0 [19:23:32]CheckOFDResponse [19:23:32]1017 (14) - 77093643461234 [19:23:32]1041 (16) - 0000000000871792 [19:23:32]1040 (4) - 155670 [19:23:32]1012 (4) - 24.10.2024 12:57 [19:23:32]1206 (1) - 0 [19:23:32]OFD Sender: Remove packet 155670 [19:23:32]ProducePacketName [19:23:32]name=ofd_packets/00155670 [19:23:32]NVStorageDeleteData [19:23:32]Write to MH i2c: 01 00 00 D7 24 FB [19:23:32]Write i2c OK [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: 01 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: 01 07 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: 01 07 00 D7 24 00 00 00 00 00 DC 0C EA [19:23:32]RasterBufferAndPrint [19:23:32]line [19:23:32]line [19:23:32]line [19:23:32]line [19:23:32]line [19:23:32]written 0, free lines is 3299 [19:23:32]process_action close_receipt done [19:23:32]requested_data is exist [19:23:32]produce_requested_data [19:23:32]requested_item fm.sn is exist - process it [19:23:32]wFMCommunicate request_size=4 [19:23:32]MH_SAM_APDU [19:23:32]CAPDU: 80 11 00 00 [19:23:32]Write to MH i2c: E2 08 00 DE 24 80 11 00 00 00 00 00 00 7C [19:23:32]Write i2c OK [19:23:32]MH_I2C_Read... [19:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:32]Read from MH i2c: E2 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 17 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 17 00 DE 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D1 [19:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:23:32]wFMCommunicate OK [19:23:32]requested_item fd.num is exist - process it [19:23:32]SAM_PROTO_GetFieldsCounters [19:23:32]wFMCommunicate request_size=4 [19:23:32]MH_SAM_APDU [19:23:32]CAPDU: 80 13 00 00 [19:23:32]Write to MH i2c: E2 08 00 DF 24 80 13 00 00 00 00 00 00 7F [19:23:32]Write i2c OK [19:23:32]MH_I2C_Read... [19:23:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:32]Read from MH i2c: E2 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 62 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 62 00 DF 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 16 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [19:23:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 16 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:32]wFMCommunicate OK [19:23:32]SAM_PROTO_GetFieldsCounters done [19:23:32]requested_item shift.num is exist - process it [19:23:32]requested_item shift.opened is exist - process it [19:23:32]req_shift_opened [19:23:32]FM_GetShiftState [19:23:32]SAM_PROTO_GetShiftState [19:23:32]wFMCommunicate request_size=4 [19:23:32]MH_SAM_APDU [19:23:32]CAPDU: 80 13 01 00 [19:23:32]Write to MH i2c: E2 08 00 E0 24 80 13 01 00 00 00 00 00 81 [19:23:32]Write i2c OK [19:23:32]MH_I2C_Read... [19:23:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:32]Read from MH i2c: E2 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 0E 00 [19:23:32]MH_I2C_Read... [19:23:32]Read from MH i2c: E2 0E 00 E0 24 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 CE [19:23:32]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:23:32]wFMCommunicate OK [19:23:32]SAM_PROTO_GetShiftState done [19:23:32]FM_GetShiftState done [19:23:32]req_shift_opened done [19:23:32]requested_item shift.open_date is exist - process it [19:23:32]req_shift_open_date [19:23:32]req_shift_open_date done [19:23:32]produce_requested_data done [19:23:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155670,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:23:32]process_action_free close_receipt [19:23:32]json_value_free [19:23:32]json_value_free done [19:23:32]process_json_proto returns [19:23:32]Send response to host [19:23:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155670,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:23:32]free response buf [19:23:32]execute_script done [19:23:32]execute_script returns [19:23:32]free content buf [19:23:32]Sock 8.Close socket [19:23:32]Sock 8.Thread stoped [19:23: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:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:32]accept exits with 10 [19:28:32]New connection [19:28:32]New thread 3066781028 created [19:28:32]Thread 3066637668 joined [19:28:32]Waiting for new connection... [19:28:32] Sock 10.Parse request [19:28:32]Sock 10.Check first char [19:28:32]Sock 10.First char is OK [19:28:32]request: POST /json_proto HTTP/1.0 [19:28:32]Method: POST [19:28:32]URL: /json_proto [19:28:32]Method is POST - this is cgi request [19:28:32]url: /json_proto [19:28:32]query_string will be loaded in cgi processing [19:28:32]execute_cgi json_proto POST (null) [19:28:32]execute_cgi path=json_proto method=POST [19:28:32]POST find Content-Length [19:28:32]Host: 172.17.63.3:8080 [19:28:32]Content-Length: 791 [19:28:32]Content-Type: application/json [19:28:32] [19:28:32]POST finish read [19:28:32]Found Content-Length = 791 [19:28:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "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\u000A68714", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:32]execute_script... [19:28: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)98477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "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\u000A68714", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:32]POST & json_proto [19:28:32]process_json_proto [19:28:32]json parsed OK: [19:28:32]protocol is kg_v1.0 [19:28:32]action value=close_receipt [19:28:32]process_action close_receipt [19:28:32]cmd_close_receipt [19:28:32]MH_GetDate [19:28:32]Write to MH i2c: F0 00 00 E1 24 F4 [19:28:32]Write i2c OK [19:28:32]MH_I2C_Read... [19:28:32]Read from MH i2c: F0 [19:28:32]MH_I2C_Read... [19:28:32]Read from MH i2c: F0 09 00 [19:28:32]MH_I2C_Read... [19:28:32]Read from MH i2c: F0 09 00 E1 24 00 E2 9F 1A 67 50 D1 6C 64 F0 [19:28:32]GetLastDocTimeStamp 1729797811 [19:28:32]current date 1729798114 [19:28:32]FM_GetShiftState [19:28:32]SAM_PROTO_GetShiftState [19:28:32]wFMCommunicate request_size=4 [19:28:32]MH_SAM_APDU [19:28:32]CAPDU: 80 13 01 00 [19:28:32]Write to MH i2c: E2 08 00 E2 24 80 13 01 00 00 00 00 00 83 [19:28:32]Write i2c OK [19:28:32]MH_I2C_Read... [19:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:32]Read from MH i2c: E2 [19:28:32]MH_I2C_Read... [19:28:32]Read from MH i2c: E2 0E 00 [19:28:32]MH_I2C_Read... [19:28:32]Read from MH i2c: E2 0E 00 E2 24 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D0 [19:28:32]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:28:32]wFMCommunicate OK [19:28:32]SAM_PROTO_GetShiftState done [19:28:32]FM_GetShiftState done [19:28:32]opened in 1729729836 [19:28:32]opened+sec_in_day 1729816236 [19:28:32]quantity*price = 0 [19:28:32]sum+1 = 1 [19:28:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 296 24.10.2024 19:28 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливная Карта 68714 ФМ: 0000000000871792 ФД: 155671 ФПД: 78730987870772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192834&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155671&fm=78730987870772&tin=02508201610067®Number=0000000000091693&sum=0 [19:28:34]StoreToDocumentArchive [19:28:34]shift 534 fd 155671 [19:28:34]save to /storage/0534/doc_00155671 [19:28:34]save last doc name /storage/0534/doc_00155671 to /storage/kkm_last_doc_name [19:28:34]save OK [19:28:34]Clear old archive folders... [19:28:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:34]tlvbuf is B6D7EBD0 [19:28:34]SAM_PROTO_ClearQueue [19:28:34]wFMCommunicate request_size=4 [19:28:34]MH_SAM_APDU [19:28:34]CAPDU: 80 09 00 00 [19:28:34]Write to MH i2c: E2 08 00 EF 24 80 09 00 00 00 00 00 00 85 [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:34]Read from MH i2c: E2 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 03 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 03 00 EF 24 00 90 00 87 [19:28:34]RAPDU: 90 00 [19:28:34]wFMCommunicate OK [19:28:34]SAM_PROTO_ClearQueue done [19:28:34]KKMCreateOFDPacket [19:28:34]OFDProtocolAddRootSTLVToBuf [19:28:34]FM_MakeSignedData [19:28:34]FM_MakeSignedData [19:28:34]SAM_PROTO_SignData [19:28:34]wFMCommunicate request_size=4 [19:28:34]MH_SAM_APDU [19:28:34]CAPDU: 80 0D 01 02 [19:28:34]Write to MH i2c: E2 08 00 F0 24 80 0D 01 02 00 00 00 00 8D [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:34]Read from MH i2c: E2 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 03 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 03 00 F0 24 00 90 00 88 [19:28:34]RAPDU: 90 00 [19:28:34]wFMCommunicate OK [19:28:34]wFMCommunicate request_size=255 [19:28:34]MH_SAM_APDU [19:28: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 E2 9F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 60 02 00 35 04 06 00 47 [19:28:34]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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 E2 9F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 60 02 00 35 04 06 00 47 00 00 0D [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:34]Read from MH i2c: E2 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 03 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 03 00 F1 24 00 90 00 89 [19:28:34]RAPDU: 90 00 [19:28:34]wFMCommunicate OK [19:28:34]wFMCommunicate request_size=10 [19:28:34]MH_SAM_APDU [19:28:34]CAPDU: 80 0D 02 02 05 9A FC 90 9A 34 [19:28:34]Write to MH i2c: E2 0D 00 F2 24 80 0D 02 02 05 00 9A FC 90 9A 34 00 00 8E [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:34]Read from MH i2c: E2 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 03 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 03 00 F2 24 00 90 00 8A [19:28:34]RAPDU: 90 00 [19:28:34]wFMCommunicate OK [19:28:34]wFMCommunicate request_size=4 [19:28:34]MH_SAM_APDU [19:28:34]CAPDU: 80 0D 03 02 [19:28:34]Write to MH i2c: E2 08 00 F3 24 80 0D 03 02 00 00 00 00 92 [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:34]Read from MH i2c: E2 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 0B 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 0B 00 F3 24 00 7C 66 9C 8D AA C2 62 04 90 00 70 [19:28:34]RAPDU: 7C 66 9C 8D AA C2 62 04 90 00 [19:28:34]wFMCommunicate OK [19:28:34]SAM_PROTO_SignData done [19:28:34]FM_MakeSignedData done [19:28:34]CreateOFDProtocolMessage [19:28:34]wFMCommunicate request_size=4 [19:28:34]MH_SAM_APDU [19:28:34]CAPDU: 80 11 00 00 [19:28:34]Write to MH i2c: E2 08 00 F4 24 80 11 00 00 00 00 00 00 92 [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:34]Read from MH i2c: E2 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: E2 17 00 [19:28:34]MH_I2C_Read... [19:28:34]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 39 32 90 00 E7 [19:28:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:28:34]wFMCommunicate OK [19:28:34]CreateOFDProtocolMessage done [19:28:34]OFDSenderStorePacket 155671 [19:28:34]StoreOFDPacket docnum=155671 [19:28:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 76 ED 07 01 7C 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 E2 9F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 60 02 00 35 04 06 00 47 9A FC 90 9A 34 7C 66 9C 8D AA C2 62 04 [19:28:34]CheckFolder [19:28:34]dirname=/storage/ofd_packets [19:28:34]CheckFolder done [19:28:34]ProducePacketName [19:28:34]name=ofd_packets/00155671 [19:28:34]NVStorageSaveData ofd_packets/00155671 [19:28:34]File name is /storage/ofd_packets/00155671 [19:28:34]Write 301 bytes [19:28:34]NVStorageSaveData done [19:28:34]OFDSenderStorePacket done [19:28:34]KKMCreateOFDPacket done [19:28:34]NVStorageSaveData kkm_last_timestamp [19:28:34]File name is /storage/kkm_last_timestamp [19:28:34]Write 4 bytes [19:28:34]NVStorageSaveData done [19:28:34]ExternCall_PrintAddStr [19:28:34]wPrintStart [19:28:34]Write to MH i2c: 01 00 00 F5 24 19 [19:28:34]Write i2c OK [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: 01 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: 01 07 00 [19:28:34]MH_I2C_Read... [19:28:34]Read from MH i2c: 01 07 00 F5 24 00 00 00 00 00 FF 0F 2E [19:28:34]RasterBufferAndPrint [19:28:34]line Счет N : (1)98477 [19:28:34]line ИНН: 02508201610067 [19:28:34]line Контрольно-Кассовый Чек [19:28:34]line ПРОДАЖА [19:28:34]line ТРК (МРК, ГНК) : 31 [19:28:34]line Товар: 2710124130 [19:28:34]line Аи-92-К-5 [19:28:34]line 20.000 * 0.00 [19:28:34]line = 0.00 [19:28:34]line НДС 12% НСП 1% [19:28:34]line > о реализуемом товаре [19:28:34]line ИТОГО: 0.00 [19:28:34]line НСП 1% : 0.00 [19:28:34]line НДС 12% : 0.00 [19:28:34]line Наличными: 0.00 [19:28:34]line Безнал.: 0.00 [19:28:34]line Место: АЗС № 143 "Партнер Нефть" [19:28:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:28:34]line СНО: Общий режим [19:28:34]line Чек 296 24.10.2024 19:28 [19:28:34]line Смена: 534 ФФД: 1.0 [19:28:34]line ЗНМ: 0300000096 [19:28:34]line РНМ: 0000000000091693 [19:28:34]line Версия ККМ: 001 [19:28:34]line Талоны: Топливная Карта [19:28:34]line 68714 [19:28:34]line ФМ: 0000000000871792 [19:28:34]line ФД: 155671 [19:28:34]line ФПД: 78730987870772 [19:28:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192834&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155671&fm=78730987870772&tin=02508201610067®Number=0000000000091693&sum=0 [19:28:34]written 0, free lines is 4095 [19:28:34]OFD Sender: Processing packet 155671 [packets to send 31, broken 30] [19:28:34]ProducePacketName [19:28:34]name=ofd_packets/00155671 [19:28:34]OFD Sender: To server: pG, [19:28:34]CommunicateWithHost lk.salyk.kg:30040 [19:28:34]ConnectInit lk.salyk.kg [19:28:34]Connected sock=9 [19:28:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 76 ED 07 01 7C 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 E2 9F 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 60 02 00 35 04 06 00 47 9A FC 90 9A 34 7C 66 9C 8D AA C2 62 04 [19:28: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 39 32 4F 00 00 00 4C 1B 47 00 66 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 39 32 10 04 04 00 17 60 02 00 F4 03 04 00 5A 45 1A 67 B6 04 01 00 00 B7 88 1E B1 FE 5B 23 C0 [19:28:34]CommunicateWithHost err = 0 [19:28:34]CheckOFDResponse [19:28:34]1017 (14) - 77093643461234 [19:28:34]1041 (16) - 0000000000871792 [19:28:34]1040 (4) - 155671 [19:28:34]1012 (4) - 24.10.2024 13:02 [19:28:34]1206 (1) - 0 [19:28:34]OFD Sender: Remove packet 155671 [19:28:34]ProducePacketName [19:28:34]name=ofd_packets/00155671 [19:28:34]NVStorageDeleteData [19:28:35]Write to MH i2c: 01 00 00 1F 25 44 [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: 01 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: 01 07 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: 01 07 00 1F 25 00 00 00 00 00 F3 0C 4A [19:28:35]RasterBufferAndPrint [19:28:35]line [19:28:35]line [19:28:35]line [19:28:35]line [19:28:35]line [19:28:35]written 0, free lines is 3323 [19:28:35]process_action close_receipt done [19:28:35]requested_data is exist [19:28:35]produce_requested_data [19:28:35]requested_item fm.sn is exist - process it [19:28:35]wFMCommunicate request_size=4 [19:28:35]MH_SAM_APDU [19:28:35]CAPDU: 80 11 00 00 [19:28:35]Write to MH i2c: E2 08 00 26 25 80 11 00 00 00 00 00 00 C5 [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:35]Read from MH i2c: E2 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 17 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 17 00 26 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1A [19:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:28:35]wFMCommunicate OK [19:28:35]requested_item fd.num is exist - process it [19:28:35]SAM_PROTO_GetFieldsCounters [19:28:35]wFMCommunicate request_size=4 [19:28:35]MH_SAM_APDU [19:28:35]CAPDU: 80 13 00 00 [19:28:35]Write to MH i2c: E2 08 00 27 25 80 13 00 00 00 00 00 00 C8 [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:35]Read from MH i2c: E2 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 62 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 62 00 27 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 17 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 FA [19:28: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 17 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:35]wFMCommunicate OK [19:28:35]SAM_PROTO_GetFieldsCounters done [19:28:35]requested_item shift.num is exist - process it [19:28:35]requested_item shift.opened is exist - process it [19:28:35]req_shift_opened [19:28:35]FM_GetShiftState [19:28:35]SAM_PROTO_GetShiftState [19:28:35]wFMCommunicate request_size=4 [19:28:35]MH_SAM_APDU [19:28:35]CAPDU: 80 13 01 00 [19:28:35]Write to MH i2c: E2 08 00 28 25 80 13 01 00 00 00 00 00 CA [19:28:35]Write i2c OK [19:28:35]MH_I2C_Read... [19:28:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:35]Read from MH i2c: E2 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 0E 00 [19:28:35]MH_I2C_Read... [19:28:35]Read from MH i2c: E2 0E 00 28 25 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 17 [19:28:35]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:28:35]wFMCommunicate OK [19:28:35]SAM_PROTO_GetShiftState done [19:28:35]FM_GetShiftState done [19:28:35]req_shift_opened done [19:28:35]requested_item shift.open_date is exist - process it [19:28:35]req_shift_open_date [19:28:35]req_shift_open_date done [19:28:35]produce_requested_data done [19:28:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155671,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:28:35]process_action_free close_receipt [19:28:35]json_value_free [19:28:35]json_value_free done [19:28:35]process_json_proto returns [19:28:35]Send response to host [19:28:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155671,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:28:35]free response buf [19:28:35]execute_script done [19:28:35]execute_script returns [19:28:35]free content buf [19:28:35]Sock 10.Close socket [19:28:35]Sock 10.Thread stoped [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:28:56]int [19:28:56]Write to MH i2c: 01 00 00 29 25 4E [19:28:56]*** FLAG_PRN_KEY set [19:28:56]Write i2c OK [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: 01 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: 01 07 00 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: 01 07 00 29 25 00 08 00 00 00 FF 0F 6B [19:28:56]state=0 [19:28:56]Key pressed [19:28:56]Feed [19:28:56]Write to MH i2c: D8 00 00 2A 25 26 [19:28:56]Write i2c OK [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: D8 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: D8 01 00 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: D8 01 00 2A 25 00 27 [19:28:56]int [19:28:56]Write to MH i2c: 01 00 00 2B 25 50 [19:28:56]Write i2c OK [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: 01 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: 01 07 00 [19:28:56]MH_I2C_Read... [19:28:56]Read from MH i2c: 01 07 00 2B 25 00 48 00 00 00 3D 00 DC [19:28:56]state=2 [19:28:56]Key pressed [19:28:57]int [19:28:57]Write to MH i2c: 01 00 00 2C 25 51 [19:28:57]*** FLAG_PRN_KEY reset [19:28:57]Write i2c OK [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: 01 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: 01 07 00 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: 01 07 00 2C 25 00 00 00 00 00 F6 0F 5D [19:28:57]state=2 [19:28:57]Stop feed [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:22]accept exits with 8 [19:29:22]New connection [19:29:22]New thread 3066637668 created [19:29:22]Thread 3066781028 joined [19:29:22]Waiting for new connection... [19:29:22] Sock 8.Parse request [19:29:22]Sock 8.Check first char [19:29:22]Sock 8.First char is OK [19:29:22]request: POST /json_proto HTTP/1.0 [19:29:22]Method: POST [19:29:22]URL: /json_proto [19:29:22]Method is POST - this is cgi request [19:29:22]url: /json_proto [19:29:22]query_string will be loaded in cgi processing [19:29:22]execute_cgi json_proto POST (null) [19:29:22]execute_cgi path=json_proto method=POST [19:29:22]POST find Content-Length [19:29:22]Host: 172.17.63.3:8080 [19:29:22]Content-Length: 676 [19:29:22]Content-Type: application/json [19:29:22] [19:29:22]POST finish read [19:29:22]Found Content-Length = 676 [19:29:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:22]execute_script... [19:29: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)98478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:22]POST & json_proto [19:29:22]process_json_proto [19:29:22]json parsed OK: [19:29:22]protocol is kg_v1.0 [19:29:22]action value=close_receipt [19:29:22]process_action close_receipt [19:29:22]cmd_close_receipt [19:29:22]MH_GetDate [19:29:22]Write to MH i2c: F0 00 00 2D 25 41 [19:29:22]Write i2c OK [19:29:22]MH_I2C_Read... [19:29:22]Read from MH i2c: F0 [19:29:22]MH_I2C_Read... [19:29:22]Read from MH i2c: F0 09 00 [19:29:22]MH_I2C_Read... [19:29:22]Read from MH i2c: F0 09 00 2D 25 00 13 A0 1A 67 50 D1 6C 64 6F [19:29:22]GetLastDocTimeStamp 1729798114 [19:29:22]current date 1729798163 [19:29:22]FM_GetShiftState [19:29:22]SAM_PROTO_GetShiftState [19:29:22]wFMCommunicate request_size=4 [19:29:22]MH_SAM_APDU [19:29:22]CAPDU: 80 13 01 00 [19:29:22]Write to MH i2c: E2 08 00 2E 25 80 13 01 00 00 00 00 00 D0 [19:29:22]Write i2c OK [19:29:22]MH_I2C_Read... [19:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:22]Read from MH i2c: E2 [19:29:22]MH_I2C_Read... [19:29:22]Read from MH i2c: E2 0E 00 [19:29:22]MH_I2C_Read... [19:29:22]Read from MH i2c: E2 0E 00 2E 25 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1D [19:29:22]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:29:22]wFMCommunicate OK [19:29:22]SAM_PROTO_GetShiftState done [19:29:22]FM_GetShiftState done [19:29:22]opened in 1729729836 [19:29:22]opened+sec_in_day 1729816236 [19:29:22]quantity*price = 50041 [19:29:22]sum+1 = 50042 [19:29:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 297 24.10.2024 19:29 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155672 ФПД: 113628930195356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192923&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155672&fm=113628930195356&tin=02508201610067®Number=0000000000091693&sum=50000 [19:29:23]StoreToDocumentArchive [19:29:23]shift 534 fd 155672 [19:29:23]save to /storage/0534/doc_00155672 [19:29:23]save last doc name /storage/0534/doc_00155672 to /storage/kkm_last_doc_name [19:29:23]save OK [19:29:23]Clear old archive folders... [19:29:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:29:23]tlvbuf is 01F834A0 [19:29:23]SAM_PROTO_ClearQueue [19:29:23]wFMCommunicate request_size=4 [19:29:23]MH_SAM_APDU [19:29:23]CAPDU: 80 09 00 00 [19:29:23]Write to MH i2c: E2 08 00 3B 25 80 09 00 00 00 00 00 00 D2 [19:29:23]Write i2c OK [19:29:23]MH_I2C_Read... [19:29:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:23]Read from MH i2c: E2 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 03 00 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 03 00 3B 25 00 90 00 D4 [19:29:23]RAPDU: 90 00 [19:29:23]wFMCommunicate OK [19:29:23]SAM_PROTO_ClearQueue done [19:29:23]KKMCreateOFDPacket [19:29:23]OFDProtocolAddRootSTLVToBuf [19:29:23]FM_MakeSignedData [19:29:23]FM_MakeSignedData [19:29:23]SAM_PROTO_SignData [19:29:23]wFMCommunicate request_size=4 [19:29:23]MH_SAM_APDU [19:29:23]CAPDU: 80 0D 01 02 [19:29:23]Write to MH i2c: E2 08 00 3C 25 80 0D 01 02 00 00 00 00 DA [19:29:23]Write i2c OK [19:29:23]MH_I2C_Read... [19:29:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:23]Read from MH i2c: E2 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 03 00 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 03 00 3C 25 00 90 00 D5 [19:29:23]RAPDU: 90 00 [19:29:23]wFMCommunicate OK [19:29:23]wFMCommunicate request_size=255 [19:29:23]MH_SAM_APDU [19:29: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 13 A0 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 60 02 00 35 04 06 00 67 [19:29:23]Write to MH i2c: E2 02 01 3D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 13 A0 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 60 02 00 35 04 06 00 67 00 00 C5 [19:29:23]Write i2c OK [19:29:23]MH_I2C_Read... [19:29:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:23]Read from MH i2c: E2 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 03 00 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 03 00 3D 25 00 90 00 D6 [19:29:23]RAPDU: 90 00 [19:29:23]wFMCommunicate OK [19:29:23]wFMCommunicate request_size=10 [19:29:23]MH_SAM_APDU [19:29:23]CAPDU: 80 0D 02 02 05 58 4C 05 3F 9C [19:29:23]Write to MH i2c: E2 0D 00 3E 25 80 0D 02 02 05 00 58 4C 05 3F 9C 00 00 6B [19:29:23]Write i2c OK [19:29:23]MH_I2C_Read... [19:29:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:23]Read from MH i2c: E2 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 03 00 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 03 00 3E 25 00 90 00 D7 [19:29:23]RAPDU: 90 00 [19:29:23]wFMCommunicate OK [19:29:23]wFMCommunicate request_size=4 [19:29:23]MH_SAM_APDU [19:29:23]CAPDU: 80 0D 03 02 [19:29:23]Write to MH i2c: E2 08 00 3F 25 80 0D 03 02 00 00 00 00 DF [19:29:23]Write i2c OK [19:29:23]MH_I2C_Read... [19:29:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:23]Read from MH i2c: E2 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 0B 00 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 0B 00 3F 25 00 A2 13 F8 EE D1 27 93 9F 90 00 A5 [19:29:23]RAPDU: A2 13 F8 EE D1 27 93 9F 90 00 [19:29:23]wFMCommunicate OK [19:29:23]SAM_PROTO_SignData done [19:29:23]FM_MakeSignedData done [19:29:23]CreateOFDProtocolMessage [19:29:23]wFMCommunicate request_size=4 [19:29:23]MH_SAM_APDU [19:29:23]CAPDU: 80 11 00 00 [19:29:23]Write to MH i2c: E2 08 00 40 25 80 11 00 00 00 00 00 00 DF [19:29:23]Write i2c OK [19:29:23]MH_I2C_Read... [19:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:23]Read from MH i2c: E2 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 17 00 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: E2 17 00 40 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 34 [19:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:29:23]wFMCommunicate OK [19:29:23]CreateOFDProtocolMessage done [19:29:23]OFDSenderStorePacket 155672 [19:29:23]StoreOFDPacket docnum=155672 [19:29:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E0 12 07 01 34 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 13 A0 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 60 02 00 35 04 06 00 67 58 4C 05 3F 9C A2 13 F8 EE D1 27 93 9F [19:29:23]CheckFolder [19:29:23]dirname=/storage/ofd_packets [19:29:23]CheckFolder done [19:29:23]ProducePacketName [19:29:23]name=ofd_packets/00155672 [19:29:23]NVStorageSaveData ofd_packets/00155672 [19:29:23]File name is /storage/ofd_packets/00155672 [19:29:23]Write 301 bytes [19:29:23]NVStorageSaveData done [19:29:23]OFDSenderStorePacket done [19:29:23]KKMCreateOFDPacket done [19:29:23]NVStorageSaveData kkm_last_timestamp [19:29:23]File name is /storage/kkm_last_timestamp [19:29:23]Write 4 bytes [19:29:23]NVStorageSaveData done [19:29:23]ExternCall_PrintAddStr [19:29:23]wPrintStart [19:29:23]Write to MH i2c: 01 00 00 41 25 66 [19:29:23]Write i2c OK [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: 01 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: 01 07 00 [19:29:23]MH_I2C_Read... [19:29:23]Read from MH i2c: 01 07 00 41 25 00 00 00 00 00 FF 0F 7B [19:29:23]RasterBufferAndPrint [19:29:23]line Счет N : (1)98478 [19:29:23]line ИНН: 02508201610067 [19:29:23]line Контрольно-Кассовый Чек [19:29:23]line ПРОДАЖА [19:29:23]line ТРК (МРК, ГНК) : 21 [19:29:23]line Товар: 2710124130 [19:29:23]line Аи-92-К-5 [19:29:23]line 7.480 * 66.90 [19:29:23]line = 500.41 [19:29:23]line НДС 12% НСП 1% [19:29:23]line > о реализуемом товаре [19:29:23]line ОКРУГЛЕНИЕ: -0.41 [19:29:23]line ИТОГО: 500.00 [19:29:23]line Внесено: 500.00 [19:29:23]line СДАЧА: 0.00 [19:29:23]line НСП 1% : 4.43 [19:29:23]line НДС 12% : 53.14 [19:29:23]line Наличными: 500.00 [19:29:23]line Безнал.: 0.00 [19:29:23]line Место: АЗС № 143 "Партнер Нефть" [19:29:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:29:23]line СНО: Общий режим [19:29:23]line Чек 297 24.10.2024 19:29 [19:29:23]line Смена: 534 ФФД: 1.0 [19:29:23]line ЗНМ: 0300000096 [19:29:23]line РНМ: 0000000000091693 [19:29:23]line Версия ККМ: 001 [19:29:23]line ФМ: 0000000000871792 [19:29:23]line ФД: 155672 [19:29:23]line ФПД: 113628930195356 [19:29:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T192923&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155672&fm=113628930195356&tin=02508201610067®Number=0000000000091693&sum=50000 [19:29:24]OFD Sender: Processing packet 155672 [packets to send 31, broken 30] [19:29:24]ProducePacketName [19:29:24]name=ofd_packets/00155672 [19:29:24]OFD Sender: To server: pG, [19:29:24]CommunicateWithHost lk.salyk.kg:30040 [19:29:24]ConnectInit lk.salyk.kg [19:29:24]written 0, free lines is 4095 [19:29:24]Connected sock=10 [19:29: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 39 32 0F 01 00 00 E0 12 07 01 34 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 13 A0 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 60 02 00 35 04 06 00 67 58 4C 05 3F 9C A2 13 F8 EE D1 27 93 9F [19:29: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 39 32 4F 00 00 00 2D 68 47 00 D5 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 39 32 10 04 04 00 18 60 02 00 F4 03 04 00 8B 45 1A 67 B6 04 01 00 00 3A 50 FC 56 4B B9 59 C2 [19:29:24]CommunicateWithHost err = 0 [19:29:24]CheckOFDResponse [19:29:24]1017 (14) - 77093643461234 [19:29:24]1041 (16) - 0000000000871792 [19:29:24]1040 (4) - 155672 [19:29:24]1012 (4) - 24.10.2024 13:03 [19:29:24]1206 (1) - 0 [19:29:24]OFD Sender: Remove packet 155672 [19:29:24]ProducePacketName [19:29:24]name=ofd_packets/00155672 [19:29:24]NVStorageDeleteData [19:29:24]Write to MH i2c: 01 00 00 6C 25 91 [19:29:24]Write i2c OK [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: 01 [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: 01 07 00 [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: 01 07 00 6C 25 00 00 00 00 00 E9 0C 8D [19:29:24]RasterBufferAndPrint [19:29:24]line [19:29:24]line [19:29:24]line [19:29:24]line [19:29:24]line [19:29:24]written 0, free lines is 3311 [19:29:24]process_action close_receipt done [19:29:24]requested_data is exist [19:29:24]produce_requested_data [19:29:24]requested_item fm.sn is exist - process it [19:29:24]wFMCommunicate request_size=4 [19:29:24]MH_SAM_APDU [19:29:24]CAPDU: 80 11 00 00 [19:29:24]Write to MH i2c: E2 08 00 73 25 80 11 00 00 00 00 00 00 12 [19:29:24]Write i2c OK [19:29:24]MH_I2C_Read... [19:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:24]Read from MH i2c: E2 [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: E2 17 00 [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: E2 17 00 73 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 67 [19:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:29:24]wFMCommunicate OK [19:29:24]requested_item fd.num is exist - process it [19:29:24]SAM_PROTO_GetFieldsCounters [19:29:24]wFMCommunicate request_size=4 [19:29:24]MH_SAM_APDU [19:29:24]CAPDU: 80 13 00 00 [19:29:24]Write to MH i2c: E2 08 00 74 25 80 13 00 00 00 00 00 00 15 [19:29:24]Write i2c OK [19:29:24]MH_I2C_Read... [19:29:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:24]Read from MH i2c: E2 [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: E2 62 00 [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: E2 62 00 74 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 18 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [19:29: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 18 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:29:24]wFMCommunicate OK [19:29:24]SAM_PROTO_GetFieldsCounters done [19:29:24]requested_item shift.num is exist - process it [19:29:24]requested_item shift.opened is exist - process it [19:29:24]req_shift_opened [19:29:24]FM_GetShiftState [19:29:24]SAM_PROTO_GetShiftState [19:29:24]wFMCommunicate request_size=4 [19:29:24]MH_SAM_APDU [19:29:24]CAPDU: 80 13 01 00 [19:29:24]Write to MH i2c: E2 08 00 75 25 80 13 01 00 00 00 00 00 17 [19:29:24]Write i2c OK [19:29:24]MH_I2C_Read... [19:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:24]Read from MH i2c: E2 [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: E2 0E 00 [19:29:24]MH_I2C_Read... [19:29:24]Read from MH i2c: E2 0E 00 75 25 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 64 [19:29:24]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:29:24]wFMCommunicate OK [19:29:24]SAM_PROTO_GetShiftState done [19:29:24]FM_GetShiftState done [19:29:24]req_shift_opened done [19:29:24]requested_item shift.open_date is exist - process it [19:29:24]req_shift_open_date [19:29:24]req_shift_open_date done [19:29:24]produce_requested_data done [19:29:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155672,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:29:24]process_action_free close_receipt [19:29:24]json_value_free [19:29:24]json_value_free done [19:29:24]process_json_proto returns [19:29:24]Send response to host [19:29:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155672,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:29:24]free response buf [19:29:24]execute_script done [19:29:24]execute_script returns [19:29:24]free content buf [19:29:24]Sock 8.Close socket [19:29:24]Sock 8.Thread stoped [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:20]OFD Sender: No OFD packet to send [19:31:25]OFD Sender: No OFD packet to send [19:31:30]OFD Sender: No OFD packet to send [19:31:35]OFD Sender: No OFD packet to send [19:31:40]OFD Sender: No OFD packet to send [19:31:45]OFD Sender: No OFD packet to send [19:31:50]OFD Sender: No OFD packet to send [19:31:55]OFD Sender: No OFD packet to send [19:32:00]OFD Sender: No OFD packet to send [19:32:05]OFD Sender: No OFD packet to send [19:32:10]OFD Sender: No OFD packet to send [19:32:15]OFD Sender: No OFD packet to send [19:32:20]OFD Sender: No OFD packet to send [19:32:25]OFD Sender: No OFD packet to send [19:32:30]OFD Sender: No OFD packet to send [19:32:35]OFD Sender: No OFD packet to send [19:32:40]OFD Sender: No OFD packet to send [19:32:45]OFD Sender: No OFD packet to send [19:32:50]OFD Sender: No OFD packet to send [19:32:55]OFD Sender: No OFD packet to send [19:33:00]OFD Sender: No OFD packet to send [19:33:05]OFD Sender: No OFD packet to send [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:20]OFD Sender: No OFD packet to send [19:33:25]OFD Sender: No OFD packet to send [19:33:27]accept exits with 9 [19:33:27]New connection [19:33:27]New thread 3066781028 created [19:33:27]Thread 3066637668 joined [19:33:27]Waiting for new connection... [19:33:27] Sock 9.Parse request [19:33:27]Sock 9.Check first char [19:33:27]Sock 9.First char is OK [19:33:27]request: POST /json_proto HTTP/1.0 [19:33:27]Method: POST [19:33:27]URL: /json_proto [19:33:27]Method is POST - this is cgi request [19:33:27]url: /json_proto [19:33:27]query_string will be loaded in cgi processing [19:33:27]execute_cgi json_proto POST (null) [19:33:27]execute_cgi path=json_proto method=POST [19:33:27]POST find Content-Length [19:33:27]Host: 172.17.63.3:8080 [19:33:27]Content-Length: 639 [19:33:27]Content-Type: application/json [19:33:27] [19:33:27]POST finish read [19:33:27]Found Content-Length = 639 [19:33:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:27]execute_script... [19:33: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)98479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:27]POST & json_proto [19:33:27]process_json_proto [19:33:27]json parsed OK: [19:33:27]protocol is kg_v1.0 [19:33:27]action value=close_receipt [19:33:27]process_action close_receipt [19:33:27]cmd_close_receipt [19:33:27]MH_GetDate [19:33:27]Write to MH i2c: F0 00 00 76 25 8A [19:33:27]Write i2c OK [19:33:27]MH_I2C_Read... [19:33:27]Read from MH i2c: F0 [19:33:27]MH_I2C_Read... [19:33:27]Read from MH i2c: F0 09 00 [19:33:27]MH_I2C_Read... [19:33:27]Read from MH i2c: F0 09 00 76 25 00 09 A1 1A 67 50 D1 6C 64 AF [19:33:27]GetLastDocTimeStamp 1729798163 [19:33:27]current date 1729798409 [19:33:27]FM_GetShiftState [19:33:27]SAM_PROTO_GetShiftState [19:33:27]wFMCommunicate request_size=4 [19:33:27]MH_SAM_APDU [19:33:27]CAPDU: 80 13 01 00 [19:33:27]Write to MH i2c: E2 08 00 77 25 80 13 01 00 00 00 00 00 19 [19:33:27]Write i2c OK [19:33:27]MH_I2C_Read... [19:33:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:27]Read from MH i2c: E2 [19:33:27]MH_I2C_Read... [19:33:27]Read from MH i2c: E2 0E 00 [19:33:27]MH_I2C_Read... [19:33:27]Read from MH i2c: E2 0E 00 77 25 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 66 [19:33:27]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:33:27]wFMCommunicate OK [19:33:27]SAM_PROTO_GetShiftState done [19:33:27]FM_GetShiftState done [19:33:27]opened in 1729729836 [19:33:27]opened+sec_in_day 1729816236 [19:33:27]quantity*price = 66900 [19:33:27]sum+1 = 66901 [19:33:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 298 24.10.2024 19:33 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155673 ФПД: 77491178620805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193329&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155673&fm=77491178620805&tin=02508201610067®Number=0000000000091693&sum=66900 [19:33:28]StoreToDocumentArchive [19:33:28]shift 534 fd 155673 [19:33:28]save to /storage/0534/doc_00155673 [19:33:28]save last doc name /storage/0534/doc_00155673 to /storage/kkm_last_doc_name [19:33:28]save OK [19:33:28]Clear old archive folders... [19:33:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:28]tlvbuf is 01FFE330 [19:33:28]SAM_PROTO_ClearQueue [19:33:28]wFMCommunicate request_size=4 [19:33:28]MH_SAM_APDU [19:33:28]CAPDU: 80 09 00 00 [19:33:28]Write to MH i2c: E2 08 00 84 25 80 09 00 00 00 00 00 00 1B [19:33:28]Write i2c OK [19:33:28]MH_I2C_Read... [19:33:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:28]Read from MH i2c: E2 [19:33:28]MH_I2C_Read... [19:33:28]Read from MH i2c: E2 03 00 [19:33:28]MH_I2C_Read... [19:33:28]Read from MH i2c: E2 03 00 84 25 00 90 00 1D [19:33:28]RAPDU: 90 00 [19:33:28]wFMCommunicate OK [19:33:28]SAM_PROTO_ClearQueue done [19:33:28]KKMCreateOFDPacket [19:33:28]OFDProtocolAddRootSTLVToBuf [19:33:28]FM_MakeSignedData [19:33:28]FM_MakeSignedData [19:33:28]SAM_PROTO_SignData [19:33:28]wFMCommunicate request_size=4 [19:33:28]MH_SAM_APDU [19:33:28]CAPDU: 80 0D 01 02 [19:33:28]Write to MH i2c: E2 08 00 85 25 80 0D 01 02 00 00 00 00 23 [19:33:28]Write i2c OK [19:33:28]MH_I2C_Read... [19:33:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:28]Read from MH i2c: E2 [19:33:28]MH_I2C_Read... [19:33:28]Read from MH i2c: E2 03 00 [19:33:28]MH_I2C_Read... [19:33:28]Read from MH i2c: E2 03 00 85 25 00 90 00 1E [19:33:28]RAPDU: 90 00 [19:33:28]wFMCommunicate OK [19:33:28]wFMCommunicate request_size=255 [19:33:28]MH_SAM_APDU [19:33: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 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 09 A1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 60 02 00 35 04 06 00 46 [19:33:28]Write to MH i2c: E2 02 01 86 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 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 09 A1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 60 02 00 35 04 06 00 46 00 00 0F [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:29]Read from MH i2c: E2 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 03 00 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 03 00 86 25 00 90 00 1F [19:33:29]RAPDU: 90 00 [19:33:29]wFMCommunicate OK [19:33:29]wFMCommunicate request_size=10 [19:33:29]MH_SAM_APDU [19:33:29]CAPDU: 80 0D 02 02 05 7A 52 2C C7 85 [19:33:29]Write to MH i2c: E2 0D 00 87 25 80 0D 02 02 05 00 7A 52 2C C7 85 00 00 74 [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:29]Read from MH i2c: E2 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 03 00 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 03 00 87 25 00 90 00 20 [19:33:29]RAPDU: 90 00 [19:33:29]wFMCommunicate OK [19:33:29]wFMCommunicate request_size=4 [19:33:29]MH_SAM_APDU [19:33:29]CAPDU: 80 0D 03 02 [19:33:29]Write to MH i2c: E2 08 00 88 25 80 0D 03 02 00 00 00 00 28 [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:29]Read from MH i2c: E2 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 0B 00 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 0B 00 88 25 00 CC D0 51 62 E3 56 D2 C7 90 00 4A [19:33:29]RAPDU: CC D0 51 62 E3 56 D2 C7 90 00 [19:33:29]wFMCommunicate OK [19:33:29]SAM_PROTO_SignData done [19:33:29]FM_MakeSignedData done [19:33:29]CreateOFDProtocolMessage [19:33:29]wFMCommunicate request_size=4 [19:33:29]MH_SAM_APDU [19:33:29]CAPDU: 80 11 00 00 [19:33:29]Write to MH i2c: E2 08 00 89 25 80 11 00 00 00 00 00 00 28 [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:29]Read from MH i2c: E2 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 17 00 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 17 00 89 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7D [19:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:33:29]wFMCommunicate OK [19:33:29]CreateOFDProtocolMessage done [19:33:29]OFDSenderStorePacket 155673 [19:33:29]StoreOFDPacket docnum=155673 [19:33:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A5 23 07 01 18 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 09 A1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 60 02 00 35 04 06 00 46 7A 52 2C C7 85 CC D0 51 62 E3 56 D2 C7 [19:33:29]CheckFolder [19:33:29]dirname=/storage/ofd_packets [19:33:29]CheckFolder done [19:33:29]ProducePacketName [19:33:29]name=ofd_packets/00155673 [19:33:29]NVStorageSaveData ofd_packets/00155673 [19:33:29]File name is /storage/ofd_packets/00155673 [19:33:29]Write 301 bytes [19:33:29]NVStorageSaveData done [19:33:29]OFDSenderStorePacket done [19:33:29]KKMCreateOFDPacket done [19:33:29]NVStorageSaveData kkm_last_timestamp [19:33:29]File name is /storage/kkm_last_timestamp [19:33:29]Write 4 bytes [19:33:29]NVStorageSaveData done [19:33:29]ExternCall_PrintAddStr [19:33:29]wPrintStart [19:33:29]Write to MH i2c: 01 00 00 8A 25 AF [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: 01 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: 01 07 00 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: 01 07 00 8A 25 00 00 00 00 00 FF 0F C4 [19:33:29]RasterBufferAndPrint [19:33:29]line Счет N : (1)98479 [19:33:29]line ИНН: 02508201610067 [19:33:29]line Контрольно-Кассовый Чек [19:33:29]line ПРОДАЖА [19:33:29]line ТРК (МРК, ГНК) : 11 [19:33:29]line Товар: 2710124130 [19:33:29]line Аи-92-К-5 [19:33:29]line 10.000 * 66.90 [19:33:29]line = 669.00 [19:33:29]line НДС 12% НСП 1% [19:33:29]line > о реализуемом товаре [19:33:29]line ИТОГО: 669.00 [19:33:29]line НСП 1% : 5.92 [19:33:29]line НДС 12% : 71.04 [19:33:29]line Наличными: 669.00 [19:33:29]line Безнал.: 0.00 [19:33:29]line Место: АЗС № 143 "Партнер Нефть" [19:33:29]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:33:29]line СНО: Общий режим [19:33:29]line Чек 298 24.10.2024 19:33 [19:33:29]line Смена: 534 ФФД: 1.0 [19:33:29]line ЗНМ: 0300000096 [19:33:29]line РНМ: 0000000000091693 [19:33:29]line Версия ККМ: 001 [19:33:29]line ФМ: 0000000000871792 [19:33:29]line ФД: 155673 [19:33:29]line ФПД: 77491178620805 [19:33:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193329&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155673&fm=77491178620805&tin=02508201610067®Number=0000000000091693&sum=66900 [19:33:29]written 0, free lines is 4095 [19:33:29]OFD Sender: Processing packet 155673 [packets to send 31, broken 30] [19:33:29]ProducePacketName [19:33:29]name=ofd_packets/00155673 [19:33:29]OFD Sender: To server: pG, [19:33:29]CommunicateWithHost lk.salyk.kg:30040 [19:33:29]ConnectInit lk.salyk.kg [19:33:29]Connected sock=11 [19:33: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 39 32 0F 01 00 00 A5 23 07 01 18 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 09 A1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 60 02 00 35 04 06 00 46 7A 52 2C C7 85 CC D0 51 62 E3 56 D2 C7 [19:33: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 39 32 4F 00 00 00 D1 1F 47 00 05 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 39 32 10 04 04 00 19 60 02 00 F4 03 04 00 81 46 1A 67 B6 04 01 00 00 C7 DA 36 06 6F 22 0D 89 [19:33:29]CommunicateWithHost err = 0 [19:33:29]CheckOFDResponse [19:33:29]1017 (14) - 77093643461234 [19:33:29]1041 (16) - 0000000000871792 [19:33:29]1040 (4) - 155673 [19:33:29]1012 (4) - 24.10.2024 13:07 [19:33:29]1206 (1) - 0 [19:33:29]OFD Sender: Remove packet 155673 [19:33:29]ProducePacketName [19:33:29]name=ofd_packets/00155673 [19:33:29]NVStorageDeleteData [19:33:29]Write to MH i2c: 01 00 00 B2 25 D7 [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: 01 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: 01 07 00 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: 01 07 00 B2 25 00 00 00 00 00 0F 0D FA [19:33:29]RasterBufferAndPrint [19:33:29]line [19:33:29]line [19:33:29]line [19:33:29]line [19:33:29]line [19:33:29]written 0, free lines is 3349 [19:33:29]process_action close_receipt done [19:33:29]requested_data is exist [19:33:29]produce_requested_data [19:33:29]requested_item fm.sn is exist - process it [19:33:29]wFMCommunicate request_size=4 [19:33:29]MH_SAM_APDU [19:33:29]CAPDU: 80 11 00 00 [19:33:29]Write to MH i2c: E2 08 00 B9 25 80 11 00 00 00 00 00 00 58 [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:29]Read from MH i2c: E2 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 17 00 [19:33:29]MH_I2C_Read... [19:33:29]Read from MH i2c: E2 17 00 B9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AD [19:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:33:29]wFMCommunicate OK [19:33:29]requested_item fd.num is exist - process it [19:33:29]SAM_PROTO_GetFieldsCounters [19:33:29]wFMCommunicate request_size=4 [19:33:29]MH_SAM_APDU [19:33:29]CAPDU: 80 13 00 00 [19:33:29]Write to MH i2c: E2 08 00 BA 25 80 13 00 00 00 00 00 00 5B [19:33:29]Write i2c OK [19:33:29]MH_I2C_Read... [19:33:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:30]Read from MH i2c: E2 [19:33:30]MH_I2C_Read... [19:33:30]Read from MH i2c: E2 62 00 [19:33:30]MH_I2C_Read... [19:33:30]Read from MH i2c: E2 62 00 BA 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 19 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [19: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 19 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:30]wFMCommunicate OK [19:33:30]SAM_PROTO_GetFieldsCounters done [19:33:30]requested_item shift.num is exist - process it [19:33:30]requested_item shift.opened is exist - process it [19:33:30]req_shift_opened [19:33:30]FM_GetShiftState [19:33:30]SAM_PROTO_GetShiftState [19:33:30]wFMCommunicate request_size=4 [19:33:30]MH_SAM_APDU [19:33:30]CAPDU: 80 13 01 00 [19:33:30]Write to MH i2c: E2 08 00 BB 25 80 13 01 00 00 00 00 00 5D [19:33:30]Write i2c OK [19:33:30]MH_I2C_Read... [19:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:30]Read from MH i2c: E2 [19:33:30]MH_I2C_Read... [19:33:30]Read from MH i2c: E2 0E 00 [19:33:30]MH_I2C_Read... [19:33:30]Read from MH i2c: E2 0E 00 BB 25 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AA [19:33:30]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:33:30]wFMCommunicate OK [19:33:30]SAM_PROTO_GetShiftState done [19:33:30]FM_GetShiftState done [19:33:30]req_shift_opened done [19:33:30]requested_item shift.open_date is exist - process it [19:33:30]req_shift_open_date [19:33:30]req_shift_open_date done [19:33:30]produce_requested_data done [19:33:30]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155673,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:33:30]process_action_free close_receipt [19:33:30]json_value_free [19:33:30]json_value_free done [19:33:30]process_json_proto returns [19:33:30]Send response to host [19:33:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155673,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:33:30]free response buf [19:33:30]execute_script done [19:33:30]execute_script returns [19:33:30]free content buf [19:33:30]Sock 9.Close socket [19:33:30]Sock 9.Thread stoped [19:33:30]OFD Sender: No OFD packet to send [19:33:35]OFD Sender: No OFD packet to send [19:33:40]OFD Sender: No OFD packet to send [19:33:45]OFD Sender: No OFD packet to send [19:33:50]OFD Sender: No OFD packet to send [19:33:55]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:01]accept exits with 8 [19:34:01]New connection [19:34:01]New thread 3066637668 created [19:34:01]Thread 3066781028 joined [19:34:01]Waiting for new connection... [19:34:01] Sock 8.Parse request [19:34:01]Sock 8.Check first char [19:34:01]Sock 8.First char is OK [19:34:01]request: POST /json_proto HTTP/1.0 [19:34:01]Method: POST [19:34:01]URL: /json_proto [19:34:01]Method is POST - this is cgi request [19:34:01]url: /json_proto [19:34:01]query_string will be loaded in cgi processing [19:34:01]execute_cgi json_proto POST (null) [19:34:01]execute_cgi path=json_proto method=POST [19:34:01]POST find Content-Length [19:34:01]Host: 172.17.63.3:8080 [19:34:01]Content-Length: 676 [19:34:01]Content-Type: application/json [19:34:01] [19:34:01]POST finish read [19:34:01]Found Content-Length = 676 [19:34:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.950, "sum" : 331.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 331.00, "total" : 331.00, "payments": [ { "type": 0, "sum" : 331.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:01]execute_script... [19:34: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)98480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.950, "sum" : 331.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 331.00, "total" : 331.00, "payments": [ { "type": 0, "sum" : 331.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:01]POST & json_proto [19:34:01]process_json_proto [19:34:01]json parsed OK: [19:34:01]protocol is kg_v1.0 [19:34:01]action value=close_receipt [19:34:01]process_action close_receipt [19:34:01]cmd_close_receipt [19:34:01]MH_GetDate [19:34:01]Write to MH i2c: F0 00 00 BC 25 D0 [19:34:01]Write i2c OK [19:34:01]MH_I2C_Read... [19:34:01]Read from MH i2c: F0 [19:34:01]MH_I2C_Read... [19:34:01]Read from MH i2c: F0 09 00 [19:34:01]MH_I2C_Read... [19:34:01]Read from MH i2c: F0 09 00 BC 25 00 2B A1 1A 67 50 D1 6C 64 17 [19:34:01]GetLastDocTimeStamp 1729798409 [19:34:01]current date 1729798443 [19:34:01]FM_GetShiftState [19:34:01]SAM_PROTO_GetShiftState [19:34:01]wFMCommunicate request_size=4 [19:34:01]MH_SAM_APDU [19:34:01]CAPDU: 80 13 01 00 [19:34:01]Write to MH i2c: E2 08 00 BD 25 80 13 01 00 00 00 00 00 5F [19:34:01]Write i2c OK [19:34:01]MH_I2C_Read... [19:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:01]Read from MH i2c: E2 [19:34:01]MH_I2C_Read... [19:34:01]Read from MH i2c: E2 0E 00 [19:34:01]MH_I2C_Read... [19:34:01]Read from MH i2c: E2 0E 00 BD 25 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AC [19:34:01]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:34:01]wFMCommunicate OK [19:34:01]SAM_PROTO_GetShiftState done [19:34:01]FM_GetShiftState done [19:34:01]opened in 1729729836 [19:34:01]opened+sec_in_day 1729816236 [19:34:01]quantity*price = 33115 [19:34:01]sum+1 = 33117 [19:34:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 331.00 Внесено: 331.00 СДАЧА: 0.00 НСП 1% : 2.93 НДС 12% : 35.17 Наличными: 331.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 299 24.10.2024 19:34 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155674 ФПД: 32514365378059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193403&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155674&fm=32514365378059&tin=02508201610067®Number=0000000000091693&sum=33100 [19:34:02]StoreToDocumentArchive [19:34:02]shift 534 fd 155674 [19:34:02]save to /storage/0534/doc_00155674 [19:34:02]save last doc name /storage/0534/doc_00155674 to /storage/kkm_last_doc_name [19:34:02]save OK [19:34:02]Clear old archive folders... [19:34:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:02]tlvbuf is 01F85B20 [19:34:02]SAM_PROTO_ClearQueue [19:34:02]wFMCommunicate request_size=4 [19:34:02]MH_SAM_APDU [19:34:02]CAPDU: 80 09 00 00 [19:34:02]Write to MH i2c: E2 08 00 CA 25 80 09 00 00 00 00 00 00 61 [19:34:02]Write i2c OK [19:34:02]MH_I2C_Read... [19:34:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:02]Read from MH i2c: E2 [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: E2 03 00 [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: E2 03 00 CA 25 00 90 00 63 [19:34:02]RAPDU: 90 00 [19:34:02]wFMCommunicate OK [19:34:02]SAM_PROTO_ClearQueue done [19:34:02]KKMCreateOFDPacket [19:34:02]OFDProtocolAddRootSTLVToBuf [19:34:02]FM_MakeSignedData [19:34:02]FM_MakeSignedData [19:34:02]SAM_PROTO_SignData [19:34:02]wFMCommunicate request_size=4 [19:34:02]MH_SAM_APDU [19:34:02]CAPDU: 80 0D 01 02 [19:34:02]Write to MH i2c: E2 08 00 CB 25 80 0D 01 02 00 00 00 00 69 [19:34:02]Write i2c OK [19:34:02]MH_I2C_Read... [19:34:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:03]Read from MH i2c: E2 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 03 00 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 03 00 CB 25 00 90 00 64 [19:34:03]RAPDU: 90 00 [19:34:03]wFMCommunicate OK [19:34:03]wFMCommunicate request_size=255 [19:34:03]MH_SAM_APDU [19:34: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 56 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0D 00 00 00 00 07 04 06 00 4C 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 2B A1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 60 02 00 35 04 06 00 1D [19:34:03]Write to MH i2c: E2 02 01 CC 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 56 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0D 00 00 00 00 07 04 06 00 4C 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 2B A1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 60 02 00 35 04 06 00 1D 00 00 AE [19:34:03]Write i2c OK [19:34:03]MH_I2C_Read... [19:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:03]Read from MH i2c: E2 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 03 00 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 03 00 CC 25 00 90 00 65 [19:34:03]RAPDU: 90 00 [19:34:03]wFMCommunicate OK [19:34:03]wFMCommunicate request_size=10 [19:34:03]MH_SAM_APDU [19:34:03]CAPDU: 80 0D 02 02 05 92 57 32 CE 0B [19:34:03]Write to MH i2c: E2 0D 00 CD 25 80 0D 02 02 05 00 92 57 32 CE 0B 00 00 6A [19:34:03]Write i2c OK [19:34:03]MH_I2C_Read... [19:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:03]Read from MH i2c: E2 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 03 00 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 03 00 CD 25 00 90 00 66 [19:34:03]RAPDU: 90 00 [19:34:03]wFMCommunicate OK [19:34:03]wFMCommunicate request_size=4 [19:34:03]MH_SAM_APDU [19:34:03]CAPDU: 80 0D 03 02 [19:34:03]Write to MH i2c: E2 08 00 CE 25 80 0D 03 02 00 00 00 00 6E [19:34:03]Write i2c OK [19:34:03]MH_I2C_Read... [19:34:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:03]Read from MH i2c: E2 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 0B 00 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 0B 00 CE 25 00 20 54 62 8D D2 3B 5E 21 90 00 5E [19:34:03]RAPDU: 20 54 62 8D D2 3B 5E 21 90 00 [19:34:03]wFMCommunicate OK [19:34:03]SAM_PROTO_SignData done [19:34:03]FM_MakeSignedData done [19:34:03]CreateOFDProtocolMessage [19:34:03]wFMCommunicate request_size=4 [19:34:03]MH_SAM_APDU [19:34:03]CAPDU: 80 11 00 00 [19:34:03]Write to MH i2c: E2 08 00 CF 25 80 11 00 00 00 00 00 00 6E [19:34:03]Write i2c OK [19:34:03]MH_I2C_Read... [19:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:03]Read from MH i2c: E2 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 17 00 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 17 00 CF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C3 [19:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:34:03]wFMCommunicate OK [19:34:03]CreateOFDProtocolMessage done [19:34:03]OFDSenderStorePacket 155674 [19:34:03]StoreOFDPacket docnum=155674 [19:34:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BE C4 07 01 B4 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0D 00 00 00 00 07 04 06 00 4C 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 2B A1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 60 02 00 35 04 06 00 1D 92 57 32 CE 0B 20 54 62 8D D2 3B 5E 21 [19:34:03]CheckFolder [19:34:03]dirname=/storage/ofd_packets [19:34:03]CheckFolder done [19:34:03]ProducePacketName [19:34:03]name=ofd_packets/00155674 [19:34:03]NVStorageSaveData ofd_packets/00155674 [19:34:03]File name is /storage/ofd_packets/00155674 [19:34:03]Write 301 bytes [19:34:03]NVStorageSaveData done [19:34:03]OFDSenderStorePacket done [19:34:03]KKMCreateOFDPacket done [19:34:03]NVStorageSaveData kkm_last_timestamp [19:34:03]File name is /storage/kkm_last_timestamp [19:34:03]Write 4 bytes [19:34:03]NVStorageSaveData done [19:34:03]ExternCall_PrintAddStr [19:34:03]wPrintStart [19:34:03]Write to MH i2c: 01 00 00 D0 25 F5 [19:34:03]Write i2c OK [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: 01 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: 01 07 00 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: 01 07 00 D0 25 00 00 00 00 00 FF 0F 0A [19:34:03]RasterBufferAndPrint [19:34:03]line Счет N : (1)98480 [19:34:03]line ИНН: 02508201610067 [19:34:03]line Контрольно-Кассовый Чек [19:34:03]line ПРОДАЖА [19:34:03]line ТРК (МРК, ГНК) : 11 [19:34:03]line Товар: 2710124130 [19:34:03]line Аи-92-К-5 [19:34:03]line 4.950 * 66.90 [19:34:03]line = 331.16 [19:34:03]line НДС 12% НСП 1% [19:34:03]line > о реализуемом товаре [19:34:03]line ОКРУГЛЕНИЕ: -0.16 [19:34:03]line ИТОГО: 331.00 [19:34:03]line Внесено: 331.00 [19:34:03]line СДАЧА: 0.00 [19:34:03]line НСП 1% : 2.93 [19:34:03]line НДС 12% : 35.17 [19:34:03]line Наличными: 331.00 [19:34:03]line Безнал.: 0.00 [19:34:03]line Место: АЗС № 143 "Партнер Нефть" [19:34:03]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:34:03]line СНО: Общий режим [19:34:03]line Чек 299 24.10.2024 19:34 [19:34:03]line Смена: 534 ФФД: 1.0 [19:34:03]line ЗНМ: 0300000096 [19:34:03]line РНМ: 0000000000091693 [19:34:03]line Версия ККМ: 001 [19:34:03]line ФМ: 0000000000871792 [19:34:03]line ФД: 155674 [19:34:03]line ФПД: 32514365378059 [19:34:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193403&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155674&fm=32514365378059&tin=02508201610067®Number=0000000000091693&sum=33100 [19:34:03]OFD Sender: Processing packet 155674 [packets to send 31, broken 30] [19:34:03]ProducePacketName [19:34:03]name=ofd_packets/00155674 [19:34:03]OFD Sender: To server: pG, [19:34:03]CommunicateWithHost lk.salyk.kg:30040 [19:34:03]ConnectInit lk.salyk.kg [19:34:03]written 0, free lines is 4095 [19:34:03]Connected sock=10 [19:34: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 39 32 0F 01 00 00 BE C4 07 01 B4 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0D 00 00 00 00 07 04 06 00 4C 81 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 2B A1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 60 02 00 35 04 06 00 1D 92 57 32 CE 0B 20 54 62 8D D2 3B 5E 21 [19:34: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 39 32 4F 00 00 00 67 22 47 00 7B 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 60 02 00 F4 03 04 00 A3 46 1A 67 B6 04 01 00 00 5D 2C 57 C8 89 2B AE 9F [19:34:04]CommunicateWithHost err = 0 [19:34:04]CheckOFDResponse [19:34:04]1017 (14) - 77093643461234 [19:34:04]1041 (16) - 0000000000871792 [19:34:04]1040 (4) - 155674 [19:34:04]1012 (4) - 24.10.2024 13:07 [19:34:04]1206 (1) - 0 [19:34:04]OFD Sender: Remove packet 155674 [19:34:04]ProducePacketName [19:34:04]name=ofd_packets/00155674 [19:34:04]NVStorageDeleteData [19:34:04]Write to MH i2c: 01 00 00 FB 25 20 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 FB 25 00 00 00 00 00 E7 0C 1A [19:34:04]RasterBufferAndPrint [19:34:04]line [19:34:04]line [19:34:04]line [19:34:04]line [19:34:04]line [19:34:04]written 0, free lines is 3309 [19:34:04]process_action close_receipt done [19:34:04]requested_data is exist [19:34:04]produce_requested_data [19:34:04]requested_item fm.sn is exist - process it [19:34:04]wFMCommunicate request_size=4 [19:34:04]MH_SAM_APDU [19:34:04]CAPDU: 80 11 00 00 [19:34:04]Write to MH i2c: E2 08 00 02 26 80 11 00 00 00 00 00 00 A2 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 17 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 17 00 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F7 [19:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:34:04]wFMCommunicate OK [19:34:04]requested_item fd.num is exist - process it [19:34:04]SAM_PROTO_GetFieldsCounters [19:34:04]wFMCommunicate request_size=4 [19:34:04]MH_SAM_APDU [19:34:04]CAPDU: 80 13 00 00 [19:34:04]Write to MH i2c: E2 08 00 03 26 80 13 00 00 00 00 00 00 A5 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 62 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 62 00 03 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1A 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [19:34: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1A 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:04]wFMCommunicate OK [19:34:04]SAM_PROTO_GetFieldsCounters done [19:34:04]requested_item shift.num is exist - process it [19:34:04]requested_item shift.opened is exist - process it [19:34:04]req_shift_opened [19:34:04]FM_GetShiftState [19:34:04]SAM_PROTO_GetShiftState [19:34:04]wFMCommunicate request_size=4 [19:34:04]MH_SAM_APDU [19:34:04]CAPDU: 80 13 01 00 [19:34:04]Write to MH i2c: E2 08 00 04 26 80 13 01 00 00 00 00 00 A7 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 0E 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 0E 00 04 26 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F4 [19:34:04]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:34:04]wFMCommunicate OK [19:34:04]SAM_PROTO_GetShiftState done [19:34:04]FM_GetShiftState done [19:34:04]req_shift_opened done [19:34:04]requested_item shift.open_date is exist - process it [19:34:04]req_shift_open_date [19:34:04]req_shift_open_date done [19:34:04]produce_requested_data done [19:34:04]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155674,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:34:04]process_action_free close_receipt [19:34:04]json_value_free [19:34:04]json_value_free done [19:34:04]process_json_proto returns [19:34:04]Send response to host [19:34:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155674,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:34:04]free response buf [19:34:04]execute_script done [19:34:04]execute_script returns [19:34:04]free content buf [19:34:04]Sock 8.Close socket [19:34:04]Sock 8.Thread stoped [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:25]accept exits with 9 [19:37:25]New connection [19:37:25]New thread 3066781028 created [19:37:25]Thread 3066637668 joined [19:37:25]Waiting for new connection... [19:37:25] Sock 9.Parse request [19:37:25]Sock 9.Check first char [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.63.3:8080 [19:37:25]Content-Length: 678 [19:37:25]Content-Type: application/json [19:37:25] [19:37:25]POST finish read [19:37:25]Found Content-Length = 678 [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)98481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)98481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 05 26 1A [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 05 26 00 F6 A1 1A 67 50 D1 6C 64 2C [19:37:25]GetLastDocTimeStamp 1729798443 [19:37:25]current date 1729798646 [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 06 26 80 13 01 00 00 00 00 00 A9 [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 06 26 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F6 [19:37:25]RAPDU: 09 00 01 2C 95 19 67 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 1729729836 [19:37:25]opened+sec_in_day 1729816236 [19:37:25]quantity*price = 100050 [19:37:25]sum+1 = 100052 [19:37:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 300 24.10.2024 19:37 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155675 ФПД: 100863699137056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193726&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155675&fm=100863699137056&tin=02508201610067®Number=0000000000091693&sum=100000 [19:37:26]StoreToDocumentArchive [19:37:26]shift 534 fd 155675 [19:37:26]save to /storage/0534/doc_00155675 [19:37:26]save last doc name /storage/0534/doc_00155675 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=248 [19:37:26]tlvbuf is 01F2FC20 [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 13 26 80 09 00 00 00 00 00 00 AB [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 13 26 00 90 00 AD [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 14 26 80 0D 01 02 00 00 00 00 B3 [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 14 26 00 90 00 AE [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 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 F6 A1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1B 60 02 00 35 04 06 00 5B BC 28 F5 [19:37:26]Write to MH i2c: E2 02 01 15 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 F6 A1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1B 60 02 00 35 04 06 00 5B BC 28 F5 00 00 4B [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 15 26 00 90 00 AF [19:37:26]RAPDU: 90 00 [19:37:26]wFMCommunicate OK [19:37:26]wFMCommunicate request_size=7 [19:37:26]MH_SAM_APDU [19:37:26]CAPDU: 80 0D 02 02 02 32 20 [19:37:26]Write to MH i2c: E2 0A 00 16 26 80 0D 02 02 02 00 32 20 00 00 0C [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 16 26 00 90 00 B0 [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 17 26 80 0D 03 02 00 00 00 00 B8 [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 17 26 00 B6 7D CF 42 10 A0 61 6C 90 00 7A [19:37:26]RAPDU: B6 7D CF 42 10 A0 61 6C 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 18 26 80 11 00 00 00 00 00 00 B8 [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 18 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0D [19:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:37:26]wFMCommunicate OK [19:37:26]CreateOFDProtocolMessage done [19:37:26]OFDSenderStorePacket 155675 [19:37:26]StoreOFDPacket docnum=155675 [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 39 32 0C 01 00 00 85 E2 04 01 D3 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 F6 A1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1B 60 02 00 35 04 06 00 5B BC 28 F5 32 20 B6 7D CF 42 10 A0 61 6C [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/00155675 [19:37:26]NVStorageSaveData ofd_packets/00155675 [19:37:26]File name is /storage/ofd_packets/00155675 [19:37:26]Write 298 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 19 26 3F [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 19 26 00 00 00 00 00 FF 0F 54 [19:37:26]RasterBufferAndPrint [19:37:26]line Счет N : (1)98481 [19:37:26]line ИНН: 02508201610067 [19:37:26]line Контрольно-Кассовый Чек [19:37:26]line ПРОДАЖА [19:37:26]line ТРК (МРК, ГНК) : 32 [19:37:26]line Товар: 2710194210 [19:37:26]line ДТ-К-5 [19:37:26]line 13.130 * 76.20 [19:37:26]line = 1000.51 [19:37:26]line НДС 12% НСП 1% [19:37:26]line > о реализуемом товаре [19:37:26]line ОКРУГЛЕНИЕ: -0.51 [19:37:26]line ИТОГО: 1000.00 [19:37:26]line Внесено: 1000.00 [19:37:26]line СДАЧА: 0.00 [19:37:26]line НСП 1% : 8.85 [19:37:26]line НДС 12% : 106.25 [19:37:26]line Наличными: 1000.00 [19:37:26]line Безнал.: 0.00 [19:37:26]line Место: АЗС № 143 "Партнер Нефть" [19:37:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:37:26]line СНО: Общий режим [19:37:26]line Чек 300 24.10.2024 19:37 [19:37:26]line Смена: 534 ФФД: 1.0 [19:37:26]line ЗНМ: 0300000096 [19:37:26]line РНМ: 0000000000091693 [19:37:26]line Версия ККМ: 001 [19:37:26]line ФМ: 0000000000871792 [19:37:26]line ФД: 155675 [19:37:26]line ФПД: 100863699137056 [19:37:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193726&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155675&fm=100863699137056&tin=02508201610067®Number=0000000000091693&sum=100000 [19:37:27]OFD Sender: Processing packet 155675 [packets to send 31, broken 30] [19:37:27]ProducePacketName [19:37:27]name=ofd_packets/00155675 [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]written 0, free lines is 4095 [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 39 32 0C 01 00 00 85 E2 04 01 D3 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 F6 A1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1B 60 02 00 35 04 06 00 5B BC 28 F5 32 20 B6 7D CF 42 10 A0 61 6C [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 39 32 4F 00 00 00 D6 60 47 00 7B 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 39 32 10 04 04 00 1B 60 02 00 F4 03 04 00 6E 47 1A 67 B6 04 01 00 00 41 35 FB 68 38 45 E8 0E [19:37:27]CommunicateWithHost err = 0 [19:37:27]CheckOFDResponse [19:37:27]1017 (14) - 77093643461234 [19:37:27]1041 (16) - 0000000000871792 [19:37:27]1040 (4) - 155675 [19:37:27]1012 (4) - 24.10.2024 13:11 [19:37:27]1206 (1) - 0 [19:37:27]OFD Sender: Remove packet 155675 [19:37:27]ProducePacketName [19:37:27]name=ofd_packets/00155675 [19:37:27]NVStorageDeleteData [19:37:27]Write to MH i2c: 01 00 00 44 26 6A [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 44 26 00 00 00 00 00 D8 0C 55 [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]process_action close_receipt done [19:37:27]requested_data is exist [19:37:27]produce_requested_data [19:37:27]requested_item fm.sn is exist - process it [19:37:27]wFMCommunicate request_size=4 [19:37:27]MH_SAM_APDU [19:37:27]CAPDU: 80 11 00 00 [19:37:27]Write to MH i2c: E2 08 00 4B 26 80 11 00 00 00 00 00 00 EB [19:37:27]Write i2c OK [19:37:27]MH_I2C_Read... [19:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:27]Read from MH i2c: E2 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: E2 17 00 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: E2 17 00 4B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 40 [19:37:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:37:27]wFMCommunicate OK [19:37:27]requested_item fd.num is exist - process it [19:37:27]SAM_PROTO_GetFieldsCounters [19:37:27]wFMCommunicate request_size=4 [19:37:27]MH_SAM_APDU [19:37:27]CAPDU: 80 13 00 00 [19:37:27]Write to MH i2c: E2 08 00 4C 26 80 13 00 00 00 00 00 00 EE [19:37:27]Write i2c OK [19:37:27]MH_I2C_Read... [19:37:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:27]Read from MH i2c: E2 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: E2 62 00 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: E2 62 00 4C 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1B 60 02 00 0E 04 04 00 16 02 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 30 [19: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1B 60 02 00 0E 04 04 00 16 02 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 [19:37:27]wFMCommunicate OK [19:37:27]SAM_PROTO_GetFieldsCounters done [19:37:27]requested_item shift.num is exist - process it [19:37:27]requested_item shift.opened is exist - process it [19:37:27]req_shift_opened [19:37:27]FM_GetShiftState [19:37:27]SAM_PROTO_GetShiftState [19:37:27]wFMCommunicate request_size=4 [19:37:27]MH_SAM_APDU [19:37:27]CAPDU: 80 13 01 00 [19:37:27]Write to MH i2c: E2 08 00 4D 26 80 13 01 00 00 00 00 00 F0 [19:37:27]Write i2c OK [19:37:27]MH_I2C_Read... [19:37:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:27]Read from MH i2c: E2 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: E2 0E 00 [19:37:27]MH_I2C_Read... [19:37:27]Read from MH i2c: E2 0E 00 4D 26 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3D [19:37:27]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:37:27]wFMCommunicate OK [19:37:27]SAM_PROTO_GetShiftState done [19:37:27]FM_GetShiftState done [19:37:27]req_shift_opened done [19:37:27]requested_item shift.open_date is exist - process it [19:37:27]req_shift_open_date [19:37:27]req_shift_open_date done [19:37:27]produce_requested_data done [19:37:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155675,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:37:27]process_action_free close_receipt [19:37:27]json_value_free [19:37:27]json_value_free done [19:37:27]process_json_proto returns [19:37:27]Send response to host [19:37:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155675,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:37:27]free response buf [19:37:27]execute_script done [19:37:27]execute_script returns [19:37:27]free content buf [19:37:27]Sock 9.Close socket [19:37:27]Sock 9.Thread stoped [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:16]accept exits with 8 [19:38:16]New connection [19:38:16]New thread 3066637668 created [19:38:16]Thread 3066781028 joined [19:38:16]Waiting for new connection... [19:38:16] Sock 8.Parse request [19:38:16]Sock 8.Check first char [19:38:16]Sock 8.First char is OK [19:38:16]request: POST /json_proto HTTP/1.0 [19:38:16]Method: POST [19:38:16]URL: /json_proto [19:38:16]Method is POST - this is cgi request [19:38:16]url: /json_proto [19:38:16]query_string will be loaded in cgi processing [19:38:16]execute_cgi json_proto POST (null) [19:38:16]execute_cgi path=json_proto method=POST [19:38:16]POST find Content-Length [19:38:16]Host: 172.17.63.3:8080 [19:38:16]Content-Length: 676 [19:38:16]Content-Type: application/json [19:38:16] [19:38:16]POST finish read [19:38:16]Found Content-Length = 676 [19:38:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:16]execute_script... [19:38:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:16]POST & json_proto [19:38:16]process_json_proto [19:38:16]json parsed OK: [19:38:16]protocol is kg_v1.0 [19:38:16]action value=close_receipt [19:38:16]process_action close_receipt [19:38:16]cmd_close_receipt [19:38:16]MH_GetDate [19:38:16]Write to MH i2c: F0 00 00 4E 26 63 [19:38:16]Write i2c OK [19:38:16]MH_I2C_Read... [19:38:16]Read from MH i2c: F0 [19:38:16]MH_I2C_Read... [19:38:16]Read from MH i2c: F0 09 00 [19:38:16]MH_I2C_Read... [19:38:16]Read from MH i2c: F0 09 00 4E 26 00 29 A2 1A 67 50 D1 6C 64 A9 [19:38:16]GetLastDocTimeStamp 1729798646 [19:38:16]current date 1729798697 [19:38:16]FM_GetShiftState [19:38:16]SAM_PROTO_GetShiftState [19:38:16]wFMCommunicate request_size=4 [19:38:16]MH_SAM_APDU [19:38:16]CAPDU: 80 13 01 00 [19:38:16]Write to MH i2c: E2 08 00 4F 26 80 13 01 00 00 00 00 00 F2 [19:38:16]Write i2c OK [19:38:16]MH_I2C_Read... [19:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:16]Read from MH i2c: E2 [19:38:16]MH_I2C_Read... [19:38:16]Read from MH i2c: E2 0E 00 [19:38:16]MH_I2C_Read... [19:38:16]Read from MH i2c: E2 0E 00 4F 26 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3F [19:38:16]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:38:16]wFMCommunicate OK [19:38:16]SAM_PROTO_GetShiftState done [19:38:16]FM_GetShiftState done [19:38:16]opened in 1729729836 [19:38:16]opened+sec_in_day 1729816236 [19:38:16]quantity*price = 30038 [19:38:16]sum+1 = 30039 [19:38:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 301 24.10.2024 19:38 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155676 ФПД: 28394772960259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193817&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155676&fm=28394772960259&tin=02508201610067®Number=0000000000091693&sum=30000 [19:38:17]StoreToDocumentArchive [19:38:17]shift 534 fd 155676 [19:38:17]save to /storage/0534/doc_00155676 [19:38:17]save last doc name /storage/0534/doc_00155676 to /storage/kkm_last_doc_name [19:38:17]save OK [19:38:17]Clear old archive folders... [19:38:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:17]tlvbuf is 01FBEDD0 [19:38:17]SAM_PROTO_ClearQueue [19:38:17]wFMCommunicate request_size=4 [19:38:17]MH_SAM_APDU [19:38:17]CAPDU: 80 09 00 00 [19:38:17]Write to MH i2c: E2 08 00 5C 26 80 09 00 00 00 00 00 00 F4 [19:38:17]Write i2c OK [19:38:17]MH_I2C_Read... [19:38:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:17]Read from MH i2c: E2 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 03 00 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 03 00 5C 26 00 90 00 F6 [19:38:17]RAPDU: 90 00 [19:38:17]wFMCommunicate OK [19:38:17]SAM_PROTO_ClearQueue done [19:38:17]KKMCreateOFDPacket [19:38:17]OFDProtocolAddRootSTLVToBuf [19:38:17]FM_MakeSignedData [19:38:17]FM_MakeSignedData [19:38:17]SAM_PROTO_SignData [19:38:17]wFMCommunicate request_size=4 [19:38:17]MH_SAM_APDU [19:38:17]CAPDU: 80 0D 01 02 [19:38:17]Write to MH i2c: E2 08 00 5D 26 80 0D 01 02 00 00 00 00 FC [19:38:17]Write i2c OK [19:38:17]MH_I2C_Read... [19:38:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:17]Read from MH i2c: E2 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 03 00 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 03 00 5D 26 00 90 00 F7 [19:38:17]RAPDU: 90 00 [19:38:17]wFMCommunicate OK [19:38:17]wFMCommunicate request_size=255 [19:38:17]MH_SAM_APDU [19:38: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 29 A2 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 60 02 00 35 04 06 00 19 [19:38:17]Write to MH i2c: E2 02 01 5E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 29 A2 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 60 02 00 35 04 06 00 19 00 00 AD [19:38:17]Write i2c OK [19:38:17]MH_I2C_Read... [19:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:17]Read from MH i2c: E2 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 03 00 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 03 00 5E 26 00 90 00 F8 [19:38:17]RAPDU: 90 00 [19:38:17]wFMCommunicate OK [19:38:17]wFMCommunicate request_size=10 [19:38:17]MH_SAM_APDU [19:38:17]CAPDU: 80 0D 02 02 05 D3 2C 5B 14 03 [19:38:17]Write to MH i2c: E2 0D 00 5F 26 80 0D 02 02 05 00 D3 2C 5B 14 03 00 00 7A [19:38:17]Write i2c OK [19:38:17]MH_I2C_Read... [19:38:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:17]Read from MH i2c: E2 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 03 00 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 03 00 5F 26 00 90 00 F9 [19:38:17]RAPDU: 90 00 [19:38:17]wFMCommunicate OK [19:38:17]wFMCommunicate request_size=4 [19:38:17]MH_SAM_APDU [19:38:17]CAPDU: 80 0D 03 02 [19:38:17]Write to MH i2c: E2 08 00 60 26 80 0D 03 02 00 00 00 00 01 [19:38:17]Write i2c OK [19:38:17]MH_I2C_Read... [19:38:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:17]Read from MH i2c: E2 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 0B 00 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 0B 00 60 26 00 CB 00 86 E3 12 A4 4E C5 90 00 FF [19:38:17]RAPDU: CB 00 86 E3 12 A4 4E C5 90 00 [19:38:17]wFMCommunicate OK [19:38:17]SAM_PROTO_SignData done [19:38:17]FM_MakeSignedData done [19:38:17]CreateOFDProtocolMessage [19:38:17]wFMCommunicate request_size=4 [19:38:17]MH_SAM_APDU [19:38:17]CAPDU: 80 11 00 00 [19:38:17]Write to MH i2c: E2 08 00 61 26 80 11 00 00 00 00 00 00 01 [19:38:17]Write i2c OK [19:38:17]MH_I2C_Read... [19:38:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:17]Read from MH i2c: E2 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 17 00 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: E2 17 00 61 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 56 [19:38:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:38:17]wFMCommunicate OK [19:38:17]CreateOFDProtocolMessage done [19:38:17]OFDSenderStorePacket 155676 [19:38:17]StoreOFDPacket docnum=155676 [19:38:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 83 96 07 01 12 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 29 A2 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 60 02 00 35 04 06 00 19 D3 2C 5B 14 03 CB 00 86 E3 12 A4 4E C5 [19:38:17]CheckFolder [19:38:17]dirname=/storage/ofd_packets [19:38:17]CheckFolder done [19:38:17]ProducePacketName [19:38:17]name=ofd_packets/00155676 [19:38:17]NVStorageSaveData ofd_packets/00155676 [19:38:17]File name is /storage/ofd_packets/00155676 [19:38:17]Write 301 bytes [19:38:17]NVStorageSaveData done [19:38:17]OFDSenderStorePacket done [19:38:17]KKMCreateOFDPacket done [19:38:17]NVStorageSaveData kkm_last_timestamp [19:38:17]File name is /storage/kkm_last_timestamp [19:38:17]Write 4 bytes [19:38:17]NVStorageSaveData done [19:38:17]ExternCall_PrintAddStr [19:38:17]wPrintStart [19:38:17]Write to MH i2c: 01 00 00 62 26 88 [19:38:17]Write i2c OK [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: 01 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: 01 07 00 [19:38:17]MH_I2C_Read... [19:38:17]Read from MH i2c: 01 07 00 62 26 00 00 00 00 00 FF 0F 9D [19:38:17]RasterBufferAndPrint [19:38:17]line Счет N : (1)98482 [19:38:17]line ИНН: 02508201610067 [19:38:17]line Контрольно-Кассовый Чек [19:38:17]line ПРОДАЖА [19:38:17]line ТРК (МРК, ГНК) : 11 [19:38:17]line Товар: 2710124130 [19:38:17]line Аи-92-К-5 [19:38:17]line 4.490 * 66.90 [19:38:17]line = 300.38 [19:38:17]line НДС 12% НСП 1% [19:38:17]line > о реализуемом товаре [19:38:17]line ОКРУГЛЕНИЕ: -0.38 [19:38:17]line ИТОГО: 300.00 [19:38:17]line Внесено: 300.00 [19:38:17]line СДАЧА: 0.00 [19:38:17]line НСП 1% : 2.66 [19:38:17]line НДС 12% : 31.90 [19:38:17]line Наличными: 300.00 [19:38:17]line Безнал.: 0.00 [19:38:17]line Место: АЗС № 143 "Партнер Нефть" [19:38:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:38:17]line СНО: Общий режим [19:38:17]line Чек 301 24.10.2024 19:38 [19:38:17]line Смена: 534 ФФД: 1.0 [19:38:17]line ЗНМ: 0300000096 [19:38:17]line РНМ: 0000000000091693 [19:38:17]line Версия ККМ: 001 [19:38:17]line ФМ: 0000000000871792 [19:38:17]line ФД: 155676 [19:38:17]line ФПД: 28394772960259 [19:38:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T193817&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155676&fm=28394772960259&tin=02508201610067®Number=0000000000091693&sum=30000 [19:38:18]OFD Sender: Processing packet 155676 [packets to send 31, broken 30] [19:38:18]ProducePacketName [19:38:18]name=ofd_packets/00155676 [19:38:18]OFD Sender: To server: pG, [19:38:18]CommunicateWithHost lk.salyk.kg:30040 [19:38:18]ConnectInit lk.salyk.kg [19:38:18]written 0, free lines is 4095 [19:38:18]Connected sock=10 [19:38:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 83 96 07 01 12 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 29 A2 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 60 02 00 35 04 06 00 19 D3 2C 5B 14 03 CB 00 86 E3 12 A4 4E C5 [19:38:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 77 E9 47 00 F9 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 39 32 10 04 04 00 1C 60 02 00 F4 03 04 00 A1 47 1A 67 B6 04 01 00 00 FB 69 EB 4B 2E B1 77 36 [19:38:18]CommunicateWithHost err = 0 [19:38:18]CheckOFDResponse [19:38:18]1017 (14) - 77093643461234 [19:38:18]1041 (16) - 0000000000871792 [19:38:18]1040 (4) - 155676 [19:38:18]1012 (4) - 24.10.2024 13:12 [19:38:18]1206 (1) - 0 [19:38:18]OFD Sender: Remove packet 155676 [19:38:18]ProducePacketName [19:38:18]name=ofd_packets/00155676 [19:38:18]NVStorageDeleteData [19:38:18]Write to MH i2c: 01 00 00 8D 26 B3 [19:38:18]Write i2c OK [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: 01 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: 01 07 00 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: 01 07 00 8D 26 00 00 00 00 00 E7 0C AD [19:38:18]RasterBufferAndPrint [19:38:18]line [19:38:18]line [19:38:18]line [19:38:18]line [19:38:18]line [19:38:18]written 0, free lines is 3313 [19:38:18]process_action close_receipt done [19:38:18]requested_data is exist [19:38:18]produce_requested_data [19:38:18]requested_item fm.sn is exist - process it [19:38:18]wFMCommunicate request_size=4 [19:38:18]MH_SAM_APDU [19:38:18]CAPDU: 80 11 00 00 [19:38:18]Write to MH i2c: E2 08 00 94 26 80 11 00 00 00 00 00 00 34 [19:38:18]Write i2c OK [19:38:18]MH_I2C_Read... [19:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:18]Read from MH i2c: E2 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: E2 17 00 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: E2 17 00 94 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 89 [19:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:38:18]wFMCommunicate OK [19:38:18]requested_item fd.num is exist - process it [19:38:18]SAM_PROTO_GetFieldsCounters [19:38:18]wFMCommunicate request_size=4 [19:38:18]MH_SAM_APDU [19:38:18]CAPDU: 80 13 00 00 [19:38:18]Write to MH i2c: E2 08 00 95 26 80 13 00 00 00 00 00 00 37 [19:38:18]Write i2c OK [19:38:18]MH_I2C_Read... [19:38:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:18]Read from MH i2c: E2 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: E2 62 00 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: E2 62 00 95 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1C 60 02 00 0E 04 04 00 16 02 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 7D [19:38: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1C 60 02 00 0E 04 04 00 16 02 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 [19:38:18]wFMCommunicate OK [19:38:18]SAM_PROTO_GetFieldsCounters done [19:38:18]requested_item shift.num is exist - process it [19:38:18]requested_item shift.opened is exist - process it [19:38:18]req_shift_opened [19:38:18]FM_GetShiftState [19:38:18]SAM_PROTO_GetShiftState [19:38:18]wFMCommunicate request_size=4 [19:38:18]MH_SAM_APDU [19:38:18]CAPDU: 80 13 01 00 [19:38:18]Write to MH i2c: E2 08 00 96 26 80 13 01 00 00 00 00 00 39 [19:38:18]Write i2c OK [19:38:18]MH_I2C_Read... [19:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:18]Read from MH i2c: E2 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: E2 0E 00 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: E2 0E 00 96 26 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 86 [19:38:18]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:38:18]wFMCommunicate OK [19:38:18]SAM_PROTO_GetShiftState done [19:38:18]FM_GetShiftState done [19:38:18]req_shift_opened done [19:38:18]requested_item shift.open_date is exist - process it [19:38:18]req_shift_open_date [19:38:18]req_shift_open_date done [19:38:18]produce_requested_data done [19:38:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155676,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:38:18]process_action_free close_receipt [19:38:18]json_value_free [19:38:18]json_value_free done [19:38:18]process_json_proto returns [19:38:18]Send response to host [19:38:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155676,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:38:18]free response buf [19:38:18]execute_script done [19:38:18]execute_script returns [19:38:18]free content buf [19:38:18]Sock 8.Close socket [19:38:18]Sock 8.Thread stoped [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:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:22]accept exits with 9 [19:42:22]New connection [19:42:22]New thread 3066781028 created [19:42:22]Thread 3066637668 joined [19:42:22]Waiting for new connection... [19:42:22] Sock 9.Parse request [19:42:22]Sock 9.Check first char [19:42:22]Sock 9.First char is OK [19:42:22]request: POST /json_proto HTTP/1.0 [19:42:22]Method: POST [19:42:22]URL: /json_proto [19:42:22]Method is POST - this is cgi request [19:42:22]url: /json_proto [19:42:22]query_string will be loaded in cgi processing [19:42:22]execute_cgi json_proto POST (null) [19:42:22]execute_cgi path=json_proto method=POST [19:42:22]POST find Content-Length [19:42:22]Host: 172.17.63.3:8080 [19:42:22]Content-Length: 678 [19:42:22]Content-Type: application/json [19:42:22] [19:42:22]POST finish read [19:42:22]Found Content-Length = 678 [19:42:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:22]execute_script... [19:42: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)98483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:22]POST & json_proto [19:42:22]process_json_proto [19:42:22]json parsed OK: [19:42:22]protocol is kg_v1.0 [19:42:22]action value=close_receipt [19:42:22]process_action close_receipt [19:42:22]cmd_close_receipt [19:42:22]MH_GetDate [19:42:22]Write to MH i2c: F0 00 00 97 26 AC [19:42:22]Write i2c OK [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: F0 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: F0 09 00 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: F0 09 00 97 26 00 20 A3 1A 67 50 D1 6C 64 EA [19:42:22]GetLastDocTimeStamp 1729798697 [19:42:22]current date 1729798944 [19:42:22]FM_GetShiftState [19:42:22]SAM_PROTO_GetShiftState [19:42:22]wFMCommunicate request_size=4 [19:42:22]MH_SAM_APDU [19:42:22]CAPDU: 80 13 01 00 [19:42:22]Write to MH i2c: E2 08 00 98 26 80 13 01 00 00 00 00 00 3B [19:42:22]Write i2c OK [19:42:22]MH_I2C_Read... [19:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:22]Read from MH i2c: E2 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 0E 00 [19:42:22]MH_I2C_Read... [19:42:22]Read from MH i2c: E2 0E 00 98 26 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 88 [19:42:22]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:42:22]wFMCommunicate OK [19:42:22]SAM_PROTO_GetShiftState done [19:42:22]FM_GetShiftState done [19:42:22]opened in 1729729836 [19:42:22]opened+sec_in_day 1729816236 [19:42:22]quantity*price = 100050 [19:42:22]sum+1 = 100052 [19:42: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 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 302 24.10.2024 19:42 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155677 ФПД: 252798122011150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194224&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155677&fm=252798122011150&tin=02508201610067®Number=0000000000091693&sum=100000 [19:42:23]StoreToDocumentArchive [19:42:23]shift 534 fd 155677 [19:42:23]save to /storage/0534/doc_00155677 [19:42:23]save last doc name /storage/0534/doc_00155677 to /storage/kkm_last_doc_name [19:42:23]save OK [19:42:23]Clear old archive folders... [19:42:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:42:23]tlvbuf is 01F85C70 [19:42:23]SAM_PROTO_ClearQueue [19:42:23]wFMCommunicate request_size=4 [19:42:23]MH_SAM_APDU [19:42:23]CAPDU: 80 09 00 00 [19:42:23]Write to MH i2c: E2 08 00 A5 26 80 09 00 00 00 00 00 00 3D [19:42:23]Write i2c OK [19:42:23]MH_I2C_Read... [19:42:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:23]Read from MH i2c: E2 [19:42:23]MH_I2C_Read... [19:42:23]Read from MH i2c: E2 03 00 [19:42:23]MH_I2C_Read... [19:42:23]Read from MH i2c: E2 03 00 A5 26 00 90 00 3F [19:42:23]RAPDU: 90 00 [19:42:23]wFMCommunicate OK [19:42:23]SAM_PROTO_ClearQueue done [19:42:23]KKMCreateOFDPacket [19:42:23]OFDProtocolAddRootSTLVToBuf [19:42:23]FM_MakeSignedData [19:42:23]FM_MakeSignedData [19:42:23]SAM_PROTO_SignData [19:42:23]wFMCommunicate request_size=4 [19:42:23]MH_SAM_APDU [19:42:23]CAPDU: 80 0D 01 02 [19:42:23]Write to MH i2c: E2 08 00 A6 26 80 0D 01 02 00 00 00 00 45 [19:42:23]Write i2c OK [19:42:23]MH_I2C_Read... [19:42:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:23]Read from MH i2c: E2 [19:42:23]MH_I2C_Read... [19:42:23]Read from MH i2c: E2 03 00 [19:42:23]MH_I2C_Read... [19:42:23]Read from MH i2c: E2 03 00 A6 26 00 90 00 40 [19:42:23]RAPDU: 90 00 [19:42:23]wFMCommunicate OK [19:42:23]wFMCommunicate request_size=255 [19:42:23]MH_SAM_APDU [19:42:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 20 A3 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 60 02 00 35 04 06 00 E5 EB 26 43 [19:42:23]Write to MH i2c: E2 02 01 A7 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 20 A3 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 60 02 00 35 04 06 00 E5 EB 26 43 00 00 12 [19:42:23]Write i2c OK [19:42:23]MH_I2C_Read... [19:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:24]Read from MH i2c: E2 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 03 00 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 03 00 A7 26 00 90 00 41 [19:42:24]RAPDU: 90 00 [19:42:24]wFMCommunicate OK [19:42:24]wFMCommunicate request_size=7 [19:42:24]MH_SAM_APDU [19:42:24]CAPDU: 80 0D 02 02 02 2A 0E [19:42:24]Write to MH i2c: E2 0A 00 A8 26 80 0D 02 02 02 00 2A 0E 00 00 84 [19:42:24]Write i2c OK [19:42:24]MH_I2C_Read... [19:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:24]Read from MH i2c: E2 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 03 00 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 03 00 A8 26 00 90 00 42 [19:42:24]RAPDU: 90 00 [19:42:24]wFMCommunicate OK [19:42:24]wFMCommunicate request_size=4 [19:42:24]MH_SAM_APDU [19:42:24]CAPDU: 80 0D 03 02 [19:42:24]Write to MH i2c: E2 08 00 A9 26 80 0D 03 02 00 00 00 00 4A [19:42:24]Write i2c OK [19:42:24]MH_I2C_Read... [19:42:24]OFD Sender: No OFD packet to send [19:42:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:24]Read from MH i2c: E2 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 0B 00 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 0B 00 A9 26 00 10 77 34 D9 10 E3 22 E9 90 00 DD [19:42:24]RAPDU: 10 77 34 D9 10 E3 22 E9 90 00 [19:42:24]wFMCommunicate OK [19:42:24]SAM_PROTO_SignData done [19:42:24]FM_MakeSignedData done [19:42:24]CreateOFDProtocolMessage [19:42:24]wFMCommunicate request_size=4 [19:42:24]MH_SAM_APDU [19:42:24]CAPDU: 80 11 00 00 [19:42:24]Write to MH i2c: E2 08 00 AA 26 80 11 00 00 00 00 00 00 4A [19:42:24]Write i2c OK [19:42:24]MH_I2C_Read... [19:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:24]Read from MH i2c: E2 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 17 00 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: E2 17 00 AA 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9F [19:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:42:24]wFMCommunicate OK [19:42:24]CreateOFDProtocolMessage done [19:42:24]OFDSenderStorePacket 155677 [19:42:24]StoreOFDPacket docnum=155677 [19:42:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 91 BD 04 01 51 A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 20 A3 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 60 02 00 35 04 06 00 E5 EB 26 43 2A 0E 10 77 34 D9 10 E3 22 E9 [19:42:24]CheckFolder [19:42:24]dirname=/storage/ofd_packets [19:42:24]CheckFolder done [19:42:24]ProducePacketName [19:42:24]name=ofd_packets/00155677 [19:42:24]NVStorageSaveData ofd_packets/00155677 [19:42:24]File name is /storage/ofd_packets/00155677 [19:42:24]Write 298 bytes [19:42:24]NVStorageSaveData done [19:42:24]OFDSenderStorePacket done [19:42:24]KKMCreateOFDPacket done [19:42:24]NVStorageSaveData kkm_last_timestamp [19:42:24]File name is /storage/kkm_last_timestamp [19:42:24]Write 4 bytes [19:42:24]NVStorageSaveData done [19:42:24]ExternCall_PrintAddStr [19:42:24]wPrintStart [19:42:24]Write to MH i2c: 01 00 00 AB 26 D1 [19:42:24]Write i2c OK [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: 01 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: 01 07 00 [19:42:24]MH_I2C_Read... [19:42:24]Read from MH i2c: 01 07 00 AB 26 00 00 00 00 00 FF 0F E6 [19:42:24]RasterBufferAndPrint [19:42:24]line Счет N : (1)98483 [19:42:24]line ИНН: 02508201610067 [19:42:24]line Контрольно-Кассовый Чек [19:42:24]line ПРОДАЖА [19:42:24]line ТРК (МРК, ГНК) : 32 [19:42:24]line Товар: 2710194210 [19:42:24]line ДТ-К-5 [19:42:24]line 13.130 * 76.20 [19:42:24]line = 1000.51 [19:42:24]line НДС 12% НСП 1% [19:42:24]line > о реализуемом товаре [19:42:24]line ОКРУГЛЕНИЕ: -0.51 [19:42:24]line ИТОГО: 1000.00 [19:42:24]line Внесено: 1000.00 [19:42:24]line СДАЧА: 0.00 [19:42:24]line НСП 1% : 8.85 [19:42:24]line НДС 12% : 106.25 [19:42:24]line Наличными: 1000.00 [19:42:24]line Безнал.: 0.00 [19:42:24]line Место: АЗС № 143 "Партнер Нефть" [19:42:24]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:42:24]line СНО: Общий режим [19:42:24]line Чек 302 24.10.2024 19:42 [19:42:24]line Смена: 534 ФФД: 1.0 [19:42:24]line ЗНМ: 0300000096 [19:42:24]line РНМ: 0000000000091693 [19:42:24]line Версия ККМ: 001 [19:42:24]line ФМ: 0000000000871792 [19:42:24]line ФД: 155677 [19:42:24]line ФПД: 252798122011150 [19:42:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194224&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155677&fm=252798122011150&tin=02508201610067®Number=0000000000091693&sum=100000 [19:42:24]OFD Sender: Processing packet 155677 [packets to send 31, broken 30] [19:42:24]ProducePacketName [19:42:24]name=ofd_packets/00155677 [19:42:24]OFD Sender: To server: pG, [19:42:24]CommunicateWithHost lk.salyk.kg:30040 [19:42:24]ConnectInit lk.salyk.kg [19:42:24]written 0, free lines is 4095 [19:42:24]Connected sock=10 [19:42: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 39 32 0C 01 00 00 91 BD 04 01 51 A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 20 A3 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 60 02 00 35 04 06 00 E5 EB 26 43 2A 0E 10 77 34 D9 10 E3 22 E9 [19:42: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 39 32 4F 00 00 00 40 71 47 00 9A 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 39 32 10 04 04 00 1D 60 02 00 F4 03 04 00 98 48 1A 67 B6 04 01 00 00 CD 2E 21 71 5D C0 5F F5 [19:42:24]CommunicateWithHost err = 0 [19:42:24]CheckOFDResponse [19:42:24]1017 (14) - 77093643461234 [19:42:24]1041 (16) - 0000000000871792 [19:42:24]1040 (4) - 155677 [19:42:24]1012 (4) - 24.10.2024 13:16 [19:42:24]1206 (1) - 0 [19:42:24]OFD Sender: Remove packet 155677 [19:42:24]ProducePacketName [19:42:24]name=ofd_packets/00155677 [19:42:24]NVStorageDeleteData [19:42:25]Write to MH i2c: 01 00 00 D6 26 FC [19:42:25]Write i2c OK [19:42:25]MH_I2C_Read... [19:42:25]Read from MH i2c: 01 [19:42:25]MH_I2C_Read... [19:42:25]Read from MH i2c: 01 07 00 [19:42:25]MH_I2C_Read... [19:42:25]Read from MH i2c: 01 07 00 D6 26 00 00 00 00 00 EE 0C FD [19:42:25]RasterBufferAndPrint [19:42:25]line [19:42:25]line [19:42:25]line [19:42:25]line [19:42:25]line [19:42:25]written 0, free lines is 3319 [19:42:25]process_action close_receipt done [19:42:25]requested_data is exist [19:42:25]produce_requested_data [19:42:25]requested_item fm.sn is exist - process it [19:42:25]wFMCommunicate request_size=4 [19:42:25]MH_SAM_APDU [19:42:25]CAPDU: 80 11 00 00 [19:42:25]Write to MH i2c: E2 08 00 DD 26 80 11 00 00 00 00 00 00 7D [19:42:25]Write i2c OK [19:42:25]MH_I2C_Read... [19:42:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:25]Read from MH i2c: E2 [19:42:25]MH_I2C_Read... [19:42:25]Read from MH i2c: E2 17 00 [19:42:25]MH_I2C_Read... [19:42:25]Read from MH i2c: E2 17 00 DD 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D2 [19:42:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:42:25]wFMCommunicate OK [19:42:25]requested_item fd.num is exist - process it [19:42:25]SAM_PROTO_GetFieldsCounters [19:42:25]wFMCommunicate request_size=4 [19:42:25]MH_SAM_APDU [19:42:25]CAPDU: 80 13 00 00 [19:42:25]Write to MH i2c: E2 08 00 DE 26 80 13 00 00 00 00 00 00 80 [19:42:25]Write i2c OK [19:42:25]MH_I2C_Read... [19:42:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:25]Read from MH i2c: E2 [19:42:25]MH_I2C_Read... [19:42:25]Read from MH i2c: E2 62 00 [19:42:25]MH_I2C_Read... [19:42:25]Read from MH i2c: E2 62 00 DE 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1D 60 02 00 0E 04 04 00 16 02 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 CA [19:42: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1D 60 02 00 0E 04 04 00 16 02 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 [19:42:25]wFMCommunicate OK [19:42:25]SAM_PROTO_GetFieldsCounters done [19:42:25]requested_item shift.num is exist - process it [19:42:25]requested_item shift.opened is exist - process it [19:42:25]req_shift_opened [19:42:25]FM_GetShiftState [19:42:25]SAM_PROTO_GetShiftState [19:42:25]wFMCommunicate request_size=4 [19:42:25]MH_SAM_APDU [19:42:25]CAPDU: 80 13 01 00 [19:42:25]Write to MH i2c: E2 08 00 DF 26 80 13 01 00 00 00 00 00 82 [19:42:25]Write i2c OK [19:42:25]MH_I2C_Read... [19:42:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:25]Read from MH i2c: E2 [19:42:25]MH_I2C_Read... [19:42:25]Read from MH i2c: E2 0E 00 [19:42:25]MH_I2C_Read... [19:42:25]Read from MH i2c: E2 0E 00 DF 26 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 CF [19:42:25]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:42:25]wFMCommunicate OK [19:42:25]SAM_PROTO_GetShiftState done [19:42:25]FM_GetShiftState done [19:42:25]req_shift_opened done [19:42:25]requested_item shift.open_date is exist - process it [19:42:25]req_shift_open_date [19:42:25]req_shift_open_date done [19:42:25]produce_requested_data done [19:42:25]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155677,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:42:25]process_action_free close_receipt [19:42:25]json_value_free [19:42:25]json_value_free done [19:42:25]process_json_proto returns [19:42:25]Send response to host [19:42:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155677,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:42:25]free response buf [19:42:25]execute_script done [19:42:25]execute_script returns [19:42:25]free content buf [19:42:25]Sock 9.Close socket [19:42:25]Sock 9.Thread stoped [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [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:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:45]OFD Sender: No OFD packet to send [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:08]accept exits with 8 [19:47:08]New connection [19:47:08]New thread 3066637668 created [19:47:08]Thread 3066781028 joined [19:47:08]Waiting for new connection... [19:47:08] Sock 8.Parse request [19:47:08]Sock 8.Check first char [19:47:08]Sock 8.First char is OK [19:47:08]request: POST /json_proto HTTP/1.0 [19:47:08]Method: POST [19:47:08]URL: /json_proto [19:47:08]Method is POST - this is cgi request [19:47:08]url: /json_proto [19:47:08]query_string will be loaded in cgi processing [19:47:08]execute_cgi json_proto POST (null) [19:47:08]execute_cgi path=json_proto method=POST [19:47:08]POST find Content-Length [19:47:08]Host: 172.17.63.3:8080 [19:47:08]Content-Length: 676 [19:47:08]Content-Type: application/json [19:47:08] [19:47:08]POST finish read [19:47:08]Found Content-Length = 676 [19:47:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "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" ] } } [19:47:08]execute_script... [19:47:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "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" ] } } [19:47:08]POST & json_proto [19:47:08]process_json_proto [19:47:08]json parsed OK: [19:47:08]protocol is kg_v1.0 [19:47:08]action value=close_receipt [19:47:08]process_action close_receipt [19:47:08]cmd_close_receipt [19:47:08]MH_GetDate [19:47:08]Write to MH i2c: F0 00 00 E0 26 F5 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: F0 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: F0 09 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: F0 09 00 E0 26 00 3D A4 1A 67 50 D1 6C 64 51 [19:47:08]GetLastDocTimeStamp 1729798944 [19:47:08]current date 1729799229 [19:47:08]FM_GetShiftState [19:47:08]SAM_PROTO_GetShiftState [19:47:08]wFMCommunicate request_size=4 [19:47:08]MH_SAM_APDU [19:47:08]CAPDU: 80 13 01 00 [19:47:08]Write to MH i2c: E2 08 00 E1 26 80 13 01 00 00 00 00 00 84 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 0E 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 0E 00 E1 26 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D1 [19:47:08]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:47:08]wFMCommunicate OK [19:47:08]SAM_PROTO_GetShiftState done [19:47:08]FM_GetShiftState done [19:47:08]opened in 1729729836 [19:47:08]opened+sec_in_day 1729816236 [19:47:08]quantity*price = 22010 [19:47:08]sum+1 = 22011 [19:47:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 303 24.10.2024 19:47 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155678 ФПД: 166243327717760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194709&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155678&fm=166243327717760&tin=02508201610067®Number=0000000000091693&sum=22000 [19:47:09]StoreToDocumentArchive [19:47:09]shift 534 fd 155678 [19:47:09]save to /storage/0534/doc_00155678 [19:47:09]save last doc name /storage/0534/doc_00155678 to /storage/kkm_last_doc_name [19:47:09]save OK [19:47:09]Clear old archive folders... [19:47:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:09]tlvbuf is 01FEB440 [19:47:09]SAM_PROTO_ClearQueue [19:47:09]wFMCommunicate request_size=4 [19:47:09]MH_SAM_APDU [19:47:09]CAPDU: 80 09 00 00 [19:47:09]Write to MH i2c: E2 08 00 EE 26 80 09 00 00 00 00 00 00 86 [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:09]Read from MH i2c: E2 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 03 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 03 00 EE 26 00 90 00 88 [19:47:09]RAPDU: 90 00 [19:47:09]wFMCommunicate OK [19:47:09]SAM_PROTO_ClearQueue done [19:47:09]KKMCreateOFDPacket [19:47:09]OFDProtocolAddRootSTLVToBuf [19:47:09]FM_MakeSignedData [19:47:09]FM_MakeSignedData [19:47:09]SAM_PROTO_SignData [19:47:09]wFMCommunicate request_size=4 [19:47:09]MH_SAM_APDU [19:47:09]CAPDU: 80 0D 01 02 [19:47:09]Write to MH i2c: E2 08 00 EF 26 80 0D 01 02 00 00 00 00 8E [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:09]Read from MH i2c: E2 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 03 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 03 00 EF 26 00 90 00 89 [19:47:09]RAPDU: 90 00 [19:47:09]wFMCommunicate OK [19:47:09]wFMCommunicate request_size=255 [19:47:09]MH_SAM_APDU [19:47: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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 21 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 2F 01 00 00 F4 03 04 00 3D A4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 60 02 00 35 04 06 00 97 [19:47:09]Write to MH i2c: E2 02 01 F0 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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 21 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 2F 01 00 00 F4 03 04 00 3D A4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 60 02 00 35 04 06 00 97 00 00 46 [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:09]Read from MH i2c: E2 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 03 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 03 00 F0 26 00 90 00 8A [19:47:09]RAPDU: 90 00 [19:47:09]wFMCommunicate OK [19:47:09]wFMCommunicate request_size=10 [19:47:09]MH_SAM_APDU [19:47:09]CAPDU: 80 0D 02 02 05 32 8A 7E B1 80 [19:47:09]Write to MH i2c: E2 0D 00 F1 26 80 0D 02 02 05 00 32 8A 7E B1 80 00 00 06 [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:09]Read from MH i2c: E2 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 03 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 03 00 F1 26 00 90 00 8B [19:47:09]RAPDU: 90 00 [19:47:09]wFMCommunicate OK [19:47:09]wFMCommunicate request_size=4 [19:47:09]MH_SAM_APDU [19:47:09]CAPDU: 80 0D 03 02 [19:47:09]Write to MH i2c: E2 08 00 F2 26 80 0D 03 02 00 00 00 00 93 [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:10]Read from MH i2c: E2 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: E2 0B 00 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: E2 0B 00 F2 26 00 55 E5 35 19 86 6B 57 AF 90 00 13 [19:47:10]RAPDU: 55 E5 35 19 86 6B 57 AF 90 00 [19:47:10]wFMCommunicate OK [19:47:10]SAM_PROTO_SignData done [19:47:10]FM_MakeSignedData done [19:47:10]CreateOFDProtocolMessage [19:47:10]wFMCommunicate request_size=4 [19:47:10]MH_SAM_APDU [19:47:10]CAPDU: 80 11 00 00 [19:47:10]Write to MH i2c: E2 08 00 F3 26 80 11 00 00 00 00 00 00 93 [19:47:10]Write i2c OK [19:47:10]MH_I2C_Read... [19:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:10]Read from MH i2c: E2 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: E2 17 00 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: E2 17 00 F3 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E8 [19:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:47:10]wFMCommunicate OK [19:47:10]CreateOFDProtocolMessage done [19:47:10]OFDSenderStorePacket 155678 [19:47:10]StoreOFDPacket docnum=155678 [19:47:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9B 03 07 01 CA 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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 21 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 2F 01 00 00 F4 03 04 00 3D A4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 60 02 00 35 04 06 00 97 32 8A 7E B1 80 55 E5 35 19 86 6B 57 AF [19:47:10]CheckFolder [19:47:10]dirname=/storage/ofd_packets [19:47:10]CheckFolder done [19:47:10]ProducePacketName [19:47:10]name=ofd_packets/00155678 [19:47:10]NVStorageSaveData ofd_packets/00155678 [19:47:10]File name is /storage/ofd_packets/00155678 [19:47:10]Write 301 bytes [19:47:10]NVStorageSaveData done [19:47:10]OFDSenderStorePacket done [19:47:10]KKMCreateOFDPacket done [19:47:10]NVStorageSaveData kkm_last_timestamp [19:47:10]File name is /storage/kkm_last_timestamp [19:47:10]Write 4 bytes [19:47:10]NVStorageSaveData done [19:47:10]ExternCall_PrintAddStr [19:47:10]wPrintStart [19:47:10]Write to MH i2c: 01 00 00 F4 26 1A [19:47:10]Write i2c OK [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: 01 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: 01 07 00 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: 01 07 00 F4 26 00 00 00 00 00 FF 0F 2F [19:47:10]RasterBufferAndPrint [19:47:10]line Счет N : (1)98485 [19:47:10]line ИНН: 02508201610067 [19:47:10]line Контрольно-Кассовый Чек [19:47:10]line ПРОДАЖА [19:47:10]line ТРК (МРК, ГНК) : 21 [19:47:10]line Товар: 2710124130 [19:47:10]line Аи-92-К-5 [19:47:10]line 3.290 * 66.90 [19:47:10]line = 220.10 [19:47:10]line НДС 12% НСП 1% [19:47:10]line > о реализуемом товаре [19:47:10]line ОКРУГЛЕНИЕ: -0.10 [19:47:10]line ИТОГО: 220.00 [19:47:10]line Внесено: 220.00 [19:47:10]line СДАЧА: 0.00 [19:47:10]line НСП 1% : 1.95 [19:47:10]line НДС 12% : 23.37 [19:47:10]line Наличными: 220.00 [19:47:10]line Безнал.: 0.00 [19:47:10]line Место: АЗС № 143 "Партнер Нефть" [19:47:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:47:10]line СНО: Общий режим [19:47:10]line Чек 303 24.10.2024 19:47 [19:47:10]line Смена: 534 ФФД: 1.0 [19:47:10]line ЗНМ: 0300000096 [19:47:10]line РНМ: 0000000000091693 [19:47:10]line Версия ККМ: 001 [19:47:10]line ФМ: 0000000000871792 [19:47:10]line ФД: 155678 [19:47:10]line ФПД: 166243327717760 [19:47:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194709&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155678&fm=166243327717760&tin=02508201610067®Number=0000000000091693&sum=22000 [19:47:10]OFD Sender: Processing packet 155678 [packets to send 31, broken 30] [19:47:10]ProducePacketName [19:47:10]name=ofd_packets/00155678 [19:47:10]OFD Sender: To server: pG, [19:47:10]CommunicateWithHost lk.salyk.kg:30040 [19:47:10]ConnectInit lk.salyk.kg [19:47:10]written 0, free lines is 4095 [19:47:10]Connected sock=10 [19:47: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 39 32 0F 01 00 00 9B 03 07 01 CA 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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 21 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 2F 01 00 00 F4 03 04 00 3D A4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 60 02 00 35 04 06 00 97 32 8A 7E B1 80 55 E5 35 19 86 6B 57 AF [19:47: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 39 32 4F 00 00 00 87 A7 47 00 F0 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 39 32 10 04 04 00 1E 60 02 00 F4 03 04 00 B5 49 1A 67 B6 04 01 00 00 BB 3E 12 05 75 95 6F E8 [19:47:10]CommunicateWithHost err = 0 [19:47:10]CheckOFDResponse [19:47:10]1017 (14) - 77093643461234 [19:47:10]1041 (16) - 0000000000871792 [19:47:10]1040 (4) - 155678 [19:47:10]1012 (4) - 24.10.2024 13:20 [19:47:10]1206 (1) - 0 [19:47:10]OFD Sender: Remove packet 155678 [19:47:10]ProducePacketName [19:47:10]name=ofd_packets/00155678 [19:47:10]NVStorageDeleteData [19:47:10]Write to MH i2c: 01 00 00 1F 27 46 [19:47:10]Write i2c OK [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: 01 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: 01 07 00 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: 01 07 00 1F 27 00 00 00 00 00 F2 0C 4B [19:47:10]RasterBufferAndPrint [19:47:10]line [19:47:10]line [19:47:10]line [19:47:10]line [19:47:10]line [19:47:10]written 0, free lines is 3323 [19:47:10]process_action close_receipt done [19:47:10]requested_data is exist [19:47:10]produce_requested_data [19:47:10]requested_item fm.sn is exist - process it [19:47:10]wFMCommunicate request_size=4 [19:47:10]MH_SAM_APDU [19:47:10]CAPDU: 80 11 00 00 [19:47:10]Write to MH i2c: E2 08 00 26 27 80 11 00 00 00 00 00 00 C7 [19:47:10]Write i2c OK [19:47:10]MH_I2C_Read... [19:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:10]Read from MH i2c: E2 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: E2 17 00 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: E2 17 00 26 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1C [19:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:47:10]wFMCommunicate OK [19:47:10]requested_item fd.num is exist - process it [19:47:10]SAM_PROTO_GetFieldsCounters [19:47:10]wFMCommunicate request_size=4 [19:47:10]MH_SAM_APDU [19:47:10]CAPDU: 80 13 00 00 [19:47:10]Write to MH i2c: E2 08 00 27 27 80 13 00 00 00 00 00 00 CA [19:47:10]Write i2c OK [19:47:10]MH_I2C_Read... [19:47:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:11]Read from MH i2c: E2 [19:47:11]MH_I2C_Read... [19:47:11]Read from MH i2c: E2 62 00 [19:47:11]MH_I2C_Read... [19:47:11]Read from MH i2c: E2 62 00 27 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1E 60 02 00 0E 04 04 00 16 02 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 18 [19:47: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1E 60 02 00 0E 04 04 00 16 02 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 [19:47:11]wFMCommunicate OK [19:47:11]SAM_PROTO_GetFieldsCounters done [19:47:11]requested_item shift.num is exist - process it [19:47:11]requested_item shift.opened is exist - process it [19:47:11]req_shift_opened [19:47:11]FM_GetShiftState [19:47:11]SAM_PROTO_GetShiftState [19:47:11]wFMCommunicate request_size=4 [19:47:11]MH_SAM_APDU [19:47:11]CAPDU: 80 13 01 00 [19:47:11]Write to MH i2c: E2 08 00 28 27 80 13 01 00 00 00 00 00 CC [19:47:11]Write i2c OK [19:47:11]MH_I2C_Read... [19:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:11]Read from MH i2c: E2 [19:47:11]MH_I2C_Read... [19:47:11]Read from MH i2c: E2 0E 00 [19:47:11]MH_I2C_Read... [19:47:11]Read from MH i2c: E2 0E 00 28 27 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 19 [19:47:11]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:47:11]wFMCommunicate OK [19:47:11]SAM_PROTO_GetShiftState done [19:47:11]FM_GetShiftState done [19:47:11]req_shift_opened done [19:47:11]requested_item shift.open_date is exist - process it [19:47:11]req_shift_open_date [19:47:11]req_shift_open_date done [19:47:11]produce_requested_data done [19:47:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155678,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:47:11]process_action_free close_receipt [19:47:11]json_value_free [19:47:11]json_value_free done [19:47:11]process_json_proto returns [19:47:11]Send response to host [19:47:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155678,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:47:11]free response buf [19:47:11]execute_script done [19:47:11]execute_script returns [19:47:11]free content buf [19:47:11]Sock 8.Close socket [19:47:11]Sock 8.Thread stoped [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:21]OFD Sender: No OFD packet to send [19:47:26]OFD Sender: No OFD packet to send [19:47:31]OFD Sender: No OFD packet to send [19:47:36]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:53]accept exits with 9 [19:47:53]New connection [19:47:53]New thread 3066781028 created [19:47:53]Thread 3066637668 joined [19:47:53]Waiting for new connection... [19:47:53] Sock 9.Parse request [19:47:53]Sock 9.Check first char [19:47:53]Sock 9.First char is OK [19:47:53]request: POST /json_proto HTTP/1.0 [19:47:53]Method: POST [19:47:53]URL: /json_proto [19:47:53]Method is POST - this is cgi request [19:47:53]url: /json_proto [19:47:53]query_string will be loaded in cgi processing [19:47:53]execute_cgi json_proto POST (null) [19:47:53]execute_cgi path=json_proto method=POST [19:47:53]POST find Content-Length [19:47:53]Host: 172.17.63.3:8080 [19:47:53]Content-Length: 676 [19:47:53]Content-Type: application/json [19:47:53] [19:47:53]POST finish read [19:47:53]Found Content-Length = 676 [19:47:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:53]execute_script... [19:47: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)98486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:53]POST & json_proto [19:47:53]process_json_proto [19:47:53]json parsed OK: [19:47:53]protocol is kg_v1.0 [19:47:53]action value=close_receipt [19:47:53]process_action close_receipt [19:47:53]cmd_close_receipt [19:47:53]MH_GetDate [19:47:53]Write to MH i2c: F0 00 00 29 27 3F [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: F0 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: F0 09 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: F0 09 00 29 27 00 6B A4 1A 67 50 D1 6C 64 C9 [19:47:53]GetLastDocTimeStamp 1729799229 [19:47:53]current date 1729799275 [19:47:53]FM_GetShiftState [19:47:53]SAM_PROTO_GetShiftState [19:47:53]wFMCommunicate request_size=4 [19:47:53]MH_SAM_APDU [19:47:53]CAPDU: 80 13 01 00 [19:47:53]Write to MH i2c: E2 08 00 2A 27 80 13 01 00 00 00 00 00 CE [19:47:53]Write i2c OK [19:47:53]MH_I2C_Read... [19:47:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:53]Read from MH i2c: E2 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: E2 0E 00 [19:47:53]MH_I2C_Read... [19:47:53]Read from MH i2c: E2 0E 00 2A 27 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1B [19:47:53]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:47:53]wFMCommunicate OK [19:47:53]SAM_PROTO_GetShiftState done [19:47:53]FM_GetShiftState done [19:47:53]opened in 1729729836 [19:47:53]opened+sec_in_day 1729816236 [19:47:53]quantity*price = 40006 [19:47:53]sum+1 = 40007 [19:47:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 304 24.10.2024 19:47 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155679 ФПД: 77367481172479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194755&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155679&fm=77367481172479&tin=02508201610067®Number=0000000000091693&sum=40000 [19:47:54]StoreToDocumentArchive [19:47:54]shift 534 fd 155679 [19:47:54]save to /storage/0534/doc_00155679 [19:47:54]save last doc name /storage/0534/doc_00155679 to /storage/kkm_last_doc_name [19:47:54]save OK [19:47:54]Clear old archive folders... [19:47:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:54]tlvbuf is 01F34290 [19:47:54]SAM_PROTO_ClearQueue [19:47:54]wFMCommunicate request_size=4 [19:47:54]MH_SAM_APDU [19:47:54]CAPDU: 80 09 00 00 [19:47:54]Write to MH i2c: E2 08 00 37 27 80 09 00 00 00 00 00 00 D0 [19:47:54]Write i2c OK [19:47:54]MH_I2C_Read... [19:47:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:54]Read from MH i2c: E2 [19:47:54]MH_I2C_Read... [19:47:54]Read from MH i2c: E2 03 00 [19:47:54]MH_I2C_Read... [19:47:54]Read from MH i2c: E2 03 00 37 27 00 90 00 D2 [19:47:54]RAPDU: 90 00 [19:47:54]wFMCommunicate OK [19:47:54]SAM_PROTO_ClearQueue done [19:47:54]KKMCreateOFDPacket [19:47:54]OFDProtocolAddRootSTLVToBuf [19:47:54]FM_MakeSignedData [19:47:54]FM_MakeSignedData [19:47:54]SAM_PROTO_SignData [19:47:54]wFMCommunicate request_size=4 [19:47:54]MH_SAM_APDU [19:47:54]CAPDU: 80 0D 01 02 [19:47:54]Write to MH i2c: E2 08 00 38 27 80 0D 01 02 00 00 00 00 D8 [19:47:54]Write i2c OK [19:47:54]MH_I2C_Read... [19:47:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:54]Read from MH i2c: E2 [19:47:54]MH_I2C_Read... [19:47:54]Read from MH i2c: E2 03 00 [19:47:54]MH_I2C_Read... [19:47:54]Read from MH i2c: E2 03 00 38 27 00 90 00 D3 [19:47:54]RAPDU: 90 00 [19:47:54]wFMCommunicate OK [19:47:54]wFMCommunicate request_size=255 [19:47:54]MH_SAM_APDU [19:47:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 6B A4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 60 02 00 35 04 06 00 46 [19:47:54]Write to MH i2c: E2 02 01 39 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 6B A4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 60 02 00 35 04 06 00 46 00 00 DB [19:47:54]Write i2c OK [19:47:54]MH_I2C_Read... [19:47:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:55]Read from MH i2c: E2 [19:47:55]MH_I2C_Read... [19:47:55]Read from MH i2c: E2 03 00 [19:47:55]MH_I2C_Read... [19:47:55]Read from MH i2c: E2 03 00 39 27 00 90 00 D4 [19:47:55]RAPDU: 90 00 [19:47:55]wFMCommunicate OK [19:47:55]wFMCommunicate request_size=10 [19:47:55]MH_SAM_APDU [19:47:55]CAPDU: 80 0D 02 02 05 5D 85 3B 81 FF [19:47:55]Write to MH i2c: E2 0D 00 3A 27 80 0D 02 02 05 00 5D 85 3B 81 FF 00 00 82 [19:47:55]Write i2c OK [19:47:55]MH_I2C_Read... [19:47:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:55]Read from MH i2c: E2 [19:47:55]MH_I2C_Read... [19:47:55]Read from MH i2c: E2 03 00 [19:47:55]MH_I2C_Read... [19:47:55]Read from MH i2c: E2 03 00 3A 27 00 90 00 D5 [19:47:55]RAPDU: 90 00 [19:47:55]wFMCommunicate OK [19:47:55]wFMCommunicate request_size=4 [19:47:55]MH_SAM_APDU [19:47:55]CAPDU: 80 0D 03 02 [19:47:55]Write to MH i2c: E2 08 00 3B 27 80 0D 03 02 00 00 00 00 DD [19:47:55]Write i2c OK [19:47:55]MH_I2C_Read... [19:47:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:55]Read from MH i2c: E2 [19:47:55]MH_I2C_Read... [19:47:55]Read from MH i2c: E2 0B 00 [19:47:55]MH_I2C_Read... [19:47:55]Read from MH i2c: E2 0B 00 3B 27 00 05 3C 07 34 83 93 0D 6D 90 00 EA [19:47:55]RAPDU: 05 3C 07 34 83 93 0D 6D 90 00 [19:47:55]wFMCommunicate OK [19:47:55]SAM_PROTO_SignData done [19:47:55]FM_MakeSignedData done [19:47:55]CreateOFDProtocolMessage [19:47:55]wFMCommunicate request_size=4 [19:47:55]MH_SAM_APDU [19:47:55]CAPDU: 80 11 00 00 [19:47:55]Write to MH i2c: E2 08 00 3C 27 80 11 00 00 00 00 00 00 DD [19:47:55]Write i2c OK [19:47:55]MH_I2C_Read... [19:47:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:55]Read from MH i2c: E2 [19:47:55]MH_I2C_Read... [19:47:55]Read from MH i2c: E2 17 00 [19:47:55]MH_I2C_Read... [19:47:55]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 39 32 90 00 32 [19:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:47:55]wFMCommunicate OK [19:47:55]CreateOFDProtocolMessage done [19:47:55]OFDSenderStorePacket 155679 [19:47:55]StoreOFDPacket docnum=155679 [19:47:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 79 59 07 01 78 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 6B A4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 60 02 00 35 04 06 00 46 5D 85 3B 81 FF 05 3C 07 34 83 93 0D 6D [19:47:55]CheckFolder [19:47:55]dirname=/storage/ofd_packets [19:47:55]CheckFolder done [19:47:55]ProducePacketName [19:47:55]name=ofd_packets/00155679 [19:47:55]NVStorageSaveData ofd_packets/00155679 [19:47:55]File name is /storage/ofd_packets/00155679 [19:47:55]Write 301 bytes [19:47:55]NVStorageSaveData done [19:47:55]OFDSenderStorePacket done [19:47:55]KKMCreateOFDPacket done [19:47:55]NVStorageSaveData kkm_last_timestamp [19:47:55]File name is /storage/kkm_last_timestamp [19:47:55]Write 4 bytes [19:47:55]NVStorageSaveData done [19:47:55]ExternCall_PrintAddStr [19:47:55]wPrintStart [19:47:55]Write to MH i2c: 01 00 00 3D 27 64 [19:47:55]Write i2c OK [19:47:55]MH_I2C_Read... [19:47:55]Read from MH i2c: 01 [19:47:55]MH_I2C_Read... [19:47:55]Read from MH i2c: 01 07 00 [19:47:55]MH_I2C_Read... [19:47:55]Read from MH i2c: 01 07 00 3D 27 00 00 00 00 00 FF 0F 79 [19:47:55]RasterBufferAndPrint [19:47:55]line Счет N : (1)98486 [19:47:55]line ИНН: 02508201610067 [19:47:55]line Контрольно-Кассовый Чек [19:47:55]line ПРОДАЖА [19:47:55]line ТРК (МРК, ГНК) : 11 [19:47:55]line Товар: 2710124130 [19:47:55]line Аи-92-К-5 [19:47:55]line 5.980 * 66.90 [19:47:55]line = 400.06 [19:47:55]line НДС 12% НСП 1% [19:47:55]line > о реализуемом товаре [19:47:55]line ОКРУГЛЕНИЕ: -0.06 [19:47:55]line ИТОГО: 400.00 [19:47:55]line Внесено: 400.00 [19:47:55]line СДАЧА: 0.00 [19:47:55]line НСП 1% : 3.54 [19:47:55]line НДС 12% : 42.48 [19:47:55]line Наличными: 400.00 [19:47:55]line Безнал.: 0.00 [19:47:55]line Место: АЗС № 143 "Партнер Нефть" [19:47:55]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:47:55]line СНО: Общий режим [19:47:55]line Чек 304 24.10.2024 19:47 [19:47:55]line Смена: 534 ФФД: 1.0 [19:47:55]line ЗНМ: 0300000096 [19:47:55]line РНМ: 0000000000091693 [19:47:55]line Версия ККМ: 001 [19:47:55]line ФМ: 0000000000871792 [19:47:55]line ФД: 155679 [19:47:55]line ФПД: 77367481172479 [19:47:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T194755&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155679&fm=77367481172479&tin=02508201610067®Number=0000000000091693&sum=40000 [19:47:55]OFD Sender: Processing packet 155679 [packets to send 31, broken 30] [19:47:55]ProducePacketName [19:47:55]name=ofd_packets/00155679 [19:47:55]OFD Sender: To server: pG, [19:47:55]CommunicateWithHost lk.salyk.kg:30040 [19:47:55]ConnectInit lk.salyk.kg [19:47:55]written 0, free lines is 4095 [19:47:55]Connected sock=10 [19:47: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 39 32 0F 01 00 00 79 59 07 01 78 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 6B A4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 60 02 00 35 04 06 00 46 5D 85 3B 81 FF 05 3C 07 34 83 93 0D 6D [19:47:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CE EE 47 00 6B 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 39 32 10 04 04 00 1F 60 02 00 F4 03 04 00 E3 49 1A 67 B6 04 01 00 00 40 03 7A EB 09 C4 F7 EE [19:47:56]CommunicateWithHost err = 0 [19:47:56]CheckOFDResponse [19:47:56]1017 (14) - 77093643461234 [19:47:56]1041 (16) - 0000000000871792 [19:47:56]1040 (4) - 155679 [19:47:56]1012 (4) - 24.10.2024 13:21 [19:47:56]1206 (1) - 0 [19:47:56]OFD Sender: Remove packet 155679 [19:47:56]ProducePacketName [19:47:56]name=ofd_packets/00155679 [19:47:56]NVStorageDeleteData [19:47:56]Write to MH i2c: 01 00 00 68 27 8F [19:47:56]Write i2c OK [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: 01 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: 01 07 00 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: 01 07 00 68 27 00 00 00 00 00 E1 0C 83 [19:47:56]RasterBufferAndPrint [19:47:56]line [19:47:56]line [19:47:56]line [19:47:56]line [19:47:56]line [19:47:56]written 0, free lines is 3303 [19:47:56]process_action close_receipt done [19:47:56]requested_data is exist [19:47:56]produce_requested_data [19:47:56]requested_item fm.sn is exist - process it [19:47:56]wFMCommunicate request_size=4 [19:47:56]MH_SAM_APDU [19:47:56]CAPDU: 80 11 00 00 [19:47:56]Write to MH i2c: E2 08 00 6F 27 80 11 00 00 00 00 00 00 10 [19:47:56]Write i2c OK [19:47:56]MH_I2C_Read... [19:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:56]Read from MH i2c: E2 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: E2 17 00 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: E2 17 00 6F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 65 [19:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:47:56]wFMCommunicate OK [19:47:56]requested_item fd.num is exist - process it [19:47:56]SAM_PROTO_GetFieldsCounters [19:47:56]wFMCommunicate request_size=4 [19:47:56]MH_SAM_APDU [19:47:56]CAPDU: 80 13 00 00 [19:47:56]Write to MH i2c: E2 08 00 70 27 80 13 00 00 00 00 00 00 13 [19:47:56]Write i2c OK [19:47:56]MH_I2C_Read... [19:47:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:56]Read from MH i2c: E2 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: E2 62 00 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: E2 62 00 70 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1F 60 02 00 0E 04 04 00 16 02 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 65 [19:47: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1F 60 02 00 0E 04 04 00 16 02 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 [19:47:56]wFMCommunicate OK [19:47:56]SAM_PROTO_GetFieldsCounters done [19:47:56]requested_item shift.num is exist - process it [19:47:56]requested_item shift.opened is exist - process it [19:47:56]req_shift_opened [19:47:56]FM_GetShiftState [19:47:56]SAM_PROTO_GetShiftState [19:47:56]wFMCommunicate request_size=4 [19:47:56]MH_SAM_APDU [19:47:56]CAPDU: 80 13 01 00 [19:47:56]Write to MH i2c: E2 08 00 71 27 80 13 01 00 00 00 00 00 15 [19:47:56]Write i2c OK [19:47:56]MH_I2C_Read... [19:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:56]Read from MH i2c: E2 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: E2 0E 00 [19:47:56]MH_I2C_Read... [19:47:56]Read from MH i2c: E2 0E 00 71 27 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 62 [19:47:56]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:47:56]wFMCommunicate OK [19:47:56]SAM_PROTO_GetShiftState done [19:47:56]FM_GetShiftState done [19:47:56]req_shift_opened done [19:47:56]requested_item shift.open_date is exist - process it [19:47:56]req_shift_open_date [19:47:56]req_shift_open_date done [19:47:56]produce_requested_data done [19:47:56]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155679,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:47:56]process_action_free close_receipt [19:47:56]json_value_free [19:47:56]json_value_free done [19:47:56]process_json_proto returns [19:47:56]Send response to host [19:47:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155679,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:47:56]free response buf [19:47:56]execute_script done [19:47:56]execute_script returns [19:47:56]free content buf [19:47:56]Sock 9.Close socket [19:47:56]Sock 9.Thread stoped [19:47:56]OFD Sender: No OFD packet to send [19:48:01]OFD Sender: No OFD packet to send [19:48:06]OFD Sender: No OFD packet to send [19:48:11]OFD Sender: No OFD packet to send [19:48:16]OFD Sender: No OFD packet to send [19:48:21]OFD Sender: No OFD packet to send [19:48:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:36]OFD Sender: No OFD packet to send [19:48:41]OFD Sender: No OFD packet to send [19:48:46]OFD Sender: No OFD packet to send [19:48:51]OFD Sender: No OFD packet to send [19:48:56]OFD Sender: No OFD packet to send [19:49:01]OFD Sender: No OFD packet to send [19:49:06]OFD Sender: No OFD packet to send [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:21]OFD Sender: No OFD packet to send [19:49:26]OFD Sender: No OFD packet to send [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:51]OFD Sender: No OFD packet to send [19:49:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:11]OFD Sender: No OFD packet to send [19:50:16]OFD Sender: No OFD packet to send [19:50:21]OFD Sender: No OFD packet to send [19:50:26]OFD Sender: No OFD packet to send [19:50:29]accept exits with 8 [19:50:29]New connection [19:50:29]New thread 3066637668 created [19:50:29]Thread 3066781028 joined [19:50:29]Waiting for new connection... [19:50:29] Sock 8.Parse request [19:50:29]Sock 8.Check first char [19:50:29]Sock 8.First char is OK [19:50:29]request: POST /json_proto HTTP/1.0 [19:50:29]Method: POST [19:50:29]URL: /json_proto [19:50:29]Method is POST - this is cgi request [19:50:29]url: /json_proto [19:50:29]query_string will be loaded in cgi processing [19:50:29]execute_cgi json_proto POST (null) [19:50:29]execute_cgi path=json_proto method=POST [19:50:29]POST find Content-Length [19:50:29]Host: 172.17.63.3:8080 [19:50:29]Content-Length: 678 [19:50:29]Content-Type: application/json [19:50:29] [19:50:29]POST finish read [19:50:29]Found Content-Length = 678 [19:50:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:29]execute_script... [19:50:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:50:29]POST & json_proto [19:50:29]process_json_proto [19:50:29]json parsed OK: [19:50:29]protocol is kg_v1.0 [19:50:29]action value=close_receipt [19:50:29]process_action close_receipt [19:50:29]cmd_close_receipt [19:50:29]MH_GetDate [19:50:29]Write to MH i2c: F0 00 00 72 27 88 [19:50:29]Write i2c OK [19:50:29]MH_I2C_Read... [19:50:29]Read from MH i2c: F0 [19:50:29]MH_I2C_Read... [19:50:29]Read from MH i2c: F0 09 00 [19:50:29]MH_I2C_Read... [19:50:29]Read from MH i2c: F0 09 00 72 27 00 06 A5 1A 67 50 D1 6C 64 AE [19:50:29]GetLastDocTimeStamp 1729799275 [19:50:29]current date 1729799430 [19:50:29]FM_GetShiftState [19:50:29]SAM_PROTO_GetShiftState [19:50:29]wFMCommunicate request_size=4 [19:50:29]MH_SAM_APDU [19:50:29]CAPDU: 80 13 01 00 [19:50:29]Write to MH i2c: E2 08 00 73 27 80 13 01 00 00 00 00 00 17 [19:50:29]Write i2c OK [19:50:29]MH_I2C_Read... [19:50:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:29]Read from MH i2c: E2 [19:50:29]MH_I2C_Read... [19:50:29]Read from MH i2c: E2 0E 00 [19:50:29]MH_I2C_Read... [19:50:29]Read from MH i2c: E2 0E 00 73 27 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 64 [19:50:29]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:50:29]wFMCommunicate OK [19:50:29]SAM_PROTO_GetShiftState done [19:50:29]FM_GetShiftState done [19:50:29]opened in 1729729836 [19:50:29]opened+sec_in_day 1729816236 [19:50:29]quantity*price = 100050 [19:50:29]sum+1 = 100052 [19:50:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 305 24.10.2024 19:50 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155680 ФПД: 210287381449284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T195030&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155680&fm=210287381449284&tin=02508201610067®Number=0000000000091693&sum=100000 [19:50:30]StoreToDocumentArchive [19:50:30]shift 534 fd 155680 [19:50:30]save to /storage/0534/doc_00155680 [19:50:30]save last doc name /storage/0534/doc_00155680 to /storage/kkm_last_doc_name [19:50:30]save OK [19:50:30]Clear old archive folders... [19:50:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:50:30]tlvbuf is 01F835B0 [19:50:30]SAM_PROTO_ClearQueue [19:50:30]wFMCommunicate request_size=4 [19:50:30]MH_SAM_APDU [19:50:30]CAPDU: 80 09 00 00 [19:50:30]Write to MH i2c: E2 08 00 80 27 80 09 00 00 00 00 00 00 19 [19:50:30]Write i2c OK [19:50:30]MH_I2C_Read... [19:50:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:30]Read from MH i2c: E2 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 03 00 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 03 00 80 27 00 90 00 1B [19:50:30]RAPDU: 90 00 [19:50:30]wFMCommunicate OK [19:50:30]SAM_PROTO_ClearQueue done [19:50:30]KKMCreateOFDPacket [19:50:30]OFDProtocolAddRootSTLVToBuf [19:50:30]FM_MakeSignedData [19:50:30]FM_MakeSignedData [19:50:30]SAM_PROTO_SignData [19:50:30]wFMCommunicate request_size=4 [19:50:30]MH_SAM_APDU [19:50:30]CAPDU: 80 0D 01 02 [19:50:30]Write to MH i2c: E2 08 00 81 27 80 0D 01 02 00 00 00 00 21 [19:50:30]Write i2c OK [19:50:30]MH_I2C_Read... [19:50:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:30]Read from MH i2c: E2 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 03 00 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 03 00 81 27 00 90 00 1C [19:50:30]RAPDU: 90 00 [19:50:30]wFMCommunicate OK [19:50:30]wFMCommunicate request_size=255 [19:50:30]MH_SAM_APDU [19:50:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 06 A5 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 20 60 02 00 35 04 06 00 BF 41 58 AC [19:50:30]Write to MH i2c: E2 02 01 82 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 31 01 00 00 F4 03 04 00 06 A5 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 20 60 02 00 35 04 06 00 BF 41 58 AC 00 00 A7 [19:50:30]Write i2c OK [19:50:30]MH_I2C_Read... [19:50:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:30]Read from MH i2c: E2 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 03 00 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 03 00 82 27 00 90 00 1D [19:50:30]RAPDU: 90 00 [19:50:30]wFMCommunicate OK [19:50:30]wFMCommunicate request_size=7 [19:50:30]MH_SAM_APDU [19:50:30]CAPDU: 80 0D 02 02 02 0A 44 [19:50:30]Write to MH i2c: E2 0A 00 83 27 80 0D 02 02 02 00 0A 44 00 00 76 [19:50:30]Write i2c OK [19:50:30]MH_I2C_Read... [19:50:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:30]Read from MH i2c: E2 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 03 00 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 03 00 83 27 00 90 00 1E [19:50:30]RAPDU: 90 00 [19:50:30]wFMCommunicate OK [19:50:30]wFMCommunicate request_size=4 [19:50:30]MH_SAM_APDU [19:50:30]CAPDU: 80 0D 03 02 [19:50:30]Write to MH i2c: E2 08 00 84 27 80 0D 03 02 00 00 00 00 26 [19:50:30]Write i2c OK [19:50:30]MH_I2C_Read... [19:50:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:30]Read from MH i2c: E2 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 0B 00 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 0B 00 84 27 00 F4 49 C3 15 72 27 4D 23 90 00 45 [19:50:30]RAPDU: F4 49 C3 15 72 27 4D 23 90 00 [19:50:30]wFMCommunicate OK [19:50:30]SAM_PROTO_SignData done [19:50:30]FM_MakeSignedData done [19:50:30]CreateOFDProtocolMessage [19:50:30]wFMCommunicate request_size=4 [19:50:30]MH_SAM_APDU [19:50:30]CAPDU: 80 11 00 00 [19:50:30]Write to MH i2c: E2 08 00 85 27 80 11 00 00 00 00 00 00 26 [19:50:30]Write i2c OK [19:50:30]MH_I2C_Read... [19:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:30]Read from MH i2c: E2 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 17 00 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: E2 17 00 85 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7B [19:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:50:30]wFMCommunicate OK [19:50:30]CreateOFDProtocolMessage done [19:50:30]OFDSenderStorePacket 155680 [19:50:30]StoreOFDPacket docnum=155680 [19:50:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 7F C3 04 01 13 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 06 A5 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 20 60 02 00 35 04 06 00 BF 41 58 AC 0A 44 F4 49 C3 15 72 27 4D 23 [19:50:30]CheckFolder [19:50:30]dirname=/storage/ofd_packets [19:50:30]CheckFolder done [19:50:30]ProducePacketName [19:50:30]name=ofd_packets/00155680 [19:50:30]NVStorageSaveData ofd_packets/00155680 [19:50:30]File name is /storage/ofd_packets/00155680 [19:50:30]Write 298 bytes [19:50:30]NVStorageSaveData done [19:50:30]OFDSenderStorePacket done [19:50:30]KKMCreateOFDPacket done [19:50:30]NVStorageSaveData kkm_last_timestamp [19:50:30]File name is /storage/kkm_last_timestamp [19:50:30]Write 4 bytes [19:50:30]NVStorageSaveData done [19:50:30]ExternCall_PrintAddStr [19:50:30]wPrintStart [19:50:30]Write to MH i2c: 01 00 00 86 27 AD [19:50:30]Write i2c OK [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: 01 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: 01 07 00 [19:50:30]MH_I2C_Read... [19:50:30]Read from MH i2c: 01 07 00 86 27 00 00 00 00 00 FF 0F C2 [19:50:30]RasterBufferAndPrint [19:50:30]line Счет N : (1)98487 [19:50:30]line ИНН: 02508201610067 [19:50:30]line Контрольно-Кассовый Чек [19:50:30]line ПРОДАЖА [19:50:30]line ТРК (МРК, ГНК) : 32 [19:50:30]line Товар: 2710194210 [19:50:30]line ДТ-К-5 [19:50:30]line 13.130 * 76.20 [19:50:30]line = 1000.51 [19:50:30]line НДС 12% НСП 1% [19:50:30]line > о реализуемом товаре [19:50:30]line ОКРУГЛЕНИЕ: -0.51 [19:50:30]line ИТОГО: 1000.00 [19:50:30]line Внесено: 1000.00 [19:50:30]line СДАЧА: 0.00 [19:50:30]line НСП 1% : 8.85 [19:50:30]line НДС 12% : 106.25 [19:50:30]line Наличными: 1000.00 [19:50:30]line Безнал.: 0.00 [19:50:30]line Место: АЗС № 143 "Партнер Нефть" [19:50:30]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:50:30]line СНО: Общий режим [19:50:30]line Чек 305 24.10.2024 19:50 [19:50:30]line Смена: 534 ФФД: 1.0 [19:50:30]line ЗНМ: 0300000096 [19:50:30]line РНМ: 0000000000091693 [19:50:30]line Версия ККМ: 001 [19:50:30]line ФМ: 0000000000871792 [19:50:30]line ФД: 155680 [19:50:30]line ФПД: 210287381449284 [19:50:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T195030&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155680&fm=210287381449284&tin=02508201610067®Number=0000000000091693&sum=100000 [19:50:30]written 0, free lines is 4095 [19:50:31]OFD Sender: Processing packet 155680 [packets to send 31, broken 30] [19:50:31]ProducePacketName [19:50:31]name=ofd_packets/00155680 [19:50:31]OFD Sender: To server: pG, [19:50:31]CommunicateWithHost lk.salyk.kg:30040 [19:50:31]ConnectInit lk.salyk.kg [19:50:31]Connected sock=10 [19:50:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 7F C3 04 01 13 B8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 06 A5 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 20 60 02 00 35 04 06 00 BF 41 58 AC 0A 44 F4 49 C3 15 72 27 4D 23 [19:50:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 74 43 47 00 E5 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 39 32 10 04 04 00 20 60 02 00 F4 03 04 00 7E 4A 1A 67 B6 04 01 00 00 15 66 3B D7 94 FD 69 08 [19:50:31]CommunicateWithHost err = 0 [19:50:31]CheckOFDResponse [19:50:31]1017 (14) - 77093643461234 [19:50:31]1041 (16) - 0000000000871792 [19:50:31]1040 (4) - 155680 [19:50:31]1012 (4) - 24.10.2024 13:24 [19:50:31]1206 (1) - 0 [19:50:31]OFD Sender: Remove packet 155680 [19:50:31]ProducePacketName [19:50:31]name=ofd_packets/00155680 [19:50:31]NVStorageDeleteData [19:50:31]Write to MH i2c: 01 00 00 B1 27 D8 [19:50:31]Write i2c OK [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: 01 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: 01 07 00 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: 01 07 00 B1 27 00 00 00 00 00 D8 0C C3 [19:50:31]RasterBufferAndPrint [19:50:31]line [19:50:31]line [19:50:31]line [19:50:31]line [19:50:31]line [19:50:31]written 0, free lines is 3295 [19:50:31]process_action close_receipt done [19:50:31]requested_data is exist [19:50:31]produce_requested_data [19:50:31]requested_item fm.sn is exist - process it [19:50:31]wFMCommunicate request_size=4 [19:50:31]MH_SAM_APDU [19:50:31]CAPDU: 80 11 00 00 [19:50:31]Write to MH i2c: E2 08 00 B8 27 80 11 00 00 00 00 00 00 59 [19:50:31]Write i2c OK [19:50:31]MH_I2C_Read... [19:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:31]Read from MH i2c: E2 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: E2 17 00 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: E2 17 00 B8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AE [19:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:50:31]wFMCommunicate OK [19:50:31]requested_item fd.num is exist - process it [19:50:31]SAM_PROTO_GetFieldsCounters [19:50:31]wFMCommunicate request_size=4 [19:50:31]MH_SAM_APDU [19:50:31]CAPDU: 80 13 00 00 [19:50:31]Write to MH i2c: E2 08 00 B9 27 80 13 00 00 00 00 00 00 5C [19:50:31]Write i2c OK [19:50:31]MH_I2C_Read... [19:50:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:31]Read from MH i2c: E2 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: E2 62 00 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: E2 62 00 B9 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 20 60 02 00 0E 04 04 00 16 02 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 B2 [19: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 20 60 02 00 0E 04 04 00 16 02 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 [19:50:31]wFMCommunicate OK [19:50:31]SAM_PROTO_GetFieldsCounters done [19:50:31]requested_item shift.num is exist - process it [19:50:31]requested_item shift.opened is exist - process it [19:50:31]req_shift_opened [19:50:31]FM_GetShiftState [19:50:31]SAM_PROTO_GetShiftState [19:50:31]wFMCommunicate request_size=4 [19:50:31]MH_SAM_APDU [19:50:31]CAPDU: 80 13 01 00 [19:50:31]Write to MH i2c: E2 08 00 BA 27 80 13 01 00 00 00 00 00 5E [19:50:31]Write i2c OK [19:50:31]MH_I2C_Read... [19:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:31]Read from MH i2c: E2 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: E2 0E 00 [19:50:31]MH_I2C_Read... [19:50:31]Read from MH i2c: E2 0E 00 BA 27 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AB [19:50:31]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:50:31]wFMCommunicate OK [19:50:31]SAM_PROTO_GetShiftState done [19:50:31]FM_GetShiftState done [19:50:31]req_shift_opened done [19:50:31]requested_item shift.open_date is exist - process it [19:50:31]req_shift_open_date [19:50:31]req_shift_open_date done [19:50:31]produce_requested_data done [19:50:31]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155680,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:50:31]process_action_free close_receipt [19:50:31]json_value_free [19:50:31]json_value_free done [19:50:31]process_json_proto returns [19:50:31]Send response to host [19:50:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155680,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:50:31]free response buf [19:50:31]execute_script done [19:50:31]execute_script returns [19:50:31]free content buf [19:50:31]Sock 8.Close socket [19:50:31]Sock 8.Thread stoped [19:50:31]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [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:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:11]OFD Sender: No OFD packet to send [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:31]OFD Sender: No OFD packet to send [19:52:36]OFD Sender: No OFD packet to send [19:52:41]OFD Sender: No OFD packet to send [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:56]OFD Sender: No OFD packet to send [19:53:01]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:31]accept exits with 9 [19:59:31]New connection [19:59:31]New thread 3066781028 created [19:59:31]Thread 3066637668 joined [19:59:31]Waiting for new connection... [19:59:31] Sock 9.Parse request [19:59:31]Sock 9.Check first char [19:59:31]Sock 9.First char is OK [19:59:31]request: POST /json_proto HTTP/1.0 [19:59:31]Method: POST [19:59:31]URL: /json_proto [19:59:31]Method is POST - this is cgi request [19:59:31]url: /json_proto [19:59:31]query_string will be loaded in cgi processing [19:59:31]execute_cgi json_proto POST (null) [19:59:31]execute_cgi path=json_proto method=POST [19:59:31]POST find Content-Length [19:59:31]Host: 172.17.63.3:8080 [19:59:31]Content-Length: 676 [19:59:31]Content-Type: application/json [19:59:31] [19:59:31]POST finish read [19:59:31]Found Content-Length = 676 [19:59:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:31]execute_script... [19:59:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:59:31]POST & json_proto [19:59:31]process_json_proto [19:59:31]json parsed OK: [19:59:31]protocol is kg_v1.0 [19:59:31]action value=close_receipt [19:59:31]process_action close_receipt [19:59:31]cmd_close_receipt [19:59:31]MH_GetDate [19:59:31]Write to MH i2c: F0 00 00 BB 27 D1 [19:59:31]Write i2c OK [19:59:31]MH_I2C_Read... [19:59:31]Read from MH i2c: F0 [19:59:31]MH_I2C_Read... [19:59:31]Read from MH i2c: F0 09 00 [19:59:31]MH_I2C_Read... [19:59:31]Read from MH i2c: F0 09 00 BB 27 00 25 A7 1A 67 50 D1 6C 64 18 [19:59:31]GetLastDocTimeStamp 1729799430 [19:59:31]current date 1729799973 [19:59:31]FM_GetShiftState [19:59:31]SAM_PROTO_GetShiftState [19:59:31]wFMCommunicate request_size=4 [19:59:31]MH_SAM_APDU [19:59:31]CAPDU: 80 13 01 00 [19:59:31]Write to MH i2c: E2 08 00 BC 27 80 13 01 00 00 00 00 00 60 [19:59:31]Write i2c OK [19:59:31]MH_I2C_Read... [19:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:31]Read from MH i2c: E2 [19:59:31]MH_I2C_Read... [19:59:31]Read from MH i2c: E2 0E 00 [19:59:31]MH_I2C_Read... [19:59:31]Read from MH i2c: E2 0E 00 BC 27 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AD [19:59:31]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:59:31]wFMCommunicate OK [19:59:31]SAM_PROTO_GetShiftState done [19:59:31]FM_GetShiftState done [19:59:31]opened in 1729729836 [19:59:31]opened+sec_in_day 1729816236 [19:59:31]quantity*price = 50041 [19:59:31]sum+1 = 50042 [19:59:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 306 24.10.2024 19:59 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155681 ФПД: 126263655380249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T195933&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155681&fm=126263655380249&tin=02508201610067®Number=0000000000091693&sum=50000 [19:59:33]StoreToDocumentArchive [19:59:33]shift 534 fd 155681 [19:59:33]save to /storage/0534/doc_00155681 [19:59:33]save last doc name /storage/0534/doc_00155681 to /storage/kkm_last_doc_name [19:59:33]save OK [19:59:33]Clear old archive folders... [19:59:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:59:33]tlvbuf is 01F7D0A0 [19:59:33]SAM_PROTO_ClearQueue [19:59:33]wFMCommunicate request_size=4 [19:59:33]MH_SAM_APDU [19:59:33]CAPDU: 80 09 00 00 [19:59:33]Write to MH i2c: E2 08 00 C9 27 80 09 00 00 00 00 00 00 62 [19:59:33]Write i2c OK [19:59:33]MH_I2C_Read... [19:59:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:59:33]Read from MH i2c: E2 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: E2 03 00 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: E2 03 00 C9 27 00 90 00 64 [19:59:33]RAPDU: 90 00 [19:59:33]wFMCommunicate OK [19:59:33]SAM_PROTO_ClearQueue done [19:59:33]KKMCreateOFDPacket [19:59:33]OFDProtocolAddRootSTLVToBuf [19:59:33]FM_MakeSignedData [19:59:33]FM_MakeSignedData [19:59:33]SAM_PROTO_SignData [19:59:33]wFMCommunicate request_size=4 [19:59:33]MH_SAM_APDU [19:59:33]CAPDU: 80 0D 01 02 [19:59:33]Write to MH i2c: E2 08 00 CA 27 80 0D 01 02 00 00 00 00 6A [19:59:33]Write i2c OK [19:59:33]MH_I2C_Read... [19:59:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:59:33]Read from MH i2c: E2 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: E2 03 00 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: E2 03 00 CA 27 00 90 00 65 [19:59:33]RAPDU: 90 00 [19:59:33]wFMCommunicate OK [19:59:33]wFMCommunicate request_size=255 [19:59:33]MH_SAM_APDU [19:59: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 25 A7 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 60 02 00 35 04 06 00 72 [19:59:33]Write to MH i2c: E2 02 01 CB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 25 A7 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 60 02 00 35 04 06 00 72 00 00 8B [19:59:33]Write i2c OK [19:59:33]MH_I2C_Read... [19:59:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:33]Read from MH i2c: E2 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: E2 03 00 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: E2 03 00 CB 27 00 90 00 66 [19:59:33]RAPDU: 90 00 [19:59:33]wFMCommunicate OK [19:59:33]wFMCommunicate request_size=10 [19:59:33]MH_SAM_APDU [19:59:33]CAPDU: 80 0D 02 02 05 D6 0C 53 B5 19 [19:59:33]Write to MH i2c: E2 0D 00 CC 27 80 0D 02 02 05 00 D6 0C 53 B5 19 00 00 7A [19:59:33]Write i2c OK [19:59:33]MH_I2C_Read... [19:59:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:33]Read from MH i2c: E2 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: E2 03 00 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: E2 03 00 CC 27 00 90 00 67 [19:59:33]RAPDU: 90 00 [19:59:33]wFMCommunicate OK [19:59:33]wFMCommunicate request_size=4 [19:59:33]MH_SAM_APDU [19:59:33]CAPDU: 80 0D 03 02 [19:59:33]Write to MH i2c: E2 08 00 CD 27 80 0D 03 02 00 00 00 00 6F [19:59:33]Write i2c OK [19:59:33]MH_I2C_Read... [19:59:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:33]Read from MH i2c: E2 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: E2 0B 00 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: E2 0B 00 CD 27 00 71 69 AE 03 DA 80 AA B4 90 00 B3 [19:59:33]RAPDU: 71 69 AE 03 DA 80 AA B4 90 00 [19:59:33]wFMCommunicate OK [19:59:33]SAM_PROTO_SignData done [19:59:33]FM_MakeSignedData done [19:59:33]CreateOFDProtocolMessage [19:59:33]wFMCommunicate request_size=4 [19:59:33]MH_SAM_APDU [19:59:33]CAPDU: 80 11 00 00 [19:59:33]Write to MH i2c: E2 08 00 CE 27 80 11 00 00 00 00 00 00 6F [19:59:33]Write i2c OK [19:59:33]MH_I2C_Read... [19:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:33]Read from MH i2c: E2 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: E2 17 00 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: E2 17 00 CE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C4 [19:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:59:33]wFMCommunicate OK [19:59:33]CreateOFDProtocolMessage done [19:59:33]OFDSenderStorePacket 155681 [19:59:33]StoreOFDPacket docnum=155681 [19:59:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4E 0D 07 01 63 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 25 A7 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 60 02 00 35 04 06 00 72 D6 0C 53 B5 19 71 69 AE 03 DA 80 AA B4 [19:59:33]CheckFolder [19:59:33]dirname=/storage/ofd_packets [19:59:33]CheckFolder done [19:59:33]ProducePacketName [19:59:33]name=ofd_packets/00155681 [19:59:33]NVStorageSaveData ofd_packets/00155681 [19:59:33]File name is /storage/ofd_packets/00155681 [19:59:33]Write 301 bytes [19:59:33]NVStorageSaveData done [19:59:33]OFDSenderStorePacket done [19:59:33]KKMCreateOFDPacket done [19:59:33]NVStorageSaveData kkm_last_timestamp [19:59:33]File name is /storage/kkm_last_timestamp [19:59:33]Write 4 bytes [19:59:33]NVStorageSaveData done [19:59:33]ExternCall_PrintAddStr [19:59:33]wPrintStart [19:59:33]Write to MH i2c: 01 00 00 CF 27 F6 [19:59:33]Write i2c OK [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: 01 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: 01 07 00 [19:59:33]MH_I2C_Read... [19:59:33]Read from MH i2c: 01 07 00 CF 27 00 00 00 00 00 FF 0F 0B [19:59:33]RasterBufferAndPrint [19:59:33]line Счет N : (1)98488 [19:59:33]line ИНН: 02508201610067 [19:59:33]line Контрольно-Кассовый Чек [19:59:33]line ПРОДАЖА [19:59:33]line ТРК (МРК, ГНК) : 21 [19:59:33]line Товар: 2710124130 [19:59:33]line Аи-92-К-5 [19:59:33]line 7.480 * 66.90 [19:59:33]line = 500.41 [19:59:33]line НДС 12% НСП 1% [19:59:33]line > о реализуемом товаре [19:59:33]line ОКРУГЛЕНИЕ: -0.41 [19:59:33]line ИТОГО: 500.00 [19:59:33]line Внесено: 500.00 [19:59:33]line СДАЧА: 0.00 [19:59:33]line НСП 1% : 4.43 [19:59:33]line НДС 12% : 53.14 [19:59:33]line Наличными: 500.00 [19:59:33]line Безнал.: 0.00 [19:59:33]line Место: АЗС № 143 "Партнер Нефть" [19:59:33]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:59:33]line СНО: Общий режим [19:59:33]line Чек 306 24.10.2024 19:59 [19:59:33]line Смена: 534 ФФД: 1.0 [19:59:33]line ЗНМ: 0300000096 [19:59:33]line РНМ: 0000000000091693 [19:59:33]line Версия ККМ: 001 [19:59:33]line ФМ: 0000000000871792 [19:59:33]line ФД: 155681 [19:59:33]line ФПД: 126263655380249 [19:59:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T195933&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155681&fm=126263655380249&tin=02508201610067®Number=0000000000091693&sum=50000 [19:59:33]OFD Sender: Processing packet 155681 [packets to send 31, broken 30] [19:59:33]ProducePacketName [19:59:33]name=ofd_packets/00155681 [19:59:33]OFD Sender: To server: pG, [19:59:33]CommunicateWithHost lk.salyk.kg:30040 [19:59:33]ConnectInit lk.salyk.kg [19:59:33]written 0, free lines is 4095 [19:59:34]Connected sock=10 [19:59: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 39 32 0F 01 00 00 4E 0D 07 01 63 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 25 A7 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 60 02 00 35 04 06 00 72 D6 0C 53 B5 19 71 69 AE 03 DA 80 AA B4 [19:59: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 39 32 4F 00 00 00 E2 49 47 00 C6 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 60 02 00 F4 03 04 00 9D 4C 1A 67 B6 04 01 00 00 0F 72 58 1F 99 5F 05 09 [19:59:34]CommunicateWithHost err = 0 [19:59:34]CheckOFDResponse [19:59:34]1017 (14) - 77093643461234 [19:59:34]1041 (16) - 0000000000871792 [19:59:34]1040 (4) - 155681 [19:59:34]1012 (4) - 24.10.2024 13:33 [19:59:34]1206 (1) - 0 [19:59:34]OFD Sender: Remove packet 155681 [19:59:34]ProducePacketName [19:59:34]name=ofd_packets/00155681 [19:59:34]NVStorageDeleteData [19:59:34]Write to MH i2c: 01 00 00 FA 27 21 [19:59:34]Write i2c OK [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: 01 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: 01 07 00 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: 01 07 00 FA 27 00 00 00 00 00 DC 0C 10 [19:59:34]RasterBufferAndPrint [19:59:34]line [19:59:34]line [19:59:34]line [19:59:34]line [19:59:34]line [19:59:34]written 0, free lines is 3299 [19:59:34]process_action close_receipt done [19:59:34]requested_data is exist [19:59:34]produce_requested_data [19:59:34]requested_item fm.sn is exist - process it [19:59:34]wFMCommunicate request_size=4 [19:59:34]MH_SAM_APDU [19:59:34]CAPDU: 80 11 00 00 [19:59:34]Write to MH i2c: E2 08 00 01 28 80 11 00 00 00 00 00 00 A3 [19:59:34]Write i2c OK [19:59:34]MH_I2C_Read... [19:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:34]Read from MH i2c: E2 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 17 00 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 17 00 01 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F8 [19:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:59:34]wFMCommunicate OK [19:59:34]requested_item fd.num is exist - process it [19:59:34]SAM_PROTO_GetFieldsCounters [19:59:34]wFMCommunicate request_size=4 [19:59:34]MH_SAM_APDU [19:59:34]CAPDU: 80 13 00 00 [19:59:34]Write to MH i2c: E2 08 00 02 28 80 13 00 00 00 00 00 00 A6 [19:59:34]Write i2c OK [19:59:34]MH_I2C_Read... [19:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:34]Read from MH i2c: E2 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 62 00 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 62 00 02 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 21 60 02 00 0E 04 04 00 16 02 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 00 [19:59: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 21 60 02 00 0E 04 04 00 16 02 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 [19:59:34]wFMCommunicate OK [19:59:34]SAM_PROTO_GetFieldsCounters done [19:59:34]requested_item shift.num is exist - process it [19:59:34]requested_item shift.opened is exist - process it [19:59:34]req_shift_opened [19:59:34]FM_GetShiftState [19:59:34]SAM_PROTO_GetShiftState [19:59:34]wFMCommunicate request_size=4 [19:59:34]MH_SAM_APDU [19:59:34]CAPDU: 80 13 01 00 [19:59:34]Write to MH i2c: E2 08 00 03 28 80 13 01 00 00 00 00 00 A8 [19:59:34]Write i2c OK [19:59:34]MH_I2C_Read... [19:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:34]Read from MH i2c: E2 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 0E 00 [19:59:34]MH_I2C_Read... [19:59:34]Read from MH i2c: E2 0E 00 03 28 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F5 [19:59:34]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [19:59:34]wFMCommunicate OK [19:59:34]SAM_PROTO_GetShiftState done [19:59:34]FM_GetShiftState done [19:59:34]req_shift_opened done [19:59:34]requested_item shift.open_date is exist - process it [19:59:34]req_shift_open_date [19:59:34]req_shift_open_date done [19:59:34]produce_requested_data done [19:59:34]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155681,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [19:59:34]process_action_free close_receipt [19:59:34]json_value_free [19:59:34]json_value_free done [19:59:34]process_json_proto returns [19:59:34]Send response to host [19:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155681,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [19:59:34]free response buf [19:59:34]execute_script done [19:59:34]execute_script returns [19:59:34]free content buf [19:59:34]Sock 9.Close socket [19:59:34]Sock 9.Thread stoped [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]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:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:52]accept exits with 8 [20:06:52]New connection [20:06:52]New thread 3066637668 created [20:06:52]Thread 3066781028 joined [20:06:52]Waiting for new connection... [20:06:52] Sock 8.Parse request [20:06:52]Sock 8.Check first char [20:06:52]Sock 8.First char is OK [20:06:52]request: POST /json_proto HTTP/1.0 [20:06:52]Method: POST [20:06:52]URL: /json_proto [20:06:52]Method is POST - this is cgi request [20:06:52]url: /json_proto [20:06:52]query_string will be loaded in cgi processing [20:06:52]execute_cgi json_proto POST (null) [20:06:52]execute_cgi path=json_proto method=POST [20:06:52]POST find Content-Length [20:06:52]Host: 172.17.63.3:8080 [20:06:52]Content-Length: 676 [20:06:52]Content-Type: application/json [20:06:52] [20:06:52]POST finish read [20:06:52]Found Content-Length = 676 [20:06:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:52]execute_script... [20: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)98489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:52]POST & json_proto [20:06:52]process_json_proto [20:06:52]json parsed OK: [20:06:52]protocol is kg_v1.0 [20:06:52]action value=close_receipt [20:06:52]process_action close_receipt [20:06:52]cmd_close_receipt [20:06:52]MH_GetDate [20:06:52]Write to MH i2c: F0 00 00 04 28 1B [20:06:52]Write i2c OK [20:06:52]MH_I2C_Read... [20:06:52]Read from MH i2c: F0 [20:06:52]MH_I2C_Read... [20:06:52]Read from MH i2c: F0 09 00 [20:06:52]MH_I2C_Read... [20:06:52]Read from MH i2c: F0 09 00 04 28 00 DE A8 1A 67 50 D1 6C 64 1C [20:06:52]GetLastDocTimeStamp 1729799973 [20:06:52]current date 1729800414 [20:06:52]FM_GetShiftState [20:06:52]SAM_PROTO_GetShiftState [20:06:52]wFMCommunicate request_size=4 [20:06:52]MH_SAM_APDU [20:06:52]CAPDU: 80 13 01 00 [20:06:52]Write to MH i2c: E2 08 00 05 28 80 13 01 00 00 00 00 00 AA [20:06:52]Write i2c OK [20:06:52]MH_I2C_Read... [20:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:52]Read from MH i2c: E2 [20:06:52]MH_I2C_Read... [20:06:52]Read from MH i2c: E2 0E 00 [20:06:52]MH_I2C_Read... [20:06:52]Read from MH i2c: E2 0E 00 05 28 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F7 [20:06:52]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:06:52]wFMCommunicate OK [20:06:52]SAM_PROTO_GetShiftState done [20:06:52]FM_GetShiftState done [20:06:52]opened in 1729729836 [20:06:52]opened+sec_in_day 1729816236 [20:06:52]quantity*price = 50041 [20:06:52]sum+1 = 50042 [20:06:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 307 24.10.2024 20:06 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155682 ФПД: 120587282899387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200654&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155682&fm=120587282899387&tin=02508201610067®Number=0000000000091693&sum=50000 [20:06:54]StoreToDocumentArchive [20:06:54]shift 534 fd 155682 [20:06:54]save to /storage/0534/doc_00155682 [20:06:54]save last doc name /storage/0534/doc_00155682 to /storage/kkm_last_doc_name [20:06:54]save OK [20:06:54]Clear old archive folders... [20:06:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:54]tlvbuf is 01FFE820 [20:06:54]SAM_PROTO_ClearQueue [20:06:54]wFMCommunicate request_size=4 [20:06:54]MH_SAM_APDU [20:06:54]CAPDU: 80 09 00 00 [20:06:54]Write to MH i2c: E2 08 00 12 28 80 09 00 00 00 00 00 00 AC [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:54]Read from MH i2c: E2 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 03 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 03 00 12 28 00 90 00 AE [20:06:54]RAPDU: 90 00 [20:06:54]wFMCommunicate OK [20:06:54]SAM_PROTO_ClearQueue done [20:06:54]KKMCreateOFDPacket [20:06:54]OFDProtocolAddRootSTLVToBuf [20:06:54]FM_MakeSignedData [20:06:54]FM_MakeSignedData [20:06:54]SAM_PROTO_SignData [20:06:54]wFMCommunicate request_size=4 [20:06:54]MH_SAM_APDU [20:06:54]CAPDU: 80 0D 01 02 [20:06:54]Write to MH i2c: E2 08 00 13 28 80 0D 01 02 00 00 00 00 B4 [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:54]Read from MH i2c: E2 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 03 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 03 00 13 28 00 90 00 AF [20:06:54]RAPDU: 90 00 [20:06:54]wFMCommunicate OK [20:06:54]wFMCommunicate request_size=255 [20:06:54]MH_SAM_APDU [20:06:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 DE A8 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 22 60 02 00 35 04 06 00 6D [20:06:54]Write to MH i2c: E2 02 01 14 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 DE A8 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 22 60 02 00 35 04 06 00 6D 00 00 8C [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:54]Read from MH i2c: E2 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 03 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 03 00 14 28 00 90 00 B0 [20:06:54]RAPDU: 90 00 [20:06:54]wFMCommunicate OK [20:06:54]wFMCommunicate request_size=10 [20:06:54]MH_SAM_APDU [20:06:54]CAPDU: 80 0D 02 02 05 AC 6A 29 61 BB [20:06:54]Write to MH i2c: E2 0D 00 15 28 80 0D 02 02 05 00 AC 6A 29 61 BB 00 00 1C [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:54]Read from MH i2c: E2 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 03 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 03 00 15 28 00 90 00 B1 [20:06:54]RAPDU: 90 00 [20:06:54]wFMCommunicate OK [20:06:54]wFMCommunicate request_size=4 [20:06:54]MH_SAM_APDU [20:06:54]CAPDU: 80 0D 03 02 [20:06:54]Write to MH i2c: E2 08 00 16 28 80 0D 03 02 00 00 00 00 B9 [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:54]Read from MH i2c: E2 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 0B 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 0B 00 16 28 00 10 F6 4D 52 98 C8 39 E8 90 00 E0 [20:06:54]RAPDU: 10 F6 4D 52 98 C8 39 E8 90 00 [20:06:54]wFMCommunicate OK [20:06:54]SAM_PROTO_SignData done [20:06:54]FM_MakeSignedData done [20:06:54]CreateOFDProtocolMessage [20:06:54]wFMCommunicate request_size=4 [20:06:54]MH_SAM_APDU [20:06:54]CAPDU: 80 11 00 00 [20:06:54]Write to MH i2c: E2 08 00 17 28 80 11 00 00 00 00 00 00 B9 [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:54]Read from MH i2c: E2 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 17 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 17 00 17 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0E [20:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:06:54]wFMCommunicate OK [20:06:54]CreateOFDProtocolMessage done [20:06:54]OFDSenderStorePacket 155682 [20:06:54]StoreOFDPacket docnum=155682 [20:06:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 85 09 07 01 2F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 DE A8 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 22 60 02 00 35 04 06 00 6D AC 6A 29 61 BB 10 F6 4D 52 98 C8 39 E8 [20:06:54]CheckFolder [20:06:54]dirname=/storage/ofd_packets [20:06:54]CheckFolder done [20:06:54]ProducePacketName [20:06:54]name=ofd_packets/00155682 [20:06:54]NVStorageSaveData ofd_packets/00155682 [20:06:54]File name is /storage/ofd_packets/00155682 [20:06:54]Write 301 bytes [20:06:54]NVStorageSaveData done [20:06:54]OFDSenderStorePacket done [20:06:54]KKMCreateOFDPacket done [20:06:54]NVStorageSaveData kkm_last_timestamp [20:06:54]File name is /storage/kkm_last_timestamp [20:06:54]Write 4 bytes [20:06:54]NVStorageSaveData done [20:06:54]ExternCall_PrintAddStr [20:06:54]wPrintStart [20:06:54]Write to MH i2c: 01 00 00 18 28 40 [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: 01 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: 01 07 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: 01 07 00 18 28 00 00 00 00 00 FF 0F 55 [20:06:54]RasterBufferAndPrint [20:06:54]line Счет N : (1)98489 [20:06:54]line ИНН: 02508201610067 [20:06:54]line Контрольно-Кассовый Чек [20:06:54]line ПРОДАЖА [20:06:54]line ТРК (МРК, ГНК) : 11 [20:06:54]line Товар: 2710124130 [20:06:54]line Аи-92-К-5 [20:06:54]line 7.480 * 66.90 [20:06:54]line = 500.41 [20:06:54]line НДС 12% НСП 1% [20:06:54]line > о реализуемом товаре [20:06:54]line ОКРУГЛЕНИЕ: -0.41 [20:06:54]line ИТОГО: 500.00 [20:06:54]line Внесено: 500.00 [20:06:54]line СДАЧА: 0.00 [20:06:54]line НСП 1% : 4.43 [20:06:54]line НДС 12% : 53.14 [20:06:54]line Наличными: 500.00 [20:06:54]line Безнал.: 0.00 [20:06:54]line Место: АЗС № 143 "Партнер Нефть" [20:06:54]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:06:54]line СНО: Общий режим [20:06:54]line Чек 307 24.10.2024 20:06 [20:06:54]line Смена: 534 ФФД: 1.0 [20:06:54]line ЗНМ: 0300000096 [20:06:54]line РНМ: 0000000000091693 [20:06:54]line Версия ККМ: 001 [20:06:54]line ФМ: 0000000000871792 [20:06:54]line ФД: 155682 [20:06:54]line ФПД: 120587282899387 [20:06:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T200654&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155682&fm=120587282899387&tin=02508201610067®Number=0000000000091693&sum=50000 [20:06:54]written 0, free lines is 4095 [20:06:54]OFD Sender: Processing packet 155682 [packets to send 31, broken 30] [20:06:54]ProducePacketName [20:06:54]name=ofd_packets/00155682 [20:06:54]OFD Sender: To server: pG, [20:06:54]CommunicateWithHost lk.salyk.kg:30040 [20:06:54]ConnectInit lk.salyk.kg [20:06:54]Connected sock=10 [20: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 39 32 0F 01 00 00 85 09 07 01 2F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 DE A8 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 22 60 02 00 35 04 06 00 6D AC 6A 29 61 BB 10 F6 4D 52 98 C8 39 E8 [20: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 39 32 4F 00 00 00 12 23 47 00 8E 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 39 32 10 04 04 00 22 60 02 00 F4 03 04 00 56 4E 1A 67 B6 04 01 00 00 CF 4A 0A C2 7E 3C FD AD [20:06:54]CommunicateWithHost err = 0 [20:06:54]CheckOFDResponse [20:06:54]1017 (14) - 77093643461234 [20:06:54]1041 (16) - 0000000000871792 [20:06:54]1040 (4) - 155682 [20:06:54]1012 (4) - 24.10.2024 13:40 [20:06:54]1206 (1) - 0 [20:06:54]OFD Sender: Remove packet 155682 [20:06:54]ProducePacketName [20:06:54]name=ofd_packets/00155682 [20:06:54]NVStorageDeleteData [20:06:55]Write to MH i2c: 01 00 00 43 28 6B [20:06:55]Write i2c OK [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: 01 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: 01 07 00 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: 01 07 00 43 28 00 00 00 00 00 E6 0C 64 [20:06:55]RasterBufferAndPrint [20:06:55]line [20:06:55]line [20:06:55]line [20:06:55]line [20:06:55]line [20:06:55]written 0, free lines is 3308 [20:06:55]process_action close_receipt done [20:06:55]requested_data is exist [20:06:55]produce_requested_data [20:06:55]requested_item fm.sn is exist - process it [20:06:55]wFMCommunicate request_size=4 [20:06:55]MH_SAM_APDU [20:06:55]CAPDU: 80 11 00 00 [20:06:55]Write to MH i2c: E2 08 00 4A 28 80 11 00 00 00 00 00 00 EC [20:06:55]Write i2c OK [20:06:55]MH_I2C_Read... [20:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:55]Read from MH i2c: E2 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: E2 17 00 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: E2 17 00 4A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 41 [20:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:06:55]wFMCommunicate OK [20:06:55]requested_item fd.num is exist - process it [20:06:55]SAM_PROTO_GetFieldsCounters [20:06:55]wFMCommunicate request_size=4 [20:06:55]MH_SAM_APDU [20:06:55]CAPDU: 80 13 00 00 [20:06:55]Write to MH i2c: E2 08 00 4B 28 80 13 00 00 00 00 00 00 EF [20:06:55]Write i2c OK [20:06:55]MH_I2C_Read... [20:06:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:55]Read from MH i2c: E2 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: E2 62 00 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: E2 62 00 4B 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 22 60 02 00 0E 04 04 00 16 02 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 4D [20:06:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 22 60 02 00 0E 04 04 00 16 02 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 [20:06:55]wFMCommunicate OK [20:06:55]SAM_PROTO_GetFieldsCounters done [20:06:55]requested_item shift.num is exist - process it [20:06:55]requested_item shift.opened is exist - process it [20:06:55]req_shift_opened [20:06:55]FM_GetShiftState [20:06:55]SAM_PROTO_GetShiftState [20:06:55]wFMCommunicate request_size=4 [20:06:55]MH_SAM_APDU [20:06:55]CAPDU: 80 13 01 00 [20:06:55]Write to MH i2c: E2 08 00 4C 28 80 13 01 00 00 00 00 00 F1 [20:06:55]Write i2c OK [20:06:55]MH_I2C_Read... [20:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:55]Read from MH i2c: E2 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: E2 0E 00 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: E2 0E 00 4C 28 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3E [20:06:55]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:06:55]wFMCommunicate OK [20:06:55]SAM_PROTO_GetShiftState done [20:06:55]FM_GetShiftState done [20:06:55]req_shift_opened done [20:06:55]requested_item shift.open_date is exist - process it [20:06:55]req_shift_open_date [20:06:55]req_shift_open_date done [20:06:55]produce_requested_data done [20:06:55]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155682,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [20:06:55]process_action_free close_receipt [20:06:55]json_value_free [20:06:55]json_value_free done [20:06:55]process_json_proto returns [20:06:55]Send response to host [20:06:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155682,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [20:06:55]free response buf [20:06:55]execute_script done [20:06:55]execute_script returns [20:06:55]free content buf [20:06:55]Sock 8.Close socket [20:06:55]Sock 8.Thread stoped [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:53]accept exits with 9 [20:10:53]New connection [20:10:53]New thread 3066781028 created [20:10:53]Thread 3066637668 joined [20:10:53]Waiting for new connection... [20:10:53] Sock 9.Parse request [20:10:53]Sock 9.Check first char [20:10:53]Sock 9.First char is OK [20:10:53]request: POST /json_proto HTTP/1.0 [20:10:53]Method: POST [20:10:53]URL: /json_proto [20:10:53]Method is POST - this is cgi request [20:10:53]url: /json_proto [20:10:53]query_string will be loaded in cgi processing [20:10:53]execute_cgi json_proto POST (null) [20:10:53]execute_cgi path=json_proto method=POST [20:10:53]POST find Content-Length [20:10:53]Host: 172.17.63.3:8080 [20:10:53]Content-Length: 678 [20:10:53]Content-Type: application/json [20:10:53] [20:10:53]POST finish read [20:10:53]Found Content-Length = 678 [20:10:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:53]execute_script... [20:10:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:53]POST & json_proto [20:10:53]process_json_proto [20:10:53]json parsed OK: [20:10:53]protocol is kg_v1.0 [20:10:53]action value=close_receipt [20:10:53]process_action close_receipt [20:10:53]cmd_close_receipt [20:10:53]MH_GetDate [20:10:53]Write to MH i2c: F0 00 00 4D 28 64 [20:10:53]Write i2c OK [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: F0 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: F0 09 00 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: F0 09 00 4D 28 00 CE A9 1A 67 50 D1 6C 64 56 [20:10:53]GetLastDocTimeStamp 1729800414 [20:10:53]current date 1729800654 [20:10:53]FM_GetShiftState [20:10:53]SAM_PROTO_GetShiftState [20:10:53]wFMCommunicate request_size=4 [20:10:53]MH_SAM_APDU [20:10:53]CAPDU: 80 13 01 00 [20:10:53]Write to MH i2c: E2 08 00 4E 28 80 13 01 00 00 00 00 00 F3 [20:10:53]Write i2c OK [20:10:53]MH_I2C_Read... [20:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:53]Read from MH i2c: E2 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: E2 0E 00 [20:10:53]MH_I2C_Read... [20:10:53]Read from MH i2c: E2 0E 00 4E 28 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 40 [20:10:53]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:10:53]wFMCommunicate OK [20:10:53]SAM_PROTO_GetShiftState done [20:10:53]FM_GetShiftState done [20:10:53]opened in 1729729836 [20:10:53]opened+sec_in_day 1729816236 [20:10:53]quantity*price = 150037 [20:10:53]sum+1 = 150039 [20:10:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 308 24.10.2024 20:10 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155683 ФПД: 170881038119803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T201054&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155683&fm=170881038119803&tin=02508201610067®Number=0000000000091693&sum=150000 [20:10:54]StoreToDocumentArchive [20:10:54]shift 534 fd 155683 [20:10:54]save to /storage/0534/doc_00155683 [20:10:54]save last doc name /storage/0534/doc_00155683 to /storage/kkm_last_doc_name [20:10:54]save OK [20:10:54]Clear old archive folders... [20:10:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:10:54]tlvbuf is 01FE1490 [20:10:54]SAM_PROTO_ClearQueue [20:10:54]wFMCommunicate request_size=4 [20:10:54]MH_SAM_APDU [20:10:54]CAPDU: 80 09 00 00 [20:10:54]Write to MH i2c: E2 08 00 5B 28 80 09 00 00 00 00 00 00 F5 [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:54]Read from MH i2c: E2 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 03 00 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 03 00 5B 28 00 90 00 F7 [20:10:54]RAPDU: 90 00 [20:10:54]wFMCommunicate OK [20:10:54]SAM_PROTO_ClearQueue done [20:10:54]KKMCreateOFDPacket [20:10:54]OFDProtocolAddRootSTLVToBuf [20:10:54]FM_MakeSignedData [20:10:54]FM_MakeSignedData [20:10:54]SAM_PROTO_SignData [20:10:54]wFMCommunicate request_size=4 [20:10:54]MH_SAM_APDU [20:10:54]CAPDU: 80 0D 01 02 [20:10:54]Write to MH i2c: E2 08 00 5C 28 80 0D 01 02 00 00 00 00 FD [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:54]Read from MH i2c: E2 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 03 00 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 03 00 5C 28 00 90 00 F8 [20:10:54]RAPDU: 90 00 [20:10:54]wFMCommunicate OK [20:10:54]wFMCommunicate request_size=255 [20:10:54]MH_SAM_APDU [20:10:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 34 01 00 00 F4 03 04 00 CE A9 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 60 02 00 35 04 06 00 9B 6A 57 93 [20:10:54]Write to MH i2c: E2 02 01 5D 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 CE A9 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 60 02 00 35 04 06 00 9B 6A 57 93 00 00 B7 [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:54]Read from MH i2c: E2 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 03 00 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 03 00 5D 28 00 90 00 F9 [20:10:54]RAPDU: 90 00 [20:10:54]wFMCommunicate OK [20:10:54]wFMCommunicate request_size=7 [20:10:54]MH_SAM_APDU [20:10:54]CAPDU: 80 0D 02 02 02 73 7B [20:10:54]Write to MH i2c: E2 0A 00 5E 28 80 0D 02 02 02 00 73 7B 00 00 F2 [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:54]Read from MH i2c: E2 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 03 00 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 03 00 5E 28 00 90 00 FA [20:10:54]RAPDU: 90 00 [20:10:54]wFMCommunicate OK [20:10:54]wFMCommunicate request_size=4 [20:10:54]MH_SAM_APDU [20:10:54]CAPDU: 80 0D 03 02 [20:10:54]Write to MH i2c: E2 08 00 5F 28 80 0D 03 02 00 00 00 00 02 [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:54]Read from MH i2c: E2 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 0B 00 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 0B 00 5F 28 00 3F 48 78 84 C7 81 87 B4 90 00 09 [20:10:54]RAPDU: 3F 48 78 84 C7 81 87 B4 90 00 [20:10:54]wFMCommunicate OK [20:10:54]SAM_PROTO_SignData done [20:10:54]FM_MakeSignedData done [20:10:54]CreateOFDProtocolMessage [20:10:54]wFMCommunicate request_size=4 [20:10:54]MH_SAM_APDU [20:10:54]CAPDU: 80 11 00 00 [20:10:54]Write to MH i2c: E2 08 00 60 28 80 11 00 00 00 00 00 00 02 [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:54]Read from MH i2c: E2 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 17 00 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: E2 17 00 60 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 57 [20:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:10:54]wFMCommunicate OK [20:10:54]CreateOFDProtocolMessage done [20:10:54]OFDSenderStorePacket 155683 [20:10:54]StoreOFDPacket docnum=155683 [20:10:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 AB 74 04 01 25 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 34 01 00 00 F4 03 04 00 CE A9 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 60 02 00 35 04 06 00 9B 6A 57 93 73 7B 3F 48 78 84 C7 81 87 B4 [20:10:54]CheckFolder [20:10:54]dirname=/storage/ofd_packets [20:10:54]CheckFolder done [20:10:54]ProducePacketName [20:10:54]name=ofd_packets/00155683 [20:10:54]NVStorageSaveData ofd_packets/00155683 [20:10:54]File name is /storage/ofd_packets/00155683 [20:10:54]Write 298 bytes [20:10:54]NVStorageSaveData done [20:10:54]OFDSenderStorePacket done [20:10:54]KKMCreateOFDPacket done [20:10:54]NVStorageSaveData kkm_last_timestamp [20:10:54]File name is /storage/kkm_last_timestamp [20:10:54]Write 4 bytes [20:10:54]NVStorageSaveData done [20:10:54]ExternCall_PrintAddStr [20:10:54]wPrintStart [20:10:54]Write to MH i2c: 01 00 00 61 28 89 [20:10:54]Write i2c OK [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: 01 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: 01 07 00 [20:10:54]MH_I2C_Read... [20:10:54]Read from MH i2c: 01 07 00 61 28 00 00 00 00 00 FF 0F 9E [20:10:54]RasterBufferAndPrint [20:10:54]line Счет N : (1)98490 [20:10:54]line ИНН: 02508201610067 [20:10:54]line Контрольно-Кассовый Чек [20:10:54]line ПРОДАЖА [20:10:54]line ТРК (МРК, ГНК) : 32 [20:10:54]line Товар: 2710194210 [20:10:54]line ДТ-К-5 [20:10:54]line 19.690 * 76.20 [20:10:54]line = 1500.38 [20:10:54]line НДС 12% НСП 1% [20:10:54]line > о реализуемом товаре [20:10:54]line ОКРУГЛЕНИЕ: -0.38 [20:10:54]line ИТОГО: 1500.00 [20:10:54]line Внесено: 1500.00 [20:10:54]line СДАЧА: 0.00 [20:10:54]line НСП 1% : 13.28 [20:10:54]line НДС 12% : 159.33 [20:10:54]line Наличными: 1500.00 [20:10:54]line Безнал.: 0.00 [20:10:54]line Место: АЗС № 143 "Партнер Нефть" [20:10:54]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:10:54]line СНО: Общий режим [20:10:54]line Чек 308 24.10.2024 20:10 [20:10:54]line Смена: 534 ФФД: 1.0 [20:10:54]line ЗНМ: 0300000096 [20:10:54]line РНМ: 0000000000091693 [20:10:54]line Версия ККМ: 001 [20:10:54]line ФМ: 0000000000871792 [20:10:54]line ФД: 155683 [20:10:54]line ФПД: 170881038119803 [20:10:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T201054&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155683&fm=170881038119803&tin=02508201610067®Number=0000000000091693&sum=150000 [20:10:55]OFD Sender: Processing packet 155683 [packets to send 31, broken 30] [20:10:55]ProducePacketName [20:10:55]name=ofd_packets/00155683 [20:10:55]OFD Sender: To server: pG, [20:10:55]CommunicateWithHost lk.salyk.kg:30040 [20:10:55]ConnectInit lk.salyk.kg [20:10:55]written 0, free lines is 4095 [20:10:55]Connected sock=10 [20:10:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 AB 74 04 01 25 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 34 01 00 00 F4 03 04 00 CE A9 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 60 02 00 35 04 06 00 9B 6A 57 93 73 7B 3F 48 78 84 C7 81 87 B4 [20:10:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 08 42 47 00 2B 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 39 32 10 04 04 00 23 60 02 00 F4 03 04 00 46 4F 1A 67 B6 04 01 00 00 F3 28 F9 1D 93 51 99 D3 [20:10:55]CommunicateWithHost err = 0 [20:10:55]CheckOFDResponse [20:10:55]1017 (14) - 77093643461234 [20:10:55]1041 (16) - 0000000000871792 [20:10:55]1040 (4) - 155683 [20:10:55]1012 (4) - 24.10.2024 13:44 [20:10:55]1206 (1) - 0 [20:10:55]OFD Sender: Remove packet 155683 [20:10:55]ProducePacketName [20:10:55]name=ofd_packets/00155683 [20:10:55]NVStorageDeleteData [20:10:55]Write to MH i2c: 01 00 00 8C 28 B4 [20:10:55]Write i2c OK [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: 01 [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: 01 07 00 [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: 01 07 00 8C 28 00 00 00 00 00 D6 0C 9D [20:10:55]RasterBufferAndPrint [20:10:55]line [20:10:55]line [20:10:55]line [20:10:55]line [20:10:55]line [20:10:55]written 0, free lines is 3293 [20:10:55]process_action close_receipt done [20:10:55]requested_data is exist [20:10:55]produce_requested_data [20:10:55]requested_item fm.sn is exist - process it [20:10:55]wFMCommunicate request_size=4 [20:10:55]MH_SAM_APDU [20:10:55]CAPDU: 80 11 00 00 [20:10:55]Write to MH i2c: E2 08 00 93 28 80 11 00 00 00 00 00 00 35 [20:10:55]Write i2c OK [20:10:55]MH_I2C_Read... [20:10:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:55]Read from MH i2c: E2 [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: E2 17 00 [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: E2 17 00 93 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8A [20:10:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:10:55]wFMCommunicate OK [20:10:55]requested_item fd.num is exist - process it [20:10:55]SAM_PROTO_GetFieldsCounters [20:10:55]wFMCommunicate request_size=4 [20:10:55]MH_SAM_APDU [20:10:55]CAPDU: 80 13 00 00 [20:10:55]Write to MH i2c: E2 08 00 94 28 80 13 00 00 00 00 00 00 38 [20:10:55]Write i2c OK [20:10:55]MH_I2C_Read... [20:10:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:55]Read from MH i2c: E2 [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: E2 62 00 [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: E2 62 00 94 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 23 60 02 00 0E 04 04 00 16 02 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 9A [20:10: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 23 60 02 00 0E 04 04 00 16 02 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 [20:10:55]wFMCommunicate OK [20:10:55]SAM_PROTO_GetFieldsCounters done [20:10:55]requested_item shift.num is exist - process it [20:10:55]requested_item shift.opened is exist - process it [20:10:55]req_shift_opened [20:10:55]FM_GetShiftState [20:10:55]SAM_PROTO_GetShiftState [20:10:55]wFMCommunicate request_size=4 [20:10:55]MH_SAM_APDU [20:10:55]CAPDU: 80 13 01 00 [20:10:55]Write to MH i2c: E2 08 00 95 28 80 13 01 00 00 00 00 00 3A [20:10:55]Write i2c OK [20:10:55]MH_I2C_Read... [20:10:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:55]Read from MH i2c: E2 [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: E2 0E 00 [20:10:55]MH_I2C_Read... [20:10:55]Read from MH i2c: E2 0E 00 95 28 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 87 [20:10:55]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:10:55]wFMCommunicate OK [20:10:55]SAM_PROTO_GetShiftState done [20:10:55]FM_GetShiftState done [20:10:55]req_shift_opened done [20:10:55]requested_item shift.open_date is exist - process it [20:10:55]req_shift_open_date [20:10:55]req_shift_open_date done [20:10:55]produce_requested_data done [20:10:55]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155683,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [20:10:55]process_action_free close_receipt [20:10:55]json_value_free [20:10:55]json_value_free done [20:10:55]process_json_proto returns [20:10:55]Send response to host [20:10:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155683,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [20:10:55]free response buf [20:10:55]execute_script done [20:10:55]execute_script returns [20:10:55]free content buf [20:10:55]Sock 9.Close socket [20:10:55]Sock 9.Thread stoped [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:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:03]accept exits with 8 [20:13:03]New connection [20:13:03]New thread 3066637668 created [20:13:03]Thread 3066781028 joined [20:13:03]Waiting for new connection... [20:13:03] Sock 8.Parse request [20:13:03]Sock 8.Check first char [20:13:03]Sock 8.First char is OK [20:13:03]request: POST /json_proto HTTP/1.0 [20:13:03]Method: POST [20:13:03]URL: /json_proto [20:13:03]Method is POST - this is cgi request [20:13:03]url: /json_proto [20:13:03]query_string will be loaded in cgi processing [20:13:03]execute_cgi json_proto POST (null) [20:13:03]execute_cgi path=json_proto method=POST [20:13:03]POST find Content-Length [20:13:03]Host: 172.17.63.3:8080 [20:13:03]Content-Length: 676 [20:13:03]Content-Type: application/json [20:13:03] [20:13:03]POST finish read [20:13:03]Found Content-Length = 676 [20:13:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:03]execute_script... [20:13: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)98491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:03]POST & json_proto [20:13:03]process_json_proto [20:13:03]json parsed OK: [20:13:03]protocol is kg_v1.0 [20:13:03]action value=close_receipt [20:13:03]process_action close_receipt [20:13:03]cmd_close_receipt [20:13:03]MH_GetDate [20:13:03]Write to MH i2c: F0 00 00 96 28 AD [20:13:03]Write i2c OK [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: F0 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: F0 09 00 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: F0 09 00 96 28 00 51 AA 1A 67 50 D1 6C 64 23 [20:13:03]GetLastDocTimeStamp 1729800654 [20:13:03]current date 1729800785 [20:13:03]FM_GetShiftState [20:13:03]SAM_PROTO_GetShiftState [20:13:03]wFMCommunicate request_size=4 [20:13:03]MH_SAM_APDU [20:13:03]CAPDU: 80 13 01 00 [20:13:03]Write to MH i2c: E2 08 00 97 28 80 13 01 00 00 00 00 00 3C [20:13:03]Write i2c OK [20:13:03]MH_I2C_Read... [20:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:03]Read from MH i2c: E2 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 0E 00 [20:13:03]MH_I2C_Read... [20:13:03]Read from MH i2c: E2 0E 00 97 28 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 89 [20:13:03]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:13:03]wFMCommunicate OK [20:13:03]SAM_PROTO_GetShiftState done [20:13:03]FM_GetShiftState done [20:13:03]opened in 1729729836 [20:13:03]opened+sec_in_day 1729816236 [20:13:03]quantity*price = 30038 [20:13:03]sum+1 = 30039 [20:13:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 309 24.10.2024 20:13 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155684 ФПД: 239759228938861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T201305&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155684&fm=239759228938861&tin=02508201610067®Number=0000000000091693&sum=30000 [20:13:04]StoreToDocumentArchive [20:13:04]shift 534 fd 155684 [20:13:04]save to /storage/0534/doc_00155684 [20:13:04]save last doc name /storage/0534/doc_00155684 to /storage/kkm_last_doc_name [20:13:04]save OK [20:13:04]Clear old archive folders... [20:13:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:13:04]tlvbuf is B6EB0890 [20:13:04]SAM_PROTO_ClearQueue [20:13:04]wFMCommunicate request_size=4 [20:13:04]MH_SAM_APDU [20:13:04]CAPDU: 80 09 00 00 [20:13:04]Write to MH i2c: E2 08 00 A4 28 80 09 00 00 00 00 00 00 3E [20:13:04]Write i2c OK [20:13:04]MH_I2C_Read... [20:13:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:04]Read from MH i2c: E2 [20:13:04]MH_I2C_Read... [20:13:04]Read from MH i2c: E2 03 00 [20:13:04]MH_I2C_Read... [20:13:04]Read from MH i2c: E2 03 00 A4 28 00 90 00 40 [20:13:04]RAPDU: 90 00 [20:13:04]wFMCommunicate OK [20:13:04]SAM_PROTO_ClearQueue done [20:13:04]KKMCreateOFDPacket [20:13:04]OFDProtocolAddRootSTLVToBuf [20:13:04]FM_MakeSignedData [20:13:04]FM_MakeSignedData [20:13:04]SAM_PROTO_SignData [20:13:04]wFMCommunicate request_size=4 [20:13:04]MH_SAM_APDU [20:13:04]CAPDU: 80 0D 01 02 [20:13:04]Write to MH i2c: E2 08 00 A5 28 80 0D 01 02 00 00 00 00 46 [20:13:04]Write i2c OK [20:13:04]MH_I2C_Read... [20:13:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:04]Read from MH i2c: E2 [20:13:04]MH_I2C_Read... [20:13:04]Read from MH i2c: E2 03 00 [20:13:04]MH_I2C_Read... [20:13:04]Read from MH i2c: E2 03 00 A5 28 00 90 00 41 [20:13:04]RAPDU: 90 00 [20:13:04]wFMCommunicate OK [20:13:04]wFMCommunicate request_size=255 [20:13:04]MH_SAM_APDU [20:13: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 51 AA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 60 02 00 35 04 06 00 DA [20:13:04]Write to MH i2c: E2 02 01 A6 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 51 AA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 60 02 00 35 04 06 00 DA 00 00 F8 [20:13:04]Write i2c OK [20:13:04]MH_I2C_Read... [20:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:05]Read from MH i2c: E2 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 03 00 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 03 00 A6 28 00 90 00 42 [20:13:05]RAPDU: 90 00 [20:13:05]wFMCommunicate OK [20:13:05]wFMCommunicate request_size=10 [20:13:05]MH_SAM_APDU [20:13:05]CAPDU: 80 0D 02 02 05 0F 4B AC 2A 6D [20:13:05]Write to MH i2c: E2 0D 00 A7 28 80 0D 02 02 05 00 0F 4B AC 2A 6D 00 00 F0 [20:13:05]Write i2c OK [20:13:05]MH_I2C_Read... [20:13:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:05]Read from MH i2c: E2 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 03 00 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 03 00 A7 28 00 90 00 43 [20:13:05]RAPDU: 90 00 [20:13:05]wFMCommunicate OK [20:13:05]wFMCommunicate request_size=4 [20:13:05]MH_SAM_APDU [20:13:05]CAPDU: 80 0D 03 02 [20:13:05]Write to MH i2c: E2 08 00 A8 28 80 0D 03 02 00 00 00 00 4B [20:13:05]Write i2c OK [20:13:05]MH_I2C_Read... [20:13:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:05]Read from MH i2c: E2 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 0B 00 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 0B 00 A8 28 00 5C CE 57 31 C9 B8 19 36 90 00 CE [20:13:05]RAPDU: 5C CE 57 31 C9 B8 19 36 90 00 [20:13:05]wFMCommunicate OK [20:13:05]SAM_PROTO_SignData done [20:13:05]FM_MakeSignedData done [20:13:05]CreateOFDProtocolMessage [20:13:05]wFMCommunicate request_size=4 [20:13:05]MH_SAM_APDU [20:13:05]CAPDU: 80 11 00 00 [20:13:05]Write to MH i2c: E2 08 00 A9 28 80 11 00 00 00 00 00 00 4B [20:13:05]Write i2c OK [20:13:05]MH_I2C_Read... [20:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:05]Read from MH i2c: E2 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 17 00 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: E2 17 00 A9 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A0 [20:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:13:05]wFMCommunicate OK [20:13:05]CreateOFDProtocolMessage done [20:13:05]OFDSenderStorePacket 155684 [20:13:05]StoreOFDPacket docnum=155684 [20:13:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 99 AD 07 01 3B 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 51 AA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 60 02 00 35 04 06 00 DA 0F 4B AC 2A 6D 5C CE 57 31 C9 B8 19 36 [20:13:05]CheckFolder [20:13:05]dirname=/storage/ofd_packets [20:13:05]CheckFolder done [20:13:05]ProducePacketName [20:13:05]name=ofd_packets/00155684 [20:13:05]NVStorageSaveData ofd_packets/00155684 [20:13:05]File name is /storage/ofd_packets/00155684 [20:13:05]Write 301 bytes [20:13:05]NVStorageSaveData done [20:13:05]OFDSenderStorePacket done [20:13:05]KKMCreateOFDPacket done [20:13:05]NVStorageSaveData kkm_last_timestamp [20:13:05]File name is /storage/kkm_last_timestamp [20:13:05]Write 4 bytes [20:13:05]NVStorageSaveData done [20:13:05]ExternCall_PrintAddStr [20:13:05]wPrintStart [20:13:05]Write to MH i2c: 01 00 00 AA 28 D2 [20:13:05]Write i2c OK [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: 01 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: 01 07 00 [20:13:05]MH_I2C_Read... [20:13:05]Read from MH i2c: 01 07 00 AA 28 00 00 00 00 00 FF 0F E7 [20:13:05]RasterBufferAndPrint [20:13:05]line Счет N : (1)98491 [20:13:05]line ИНН: 02508201610067 [20:13:05]line Контрольно-Кассовый Чек [20:13:05]line ПРОДАЖА [20:13:05]line ТРК (МРК, ГНК) : 21 [20:13:05]line Товар: 2710124130 [20:13:05]line Аи-92-К-5 [20:13:05]line 4.490 * 66.90 [20:13:05]line = 300.38 [20:13:05]line НДС 12% НСП 1% [20:13:05]line > о реализуемом товаре [20:13:05]line ОКРУГЛЕНИЕ: -0.38 [20:13:05]line ИТОГО: 300.00 [20:13:05]line Внесено: 300.00 [20:13:05]line СДАЧА: 0.00 [20:13:05]line НСП 1% : 2.66 [20:13:05]line НДС 12% : 31.90 [20:13:05]line Наличными: 300.00 [20:13:05]line Безнал.: 0.00 [20:13:05]line Место: АЗС № 143 "Партнер Нефть" [20:13:05]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:13:05]line СНО: Общий режим [20:13:05]line Чек 309 24.10.2024 20:13 [20:13:05]line Смена: 534 ФФД: 1.0 [20:13:05]line ЗНМ: 0300000096 [20:13:05]line РНМ: 0000000000091693 [20:13:05]line Версия ККМ: 001 [20:13:05]line ФМ: 0000000000871792 [20:13:05]line ФД: 155684 [20:13:05]line ФПД: 239759228938861 [20:13:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T201305&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155684&fm=239759228938861&tin=02508201610067®Number=0000000000091693&sum=30000 [20:13:05]OFD Sender: Processing packet 155684 [packets to send 31, broken 30] [20:13:05]ProducePacketName [20:13:05]name=ofd_packets/00155684 [20:13:05]OFD Sender: To server: pG, [20:13:05]CommunicateWithHost lk.salyk.kg:30040 [20:13:05]ConnectInit lk.salyk.kg [20:13:05]written 0, free lines is 4095 [20:13:05]Connected sock=11 [20:13: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 39 32 0F 01 00 00 99 AD 07 01 3B 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 51 AA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 60 02 00 35 04 06 00 DA 0F 4B AC 2A 6D 5C CE 57 31 C9 B8 19 36 [20:13: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 39 32 4F 00 00 00 65 54 47 00 8B 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 39 32 10 04 04 00 24 60 02 00 F4 03 04 00 C9 4F 1A 67 B6 04 01 00 00 AE 57 8B C3 9C 58 B0 7D [20:13:06]CommunicateWithHost err = 0 [20:13:06]CheckOFDResponse [20:13:06]1017 (14) - 77093643461234 [20:13:06]1041 (16) - 0000000000871792 [20:13:06]1040 (4) - 155684 [20:13:06]1012 (4) - 24.10.2024 13:46 [20:13:06]1206 (1) - 0 [20:13:06]OFD Sender: Remove packet 155684 [20:13:06]ProducePacketName [20:13:06]name=ofd_packets/00155684 [20:13:06]NVStorageDeleteData [20:13:06]Write to MH i2c: 01 00 00 D5 28 FD [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: 01 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: 01 07 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: 01 07 00 D5 28 00 00 00 00 00 E1 0C F1 [20:13:06]RasterBufferAndPrint [20:13:06]line [20:13:06]line [20:13:06]line [20:13:06]line [20:13:06]line [20:13:06]written 0, free lines is 3306 [20:13:06]process_action close_receipt done [20:13:06]requested_data is exist [20:13:06]produce_requested_data [20:13:06]requested_item fm.sn is exist - process it [20:13:06]wFMCommunicate request_size=4 [20:13:06]MH_SAM_APDU [20:13:06]CAPDU: 80 11 00 00 [20:13:06]Write to MH i2c: E2 08 00 DC 28 80 11 00 00 00 00 00 00 7E [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:06]Read from MH i2c: E2 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 17 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 17 00 DC 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D3 [20:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:13:06]wFMCommunicate OK [20:13:06]requested_item fd.num is exist - process it [20:13:06]SAM_PROTO_GetFieldsCounters [20:13:06]wFMCommunicate request_size=4 [20:13:06]MH_SAM_APDU [20:13:06]CAPDU: 80 13 00 00 [20:13:06]Write to MH i2c: E2 08 00 DD 28 80 13 00 00 00 00 00 00 81 [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:06]Read from MH i2c: E2 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 62 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 62 00 DD 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 24 60 02 00 0E 04 04 00 16 02 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 E7 [20:13: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 24 60 02 00 0E 04 04 00 16 02 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 [20:13:06]wFMCommunicate OK [20:13:06]SAM_PROTO_GetFieldsCounters done [20:13:06]requested_item shift.num is exist - process it [20:13:06]requested_item shift.opened is exist - process it [20:13:06]req_shift_opened [20:13:06]FM_GetShiftState [20:13:06]SAM_PROTO_GetShiftState [20:13:06]wFMCommunicate request_size=4 [20:13:06]MH_SAM_APDU [20:13:06]CAPDU: 80 13 01 00 [20:13:06]Write to MH i2c: E2 08 00 DE 28 80 13 01 00 00 00 00 00 83 [20:13:06]Write i2c OK [20:13:06]MH_I2C_Read... [20:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:06]Read from MH i2c: E2 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 0E 00 [20:13:06]MH_I2C_Read... [20:13:06]Read from MH i2c: E2 0E 00 DE 28 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D0 [20:13:06]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:13:06]wFMCommunicate OK [20:13:06]SAM_PROTO_GetShiftState done [20:13:06]FM_GetShiftState done [20:13:06]req_shift_opened done [20:13:06]requested_item shift.open_date is exist - process it [20:13:06]req_shift_open_date [20:13:06]req_shift_open_date done [20:13:06]produce_requested_data done [20:13:06]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155684,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [20:13:06]process_action_free close_receipt [20:13:06]json_value_free [20:13:06]json_value_free done [20:13:06]process_json_proto returns [20:13:06]Send response to host [20:13:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155684,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [20:13:06]free response buf [20:13:06]execute_script done [20:13:06]execute_script returns [20:13:06]free content buf [20:13:06]Sock 8.Close socket [20:13:06]Sock 8.Thread stoped [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13: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:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:08]accept exits with 10 [20:20:08]New connection [20:20:08]New thread 3066781028 created [20:20:08]Thread 3066637668 joined [20:20:08]Waiting for new connection... [20:20:08] Sock 10.Parse request [20:20:08]Sock 10.Check first char [20:20:08]Sock 10.First char is OK [20:20:08]request: POST /json_proto HTTP/1.0 [20:20:08]Method: POST [20:20:08]URL: /json_proto [20:20:08]Method is POST - this is cgi request [20:20:08]url: /json_proto [20:20:08]query_string will be loaded in cgi processing [20:20:08]execute_cgi json_proto POST (null) [20:20:08]execute_cgi path=json_proto method=POST [20:20:08]POST find Content-Length [20:20:08]Host: 172.17.63.3:8080 [20:20:08]Content-Length: 765 [20:20:08]Content-Type: application/json [20:20:08] [20:20:08]POST finish read [20:20:08]Found Content-Length = 765 [20:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:08]execute_script... [20:20:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:08]POST & json_proto [20:20:08]process_json_proto [20:20:08]json parsed OK: [20:20:08]protocol is kg_v1.0 [20:20:08]action value=close_receipt [20:20:08]process_action close_receipt [20:20:08]cmd_close_receipt [20:20:08]MH_GetDate [20:20:08]Write to MH i2c: F0 00 00 DF 28 F6 [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: F0 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: F0 09 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: F0 09 00 DF 28 00 F9 AB 1A 67 50 D1 6C 64 15 [20:20:08]GetLastDocTimeStamp 1729800785 [20:20:08]current date 1729801209 [20:20:08]FM_GetShiftState [20:20:08]SAM_PROTO_GetShiftState [20:20:08]wFMCommunicate request_size=4 [20:20:08]MH_SAM_APDU [20:20:08]CAPDU: 80 13 01 00 [20:20:08]Write to MH i2c: E2 08 00 E0 28 80 13 01 00 00 00 00 00 85 [20:20:08]Write i2c OK [20:20:08]MH_I2C_Read... [20:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:08]Read from MH i2c: E2 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 0E 00 [20:20:08]MH_I2C_Read... [20:20:08]Read from MH i2c: E2 0E 00 E0 28 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D2 [20:20:08]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:20:08]wFMCommunicate OK [20:20:08]SAM_PROTO_GetShiftState done [20:20:08]FM_GetShiftState done [20:20:08]opened in 1729729836 [20:20:08]opened+sec_in_day 1729816236 [20:20:08]quantity*price = 30038 [20:20:08]sum+1 = 30039 [20:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 310 24.10.2024 20:20 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155685 ФПД: 252949720140384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202009&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155685&fm=252949720140384&tin=02508201610067®Number=0000000000091693&sum=30038 [20:20:09]StoreToDocumentArchive [20:20:09]shift 534 fd 155685 [20:20:09]save to /storage/0534/doc_00155685 [20:20:09]save last doc name /storage/0534/doc_00155685 to /storage/kkm_last_doc_name [20:20:09]save OK [20:20:09]Clear old archive folders... [20:20:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:09]tlvbuf is 01F83580 [20:20:09]SAM_PROTO_ClearQueue [20:20:09]wFMCommunicate request_size=4 [20:20:09]MH_SAM_APDU [20:20:09]CAPDU: 80 09 00 00 [20:20:09]Write to MH i2c: E2 08 00 ED 28 80 09 00 00 00 00 00 00 87 [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:09]Read from MH i2c: E2 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 03 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 03 00 ED 28 00 90 00 89 [20:20:09]RAPDU: 90 00 [20:20:09]wFMCommunicate OK [20:20:09]SAM_PROTO_ClearQueue done [20:20:09]KKMCreateOFDPacket [20:20:09]OFDProtocolAddRootSTLVToBuf [20:20:09]FM_MakeSignedData [20:20:09]FM_MakeSignedData [20:20:09]SAM_PROTO_SignData [20:20:09]wFMCommunicate request_size=4 [20:20:09]MH_SAM_APDU [20:20:09]CAPDU: 80 0D 01 02 [20:20:09]Write to MH i2c: E2 08 00 EE 28 80 0D 01 02 00 00 00 00 8F [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:09]Read from MH i2c: E2 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 03 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 03 00 EE 28 00 90 00 8A [20:20:09]RAPDU: 90 00 [20:20:09]wFMCommunicate OK [20:20:09]wFMCommunicate request_size=255 [20:20:09]MH_SAM_APDU [20:20: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 F9 AB 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 25 60 02 00 35 04 06 00 E6 [20:20:09]Write to MH i2c: E2 02 01 EF 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 F9 AB 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 25 60 02 00 35 04 06 00 E6 00 00 44 [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:09]Read from MH i2c: E2 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 03 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 03 00 EF 28 00 90 00 8B [20:20:09]RAPDU: 90 00 [20:20:09]wFMCommunicate OK [20:20:09]wFMCommunicate request_size=10 [20:20:09]MH_SAM_APDU [20:20:09]CAPDU: 80 0D 02 02 05 0E 72 37 0A 60 [20:20:09]Write to MH i2c: E2 0D 00 F0 28 80 0D 02 02 05 00 0E 72 37 0A 60 00 00 BD [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:09]Read from MH i2c: E2 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 03 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 03 00 F0 28 00 90 00 8C [20:20:09]RAPDU: 90 00 [20:20:09]wFMCommunicate OK [20:20:09]wFMCommunicate request_size=4 [20:20:09]MH_SAM_APDU [20:20:09]CAPDU: 80 0D 03 02 [20:20:09]Write to MH i2c: E2 08 00 F1 28 80 0D 03 02 00 00 00 00 94 [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:09]Read from MH i2c: E2 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 0B 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 0B 00 F1 28 00 32 DE 0E 40 92 5D FE 1C 90 00 FC [20:20:09]RAPDU: 32 DE 0E 40 92 5D FE 1C 90 00 [20:20:09]wFMCommunicate OK [20:20:09]SAM_PROTO_SignData done [20:20:09]FM_MakeSignedData done [20:20:09]CreateOFDProtocolMessage [20:20:09]wFMCommunicate request_size=4 [20:20:09]MH_SAM_APDU [20:20:09]CAPDU: 80 11 00 00 [20:20:09]Write to MH i2c: E2 08 00 F2 28 80 11 00 00 00 00 00 00 94 [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:09]Read from MH i2c: E2 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 17 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: E2 17 00 F2 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E9 [20:20:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:20:09]wFMCommunicate OK [20:20:09]CreateOFDProtocolMessage done [20:20:09]OFDSenderStorePacket 155685 [20:20:09]StoreOFDPacket docnum=155685 [20:20:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5E 4B 07 01 0E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 F9 AB 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 25 60 02 00 35 04 06 00 E6 0E 72 37 0A 60 32 DE 0E 40 92 5D FE 1C [20:20:09]CheckFolder [20:20:09]dirname=/storage/ofd_packets [20:20:09]CheckFolder done [20:20:09]ProducePacketName [20:20:09]name=ofd_packets/00155685 [20:20:09]NVStorageSaveData ofd_packets/00155685 [20:20:09]File name is /storage/ofd_packets/00155685 [20:20:09]Write 301 bytes [20:20:09]NVStorageSaveData done [20:20:09]OFDSenderStorePacket done [20:20:09]KKMCreateOFDPacket done [20:20:09]NVStorageSaveData kkm_last_timestamp [20:20:09]File name is /storage/kkm_last_timestamp [20:20:09]Write 4 bytes [20:20:09]NVStorageSaveData done [20:20:09]ExternCall_PrintAddStr [20:20:09]wPrintStart [20:20:09]Write to MH i2c: 01 00 00 F3 28 1B [20:20:09]Write i2c OK [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: 01 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: 01 07 00 [20:20:09]MH_I2C_Read... [20:20:09]Read from MH i2c: 01 07 00 F3 28 00 00 00 00 00 FF 0F 30 [20:20:09]RasterBufferAndPrint [20:20:09]line Счет N : (1)98492 [20:20:09]line ИНН: 02508201610067 [20:20:09]line Контрольно-Кассовый Чек [20:20:09]line ПРОДАЖА [20:20:09]line ТРК (МРК, ГНК) : 11 [20:20:09]line Товар: 2710124130 [20:20:09]line Аи-92-К-5 [20:20:09]line 4.490 * 66.90 [20:20:09]line = 300.38 [20:20:09]line НДС 12% НСП 1% [20:20:09]line > о реализуемом товаре [20:20:09]line ИТОГО: 300.38 [20:20:09]line НСП 1% : 2.66 [20:20:09]line НДС 12% : 31.90 [20:20:09]line Наличными: 0.00 [20:20:09]line Безнал.: 300.38 [20:20:09]line Место: АЗС № 143 "Партнер Нефть" [20:20:09]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:20:09]line СНО: Общий режим [20:20:09]line Чек 310 24.10.2024 20:20 [20:20:09]line Смена: 534 ФФД: 1.0 [20:20:09]line ЗНМ: 0300000096 [20:20:09]line РНМ: 0000000000091693 [20:20:09]line Версия ККМ: 001 [20:20:09]line Платежная система: Mbank [20:20:09]line ФМ: 0000000000871792 [20:20:09]line ФД: 155685 [20:20:09]line ФПД: 252949720140384 [20:20:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202009&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155685&fm=252949720140384&tin=02508201610067®Number=0000000000091693&sum=30038 [20:20:10]OFD Sender: Processing packet 155685 [packets to send 31, broken 30] [20:20:10]ProducePacketName [20:20:10]name=ofd_packets/00155685 [20:20:10]OFD Sender: To server: pG, [20:20:10]CommunicateWithHost lk.salyk.kg:30040 [20:20:10]ConnectInit lk.salyk.kg [20:20:10]written 0, free lines is 4095 [20:20:10]Connected sock=9 [20:20: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 39 32 0F 01 00 00 5E 4B 07 01 0E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 F9 AB 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 25 60 02 00 35 04 06 00 E6 0E 72 37 0A 60 32 DE 0E 40 92 5D FE 1C [20:20: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 39 32 4F 00 00 00 DF 00 47 00 FD 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 39 32 10 04 04 00 25 60 02 00 F4 03 04 00 71 51 1A 67 B6 04 01 00 00 D7 EF E7 EB 35 32 22 29 [20:20:10]CommunicateWithHost err = 0 [20:20:10]CheckOFDResponse [20:20:10]1017 (14) - 77093643461234 [20:20:10]1041 (16) - 0000000000871792 [20:20:10]1040 (4) - 155685 [20:20:10]1012 (4) - 24.10.2024 13:53 [20:20:10]1206 (1) - 0 [20:20:10]OFD Sender: Remove packet 155685 [20:20:10]ProducePacketName [20:20:10]name=ofd_packets/00155685 [20:20:10]NVStorageDeleteData [20:20:10]Write to MH i2c: 01 00 00 1C 29 45 [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: 01 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: 01 07 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: 01 07 00 1C 29 00 00 00 00 00 0C 0D 65 [20:20:10]RasterBufferAndPrint [20:20:10]line [20:20:10]line [20:20:10]line [20:20:10]line [20:20:10]line [20:20:10]written 0, free lines is 3349 [20:20:10]process_action close_receipt done [20:20:10]requested_data is exist [20:20:10]produce_requested_data [20:20:10]requested_item fm.sn is exist - process it [20:20:10]wFMCommunicate request_size=4 [20:20:10]MH_SAM_APDU [20:20:10]CAPDU: 80 11 00 00 [20:20:10]Write to MH i2c: E2 08 00 23 29 80 11 00 00 00 00 00 00 C6 [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:10]Read from MH i2c: E2 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 17 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 17 00 23 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1B [20:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:20:10]wFMCommunicate OK [20:20:10]requested_item fd.num is exist - process it [20:20:10]SAM_PROTO_GetFieldsCounters [20:20:10]wFMCommunicate request_size=4 [20:20:10]MH_SAM_APDU [20:20:10]CAPDU: 80 13 00 00 [20:20:10]Write to MH i2c: E2 08 00 24 29 80 13 00 00 00 00 00 00 C9 [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:10]Read from MH i2c: E2 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 62 00 [20:20:10]MH_I2C_Read... [20:20:10]Read from MH i2c: E2 62 00 24 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 25 60 02 00 0E 04 04 00 16 02 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 33 [20:20: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 25 60 02 00 0E 04 04 00 16 02 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 [20:20:10]wFMCommunicate OK [20:20:10]SAM_PROTO_GetFieldsCounters done [20:20:10]requested_item shift.num is exist - process it [20:20:10]requested_item shift.opened is exist - process it [20:20:10]req_shift_opened [20:20:10]FM_GetShiftState [20:20:10]SAM_PROTO_GetShiftState [20:20:10]wFMCommunicate request_size=4 [20:20:10]MH_SAM_APDU [20:20:10]CAPDU: 80 13 01 00 [20:20:10]Write to MH i2c: E2 08 00 25 29 80 13 01 00 00 00 00 00 CB [20:20:10]Write i2c OK [20:20:10]MH_I2C_Read... [20:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:11]Read from MH i2c: E2 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 0E 00 [20:20:11]MH_I2C_Read... [20:20:11]Read from MH i2c: E2 0E 00 25 29 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 18 [20:20:11]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:20:11]wFMCommunicate OK [20:20:11]SAM_PROTO_GetShiftState done [20:20:11]FM_GetShiftState done [20:20:11]req_shift_opened done [20:20:11]requested_item shift.open_date is exist - process it [20:20:11]req_shift_open_date [20:20:11]req_shift_open_date done [20:20:11]produce_requested_data done [20:20:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155685,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [20:20:11]process_action_free close_receipt [20:20:11]json_value_free [20:20:11]json_value_free done [20:20:11]process_json_proto returns [20:20:11]Send response to host [20:20:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155685,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [20:20:11]free response buf [20:20:11]execute_script done [20:20:11]execute_script returns [20:20:11]free content buf [20:20:11]Sock 10.Close socket [20:20:11]Sock 10.Thread stoped [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:12]accept exits with 8 [20:28:12]New connection [20:28:12]New thread 3066637668 created [20:28:12]Thread 3066781028 joined [20:28:12]Waiting for new connection... [20:28:12] Sock 8.Parse request [20:28:12]Sock 8.Check first char [20:28:12]Sock 8.First char is OK [20:28:12]request: POST /json_proto HTTP/1.0 [20:28:12]Method: POST [20:28:12]URL: /json_proto [20:28:12]Method is POST - this is cgi request [20:28:12]url: /json_proto [20:28:12]query_string will be loaded in cgi processing [20:28:12]execute_cgi json_proto POST (null) [20:28:12]execute_cgi path=json_proto method=POST [20:28:12]POST find Content-Length [20:28:12]Host: 172.17.63.3:8080 [20:28:12]Content-Length: 676 [20:28:12]Content-Type: application/json [20:28:12] [20:28:12]POST finish read [20:28:12]Found Content-Length = 676 [20:28:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:12]execute_script... [20:28: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)98493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:12]POST & json_proto [20:28:12]process_json_proto [20:28:12]json parsed OK: [20:28:12]protocol is kg_v1.0 [20:28:12]action value=close_receipt [20:28:12]process_action close_receipt [20:28:12]cmd_close_receipt [20:28:12]MH_GetDate [20:28:12]Write to MH i2c: F0 00 00 26 29 3E [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: F0 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: F0 09 00 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: F0 09 00 26 29 00 DD AD 1A 67 50 D1 6C 64 43 [20:28:12]GetLastDocTimeStamp 1729801209 [20:28:12]current date 1729801693 [20:28:12]FM_GetShiftState [20:28:12]SAM_PROTO_GetShiftState [20:28:12]wFMCommunicate request_size=4 [20:28:12]MH_SAM_APDU [20:28:12]CAPDU: 80 13 01 00 [20:28:12]Write to MH i2c: E2 08 00 27 29 80 13 01 00 00 00 00 00 CD [20:28:12]Write i2c OK [20:28:12]MH_I2C_Read... [20:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:12]Read from MH i2c: E2 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 0E 00 [20:28:12]MH_I2C_Read... [20:28:12]Read from MH i2c: E2 0E 00 27 29 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1A [20:28:12]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:28:12]wFMCommunicate OK [20:28:12]SAM_PROTO_GetShiftState done [20:28:12]FM_GetShiftState done [20:28:12]opened in 1729729836 [20:28:12]opened+sec_in_day 1729816236 [20:28:12]quantity*price = 50041 [20:28:12]sum+1 = 50042 [20:28:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 311 24.10.2024 20:28 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155686 ФПД: 102613918725625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202813&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155686&fm=102613918725625&tin=02508201610067®Number=0000000000091693&sum=50000 [20:28:13]StoreToDocumentArchive [20:28:13]shift 534 fd 155686 [20:28:13]save to /storage/0534/doc_00155686 [20:28:13]save last doc name /storage/0534/doc_00155686 to /storage/kkm_last_doc_name [20:28:13]save OK [20:28:13]Clear old archive folders... [20:28:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:13]tlvbuf is 01FFE830 [20:28:13]SAM_PROTO_ClearQueue [20:28:13]wFMCommunicate request_size=4 [20:28:13]MH_SAM_APDU [20:28:13]CAPDU: 80 09 00 00 [20:28:13]Write to MH i2c: E2 08 00 34 29 80 09 00 00 00 00 00 00 CF [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:13]Read from MH i2c: E2 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 03 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 03 00 34 29 00 90 00 D1 [20:28:13]RAPDU: 90 00 [20:28:13]wFMCommunicate OK [20:28:13]SAM_PROTO_ClearQueue done [20:28:13]KKMCreateOFDPacket [20:28:13]OFDProtocolAddRootSTLVToBuf [20:28:13]FM_MakeSignedData [20:28:13]FM_MakeSignedData [20:28:13]SAM_PROTO_SignData [20:28:13]wFMCommunicate request_size=4 [20:28:13]MH_SAM_APDU [20:28:13]CAPDU: 80 0D 01 02 [20:28:13]Write to MH i2c: E2 08 00 35 29 80 0D 01 02 00 00 00 00 D7 [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:13]Read from MH i2c: E2 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 03 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 03 00 35 29 00 90 00 D2 [20:28:13]RAPDU: 90 00 [20:28:13]wFMCommunicate OK [20:28:13]wFMCommunicate request_size=255 [20:28:13]MH_SAM_APDU [20:28: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 DD AD 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 60 02 00 35 04 06 00 5D [20:28:13]Write to MH i2c: E2 02 01 36 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 DD AD 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 60 02 00 35 04 06 00 5D 00 00 AB [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:13]Read from MH i2c: E2 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 03 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 03 00 36 29 00 90 00 D3 [20:28:13]RAPDU: 90 00 [20:28:13]wFMCommunicate OK [20:28:13]wFMCommunicate request_size=10 [20:28:13]MH_SAM_APDU [20:28:13]CAPDU: 80 0D 02 02 05 53 AA 2C B5 F9 [20:28:13]Write to MH i2c: E2 0D 00 37 29 80 0D 02 02 05 00 53 AA 2C B5 F9 00 00 BB [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:13]Read from MH i2c: E2 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 03 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 03 00 37 29 00 90 00 D4 [20:28:13]RAPDU: 90 00 [20:28:13]wFMCommunicate OK [20:28:13]wFMCommunicate request_size=4 [20:28:13]MH_SAM_APDU [20:28:13]CAPDU: 80 0D 03 02 [20:28:13]Write to MH i2c: E2 08 00 38 29 80 0D 03 02 00 00 00 00 DC [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:13]Read from MH i2c: E2 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 0B 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 0B 00 38 29 00 F8 95 72 D3 7C 9E A3 9B 90 00 07 [20:28:13]RAPDU: F8 95 72 D3 7C 9E A3 9B 90 00 [20:28:13]wFMCommunicate OK [20:28:13]SAM_PROTO_SignData done [20:28:13]FM_MakeSignedData done [20:28:13]CreateOFDProtocolMessage [20:28:13]wFMCommunicate request_size=4 [20:28:13]MH_SAM_APDU [20:28:13]CAPDU: 80 11 00 00 [20:28:13]Write to MH i2c: E2 08 00 39 29 80 11 00 00 00 00 00 00 DC [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:13]Read from MH i2c: E2 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 17 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 17 00 39 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 31 [20:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:28:13]wFMCommunicate OK [20:28:13]CreateOFDProtocolMessage done [20:28:13]OFDSenderStorePacket 155686 [20:28:13]StoreOFDPacket docnum=155686 [20:28:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5A AB 07 01 AE 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 DD AD 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 60 02 00 35 04 06 00 5D 53 AA 2C B5 F9 F8 95 72 D3 7C 9E A3 9B [20:28:13]CheckFolder [20:28:13]dirname=/storage/ofd_packets [20:28:13]CheckFolder done [20:28:13]ProducePacketName [20:28:13]name=ofd_packets/00155686 [20:28:13]NVStorageSaveData ofd_packets/00155686 [20:28:13]File name is /storage/ofd_packets/00155686 [20:28:13]Write 301 bytes [20:28:13]NVStorageSaveData done [20:28:13]OFDSenderStorePacket done [20:28:13]KKMCreateOFDPacket done [20:28:13]NVStorageSaveData kkm_last_timestamp [20:28:13]File name is /storage/kkm_last_timestamp [20:28:13]Write 4 bytes [20:28:13]NVStorageSaveData done [20:28:13]ExternCall_PrintAddStr [20:28:13]wPrintStart [20:28:13]Write to MH i2c: 01 00 00 3A 29 63 [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: 01 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: 01 07 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: 01 07 00 3A 29 00 00 00 00 00 FF 0F 78 [20:28:13]RasterBufferAndPrint [20:28:13]line Счет N : (1)98493 [20:28:13]line ИНН: 02508201610067 [20:28:13]line Контрольно-Кассовый Чек [20:28:13]line ПРОДАЖА [20:28:13]line ТРК (МРК, ГНК) : 21 [20:28:13]line Товар: 2710124130 [20:28:13]line Аи-92-К-5 [20:28:13]line 7.480 * 66.90 [20:28:13]line = 500.41 [20:28:13]line НДС 12% НСП 1% [20:28:13]line > о реализуемом товаре [20:28:13]line ОКРУГЛЕНИЕ: -0.41 [20:28:13]line ИТОГО: 500.00 [20:28:13]line Внесено: 500.00 [20:28:13]line СДАЧА: 0.00 [20:28:13]line НСП 1% : 4.43 [20:28:13]line НДС 12% : 53.14 [20:28:13]line Наличными: 500.00 [20:28:13]line Безнал.: 0.00 [20:28:13]line Место: АЗС № 143 "Партнер Нефть" [20:28:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:28:13]line СНО: Общий режим [20:28:13]line Чек 311 24.10.2024 20:28 [20:28:13]line Смена: 534 ФФД: 1.0 [20:28:13]line ЗНМ: 0300000096 [20:28:13]line РНМ: 0000000000091693 [20:28:13]line Версия ККМ: 001 [20:28:13]line ФМ: 0000000000871792 [20:28:13]line ФД: 155686 [20:28:13]line ФПД: 102613918725625 [20:28:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T202813&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155686&fm=102613918725625&tin=02508201610067®Number=0000000000091693&sum=50000 [20:28:14]OFD Sender: Processing packet 155686 [packets to send 31, broken 30] [20:28:14]ProducePacketName [20:28:14]name=ofd_packets/00155686 [20:28:14]OFD Sender: To server: pG, [20:28:14]CommunicateWithHost lk.salyk.kg:30040 [20:28:14]ConnectInit lk.salyk.kg [20:28:14]written 0, free lines is 4095 [20:28:14]Connected sock=10 [20:28: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 39 32 0F 01 00 00 5A AB 07 01 AE 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 DD AD 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 60 02 00 35 04 06 00 5D 53 AA 2C B5 F9 F8 95 72 D3 7C 9E A3 9B [20:28: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 39 32 4F 00 00 00 57 4B 47 00 D9 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 39 32 10 04 04 00 26 60 02 00 F4 03 04 00 55 53 1A 67 B6 04 01 00 00 4C 7B E8 A5 A0 E3 E9 3E [20:28:14]CommunicateWithHost err = 0 [20:28:14]CheckOFDResponse [20:28:14]1017 (14) - 77093643461234 [20:28:14]1041 (16) - 0000000000871792 [20:28:14]1040 (4) - 155686 [20:28:14]1012 (4) - 24.10.2024 14:01 [20:28:14]1206 (1) - 0 [20:28:14]OFD Sender: Remove packet 155686 [20:28:14]ProducePacketName [20:28:14]name=ofd_packets/00155686 [20:28:14]NVStorageDeleteData [20:28:14]Write to MH i2c: 01 00 00 65 29 8E [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: 01 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: 01 07 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: 01 07 00 65 29 00 00 00 00 00 E4 0C 85 [20:28:14]RasterBufferAndPrint [20:28:14]line [20:28:14]line [20:28:14]line [20:28:14]line [20:28:14]line [20:28:14]written 0, free lines is 3306 [20:28:14]process_action close_receipt done [20:28:14]requested_data is exist [20:28:14]produce_requested_data [20:28:14]requested_item fm.sn is exist - process it [20:28:14]wFMCommunicate request_size=4 [20:28:14]MH_SAM_APDU [20:28:14]CAPDU: 80 11 00 00 [20:28:14]Write to MH i2c: E2 08 00 6C 29 80 11 00 00 00 00 00 00 0F [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:14]Read from MH i2c: E2 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 17 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 17 00 6C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 64 [20:28:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:28:14]wFMCommunicate OK [20:28:14]requested_item fd.num is exist - process it [20:28:14]SAM_PROTO_GetFieldsCounters [20:28:14]wFMCommunicate request_size=4 [20:28:14]MH_SAM_APDU [20:28:14]CAPDU: 80 13 00 00 [20:28:14]Write to MH i2c: E2 08 00 6D 29 80 13 00 00 00 00 00 00 12 [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:14]Read from MH i2c: E2 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 62 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 62 00 6D 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 26 60 02 00 0E 04 04 00 16 02 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 80 [20:28: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 26 60 02 00 0E 04 04 00 16 02 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 [20:28:14]wFMCommunicate OK [20:28:14]SAM_PROTO_GetFieldsCounters done [20:28:14]requested_item shift.num is exist - process it [20:28:14]requested_item shift.opened is exist - process it [20:28:14]req_shift_opened [20:28:14]FM_GetShiftState [20:28:14]SAM_PROTO_GetShiftState [20:28:14]wFMCommunicate request_size=4 [20:28:14]MH_SAM_APDU [20:28:14]CAPDU: 80 13 01 00 [20:28:14]Write to MH i2c: E2 08 00 6E 29 80 13 01 00 00 00 00 00 14 [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:15]Read from MH i2c: E2 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: E2 0E 00 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: E2 0E 00 6E 29 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 61 [20:28:15]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:28:15]wFMCommunicate OK [20:28:15]SAM_PROTO_GetShiftState done [20:28:15]FM_GetShiftState done [20:28:15]req_shift_opened done [20:28:15]requested_item shift.open_date is exist - process it [20:28:15]req_shift_open_date [20:28:15]req_shift_open_date done [20:28:15]produce_requested_data done [20:28:15]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155686,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [20:28:15]process_action_free close_receipt [20:28:15]json_value_free [20:28:15]json_value_free done [20:28:15]process_json_proto returns [20:28:15]Send response to host [20:28:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155686,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [20:28:15]free response buf [20:28:15]execute_script done [20:28:15]execute_script returns [20:28:15]free content buf [20:28:15]Sock 8.Close socket [20:28:15]Sock 8.Thread stoped [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33: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:17]accept exits with 9 [20:37:17]New connection [20:37:17]New thread 3066781028 created [20:37:17] Sock 9.Parse request [20:37:17]Thread 3066637668 joined [20:37:17]Sock 9.Check first char [20:37:17]Waiting for new connection... [20:37:17]Sock 9.First char is OK [20:37:17]request: POST /json_proto HTTP/1.0 [20:37:17]Method: POST [20:37:17]URL: /json_proto [20:37:17]Method is POST - this is cgi request [20:37:17]url: /json_proto [20:37:17]query_string will be loaded in cgi processing [20:37:17]execute_cgi json_proto POST (null) [20:37:17]execute_cgi path=json_proto method=POST [20:37:17]POST find Content-Length [20:37:17]Host: 172.17.63.3:8080 [20:37:17]Content-Length: 681 [20:37:17]Content-Type: application/json [20:37:17] [20:37:17]POST finish read [20:37:17]Found Content-Length = 681 [20:37:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:17]execute_script... [20:37:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:17]POST & json_proto [20:37:17]process_json_proto [20:37:17]json parsed OK: [20:37:17]protocol is kg_v1.0 [20:37:17]action value=close_receipt [20:37:17]process_action close_receipt [20:37:17]cmd_close_receipt [20:37:17]MH_GetDate [20:37:17]Write to MH i2c: F0 00 00 6F 29 87 [20:37:17]Write i2c OK [20:37:17]MH_I2C_Read... [20:37:17]Read from MH i2c: F0 [20:37:17]MH_I2C_Read... [20:37:17]Read from MH i2c: F0 09 00 [20:37:17]MH_I2C_Read... [20:37:17]Read from MH i2c: F0 09 00 6F 29 00 FE AF 1A 67 50 D1 6C 64 AF [20:37:17]GetLastDocTimeStamp 1729801693 [20:37:17]current date 1729802238 [20:37:17]FM_GetShiftState [20:37:17]SAM_PROTO_GetShiftState [20:37:17]wFMCommunicate request_size=4 [20:37:17]MH_SAM_APDU [20:37:17]CAPDU: 80 13 01 00 [20:37:17]Write to MH i2c: E2 08 00 70 29 80 13 01 00 00 00 00 00 16 [20:37:17]Write i2c OK [20:37:17]MH_I2C_Read... [20:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:17]Read from MH i2c: E2 [20:37:17]MH_I2C_Read... [20:37:17]Read from MH i2c: E2 0E 00 [20:37:17]MH_I2C_Read... [20:37:17]Read from MH i2c: E2 0E 00 70 29 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 63 [20:37:17]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:37:17]wFMCommunicate OK [20:37:17]SAM_PROTO_GetShiftState done [20:37:17]FM_GetShiftState done [20:37:17]opened in 1729729836 [20:37:17]opened+sec_in_day 1729816236 [20:37:17]quantity*price = 100015 [20:37:17]sum+1 = 100017 [20:37:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 312 24.10.2024 20:37 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155687 ФПД: 242116704457767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T203718&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155687&fm=242116704457767&tin=02508201610067®Number=0000000000091693&sum=100000 [20:37:18]StoreToDocumentArchive [20:37:18]shift 534 fd 155687 [20:37:18]save to /storage/0534/doc_00155687 [20:37:18]save last doc name /storage/0534/doc_00155687 to /storage/kkm_last_doc_name [20:37:18]save OK [20:37:18]Clear old archive folders... [20:37:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:37:18]tlvbuf is 01FBEC70 [20:37:18]SAM_PROTO_ClearQueue [20:37:18]wFMCommunicate request_size=4 [20:37:18]MH_SAM_APDU [20:37:18]CAPDU: 80 09 00 00 [20:37:18]Write to MH i2c: E2 08 00 7D 29 80 09 00 00 00 00 00 00 18 [20:37:18]Write i2c OK [20:37:18]MH_I2C_Read... [20:37:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:18]Read from MH i2c: E2 [20:37:18]MH_I2C_Read... [20:37:18]Read from MH i2c: E2 03 00 [20:37:18]MH_I2C_Read... [20:37:18]Read from MH i2c: E2 03 00 7D 29 00 90 00 1A [20:37:18]RAPDU: 90 00 [20:37:18]wFMCommunicate OK [20:37:18]SAM_PROTO_ClearQueue done [20:37:18]KKMCreateOFDPacket [20:37:18]OFDProtocolAddRootSTLVToBuf [20:37:18]FM_MakeSignedData [20:37:18]FM_MakeSignedData [20:37:18]SAM_PROTO_SignData [20:37:18]wFMCommunicate request_size=4 [20:37:18]MH_SAM_APDU [20:37:18]CAPDU: 80 0D 01 02 [20:37:18]Write to MH i2c: E2 08 00 7E 29 80 0D 01 02 00 00 00 00 20 [20:37:18]Write i2c OK [20:37:18]MH_I2C_Read... [20:37:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:18]Read from MH i2c: E2 [20:37:18]MH_I2C_Read... [20:37:18]Read from MH i2c: E2 03 00 [20:37:18]MH_I2C_Read... [20:37:18]Read from MH i2c: E2 03 00 7E 29 00 90 00 1B [20:37:18]RAPDU: 90 00 [20:37:18]wFMCommunicate OK [20:37:18]wFMCommunicate request_size=255 [20:37:18]MH_SAM_APDU [20:37: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 FE AF 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 60 02 00 35 04 06 00 DC [20:37:18]Write to MH i2c: E2 02 01 7F 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 FE AF 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 60 02 00 35 04 06 00 DC 00 00 92 [20:37:18]Write i2c OK [20:37:18]MH_I2C_Read... [20:37:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:18]Read from MH i2c: E2 [20:37:18]MH_I2C_Read... [20:37:18]Read from MH i2c: E2 03 00 [20:37:18]MH_I2C_Read... [20:37:18]Read from MH i2c: E2 03 00 7F 29 00 90 00 1C [20:37:18]RAPDU: 90 00 [20:37:18]wFMCommunicate OK [20:37:18]wFMCommunicate request_size=10 [20:37:18]MH_SAM_APDU [20:37:18]CAPDU: 80 0D 02 02 05 34 30 29 D4 27 [20:37:18]Write to MH i2c: E2 0D 00 80 29 80 0D 02 02 05 00 34 30 29 D4 27 00 00 B5 [20:37:18]Write i2c OK [20:37:18]MH_I2C_Read... [20:37:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:18]Read from MH i2c: E2 [20:37:18]MH_I2C_Read... [20:37:18]Read from MH i2c: E2 03 00 [20:37:18]MH_I2C_Read... [20:37:18]Read from MH i2c: E2 03 00 80 29 00 90 00 1D [20:37:18]RAPDU: 90 00 [20:37:18]wFMCommunicate OK [20:37:18]wFMCommunicate request_size=4 [20:37:18]MH_SAM_APDU [20:37:18]CAPDU: 80 0D 03 02 [20:37:18]Write to MH i2c: E2 08 00 81 29 80 0D 03 02 00 00 00 00 25 [20:37:18]Write i2c OK [20:37:18]MH_I2C_Read... [20:37:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:18]Read from MH i2c: E2 [20:37:18]MH_I2C_Read... [20:37:18]Read from MH i2c: E2 0B 00 [20:37:18]MH_I2C_Read... [20:37:18]Read from MH i2c: E2 0B 00 81 29 00 1B 37 D5 7A 5A 20 35 12 90 00 88 [20:37:18]RAPDU: 1B 37 D5 7A 5A 20 35 12 90 00 [20:37:18]wFMCommunicate OK [20:37:18]SAM_PROTO_SignData done [20:37:18]FM_MakeSignedData done [20:37:18]CreateOFDProtocolMessage [20:37:18]wFMCommunicate request_size=4 [20:37:18]MH_SAM_APDU [20:37:18]CAPDU: 80 11 00 00 [20:37:18]Write to MH i2c: E2 08 00 82 29 80 11 00 00 00 00 00 00 25 [20:37:18]Write i2c OK [20:37:18]MH_I2C_Read... [20:37:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:18]Read from MH i2c: E2 [20:37:18]MH_I2C_Read... [20:37:18]Read from MH i2c: E2 17 00 [20:37:18]MH_I2C_Read... [20:37:18]Read from MH i2c: E2 17 00 82 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7A [20:37:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:37:18]wFMCommunicate OK [20:37:18]CreateOFDProtocolMessage done [20:37:18]OFDSenderStorePacket 155687 [20:37:18]StoreOFDPacket docnum=155687 [20:37:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 90 AE 07 01 D8 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 FE AF 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 60 02 00 35 04 06 00 DC 34 30 29 D4 27 1B 37 D5 7A 5A 20 35 12 [20:37:18]CheckFolder [20:37:18]dirname=/storage/ofd_packets [20:37:18]CheckFolder done [20:37:18]ProducePacketName [20:37:18]name=ofd_packets/00155687 [20:37:18]NVStorageSaveData ofd_packets/00155687 [20:37:18]File name is /storage/ofd_packets/00155687 [20:37:18]Write 301 bytes [20:37:18]NVStorageSaveData done [20:37:18]OFDSenderStorePacket done [20:37:18]KKMCreateOFDPacket done [20:37:18]NVStorageSaveData kkm_last_timestamp [20:37:18]File name is /storage/kkm_last_timestamp [20:37:18]Write 4 bytes [20:37:18]NVStorageSaveData done [20:37:18]ExternCall_PrintAddStr [20:37:18]wPrintStart [20:37:18]Write to MH i2c: 01 00 00 83 29 AC [20:37:18]Write i2c OK [20:37:18]MH_I2C_Read... [20:37:18]Read from MH i2c: 01 [20:37:18]MH_I2C_Read... [20:37:18]Read from MH i2c: 01 07 00 [20:37:18]MH_I2C_Read... [20:37:18]Read from MH i2c: 01 07 00 83 29 00 00 00 00 00 FF 0F C1 [20:37:18]RasterBufferAndPrint [20:37:18]line Счет N : (1)98494 [20:37:18]line ИНН: 02508201610067 [20:37:18]line Контрольно-Кассовый Чек [20:37:18]line ПРОДАЖА [20:37:18]line ТРК (МРК, ГНК) : 31 [20:37:18]line Товар: 2710124130 [20:37:18]line Аи-92-К-5 [20:37:18]line 14.950 * 66.90 [20:37:18]line = 1000.16 [20:37:18]line НДС 12% НСП 1% [20:37:18]line > о реализуемом товаре [20:37:18]line ОКРУГЛЕНИЕ: -0.16 [20:37:18]line ИТОГО: 1000.00 [20:37:18]line Внесено: 1000.00 [20:37:18]line СДАЧА: 0.00 [20:37:18]line НСП 1% : 8.85 [20:37:18]line НДС 12% : 106.21 [20:37:18]line Наличными: 1000.00 [20:37:18]line Безнал.: 0.00 [20:37:18]line Место: АЗС № 143 "Партнер Нефть" [20:37:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:37:18]line СНО: Общий режим [20:37:18]line Чек 312 24.10.2024 20:37 [20:37:18]line Смена: 534 ФФД: 1.0 [20:37:18]line ЗНМ: 0300000096 [20:37:18]line РНМ: 0000000000091693 [20:37:18]line Версия ККМ: 001 [20:37:18]line ФМ: 0000000000871792 [20:37:18]line ФД: 155687 [20:37:18]line ФПД: 242116704457767 [20:37:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T203718&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155687&fm=242116704457767&tin=02508201610067®Number=0000000000091693&sum=100000 [20:37:19]OFD Sender: Processing packet 155687 [packets to send 31, broken 30] [20:37:19]ProducePacketName [20:37:19]name=ofd_packets/00155687 [20:37:19]OFD Sender: To server: pG, [20:37:19]CommunicateWithHost lk.salyk.kg:30040 [20:37:19]ConnectInit lk.salyk.kg [20:37:19]written 0, free lines is 4095 [20:37:19]Connected sock=10 [20:37: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 39 32 0F 01 00 00 90 AE 07 01 D8 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 FE AF 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 60 02 00 35 04 06 00 DC 34 30 29 D4 27 1B 37 D5 7A 5A 20 35 12 [20:37: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 39 32 4F 00 00 00 76 8B 47 00 C6 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 60 02 00 F4 03 04 00 76 55 1A 67 B6 04 01 00 00 FA 81 56 4E FC 9B 1B DB [20:37:19]CommunicateWithHost err = 0 [20:37:19]CheckOFDResponse [20:37:19]1017 (14) - 77093643461234 [20:37:19]1041 (16) - 0000000000871792 [20:37:19]1040 (4) - 155687 [20:37:19]1012 (4) - 24.10.2024 14:11 [20:37:19]1206 (1) - 0 [20:37:19]OFD Sender: Remove packet 155687 [20:37:19]ProducePacketName [20:37:19]name=ofd_packets/00155687 [20:37:19]NVStorageDeleteData [20:37:19]Write to MH i2c: 01 00 00 AE 29 D7 [20:37:19]Write i2c OK [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: 01 [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: 01 07 00 [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: 01 07 00 AE 29 00 00 00 00 00 D6 0C C0 [20:37:19]RasterBufferAndPrint [20:37:19]line [20:37:19]line [20:37:19]line [20:37:19]line [20:37:19]line [20:37:19]written 0, free lines is 3293 [20:37:19]process_action close_receipt done [20:37:19]requested_data is exist [20:37:19]produce_requested_data [20:37:19]requested_item fm.sn is exist - process it [20:37:19]wFMCommunicate request_size=4 [20:37:19]MH_SAM_APDU [20:37:19]CAPDU: 80 11 00 00 [20:37:19]Write to MH i2c: E2 08 00 B5 29 80 11 00 00 00 00 00 00 58 [20:37:19]Write i2c OK [20:37:19]MH_I2C_Read... [20:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:19]Read from MH i2c: E2 [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: E2 17 00 [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: E2 17 00 B5 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AD [20:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:37:19]wFMCommunicate OK [20:37:19]requested_item fd.num is exist - process it [20:37:19]SAM_PROTO_GetFieldsCounters [20:37:19]wFMCommunicate request_size=4 [20:37:19]MH_SAM_APDU [20:37:19]CAPDU: 80 13 00 00 [20:37:19]Write to MH i2c: E2 08 00 B6 29 80 13 00 00 00 00 00 00 5B [20:37:19]Write i2c OK [20:37:19]MH_I2C_Read... [20:37:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:19]Read from MH i2c: E2 [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: E2 62 00 [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: E2 62 00 B6 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 27 60 02 00 0E 04 04 00 16 02 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 CD [20:37:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 27 60 02 00 0E 04 04 00 16 02 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 [20:37:19]wFMCommunicate OK [20:37:19]SAM_PROTO_GetFieldsCounters done [20:37:19]requested_item shift.num is exist - process it [20:37:19]requested_item shift.opened is exist - process it [20:37:19]req_shift_opened [20:37:19]FM_GetShiftState [20:37:19]SAM_PROTO_GetShiftState [20:37:19]wFMCommunicate request_size=4 [20:37:19]MH_SAM_APDU [20:37:19]CAPDU: 80 13 01 00 [20:37:19]Write to MH i2c: E2 08 00 B7 29 80 13 01 00 00 00 00 00 5D [20:37:19]Write i2c OK [20:37:19]MH_I2C_Read... [20:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:19]Read from MH i2c: E2 [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: E2 0E 00 [20:37:19]MH_I2C_Read... [20:37:19]Read from MH i2c: E2 0E 00 B7 29 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AA [20:37:19]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:37:19]wFMCommunicate OK [20:37:19]SAM_PROTO_GetShiftState done [20:37:19]FM_GetShiftState done [20:37:19]req_shift_opened done [20:37:19]requested_item shift.open_date is exist - process it [20:37:19]req_shift_open_date [20:37:19]req_shift_open_date done [20:37:19]produce_requested_data done [20:37:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155687,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [20:37:19]process_action_free close_receipt [20:37:19]json_value_free [20:37:19]json_value_free done [20:37:19]process_json_proto returns [20:37:19]Send response to host [20:37:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155687,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [20:37:19]free response buf [20:37:19]execute_script done [20:37:19]execute_script returns [20:37:19]free content buf [20:37:19]Sock 9.Close socket [20:37:19]Sock 9.Thread stoped [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:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:45]OFD Sender: No OFD packet to send [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:35]OFD Sender: No OFD packet to send [20:40:40]OFD Sender: No OFD packet to send [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]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:41]accept exits with 8 [20:47:41]New connection [20:47:41]New thread 3066637668 created [20:47:41]Thread 3066781028 joined [20:47:41]Waiting for new connection... [20:47:41] Sock 8.Parse request [20:47:41]Sock 8.Check first char [20:47:41]Sock 8.First char is OK [20:47:41]request: POST /json_proto HTTP/1.0 [20:47:41]Method: POST [20:47:41]URL: /json_proto [20:47:41]Method is POST - this is cgi request [20:47:41]url: /json_proto [20:47:41]query_string will be loaded in cgi processing [20:47:41]execute_cgi json_proto POST (null) [20:47:41]execute_cgi path=json_proto method=POST [20:47:41]POST find Content-Length [20:47:41]Host: 172.17.63.3:8080 [20:47:41]Content-Length: 676 [20:47:41]Content-Type: application/json [20:47:41] [20:47:41]POST finish read [20:47:41]Found Content-Length = 676 [20:47:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:41]execute_script... [20:47: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)98495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:41]POST & json_proto [20:47:41]process_json_proto [20:47:41]json parsed OK: [20:47:41]protocol is kg_v1.0 [20:47:41]action value=close_receipt [20:47:41]process_action close_receipt [20:47:41]cmd_close_receipt [20:47:41]MH_GetDate [20:47:41]Write to MH i2c: F0 00 00 B8 29 D0 [20:47:41]Write i2c OK [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: F0 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: F0 09 00 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: F0 09 00 B8 29 00 6E B2 1A 67 50 D1 6C 64 6B [20:47:41]GetLastDocTimeStamp 1729802238 [20:47:41]current date 1729802862 [20:47:41]FM_GetShiftState [20:47:41]SAM_PROTO_GetShiftState [20:47:41]wFMCommunicate request_size=4 [20:47:41]MH_SAM_APDU [20:47:41]CAPDU: 80 13 01 00 [20:47:41]Write to MH i2c: E2 08 00 B9 29 80 13 01 00 00 00 00 00 5F [20:47:41]Write i2c OK [20:47:41]MH_I2C_Read... [20:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:41]Read from MH i2c: E2 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: E2 0E 00 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: E2 0E 00 B9 29 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AC [20:47:41]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:47:41]wFMCommunicate OK [20:47:41]SAM_PROTO_GetShiftState done [20:47:41]FM_GetShiftState done [20:47:41]opened in 1729729836 [20:47:41]opened+sec_in_day 1729816236 [20:47:41]quantity*price = 50041 [20:47:41]sum+1 = 50042 [20:47:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 313 24.10.2024 20:47 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155688 ФПД: 268212450945592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T204743&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155688&fm=268212450945592&tin=02508201610067®Number=0000000000091693&sum=50000 [20:47:42]StoreToDocumentArchive [20:47:42]shift 534 fd 155688 [20:47:42]save to /storage/0534/doc_00155688 [20:47:42]save last doc name /storage/0534/doc_00155688 to /storage/kkm_last_doc_name [20:47:42]save OK [20:47:42]Clear old archive folders... [20:47:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:47:42]tlvbuf is B6EB0800 [20:47:42]SAM_PROTO_ClearQueue [20:47:42]wFMCommunicate request_size=4 [20:47:42]MH_SAM_APDU [20:47:42]CAPDU: 80 09 00 00 [20:47:42]Write to MH i2c: E2 08 00 C6 29 80 09 00 00 00 00 00 00 61 [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:42]Read from MH i2c: E2 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 03 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 03 00 C6 29 00 90 00 63 [20:47:42]RAPDU: 90 00 [20:47:42]wFMCommunicate OK [20:47:42]SAM_PROTO_ClearQueue done [20:47:42]KKMCreateOFDPacket [20:47:42]OFDProtocolAddRootSTLVToBuf [20:47:42]FM_MakeSignedData [20:47:42]FM_MakeSignedData [20:47:42]SAM_PROTO_SignData [20:47:42]wFMCommunicate request_size=4 [20:47:42]MH_SAM_APDU [20:47:42]CAPDU: 80 0D 01 02 [20:47:42]Write to MH i2c: E2 08 00 C7 29 80 0D 01 02 00 00 00 00 69 [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:42]Read from MH i2c: E2 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 03 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 03 00 C7 29 00 90 00 64 [20:47:42]RAPDU: 90 00 [20:47:42]wFMCommunicate OK [20:47:42]wFMCommunicate request_size=255 [20:47:42]MH_SAM_APDU [20:47: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 6F B2 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 60 02 00 35 04 06 00 F3 [20:47:42]Write to MH i2c: E2 02 01 C8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 6F B2 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 60 02 00 35 04 06 00 F3 00 00 6E [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:42]Read from MH i2c: E2 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 03 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 03 00 C8 29 00 90 00 65 [20:47:42]RAPDU: 90 00 [20:47:42]wFMCommunicate OK [20:47:42]wFMCommunicate request_size=10 [20:47:42]MH_SAM_APDU [20:47:42]CAPDU: 80 0D 02 02 05 F0 13 DC EA 38 [20:47:42]Write to MH i2c: E2 0D 00 C9 29 80 0D 02 02 05 00 F0 13 DC EA 38 00 00 77 [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:42]Read from MH i2c: E2 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 03 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 03 00 C9 29 00 90 00 66 [20:47:42]RAPDU: 90 00 [20:47:42]wFMCommunicate OK [20:47:42]wFMCommunicate request_size=4 [20:47:42]MH_SAM_APDU [20:47:42]CAPDU: 80 0D 03 02 [20:47:42]Write to MH i2c: E2 08 00 CA 29 80 0D 03 02 00 00 00 00 6E [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:42]Read from MH i2c: E2 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 0B 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 0B 00 CA 29 00 B3 7C 9C 04 77 2D 29 F6 90 00 01 [20:47:42]RAPDU: B3 7C 9C 04 77 2D 29 F6 90 00 [20:47:42]wFMCommunicate OK [20:47:42]SAM_PROTO_SignData done [20:47:42]FM_MakeSignedData done [20:47:42]CreateOFDProtocolMessage [20:47:42]wFMCommunicate request_size=4 [20:47:42]MH_SAM_APDU [20:47:42]CAPDU: 80 11 00 00 [20:47:42]Write to MH i2c: E2 08 00 CB 29 80 11 00 00 00 00 00 00 6E [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:42]Read from MH i2c: E2 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 17 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: E2 17 00 CB 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C3 [20:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:47:42]wFMCommunicate OK [20:47:42]CreateOFDProtocolMessage done [20:47:42]OFDSenderStorePacket 155688 [20:47:42]StoreOFDPacket docnum=155688 [20:47:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 08 06 07 01 29 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 6F B2 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 60 02 00 35 04 06 00 F3 F0 13 DC EA 38 B3 7C 9C 04 77 2D 29 F6 [20:47:42]CheckFolder [20:47:42]dirname=/storage/ofd_packets [20:47:42]CheckFolder done [20:47:42]ProducePacketName [20:47:42]name=ofd_packets/00155688 [20:47:42]NVStorageSaveData ofd_packets/00155688 [20:47:42]File name is /storage/ofd_packets/00155688 [20:47:42]Write 301 bytes [20:47:42]NVStorageSaveData done [20:47:42]OFDSenderStorePacket done [20:47:42]KKMCreateOFDPacket done [20:47:42]NVStorageSaveData kkm_last_timestamp [20:47:42]File name is /storage/kkm_last_timestamp [20:47:42]Write 4 bytes [20:47:42]NVStorageSaveData done [20:47:42]ExternCall_PrintAddStr [20:47:42]wPrintStart [20:47:42]Write to MH i2c: 01 00 00 CC 29 F5 [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: 01 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: 01 07 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: 01 07 00 CC 29 00 00 00 00 00 FF 0F 0A [20:47:42]RasterBufferAndPrint [20:47:42]line Счет N : (1)98495 [20:47:42]line ИНН: 02508201610067 [20:47:42]line Контрольно-Кассовый Чек [20:47:42]line ПРОДАЖА [20:47:42]line ТРК (МРК, ГНК) : 11 [20:47:42]line Товар: 2710124130 [20:47:42]line Аи-92-К-5 [20:47:42]line 7.480 * 66.90 [20:47:42]line = 500.41 [20:47:42]line НДС 12% НСП 1% [20:47:42]line > о реализуемом товаре [20:47:42]line ОКРУГЛЕНИЕ: -0.41 [20:47:42]line ИТОГО: 500.00 [20:47:42]line Внесено: 500.00 [20:47:42]line СДАЧА: 0.00 [20:47:42]line НСП 1% : 4.43 [20:47:42]line НДС 12% : 53.14 [20:47:42]line Наличными: 500.00 [20:47:42]line Безнал.: 0.00 [20:47:42]line Место: АЗС № 143 "Партнер Нефть" [20:47:42]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:47:42]line СНО: Общий режим [20:47:42]line Чек 313 24.10.2024 20:47 [20:47:42]line Смена: 534 ФФД: 1.0 [20:47:42]line ЗНМ: 0300000096 [20:47:42]line РНМ: 0000000000091693 [20:47:42]line Версия ККМ: 001 [20:47:42]line ФМ: 0000000000871792 [20:47:42]line ФД: 155688 [20:47:42]line ФПД: 268212450945592 [20:47:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T204743&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155688&fm=268212450945592&tin=02508201610067®Number=0000000000091693&sum=50000 [20:47:43]OFD Sender: Processing packet 155688 [packets to send 31, broken 30] [20:47:43]ProducePacketName [20:47:43]name=ofd_packets/00155688 [20:47:43]OFD Sender: To server: pG, [20:47:43]CommunicateWithHost lk.salyk.kg:30040 [20:47:43]ConnectInit lk.salyk.kg [20:47:43]written 0, free lines is 4095 [20:47:43]Connected sock=10 [20:47: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 39 32 0F 01 00 00 08 06 07 01 29 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 6F B2 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 60 02 00 35 04 06 00 F3 F0 13 DC EA 38 B3 7C 9C 04 77 2D 29 F6 [20:47: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 39 32 4F 00 00 00 A5 38 47 00 75 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 39 32 10 04 04 00 28 60 02 00 F4 03 04 00 E6 57 1A 67 B6 04 01 00 00 A5 14 21 20 8C AF AC E4 [20:47:43]CommunicateWithHost err = 0 [20:47:43]CheckOFDResponse [20:47:43]1017 (14) - 77093643461234 [20:47:43]1041 (16) - 0000000000871792 [20:47:43]1040 (4) - 155688 [20:47:43]1012 (4) - 24.10.2024 14:21 [20:47:43]1206 (1) - 0 [20:47:43]OFD Sender: Remove packet 155688 [20:47:43]ProducePacketName [20:47:43]name=ofd_packets/00155688 [20:47:43]NVStorageDeleteData [20:47:43]Write to MH i2c: 01 00 00 F7 29 20 [20:47:43]Write i2c OK [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: 01 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: 01 07 00 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: 01 07 00 F7 29 00 00 00 00 00 DC 0C 0F [20:47:43]RasterBufferAndPrint [20:47:43]line [20:47:43]line [20:47:43]line [20:47:43]line [20:47:43]line [20:47:43]written 0, free lines is 3299 [20:47:43]process_action close_receipt done [20:47:43]requested_data is exist [20:47:43]produce_requested_data [20:47:43]requested_item fm.sn is exist - process it [20:47:43]wFMCommunicate request_size=4 [20:47:43]MH_SAM_APDU [20:47:43]CAPDU: 80 11 00 00 [20:47:43]Write to MH i2c: E2 08 00 FE 29 80 11 00 00 00 00 00 00 A1 [20:47:43]Write i2c OK [20:47:43]MH_I2C_Read... [20:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:43]Read from MH i2c: E2 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: E2 17 00 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: E2 17 00 FE 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F6 [20:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:47:43]wFMCommunicate OK [20:47:43]requested_item fd.num is exist - process it [20:47:43]SAM_PROTO_GetFieldsCounters [20:47:43]wFMCommunicate request_size=4 [20:47:43]MH_SAM_APDU [20:47:43]CAPDU: 80 13 00 00 [20:47:43]Write to MH i2c: E2 08 00 FF 29 80 13 00 00 00 00 00 00 A4 [20:47:43]Write i2c OK [20:47:43]MH_I2C_Read... [20:47:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:43]Read from MH i2c: E2 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: E2 62 00 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: E2 62 00 FF 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 28 60 02 00 0E 04 04 00 16 02 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 1A [20:47: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 28 60 02 00 0E 04 04 00 16 02 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 [20:47:43]wFMCommunicate OK [20:47:43]SAM_PROTO_GetFieldsCounters done [20:47:43]requested_item shift.num is exist - process it [20:47:43]requested_item shift.opened is exist - process it [20:47:43]req_shift_opened [20:47:43]FM_GetShiftState [20:47:43]SAM_PROTO_GetShiftState [20:47:43]wFMCommunicate request_size=4 [20:47:43]MH_SAM_APDU [20:47:43]CAPDU: 80 13 01 00 [20:47:43]Write to MH i2c: E2 08 00 00 2A 80 13 01 00 00 00 00 00 A7 [20:47:43]Write i2c OK [20:47:43]MH_I2C_Read... [20:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:43]Read from MH i2c: E2 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: E2 0E 00 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: E2 0E 00 00 2A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F4 [20:47:43]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:47:43]wFMCommunicate OK [20:47:43]SAM_PROTO_GetShiftState done [20:47:43]FM_GetShiftState done [20:47:43]req_shift_opened done [20:47:43]requested_item shift.open_date is exist - process it [20:47:43]req_shift_open_date [20:47:43]req_shift_open_date done [20:47:43]produce_requested_data done [20:47:43]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155688,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [20:47:43]process_action_free close_receipt [20:47:43]json_value_free [20:47:43]json_value_free done [20:47:43]process_json_proto returns [20:47:43]Send response to host [20:47:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155688,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [20:47:43]free response buf [20:47:43]execute_script done [20:47:43]execute_script returns [20:47:43]free content buf [20:47:43]Sock 8.Close socket [20:47:43]Sock 8.Thread stoped [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:59]OFD Sender: No OFD packet to send [20:48:04]OFD Sender: No OFD packet to send [20:48:09]OFD Sender: No OFD packet to send [20:48:14]OFD Sender: No OFD packet to send [20:48:19]OFD Sender: No OFD packet to send [20:48:24]OFD Sender: No OFD packet to send [20:48:29]OFD Sender: No OFD packet to send [20:48:34]OFD Sender: No OFD packet to send [20:48:39]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49: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:19]OFD Sender: No OFD packet to send [20:50:24]OFD Sender: No OFD packet to send [20:50:29]OFD Sender: No OFD packet to send [20:50:34]OFD Sender: No OFD packet to send [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:49]OFD Sender: No OFD packet to send [20:50:54]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:24]OFD Sender: No OFD packet to send [20:51:29]OFD Sender: No OFD packet to send [20:51:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:49]OFD Sender: No OFD packet to send [20:52:54]OFD Sender: No OFD packet to send [20:52:59]OFD Sender: No OFD packet to send [20:53:04]OFD Sender: No OFD packet to send [20:53:09]OFD Sender: No OFD packet to send [20:53:14]OFD Sender: No OFD packet to send [20:53:19]OFD Sender: No OFD packet to send [20:53:24]OFD Sender: No OFD packet to send [20:53:29]OFD Sender: No OFD packet to send [20:53:34]OFD Sender: No OFD packet to send [20:53:39]OFD Sender: No OFD packet to send [20:53:44]OFD Sender: No OFD packet to send [20:53:49]OFD Sender: No OFD packet to send [20:53:54]OFD Sender: No OFD packet to send [20:53:59]OFD Sender: No OFD packet to send [20:54:04]OFD Sender: No OFD packet to send [20:54:09]OFD Sender: No OFD packet to send [20:54:14]OFD Sender: No OFD packet to send [20:54:18]accept exits with 9 [20:54:18]New connection [20:54:18]New thread 3066781028 created [20:54:18]Thread 3066637668 joined [20:54:18]Waiting for new connection... [20:54:18] Sock 9.Parse request [20:54:18]Sock 9.Check first char [20:54:18]Sock 9.First char is OK [20:54:18]request: POST /json_proto HTTP/1.0 [20:54:18]Method: POST [20:54:18]URL: /json_proto [20:54:18]Method is POST - this is cgi request [20:54:18]url: /json_proto [20:54:18]query_string will be loaded in cgi processing [20:54:18]execute_cgi json_proto POST (null) [20:54:18]execute_cgi path=json_proto method=POST [20:54:18]POST find Content-Length [20:54:18]Host: 172.17.63.3:8080 [20:54:18]Content-Length: 683 [20:54:18]Content-Type: application/json [20:54:18] [20:54:18]POST finish read [20:54:18]Found Content-Length = 683 [20:54:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.240, "sum" : 10000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:18]execute_script... [20:54:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.240, "sum" : 10000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:18]POST & json_proto [20:54:18]process_json_proto [20:54:18]json parsed OK: [20:54:18]protocol is kg_v1.0 [20:54:18]action value=close_receipt [20:54:18]process_action close_receipt [20:54:18]cmd_close_receipt [20:54:18]MH_GetDate [20:54:18]Write to MH i2c: F0 00 00 01 2A 1A [20:54:18]Write i2c OK [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: F0 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: F0 09 00 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: F0 09 00 01 2A 00 FC B3 1A 67 50 D1 6C 64 44 [20:54:18]GetLastDocTimeStamp 1729802863 [20:54:18]current date 1729803260 [20:54:18]FM_GetShiftState [20:54:18]SAM_PROTO_GetShiftState [20:54:18]wFMCommunicate request_size=4 [20:54:18]MH_SAM_APDU [20:54:18]CAPDU: 80 13 01 00 [20:54:18]Write to MH i2c: E2 08 00 02 2A 80 13 01 00 00 00 00 00 A9 [20:54:18]Write i2c OK [20:54:18]MH_I2C_Read... [20:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:18]Read from MH i2c: E2 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 0E 00 [20:54:18]MH_I2C_Read... [20:54:18]Read from MH i2c: E2 0E 00 02 2A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F6 [20:54:18]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:54:18]wFMCommunicate OK [20:54:18]SAM_PROTO_GetShiftState done [20:54:18]FM_GetShiftState done [20:54:18]opened in 1729729836 [20:54:18]opened+sec_in_day 1729816236 [20:54:18]quantity*price = 1000048 [20:54:18]sum+1 = 1000050 [20:54:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 10000.00 Внесено: 10000.00 СДАЧА: 0.00 НСП 1% : 88.50 НДС 12% : 1062.00 Наличными: 10000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 314 24.10.2024 20:54 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155689 ФПД: 2030794646472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205420&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155689&fm=2030794646472&tin=02508201610067®Number=0000000000091693&sum=1000000 [20:54:20]StoreToDocumentArchive [20:54:20]shift 534 fd 155689 [20:54:20]save to /storage/0534/doc_00155689 [20:54:20]save last doc name /storage/0534/doc_00155689 to /storage/kkm_last_doc_name [20:54:20]save OK [20:54:20]Clear old archive folders... [20:54:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:54:20]tlvbuf is 01F832B0 [20:54:20]SAM_PROTO_ClearQueue [20:54:20]wFMCommunicate request_size=4 [20:54:20]MH_SAM_APDU [20:54:20]CAPDU: 80 09 00 00 [20:54:20]Write to MH i2c: E2 08 00 0F 2A 80 09 00 00 00 00 00 00 AB [20:54:20]Write i2c OK [20:54:20]MH_I2C_Read... [20:54:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:20]Read from MH i2c: E2 [20:54:20]MH_I2C_Read... [20:54:20]Read from MH i2c: E2 03 00 [20:54:20]MH_I2C_Read... [20:54:20]Read from MH i2c: E2 03 00 0F 2A 00 90 00 AD [20:54:20]RAPDU: 90 00 [20:54:20]wFMCommunicate OK [20:54:20]SAM_PROTO_ClearQueue done [20:54:20]KKMCreateOFDPacket [20:54:20]OFDProtocolAddRootSTLVToBuf [20:54:20]FM_MakeSignedData [20:54:20]FM_MakeSignedData [20:54:20]SAM_PROTO_SignData [20:54:20]wFMCommunicate request_size=4 [20:54:20]MH_SAM_APDU [20:54:20]CAPDU: 80 0D 01 02 [20:54:20]Write to MH i2c: E2 08 00 10 2A 80 0D 01 02 00 00 00 00 B3 [20:54:20]Write i2c OK [20:54:20]MH_I2C_Read... [20:54:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:20]Read from MH i2c: E2 [20:54:20]MH_I2C_Read... [20:54:20]Read from MH i2c: E2 03 00 [20:54:20]MH_I2C_Read... [20:54:20]Read from MH i2c: E2 03 00 10 2A 00 90 00 AE [20:54:20]RAPDU: 90 00 [20:54:20]wFMCommunicate OK [20:54:20]wFMCommunicate request_size=255 [20:54:20]MH_SAM_APDU [20:54:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 FC B3 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 60 02 00 35 04 06 00 01 D8 D4 CB [20:54:20]Write to MH i2c: E2 02 01 11 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 FC B3 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 60 02 00 35 04 06 00 01 D8 D4 CB 00 00 35 [20:54:20]Write i2c OK [20:54:20]MH_I2C_Read... [20:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:20]Read from MH i2c: E2 [20:54:20]MH_I2C_Read... [20:54:20]Read from MH i2c: E2 03 00 [20:54:20]MH_I2C_Read... [20:54:20]Read from MH i2c: E2 03 00 11 2A 00 90 00 AF [20:54:20]RAPDU: 90 00 [20:54:20]wFMCommunicate OK [20:54:20]wFMCommunicate request_size=7 [20:54:20]MH_SAM_APDU [20:54:20]CAPDU: 80 0D 02 02 02 23 C8 [20:54:20]Write to MH i2c: E2 0A 00 12 2A 80 0D 02 02 02 00 23 C8 00 00 A5 [20:54:20]Write i2c OK [20:54:20]MH_I2C_Read... [20:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:20]Read from MH i2c: E2 [20:54:20]MH_I2C_Read... [20:54:20]Read from MH i2c: E2 03 00 [20:54:20]MH_I2C_Read... [20:54:20]Read from MH i2c: E2 03 00 12 2A 00 90 00 B0 [20:54:20]RAPDU: 90 00 [20:54:20]wFMCommunicate OK [20:54:20]wFMCommunicate request_size=4 [20:54:20]MH_SAM_APDU [20:54:20]CAPDU: 80 0D 03 02 [20:54:20]Write to MH i2c: E2 08 00 13 2A 80 0D 03 02 00 00 00 00 B8 [20:54:20]Write i2c OK [20:54:20]MH_I2C_Read... [20:54:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:20]Read from MH i2c: E2 [20:54:20]MH_I2C_Read... [20:54:20]Read from MH i2c: E2 0B 00 [20:54:20]MH_I2C_Read... [20:54:20]Read from MH i2c: E2 0B 00 13 2A 00 79 0B 2B 12 1C 52 80 F2 90 00 5A [20:54:20]RAPDU: 79 0B 2B 12 1C 52 80 F2 90 00 [20:54:20]wFMCommunicate OK [20:54:20]SAM_PROTO_SignData done [20:54:20]FM_MakeSignedData done [20:54:20]CreateOFDProtocolMessage [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 14 2A 80 11 00 00 00 00 00 00 B8 [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 14 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0D [20:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:54:20]wFMCommunicate OK [20:54:20]CreateOFDProtocolMessage done [20:54:20]OFDSenderStorePacket 155689 [20:54:20]StoreOFDPacket docnum=155689 [20:54:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 30 8C 04 01 EE 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 FC B3 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 60 02 00 35 04 06 00 01 D8 D4 CB 23 C8 79 0B 2B 12 1C 52 80 F2 [20:54:20]CheckFolder [20:54:20]dirname=/storage/ofd_packets [20:54:20]CheckFolder done [20:54:20]ProducePacketName [20:54:20]name=ofd_packets/00155689 [20:54:20]NVStorageSaveData ofd_packets/00155689 [20:54:20]File name is /storage/ofd_packets/00155689 [20:54:20]Write 298 bytes [20:54:20]NVStorageSaveData done [20:54:20]OFDSenderStorePacket done [20:54:20]KKMCreateOFDPacket done [20:54:20]NVStorageSaveData kkm_last_timestamp [20:54:20]File name is /storage/kkm_last_timestamp [20:54:20]Write 4 bytes [20:54:20]NVStorageSaveData done [20:54:20]ExternCall_PrintAddStr [20:54:20]wPrintStart [20:54:20]Write to MH i2c: 01 00 00 15 2A 3F [20:54:20]Write i2c OK [20:54:20]MH_I2C_Read... [20:54:20]Read from MH i2c: 01 [20:54:20]MH_I2C_Read... [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 15 2A 00 00 00 00 00 FF 0F 54 [20:54:20]RasterBufferAndPrint [20:54:20]line Счет N : (1)98496 [20:54:20]line ИНН: 02508201610067 [20:54:20]line Контрольно-Кассовый Чек [20:54:20]line ПРОДАЖА [20:54:20]line ТРК (МРК, ГНК) : 32 [20:54:20]line Товар: 2710194210 [20:54:20]line ДТ-К-5 [20:54:20]line 131.240 * 76.20 [20:54:20]line = 10000.49 [20:54:20]line НДС 12% НСП 1% [20:54:20]line > о реализуемом товаре [20:54:20]line ОКРУГЛЕНИЕ: -0.49 [20:54:20]line ИТОГО: 10000.00 [20:54:20]line Внесено: 10000.00 [20:54:20]line СДАЧА: 0.00 [20:54:20]line НСП 1% : 88.50 [20:54:20]line НДС 12% : 1062.00 [20:54:20]line Наличными: 10000.00 [20:54:20]line Безнал.: 0.00 [20:54:20]line Место: АЗС № 143 "Партнер Нефть" [20:54:20]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:54:20]line СНО: Общий режим [20:54:20]line Чек 314 24.10.2024 20:54 [20:54:20]line Смена: 534 ФФД: 1.0 [20:54:20]line ЗНМ: 0300000096 [20:54:20]line РНМ: 0000000000091693 [20:54:20]line Версия ККМ: 001 [20:54:20]line ФМ: 0000000000871792 [20:54:20]line ФД: 155689 [20:54:20]line ФПД: 2030794646472 [20:54:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205420&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155689&fm=2030794646472&tin=02508201610067®Number=0000000000091693&sum=1000000 [20:54:20]OFD Sender: Processing packet 155689 [packets to send 31, broken 30] [20:54:20]ProducePacketName [20:54:20]name=ofd_packets/00155689 [20:54:20]OFD Sender: To server: pG, [20:54:20]CommunicateWithHost lk.salyk.kg:30040 [20:54:20]ConnectInit lk.salyk.kg [20:54:20]written 0, free lines is 4095 [20:54:21]Connected sock=10 [20:54: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 39 32 0C 01 00 00 30 8C 04 01 EE 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 FC B3 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 60 02 00 35 04 06 00 01 D8 D4 CB 23 C8 79 0B 2B 12 1C 52 80 F2 [20:54: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 39 32 4F 00 00 00 72 B3 47 00 52 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 39 32 10 04 04 00 29 60 02 00 F4 03 04 00 74 59 1A 67 B6 04 01 00 00 22 39 04 15 9D 49 5F E1 [20:54:21]CommunicateWithHost err = 0 [20:54:21]CheckOFDResponse [20:54:21]1017 (14) - 77093643461234 [20:54:21]1041 (16) - 0000000000871792 [20:54:21]1040 (4) - 155689 [20:54:21]1012 (4) - 24.10.2024 14:28 [20:54:21]1206 (1) - 0 [20:54:21]OFD Sender: Remove packet 155689 [20:54:21]ProducePacketName [20:54:21]name=ofd_packets/00155689 [20:54:21]NVStorageDeleteData [20:54:21]Write to MH i2c: 01 00 00 40 2A 6A [20:54:21]Write i2c OK [20:54:21]MH_I2C_Read... [20:54:21]Read from MH i2c: 01 [20:54:21]MH_I2C_Read... [20:54:21]Read from MH i2c: 01 07 00 [20:54:21]MH_I2C_Read... [20:54:21]Read from MH i2c: 01 07 00 40 2A 00 00 00 00 00 D8 0C 55 [20:54:21]RasterBufferAndPrint [20:54:21]line [20:54:21]line [20:54:21]line [20:54:21]line [20:54:21]line [20:54:21]written 0, free lines is 3297 [20:54:21]process_action close_receipt done [20:54:21]requested_data is exist [20:54:21]produce_requested_data [20:54:21]requested_item fm.sn is exist - process it [20:54:21]wFMCommunicate request_size=4 [20:54:21]MH_SAM_APDU [20:54:21]CAPDU: 80 11 00 00 [20:54:21]Write to MH i2c: E2 08 00 47 2A 80 11 00 00 00 00 00 00 EB [20:54:21]Write i2c OK [20:54:21]MH_I2C_Read... [20:54:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:21]Read from MH i2c: E2 [20:54:21]MH_I2C_Read... [20:54:21]Read from MH i2c: E2 17 00 [20:54:21]MH_I2C_Read... [20:54:21]Read from MH i2c: E2 17 00 47 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 40 [20:54:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:54:21]wFMCommunicate OK [20:54:21]requested_item fd.num is exist - process it [20:54:21]SAM_PROTO_GetFieldsCounters [20:54:21]wFMCommunicate request_size=4 [20:54:21]MH_SAM_APDU [20:54:21]CAPDU: 80 13 00 00 [20:54:21]Write to MH i2c: E2 08 00 48 2A 80 13 00 00 00 00 00 00 EE [20:54:21]Write i2c OK [20:54:21]MH_I2C_Read... [20:54:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:21]Read from MH i2c: E2 [20:54:21]MH_I2C_Read... [20:54:21]Read from MH i2c: E2 62 00 [20:54:21]MH_I2C_Read... [20:54:21]Read from MH i2c: E2 62 00 48 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 29 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [20:54: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 29 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:21]wFMCommunicate OK [20:54:21]SAM_PROTO_GetFieldsCounters done [20:54:21]requested_item shift.num is exist - process it [20:54:21]requested_item shift.opened is exist - process it [20:54:21]req_shift_opened [20:54:21]FM_GetShiftState [20:54:21]SAM_PROTO_GetShiftState [20:54:21]wFMCommunicate request_size=4 [20:54:21]MH_SAM_APDU [20:54:21]CAPDU: 80 13 01 00 [20:54:21]Write to MH i2c: E2 08 00 49 2A 80 13 01 00 00 00 00 00 F0 [20:54:21]Write i2c OK [20:54:21]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 49 2A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3D [20:54:21]RAPDU: 09 00 01 2C 95 19 67 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":"0000000000871792","fd.num":155689,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [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":"0000000000871792","fd.num":155689,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [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:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:28]accept exits with 8 [20:56:28]New connection [20:56:28]New thread 3066637668 created [20:56:28]Thread 3066781028 joined [20:56:28]Waiting for new connection... [20:56:28] Sock 8.Parse request [20:56:28]Sock 8.Check first char [20:56:28]Sock 8.First char is OK [20:56:28]request: POST /json_proto HTTP/1.0 [20:56:28]Method: POST [20:56:28]URL: /json_proto [20:56:28]Method is POST - this is cgi request [20:56:28]url: /json_proto [20:56:28]query_string will be loaded in cgi processing [20:56:28]execute_cgi json_proto POST (null) [20:56:28]execute_cgi path=json_proto method=POST [20:56:28]POST find Content-Length [20:56:28]Host: 172.17.63.3:8080 [20:56:28]Content-Length: 678 [20:56:28]Content-Type: application/json [20:56:28] [20:56:28]POST finish read [20:56:28]Found Content-Length = 678 [20:56:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:28]execute_script... [20:56: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)98498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:56:28]POST & json_proto [20:56:28]process_json_proto [20:56:28]json parsed OK: [20:56:28]protocol is kg_v1.0 [20:56:28]action value=close_receipt [20:56:28]process_action close_receipt [20:56:28]cmd_close_receipt [20:56:28]MH_GetDate [20:56:28]Write to MH i2c: F0 00 00 4A 2A 63 [20:56:28]Write i2c OK [20:56:28]MH_I2C_Read... [20:56:28]Read from MH i2c: F0 [20:56:28]MH_I2C_Read... [20:56:28]Read from MH i2c: F0 09 00 [20:56:28]MH_I2C_Read... [20:56:28]Read from MH i2c: F0 09 00 4A 2A 00 7E B4 1A 67 50 D1 6C 64 10 [20:56:28]GetLastDocTimeStamp 1729803260 [20:56:28]current date 1729803390 [20:56:28]FM_GetShiftState [20:56:28]SAM_PROTO_GetShiftState [20:56:28]wFMCommunicate request_size=4 [20:56:28]MH_SAM_APDU [20:56:28]CAPDU: 80 13 01 00 [20:56:28]Write to MH i2c: E2 08 00 4B 2A 80 13 01 00 00 00 00 00 F2 [20:56:28]Write i2c OK [20:56:28]MH_I2C_Read... [20:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:28]Read from MH i2c: E2 [20:56:28]MH_I2C_Read... [20:56:28]Read from MH i2c: E2 0E 00 [20:56:28]MH_I2C_Read... [20:56:28]Read from MH i2c: E2 0E 00 4B 2A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3F [20:56:28]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:56:28]wFMCommunicate OK [20:56:28]SAM_PROTO_GetShiftState done [20:56:28]FM_GetShiftState done [20:56:28]opened in 1729729836 [20:56:28]opened+sec_in_day 1729816236 [20:56:28]quantity*price = 200025 [20:56:28]sum+1 = 200026 [20:56:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 315 24.10.2024 20:56 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155690 ФПД: 35002107728004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205630&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155690&fm=35002107728004&tin=02508201610067®Number=0000000000091693&sum=200000 [20:56:29]StoreToDocumentArchive [20:56:29]shift 534 fd 155690 [20:56:29]save to /storage/0534/doc_00155690 [20:56:29]save last doc name /storage/0534/doc_00155690 to /storage/kkm_last_doc_name [20:56:29]save OK [20:56:29]Clear old archive folders... [20:56:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:56:29]tlvbuf is B6D7E5C0 [20:56:29]SAM_PROTO_ClearQueue [20:56:29]wFMCommunicate request_size=4 [20:56:29]MH_SAM_APDU [20:56:29]CAPDU: 80 09 00 00 [20:56:29]Write to MH i2c: E2 08 00 58 2A 80 09 00 00 00 00 00 00 F4 [20:56:29]Write i2c OK [20:56:29]MH_I2C_Read... [20:56:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:29]Read from MH i2c: E2 [20:56:29]MH_I2C_Read... [20:56:29]Read from MH i2c: E2 03 00 [20:56:29]MH_I2C_Read... [20:56:29]Read from MH i2c: E2 03 00 58 2A 00 90 00 F6 [20:56:29]RAPDU: 90 00 [20:56:29]wFMCommunicate OK [20:56:29]SAM_PROTO_ClearQueue done [20:56:29]KKMCreateOFDPacket [20:56:29]OFDProtocolAddRootSTLVToBuf [20:56:29]FM_MakeSignedData [20:56:29]FM_MakeSignedData [20:56:29]SAM_PROTO_SignData [20:56:29]wFMCommunicate request_size=4 [20:56:29]MH_SAM_APDU [20:56:29]CAPDU: 80 0D 01 02 [20:56:29]Write to MH i2c: E2 08 00 59 2A 80 0D 01 02 00 00 00 00 FC [20:56:29]Write i2c OK [20:56:29]MH_I2C_Read... [20:56:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:29]Read from MH i2c: E2 [20:56:29]MH_I2C_Read... [20:56:29]Read from MH i2c: E2 03 00 [20:56:29]MH_I2C_Read... [20:56:29]Read from MH i2c: E2 03 00 59 2A 00 90 00 F7 [20:56:29]RAPDU: 90 00 [20:56:29]wFMCommunicate OK [20:56:29]wFMCommunicate request_size=255 [20:56:29]MH_SAM_APDU [20:56:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 7E B4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 60 02 00 35 04 06 00 1F D5 90 32 [20:56:29]Write to MH i2c: E2 02 01 5A 2A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3B 01 00 00 F4 03 04 00 7E B4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 60 02 00 35 04 06 00 1F D5 90 32 00 00 BD [20:56:29]Write i2c OK [20:56:29]MH_I2C_Read... [20:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:29]Read from MH i2c: E2 [20:56:29]MH_I2C_Read... [20:56:29]Read from MH i2c: E2 03 00 [20:56:29]MH_I2C_Read... [20:56:29]Read from MH i2c: E2 03 00 5A 2A 00 90 00 F8 [20:56:29]RAPDU: 90 00 [20:56:29]wFMCommunicate OK [20:56:29]wFMCommunicate request_size=7 [20:56:29]MH_SAM_APDU [20:56:29]CAPDU: 80 0D 02 02 02 90 84 [20:56:29]Write to MH i2c: E2 0A 00 5B 2A 80 0D 02 02 02 00 90 84 00 00 17 [20:56:29]Write i2c OK [20:56:29]MH_I2C_Read... [20:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:29]Read from MH i2c: E2 [20:56:29]MH_I2C_Read... [20:56:29]Read from MH i2c: E2 03 00 [20:56:29]MH_I2C_Read... [20:56:29]Read from MH i2c: E2 03 00 5B 2A 00 90 00 F9 [20:56:29]RAPDU: 90 00 [20:56:29]wFMCommunicate OK [20:56:29]wFMCommunicate request_size=4 [20:56:29]MH_SAM_APDU [20:56:29]CAPDU: 80 0D 03 02 [20:56:29]Write to MH i2c: E2 08 00 5C 2A 80 0D 03 02 00 00 00 00 01 [20:56:29]Write i2c OK [20:56:29]MH_I2C_Read... [20:56:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:29]Read from MH i2c: E2 [20:56:29]MH_I2C_Read... [20:56:29]Read from MH i2c: E2 0B 00 [20:56:29]MH_I2C_Read... [20:56:29]Read from MH i2c: E2 0B 00 5C 2A 00 0E 4B CE B9 E3 E7 9E FE 90 00 48 [20:56:29]RAPDU: 0E 4B CE B9 E3 E7 9E FE 90 00 [20:56:29]wFMCommunicate OK [20:56:29]SAM_PROTO_SignData done [20:56:29]FM_MakeSignedData done [20:56:29]CreateOFDProtocolMessage [20:56:29]wFMCommunicate request_size=4 [20:56:29]MH_SAM_APDU [20:56:29]CAPDU: 80 11 00 00 [20:56:29]Write to MH i2c: E2 08 00 5D 2A 80 11 00 00 00 00 00 00 01 [20:56:29]Write i2c OK [20:56:29]MH_I2C_Read... [20:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:29]Read from MH i2c: E2 [20:56:29]MH_I2C_Read... [20:56:29]Read from MH i2c: E2 17 00 [20:56:29]MH_I2C_Read... [20:56:29]Read from MH i2c: E2 17 00 5D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 56 [20:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:56:29]wFMCommunicate OK [20:56:29]CreateOFDProtocolMessage done [20:56:29]OFDSenderStorePacket 155690 [20:56:29]StoreOFDPacket docnum=155690 [20:56:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 32 87 04 01 F6 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 7E B4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 60 02 00 35 04 06 00 1F D5 90 32 90 84 0E 4B CE B9 E3 E7 9E FE [20:56:29]CheckFolder [20:56:29]dirname=/storage/ofd_packets [20:56:29]CheckFolder done [20:56:29]ProducePacketName [20:56:29]name=ofd_packets/00155690 [20:56:29]NVStorageSaveData ofd_packets/00155690 [20:56:29]File name is /storage/ofd_packets/00155690 [20:56:29]Write 298 bytes [20:56:29]NVStorageSaveData done [20:56:29]OFDSenderStorePacket done [20:56:29]KKMCreateOFDPacket done [20:56:29]NVStorageSaveData kkm_last_timestamp [20:56:29]File name is /storage/kkm_last_timestamp [20:56:29]Write 4 bytes [20:56:29]NVStorageSaveData done [20:56:29]ExternCall_PrintAddStr [20:56:29]wPrintStart [20:56:29]Write to MH i2c: 01 00 00 5E 2A 88 [20:56:29]Write i2c OK [20:56:29]MH_I2C_Read... [20:56:29]Read from MH i2c: 01 [20:56:29]MH_I2C_Read... [20:56:29]Read from MH i2c: 01 07 00 [20:56:29]MH_I2C_Read... [20:56:29]Read from MH i2c: 01 07 00 5E 2A 00 00 00 00 00 FF 0F 9D [20:56:29]RasterBufferAndPrint [20:56:29]line Счет N : (1)98498 [20:56:29]line ИНН: 02508201610067 [20:56:29]line Контрольно-Кассовый Чек [20:56:29]line ПРОДАЖА [20:56:29]line ТРК (МРК, ГНК) : 32 [20:56:29]line Товар: 2710194210 [20:56:29]line ДТ-К-5 [20:56:29]line 26.250 * 76.20 [20:56:29]line = 2000.25 [20:56:29]line НДС 12% НСП 1% [20:56:29]line > о реализуемом товаре [20:56:29]line ОКРУГЛЕНИЕ: -0.25 [20:56:29]line ИТОГО: 2000.00 [20:56:29]line Внесено: 2000.00 [20:56:29]line СДАЧА: 0.00 [20:56:29]line НСП 1% : 17.70 [20:56:29]line НДС 12% : 212.42 [20:56:29]line Наличными: 2000.00 [20:56:29]line Безнал.: 0.00 [20:56:29]line Место: АЗС № 143 "Партнер Нефть" [20:56:29]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:56:29]line СНО: Общий режим [20:56:29]line Чек 315 24.10.2024 20:56 [20:56:29]line Смена: 534 ФФД: 1.0 [20:56:29]line ЗНМ: 0300000096 [20:56:29]line РНМ: 0000000000091693 [20:56:29]line Версия ККМ: 001 [20:56:29]line ФМ: 0000000000871792 [20:56:29]line ФД: 155690 [20:56:29]line ФПД: 35002107728004 [20:56:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T205630&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155690&fm=35002107728004&tin=02508201610067®Number=0000000000091693&sum=200000 [20:56:30]OFD Sender: Processing packet 155690 [packets to send 31, broken 30] [20:56:30]ProducePacketName [20:56:30]name=ofd_packets/00155690 [20:56:30]OFD Sender: To server: pG, [20:56:30]CommunicateWithHost lk.salyk.kg:30040 [20:56:30]ConnectInit lk.salyk.kg [20:56:30]written 0, free lines is 4095 [20:56:30]Connected sock=10 [20:56: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 39 32 0C 01 00 00 32 87 04 01 F6 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 7E B4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 60 02 00 35 04 06 00 1F D5 90 32 90 84 0E 4B CE B9 E3 E7 9E FE [20:56: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 39 32 4F 00 00 00 8D CB 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 39 32 10 04 04 00 2A 60 02 00 F4 03 04 00 F5 59 1A 67 B6 04 01 00 00 94 68 60 59 46 B3 D6 52 [20:56:30]CommunicateWithHost err = 0 [20:56:30]CheckOFDResponse [20:56:30]1017 (14) - 77093643461234 [20:56:30]1041 (16) - 0000000000871792 [20:56:30]1040 (4) - 155690 [20:56:30]1012 (4) - 24.10.2024 14:30 [20:56:30]1206 (1) - 0 [20:56:30]OFD Sender: Remove packet 155690 [20:56:30]ProducePacketName [20:56:30]name=ofd_packets/00155690 [20:56:30]NVStorageDeleteData [20:56:30]Write to MH i2c: 01 00 00 89 2A B3 [20:56:30]Write i2c OK [20:56:30]MH_I2C_Read... [20:56:30]Read from MH i2c: 01 [20:56:30]MH_I2C_Read... [20:56:30]Read from MH i2c: 01 07 00 [20:56:30]MH_I2C_Read... [20:56:30]Read from MH i2c: 01 07 00 89 2A 00 00 00 00 00 DD 0C A3 [20:56:30]RasterBufferAndPrint [20:56:30]line [20:56:30]line [20:56:30]line [20:56:30]line [20:56:30]line [20:56:30]written 0, free lines is 3299 [20:56:30]process_action close_receipt done [20:56:30]requested_data is exist [20:56:30]produce_requested_data [20:56:30]requested_item fm.sn is exist - process it [20:56:30]wFMCommunicate request_size=4 [20:56:30]MH_SAM_APDU [20:56:30]CAPDU: 80 11 00 00 [20:56:30]Write to MH i2c: E2 08 00 90 2A 80 11 00 00 00 00 00 00 34 [20:56:30]Write i2c OK [20:56:30]MH_I2C_Read... [20:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:30]Read from MH i2c: E2 [20:56:30]MH_I2C_Read... [20:56:30]Read from MH i2c: E2 17 00 [20:56:30]MH_I2C_Read... [20:56:30]Read from MH i2c: E2 17 00 90 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 89 [20:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:56:30]wFMCommunicate OK [20:56:30]requested_item fd.num is exist - process it [20:56:30]SAM_PROTO_GetFieldsCounters [20:56:30]wFMCommunicate request_size=4 [20:56:30]MH_SAM_APDU [20:56:30]CAPDU: 80 13 00 00 [20:56:30]Write to MH i2c: E2 08 00 91 2A 80 13 00 00 00 00 00 00 37 [20:56:30]Write i2c OK [20:56:30]MH_I2C_Read... [20:56:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:30]Read from MH i2c: E2 [20:56:30]MH_I2C_Read... [20:56:30]Read from MH i2c: E2 62 00 [20:56:30]MH_I2C_Read... [20:56:30]Read from MH i2c: E2 62 00 91 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2A 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 B5 [20:56:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2A 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:56:30]wFMCommunicate OK [20:56:30]SAM_PROTO_GetFieldsCounters done [20:56:30]requested_item shift.num is exist - process it [20:56:30]requested_item shift.opened is exist - process it [20:56:30]req_shift_opened [20:56:30]FM_GetShiftState [20:56:30]SAM_PROTO_GetShiftState [20:56:30]wFMCommunicate request_size=4 [20:56:30]MH_SAM_APDU [20:56:30]CAPDU: 80 13 01 00 [20:56:30]Write to MH i2c: E2 08 00 92 2A 80 13 01 00 00 00 00 00 39 [20:56:30]Write i2c OK [20:56:30]MH_I2C_Read... [20:56:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:31]Read from MH i2c: E2 [20:56:31]MH_I2C_Read... [20:56:31]Read from MH i2c: E2 0E 00 [20:56:31]MH_I2C_Read... [20:56:31]Read from MH i2c: E2 0E 00 92 2A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 86 [20:56:31]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [20:56:31]wFMCommunicate OK [20:56:31]SAM_PROTO_GetShiftState done [20:56:31]FM_GetShiftState done [20:56:31]req_shift_opened done [20:56:31]requested_item shift.open_date is exist - process it [20:56:31]req_shift_open_date [20:56:31]req_shift_open_date done [20:56:31]produce_requested_data done [20:56:31]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155690,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [20:56:31]process_action_free close_receipt [20:56:31]json_value_free [20:56:31]json_value_free done [20:56:31]process_json_proto returns [20:56:31]Send response to host [20:56:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155690,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [20:56:31]free response buf [20:56:31]execute_script done [20:56:31]execute_script returns [20:56:31]free content buf [20:56:31]Sock 8.Close socket [20:56:31]Sock 8.Thread stoped [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:51]OFD Sender: No OFD packet to send [20:56:56]OFD Sender: No OFD packet to send [20:57:01]OFD Sender: No OFD packet to send [20:57:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:51]OFD Sender: No OFD packet to send [20:57:56]OFD Sender: No OFD packet to send [20:58:01]OFD Sender: No OFD packet to send [20:58:06]OFD Sender: No OFD packet to send [20:58:11]OFD Sender: No OFD packet to send [20:58:16]OFD Sender: No OFD packet to send [20:58:21]OFD Sender: No OFD packet to send [20:58:26]OFD Sender: No OFD packet to send [20:58:31]OFD Sender: No OFD packet to send [20:58:36]OFD Sender: No OFD packet to send [20:58:41]OFD Sender: No OFD packet to send [20:58:46]OFD Sender: No OFD packet to send [20:58:51]OFD Sender: No OFD packet to send [20:58:56]OFD Sender: No OFD packet to send [20:59:01]OFD Sender: No OFD packet to send [20:59:06]OFD Sender: No OFD packet to send [20:59:11]OFD Sender: No OFD packet to send [20:59:16]OFD Sender: No OFD packet to send [20:59:21]OFD Sender: No OFD packet to send [20:59:26]OFD Sender: No OFD packet to send [20:59:31]OFD Sender: No OFD packet to send [20:59:36]OFD Sender: No OFD packet to send [20:59:41]OFD Sender: No OFD packet to send [20:59:46]OFD Sender: No OFD packet to send [20:59:51]OFD Sender: No OFD packet to send [20:59:56]OFD Sender: No OFD packet to send [21:00:01]OFD Sender: No OFD packet to send [21:00:06]OFD Sender: No OFD packet to send [21:00:11]OFD Sender: No OFD packet to send [21:00:16]OFD Sender: No OFD packet to send [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]accept exits with 9 [21:05:21]New connection [21:05:21]New thread 3066781028 created [21:05:21]Thread 3066637668 joined [21:05:21]Waiting for new connection... [21:05:21] Sock 9.Parse request [21:05:21]Sock 9.Check first char [21:05:21]Sock 9.First char is OK [21:05:21]request: POST /json_proto HTTP/1.0 [21:05:21]Method: POST [21:05:21]URL: /json_proto [21:05:21]Method is POST - this is cgi request [21:05:21]url: /json_proto [21:05:21]query_string will be loaded in cgi processing [21:05:21]execute_cgi json_proto POST (null) [21:05:21]execute_cgi path=json_proto method=POST [21:05:21]POST find Content-Length [21:05:21]Host: 172.17.63.3:8080 [21:05:21]Content-Length: 676 [21:05:21]Content-Type: application/json [21:05:21] [21:05:21]POST finish read [21:05:21]Found Content-Length = 676 [21:05:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:21]execute_script... [21:05: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)98499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:21]POST & json_proto [21:05:21]process_json_proto [21:05:21]json parsed OK: [21:05:21]protocol is kg_v1.0 [21:05:21]action value=close_receipt [21:05:21]process_action close_receipt [21:05:21]cmd_close_receipt [21:05:21]MH_GetDate [21:05:21]Write to MH i2c: F0 00 00 93 2A AC [21:05:21]Write i2c OK [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: F0 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: F0 09 00 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: F0 09 00 93 2A 00 92 B6 1A 67 50 D1 6C 64 6F [21:05:21]GetLastDocTimeStamp 1729803390 [21:05:21]current date 1729803922 [21:05:21]FM_GetShiftState [21:05:21]SAM_PROTO_GetShiftState [21:05:21]wFMCommunicate request_size=4 [21:05:21]MH_SAM_APDU [21:05:21]CAPDU: 80 13 01 00 [21:05:21]Write to MH i2c: E2 08 00 94 2A 80 13 01 00 00 00 00 00 3B [21:05:21]Write i2c OK [21:05:21]MH_I2C_Read... [21:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:21]Read from MH i2c: E2 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 0E 00 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 0E 00 94 2A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 88 [21:05:21]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:05:21]wFMCommunicate OK [21:05:21]SAM_PROTO_GetShiftState done [21:05:21]FM_GetShiftState done [21:05:21]opened in 1729729836 [21:05:21]opened+sec_in_day 1729816236 [21:05:21]quantity*price = 30038 [21:05:21]sum+1 = 30039 [21:05:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 316 24.10.2024 21:05 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155691 ФПД: 150941822250778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210522&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155691&fm=150941822250778&tin=02508201610067®Number=0000000000091693&sum=30000 [21:05:22]StoreToDocumentArchive [21:05:22]shift 534 fd 155691 [21:05:22]save to /storage/0534/doc_00155691 [21:05:22]save last doc name /storage/0534/doc_00155691 to /storage/kkm_last_doc_name [21:05:22]save OK [21:05:22]Clear old archive folders... [21:05:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:22]tlvbuf is 01F2FE00 [21:05:22]SAM_PROTO_ClearQueue [21:05:22]wFMCommunicate request_size=4 [21:05:22]MH_SAM_APDU [21:05:22]CAPDU: 80 09 00 00 [21:05:22]Write to MH i2c: E2 08 00 A1 2A 80 09 00 00 00 00 00 00 3D [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:22]Read from MH i2c: E2 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 03 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 03 00 A1 2A 00 90 00 3F [21:05:22]RAPDU: 90 00 [21:05:22]wFMCommunicate OK [21:05:22]SAM_PROTO_ClearQueue done [21:05:22]KKMCreateOFDPacket [21:05:22]OFDProtocolAddRootSTLVToBuf [21:05:22]FM_MakeSignedData [21:05:22]FM_MakeSignedData [21:05:22]SAM_PROTO_SignData [21:05:22]wFMCommunicate request_size=4 [21:05:22]MH_SAM_APDU [21:05:22]CAPDU: 80 0D 01 02 [21:05:22]Write to MH i2c: E2 08 00 A2 2A 80 0D 01 02 00 00 00 00 45 [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:22]Read from MH i2c: E2 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 03 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 03 00 A2 2A 00 90 00 40 [21:05:22]RAPDU: 90 00 [21:05:22]wFMCommunicate OK [21:05:22]wFMCommunicate request_size=255 [21:05:22]MH_SAM_APDU [21:05: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 92 B6 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 60 02 00 35 04 06 00 89 [21:05:22]Write to MH i2c: E2 02 01 A3 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 92 B6 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 60 02 00 35 04 06 00 89 00 00 01 [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:22]Read from MH i2c: E2 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 03 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 03 00 A3 2A 00 90 00 41 [21:05:22]RAPDU: 90 00 [21:05:22]wFMCommunicate OK [21:05:22]wFMCommunicate request_size=10 [21:05:22]MH_SAM_APDU [21:05:22]CAPDU: 80 0D 02 02 05 47 E1 B2 6F 1A [21:05:22]Write to MH i2c: E2 0D 00 A4 2A 80 0D 02 02 05 00 47 E1 B2 6F 1A 00 00 B5 [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:22]Read from MH i2c: E2 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 03 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 03 00 A4 2A 00 90 00 42 [21:05:22]RAPDU: 90 00 [21:05:22]wFMCommunicate OK [21:05:22]wFMCommunicate request_size=4 [21:05:22]MH_SAM_APDU [21:05:22]CAPDU: 80 0D 03 02 [21:05:22]Write to MH i2c: E2 08 00 A5 2A 80 0D 03 02 00 00 00 00 4A [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:22]Read from MH i2c: E2 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 0B 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 0B 00 A5 2A 00 63 B2 9C 62 5A 0D 9B 10 90 00 70 [21:05:22]RAPDU: 63 B2 9C 62 5A 0D 9B 10 90 00 [21:05:22]wFMCommunicate OK [21:05:22]SAM_PROTO_SignData done [21:05:22]FM_MakeSignedData done [21:05:22]CreateOFDProtocolMessage [21:05:22]wFMCommunicate request_size=4 [21:05:22]MH_SAM_APDU [21:05:22]CAPDU: 80 11 00 00 [21:05:22]Write to MH i2c: E2 08 00 A6 2A 80 11 00 00 00 00 00 00 4A [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:22]Read from MH i2c: E2 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 17 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 17 00 A6 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9F [21:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:05:22]wFMCommunicate OK [21:05:22]CreateOFDProtocolMessage done [21:05:22]OFDSenderStorePacket 155691 [21:05:22]StoreOFDPacket docnum=155691 [21:05:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 17 C4 07 01 B5 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 92 B6 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 60 02 00 35 04 06 00 89 47 E1 B2 6F 1A 63 B2 9C 62 5A 0D 9B 10 [21:05:22]CheckFolder [21:05:22]dirname=/storage/ofd_packets [21:05:22]CheckFolder done [21:05:22]ProducePacketName [21:05:22]name=ofd_packets/00155691 [21:05:22]NVStorageSaveData ofd_packets/00155691 [21:05:22]File name is /storage/ofd_packets/00155691 [21:05:22]Write 301 bytes [21:05:22]NVStorageSaveData done [21:05:22]OFDSenderStorePacket done [21:05:22]KKMCreateOFDPacket done [21:05:22]NVStorageSaveData kkm_last_timestamp [21:05:22]File name is /storage/kkm_last_timestamp [21:05:22]Write 4 bytes [21:05:22]NVStorageSaveData done [21:05:22]ExternCall_PrintAddStr [21:05:22]wPrintStart [21:05:22]Write to MH i2c: 01 00 00 A7 2A D1 [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: 01 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: 01 07 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: 01 07 00 A7 2A 00 00 00 00 00 FF 0F E6 [21:05:22]RasterBufferAndPrint [21:05:22]line Счет N : (1)98499 [21:05:22]line ИНН: 02508201610067 [21:05:22]line Контрольно-Кассовый Чек [21:05:22]line ПРОДАЖА [21:05:22]line ТРК (МРК, ГНК) : 21 [21:05:22]line Товар: 2710124130 [21:05:22]line Аи-92-К-5 [21:05:22]line 4.490 * 66.90 [21:05:22]line = 300.38 [21:05:22]line НДС 12% НСП 1% [21:05:22]line > о реализуемом товаре [21:05:22]line ОКРУГЛЕНИЕ: -0.38 [21:05:22]line ИТОГО: 300.00 [21:05:22]line Внесено: 300.00 [21:05:22]line СДАЧА: 0.00 [21:05:22]line НСП 1% : 2.66 [21:05:22]line НДС 12% : 31.90 [21:05:22]line Наличными: 300.00 [21:05:22]line Безнал.: 0.00 [21:05:22]line Место: АЗС № 143 "Партнер Нефть" [21:05:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:05:22]line СНО: Общий режим [21:05:22]line Чек 316 24.10.2024 21:05 [21:05:22]line Смена: 534 ФФД: 1.0 [21:05:22]line ЗНМ: 0300000096 [21:05:22]line РНМ: 0000000000091693 [21:05:22]line Версия ККМ: 001 [21:05:22]line ФМ: 0000000000871792 [21:05:22]line ФД: 155691 [21:05:22]line ФПД: 150941822250778 [21:05:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210522&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155691&fm=150941822250778&tin=02508201610067®Number=0000000000091693&sum=30000 [21:05:23]OFD Sender: Processing packet 155691 [packets to send 31, broken 30] [21:05:23]ProducePacketName [21:05:23]name=ofd_packets/00155691 [21:05:23]OFD Sender: To server: pG, [21:05:23]CommunicateWithHost lk.salyk.kg:30040 [21:05:23]ConnectInit lk.salyk.kg [21:05:23]written 0, free lines is 4095 [21:05:23]Connected sock=10 [21:05: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 39 32 0F 01 00 00 17 C4 07 01 B5 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 92 B6 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 60 02 00 35 04 06 00 89 47 E1 B2 6F 1A 63 B2 9C 62 5A 0D 9B 10 [21:05: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 39 32 4F 00 00 00 CB 8B 47 00 43 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 39 32 10 04 04 00 2B 60 02 00 F4 03 04 00 0A 5C 1A 67 B6 04 01 00 00 E0 22 5C 17 34 1A BF 00 [21:05:23]CommunicateWithHost err = 0 [21:05:23]CheckOFDResponse [21:05:23]1017 (14) - 77093643461234 [21:05:23]1041 (16) - 0000000000871792 [21:05:23]1040 (4) - 155691 [21:05:23]1012 (4) - 24.10.2024 14:39 [21:05:23]1206 (1) - 0 [21:05:23]OFD Sender: Remove packet 155691 [21:05:23]ProducePacketName [21:05:23]name=ofd_packets/00155691 [21:05:23]NVStorageDeleteData [21:05:23]Write to MH i2c: 01 00 00 D2 2A FC [21:05:23]Write i2c OK [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: 01 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: 01 07 00 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: 01 07 00 D2 2A 00 00 00 00 00 E1 0C F0 [21:05:23]RasterBufferAndPrint [21:05:23]line [21:05:23]line [21:05:23]line [21:05:23]line [21:05:23]line [21:05:23]written 0, free lines is 3303 [21:05:23]process_action close_receipt done [21:05:23]requested_data is exist [21:05:23]produce_requested_data [21:05:23]requested_item fm.sn is exist - process it [21:05:23]wFMCommunicate request_size=4 [21:05:23]MH_SAM_APDU [21:05:23]CAPDU: 80 11 00 00 [21:05:23]Write to MH i2c: E2 08 00 D9 2A 80 11 00 00 00 00 00 00 7D [21:05:23]Write i2c OK [21:05:23]MH_I2C_Read... [21:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:23]Read from MH i2c: E2 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 17 00 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 17 00 D9 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D2 [21:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:05:23]wFMCommunicate OK [21:05:23]requested_item fd.num is exist - process it [21:05:23]SAM_PROTO_GetFieldsCounters [21:05:23]wFMCommunicate request_size=4 [21:05:23]MH_SAM_APDU [21:05:23]CAPDU: 80 13 00 00 [21:05:23]Write to MH i2c: E2 08 00 DA 2A 80 13 00 00 00 00 00 00 80 [21:05:23]Write i2c OK [21:05:23]MH_I2C_Read... [21:05:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:23]Read from MH i2c: E2 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 62 00 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 62 00 DA 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2B 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [21:05: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2B 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:23]wFMCommunicate OK [21:05:23]SAM_PROTO_GetFieldsCounters done [21:05:23]requested_item shift.num is exist - process it [21:05:23]requested_item shift.opened is exist - process it [21:05:23]req_shift_opened [21:05:23]FM_GetShiftState [21:05:23]SAM_PROTO_GetShiftState [21:05:23]wFMCommunicate request_size=4 [21:05:23]MH_SAM_APDU [21:05:23]CAPDU: 80 13 01 00 [21:05:23]Write to MH i2c: E2 08 00 DB 2A 80 13 01 00 00 00 00 00 82 [21:05:23]Write i2c OK [21:05:23]MH_I2C_Read... [21:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:23]Read from MH i2c: E2 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 0E 00 [21:05:23]MH_I2C_Read... [21:05:23]Read from MH i2c: E2 0E 00 DB 2A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 CF [21:05:23]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:05:23]wFMCommunicate OK [21:05:23]SAM_PROTO_GetShiftState done [21:05:23]FM_GetShiftState done [21:05:23]req_shift_opened done [21:05:23]requested_item shift.open_date is exist - process it [21:05:23]req_shift_open_date [21:05:23]req_shift_open_date done [21:05:23]produce_requested_data done [21:05:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155691,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [21:05:23]process_action_free close_receipt [21:05:23]json_value_free [21:05:23]json_value_free done [21:05:23]process_json_proto returns [21:05:23]Send response to host [21:05:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155691,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [21:05:23]free response buf [21:05:23]execute_script done [21:05:23]execute_script returns [21:05:23]free content buf [21:05:23]Sock 9.Close socket [21:05:23]Sock 9.Thread stoped [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:10]accept exits with 8 [21:09:10]New connection [21:09:10]New thread 3066637668 created [21:09:10]Thread 3066781028 joined [21:09:10]Waiting for new connection... [21:09:10] Sock 8.Parse request [21:09:10]Sock 8.Check first char [21:09:10]Sock 8.First char is OK [21:09:10]request: POST /json_proto HTTP/1.0 [21:09:10]Method: POST [21:09:10]URL: /json_proto [21:09:10]Method is POST - this is cgi request [21:09:10]url: /json_proto [21:09:10]query_string will be loaded in cgi processing [21:09:10]execute_cgi json_proto POST (null) [21:09:10]execute_cgi path=json_proto method=POST [21:09:10]POST find Content-Length [21:09:10]Host: 172.17.63.3:8080 [21:09:10]Content-Length: 681 [21:09:10]Content-Type: application/json [21:09:10] [21:09:10]POST finish read [21:09:10]Found Content-Length = 681 [21:09:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:10]execute_script... [21: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)98500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:10]POST & json_proto [21:09:10]process_json_proto [21:09:10]json parsed OK: [21:09:10]protocol is kg_v1.0 [21:09:10]action value=close_receipt [21:09:10]process_action close_receipt [21:09:10]cmd_close_receipt [21:09:10]MH_GetDate [21:09:10]Write to MH i2c: F0 00 00 DC 2A F5 [21:09:10]Write i2c OK [21:09:10]MH_I2C_Read... [21:09:10]Read from MH i2c: F0 [21:09:10]MH_I2C_Read... [21:09:10]Read from MH i2c: F0 09 00 [21:09:10]MH_I2C_Read... [21:09:10]Read from MH i2c: F0 09 00 DC 2A 00 78 B7 1A 67 50 D1 6C 64 9F [21:09:10]GetLastDocTimeStamp 1729803922 [21:09:10]current date 1729804152 [21:09:10]FM_GetShiftState [21:09:10]SAM_PROTO_GetShiftState [21:09:10]wFMCommunicate request_size=4 [21:09:10]MH_SAM_APDU [21:09:10]CAPDU: 80 13 01 00 [21:09:10]Write to MH i2c: E2 08 00 DD 2A 80 13 01 00 00 00 00 00 84 [21:09:10]Write i2c OK [21:09:10]MH_I2C_Read... [21:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:10]Read from MH i2c: E2 [21:09:10]MH_I2C_Read... [21:09:10]Read from MH i2c: E2 0E 00 [21:09:10]MH_I2C_Read... [21:09:10]Read from MH i2c: E2 0E 00 DD 2A 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D1 [21:09:10]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:09:10]wFMCommunicate OK [21:09:10]SAM_PROTO_GetShiftState done [21:09:10]FM_GetShiftState done [21:09:10]opened in 1729729836 [21:09:10]opened+sec_in_day 1729816236 [21:09:10]quantity*price = 100015 [21:09:10]sum+1 = 100017 [21:09:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 317 24.10.2024 21:09 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155692 ФПД: 67353138134820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210912&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155692&fm=67353138134820&tin=02508201610067®Number=0000000000091693&sum=100000 [21:09:11]StoreToDocumentArchive [21:09:11]shift 534 fd 155692 [21:09:11]save to /storage/0534/doc_00155692 [21:09:11]save last doc name /storage/0534/doc_00155692 to /storage/kkm_last_doc_name [21:09:11]save OK [21:09:11]Clear old archive folders... [21:09:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:09:11]tlvbuf is B6F2E830 [21:09:11]SAM_PROTO_ClearQueue [21:09:11]wFMCommunicate request_size=4 [21:09:11]MH_SAM_APDU [21:09:11]CAPDU: 80 09 00 00 [21:09:11]Write to MH i2c: E2 08 00 EA 2A 80 09 00 00 00 00 00 00 86 [21:09:11]Write i2c OK [21:09:11]MH_I2C_Read... [21:09:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:11]Read from MH i2c: E2 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 03 00 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 03 00 EA 2A 00 90 00 88 [21:09:11]RAPDU: 90 00 [21:09:11]wFMCommunicate OK [21:09:11]SAM_PROTO_ClearQueue done [21:09:11]KKMCreateOFDPacket [21:09:11]OFDProtocolAddRootSTLVToBuf [21:09:11]FM_MakeSignedData [21:09:11]FM_MakeSignedData [21:09:11]SAM_PROTO_SignData [21:09:11]wFMCommunicate request_size=4 [21:09:11]MH_SAM_APDU [21:09:11]CAPDU: 80 0D 01 02 [21:09:11]Write to MH i2c: E2 08 00 EB 2A 80 0D 01 02 00 00 00 00 8E [21:09:11]Write i2c OK [21:09:11]MH_I2C_Read... [21:09:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:11]Read from MH i2c: E2 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 03 00 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 03 00 EB 2A 00 90 00 89 [21:09:11]RAPDU: 90 00 [21:09:11]wFMCommunicate OK [21:09:11]wFMCommunicate request_size=255 [21:09:11]MH_SAM_APDU [21:09: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 78 B7 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 60 02 00 35 04 06 00 3D [21:09:11]Write to MH i2c: E2 02 01 EC 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 78 B7 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 60 02 00 35 04 06 00 3D 00 00 ED [21:09:11]Write i2c OK [21:09:11]MH_I2C_Read... [21:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:11]Read from MH i2c: E2 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 03 00 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 03 00 EC 2A 00 90 00 8A [21:09:11]RAPDU: 90 00 [21:09:11]wFMCommunicate OK [21:09:11]wFMCommunicate request_size=10 [21:09:11]MH_SAM_APDU [21:09:11]CAPDU: 80 0D 02 02 05 41 DF DF 7F 24 [21:09:11]Write to MH i2c: E2 0D 00 ED 2A 80 0D 02 02 05 00 41 DF DF 7F 24 00 00 3D [21:09:11]Write i2c OK [21:09:11]MH_I2C_Read... [21:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:11]Read from MH i2c: E2 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 03 00 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 03 00 ED 2A 00 90 00 8B [21:09:11]RAPDU: 90 00 [21:09:11]wFMCommunicate OK [21:09:11]wFMCommunicate request_size=4 [21:09:11]MH_SAM_APDU [21:09:11]CAPDU: 80 0D 03 02 [21:09:11]Write to MH i2c: E2 08 00 EE 2A 80 0D 03 02 00 00 00 00 93 [21:09:11]Write i2c OK [21:09:11]MH_I2C_Read... [21:09:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:11]Read from MH i2c: E2 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 0B 00 [21:09:11]MH_I2C_Read... [21:09:11]Read from MH i2c: E2 0B 00 EE 2A 00 8F 11 C1 60 F7 BE E7 5B 90 00 4C [21:09:11]RAPDU: 8F 11 C1 60 F7 BE E7 5B 90 00 [21:09:11]wFMCommunicate OK [21:09:11]SAM_PROTO_SignData done [21:09:11]FM_MakeSignedData done [21:09:11]CreateOFDProtocolMessage [21:09:11]wFMCommunicate request_size=4 [21:09:11]MH_SAM_APDU [21:09:11]CAPDU: 80 11 00 00 [21:09:11]Write to MH i2c: E2 08 00 EF 2A 80 11 00 00 00 00 00 00 93 [21:09:11]Write i2c OK [21:09:11]MH_I2C_Read... [21:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:12]Read from MH i2c: E2 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: E2 17 00 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: E2 17 00 EF 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E8 [21:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:09:12]wFMCommunicate OK [21:09:12]CreateOFDProtocolMessage done [21:09:12]OFDSenderStorePacket 155692 [21:09:12]StoreOFDPacket docnum=155692 [21:09:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 44 0D 07 01 E2 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 78 B7 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 60 02 00 35 04 06 00 3D 41 DF DF 7F 24 8F 11 C1 60 F7 BE E7 5B [21:09:12]CheckFolder [21:09:12]dirname=/storage/ofd_packets [21:09:12]CheckFolder done [21:09:12]ProducePacketName [21:09:12]name=ofd_packets/00155692 [21:09:12]NVStorageSaveData ofd_packets/00155692 [21:09:12]File name is /storage/ofd_packets/00155692 [21:09:12]Write 301 bytes [21:09:12]NVStorageSaveData done [21:09:12]OFDSenderStorePacket done [21:09:12]KKMCreateOFDPacket done [21:09:12]NVStorageSaveData kkm_last_timestamp [21:09:12]File name is /storage/kkm_last_timestamp [21:09:12]Write 4 bytes [21:09:12]OFD Sender: Processing packet 155692 [packets to send 31, broken 30] [21:09:12]ProducePacketName [21:09:12]name=ofd_packets/00155692 [21:09:12]OFD Sender: To server: pG, [21:09:12]CommunicateWithHost lk.salyk.kg:30040 [21:09:12]ConnectInit lk.salyk.kg [21:09:12]NVStorageSaveData done [21:09:12]ExternCall_PrintAddStr [21:09:12]wPrintStart [21:09:12]Write to MH i2c: 01 00 00 F0 2A 1A [21:09:12]Write i2c OK [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: 01 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: 01 07 00 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: 01 07 00 F0 2A 00 00 00 00 00 FF 0F 2F [21:09:12]RasterBufferAndPrint [21:09:12]line Счет N : (1)98500 [21:09:12]line ИНН: 02508201610067 [21:09:12]line Контрольно-Кассовый Чек [21:09:12]line ПРОДАЖА [21:09:12]line ТРК (МРК, ГНК) : 11 [21:09:12]line Товар: 2710124130 [21:09:12]line Аи-92-К-5 [21:09:12]line 14.950 * 66.90 [21:09:12]line = 1000.16 [21:09:12]line НДС 12% НСП 1% [21:09:12]line > о реализуемом товаре [21:09:12]line ОКРУГЛЕНИЕ: -0.16 [21:09:12]line ИТОГО: 1000.00 [21:09:12]line Внесено: 1000.00 [21:09:12]line СДАЧА: 0.00 [21:09:12]line НСП 1% : 8.85 [21:09:12]line НДС 12% : 106.21 [21:09:12]line Наличными: 1000.00 [21:09:12]line Безнал.: 0.00 [21:09:12]line Место: АЗС № 143 "Партнер Нефть" [21:09:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:09:12]line СНО: Общий режим [21:09:12]line Чек 317 24.10.2024 21:09 [21:09:12]line Смена: 534 ФФД: 1.0 [21:09:12]line ЗНМ: 0300000096 [21:09:12]line РНМ: 0000000000091693 [21:09:12]line Версия ККМ: 001 [21:09:12]line ФМ: 0000000000871792 [21:09:12]line ФД: 155692 [21:09:12]line ФПД: 67353138134820 [21:09:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T210912&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155692&fm=67353138134820&tin=02508201610067®Number=0000000000091693&sum=100000 [21:09:12]Connected sock=10 [21:09:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 44 0D 07 01 E2 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 78 B7 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 60 02 00 35 04 06 00 3D 41 DF DF 7F 24 8F 11 C1 60 F7 BE E7 5B [21:09:12]written 0, free lines is 4095 [21:09:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3F E5 47 00 CB 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 39 32 10 04 04 00 2C 60 02 00 F4 03 04 00 EF 5C 1A 67 B6 04 01 00 00 83 49 EA 5D 4E 98 0A 68 [21:09:12]CommunicateWithHost err = 0 [21:09:12]CheckOFDResponse [21:09:12]1017 (14) - 77093643461234 [21:09:12]1041 (16) - 0000000000871792 [21:09:12]1040 (4) - 155692 [21:09:12]1012 (4) - 24.10.2024 14:42 [21:09:12]1206 (1) - 0 [21:09:12]OFD Sender: Remove packet 155692 [21:09:12]ProducePacketName [21:09:12]name=ofd_packets/00155692 [21:09:12]NVStorageDeleteData [21:09:12]Write to MH i2c: 01 00 00 1B 2B 46 [21:09:12]Write i2c OK [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: 01 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: 01 07 00 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: 01 07 00 1B 2B 00 00 00 00 00 E1 0C 3A [21:09:12]RasterBufferAndPrint [21:09:12]line [21:09:12]line [21:09:12]line [21:09:12]line [21:09:12]line [21:09:12]written 0, free lines is 3305 [21:09:12]process_action close_receipt done [21:09:12]requested_data is exist [21:09:12]produce_requested_data [21:09:12]requested_item fm.sn is exist - process it [21:09:12]wFMCommunicate request_size=4 [21:09:12]MH_SAM_APDU [21:09:12]CAPDU: 80 11 00 00 [21:09:12]Write to MH i2c: E2 08 00 22 2B 80 11 00 00 00 00 00 00 C7 [21:09:12]Write i2c OK [21:09:12]MH_I2C_Read... [21:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:12]Read from MH i2c: E2 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: E2 17 00 [21:09:12]MH_I2C_Read... [21:09:12]Read from MH i2c: E2 17 00 22 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1C [21:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:09:12]wFMCommunicate OK [21:09:12]requested_item fd.num is exist - process it [21:09:12]SAM_PROTO_GetFieldsCounters [21:09:12]wFMCommunicate request_size=4 [21:09:12]MH_SAM_APDU [21:09:12]CAPDU: 80 13 00 00 [21:09:12]Write to MH i2c: E2 08 00 23 2B 80 13 00 00 00 00 00 00 CA [21:09:12]Write i2c OK [21:09:12]MH_I2C_Read... [21:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:13]Read from MH i2c: E2 [21:09:13]MH_I2C_Read... [21:09:13]Read from MH i2c: E2 62 00 [21:09:13]MH_I2C_Read... [21:09:13]OFD Sender: No OFD packet to send [21:09:13]Read from MH i2c: E2 62 00 23 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2C 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [21:09: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2C 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:13]wFMCommunicate OK [21:09:13]SAM_PROTO_GetFieldsCounters done [21:09:13]requested_item shift.num is exist - process it [21:09:13]requested_item shift.opened is exist - process it [21:09:13]req_shift_opened [21:09:13]FM_GetShiftState [21:09:13]SAM_PROTO_GetShiftState [21:09:13]wFMCommunicate request_size=4 [21:09:13]MH_SAM_APDU [21:09:13]CAPDU: 80 13 01 00 [21:09:13]Write to MH i2c: E2 08 00 24 2B 80 13 01 00 00 00 00 00 CC [21:09:13]Write i2c OK [21:09:13]MH_I2C_Read... [21:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:13]Read from MH i2c: E2 [21:09:13]MH_I2C_Read... [21:09:13]Read from MH i2c: E2 0E 00 [21:09:13]MH_I2C_Read... [21:09:13]Read from MH i2c: E2 0E 00 24 2B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 19 [21:09:13]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:09:13]wFMCommunicate OK [21:09:13]SAM_PROTO_GetShiftState done [21:09:13]FM_GetShiftState done [21:09:13]req_shift_opened done [21:09:13]requested_item shift.open_date is exist - process it [21:09:13]req_shift_open_date [21:09:13]req_shift_open_date done [21:09:13]produce_requested_data done [21:09:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155692,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [21:09:13]process_action_free close_receipt [21:09:13]json_value_free [21:09:13]json_value_free done [21:09:13]process_json_proto returns [21:09:13]Send response to host [21:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155692,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [21:09:13]free response buf [21:09:13]execute_script done [21:09:13]execute_script returns [21:09:13]free content buf [21:09:13]Sock 8.Close socket [21:09:13]Sock 8.Thread stoped [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:21]accept exits with 9 [21:10:21]New connection [21:10:21]New thread 3066781028 created [21:10:21]Thread 3066637668 joined [21:10:21]Waiting for new connection... [21:10:21] Sock 9.Parse request [21:10:21]Sock 9.Check first char [21:10:21]Sock 9.First char is OK [21:10:21]request: POST /json_proto HTTP/1.0 [21:10:21]Method: POST [21:10:21]URL: /json_proto [21:10:21]Method is POST - this is cgi request [21:10:21]url: /json_proto [21:10:21]query_string will be loaded in cgi processing [21:10:21]execute_cgi json_proto POST (null) [21:10:21]execute_cgi path=json_proto method=POST [21:10:21]POST find Content-Length [21:10:21]Host: 172.17.63.3:8080 [21:10:21]Content-Length: 676 [21:10:21]Content-Type: application/json [21:10:21] [21:10:21]POST finish read [21:10:21]Found Content-Length = 676 [21:10:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:21]execute_script... [21:10: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)98501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:21]POST & json_proto [21:10:21]process_json_proto [21:10:21]json parsed OK: [21:10:21]protocol is kg_v1.0 [21:10:21]action value=close_receipt [21:10:21]process_action close_receipt [21:10:21]cmd_close_receipt [21:10:21]MH_GetDate [21:10:21]Write to MH i2c: F0 00 00 25 2B 3F [21:10:21]Write i2c OK [21:10:21]MH_I2C_Read... [21:10:21]Read from MH i2c: F0 [21:10:21]MH_I2C_Read... [21:10:21]Read from MH i2c: F0 09 00 [21:10:21]MH_I2C_Read... [21:10:21]Read from MH i2c: F0 09 00 25 2B 00 BE B7 1A 67 50 D1 6C 64 2F [21:10:21]GetLastDocTimeStamp 1729804152 [21:10:21]current date 1729804222 [21:10:21]FM_GetShiftState [21:10:21]SAM_PROTO_GetShiftState [21:10:21]wFMCommunicate request_size=4 [21:10:21]MH_SAM_APDU [21:10:21]CAPDU: 80 13 01 00 [21:10:21]Write to MH i2c: E2 08 00 26 2B 80 13 01 00 00 00 00 00 CE [21:10:21]Write i2c OK [21:10:21]MH_I2C_Read... [21:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:21]Read from MH i2c: E2 [21:10:21]MH_I2C_Read... [21:10:21]Read from MH i2c: E2 0E 00 [21:10:21]MH_I2C_Read... [21:10:21]Read from MH i2c: E2 0E 00 26 2B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1B [21:10:21]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:10:21]wFMCommunicate OK [21:10:21]SAM_PROTO_GetShiftState done [21:10:21]FM_GetShiftState done [21:10:21]opened in 1729729836 [21:10:21]opened+sec_in_day 1729816236 [21:10:21]quantity*price = 20003 [21:10:21]sum+1 = 20004 [21:10:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 318 24.10.2024 21:10 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155693 ФПД: 180713881362080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T211022&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155693&fm=180713881362080&tin=02508201610067®Number=0000000000091693&sum=20000 [21:10:22]StoreToDocumentArchive [21:10:22]shift 534 fd 155693 [21:10:22]save to /storage/0534/doc_00155693 [21:10:22]save last doc name /storage/0534/doc_00155693 to /storage/kkm_last_doc_name [21:10:22]save OK [21:10:22]Clear old archive folders... [21:10:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:10:22]tlvbuf is 01F2FBB0 [21:10:22]SAM_PROTO_ClearQueue [21:10:22]wFMCommunicate request_size=4 [21:10:22]MH_SAM_APDU [21:10:22]CAPDU: 80 09 00 00 [21:10:22]Write to MH i2c: E2 08 00 33 2B 80 09 00 00 00 00 00 00 D0 [21:10:22]Write i2c OK [21:10:22]MH_I2C_Read... [21:10:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:22]Read from MH i2c: E2 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 03 00 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 03 00 33 2B 00 90 00 D2 [21:10:22]RAPDU: 90 00 [21:10:22]wFMCommunicate OK [21:10:22]SAM_PROTO_ClearQueue done [21:10:22]KKMCreateOFDPacket [21:10:22]OFDProtocolAddRootSTLVToBuf [21:10:22]FM_MakeSignedData [21:10:22]FM_MakeSignedData [21:10:22]SAM_PROTO_SignData [21:10:22]wFMCommunicate request_size=4 [21:10:22]MH_SAM_APDU [21:10:22]CAPDU: 80 0D 01 02 [21:10:22]Write to MH i2c: E2 08 00 34 2B 80 0D 01 02 00 00 00 00 D8 [21:10:22]Write i2c OK [21:10:22]MH_I2C_Read... [21:10:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:22]Read from MH i2c: E2 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 03 00 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 03 00 34 2B 00 90 00 D3 [21:10:22]RAPDU: 90 00 [21:10:22]wFMCommunicate OK [21:10:22]wFMCommunicate request_size=255 [21:10:22]MH_SAM_APDU [21:10: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 BE B7 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 60 02 00 35 04 06 00 A4 [21:10:22]Write to MH i2c: E2 02 01 35 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 BE B7 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 60 02 00 35 04 06 00 A4 00 00 AE [21:10:22]Write i2c OK [21:10:22]MH_I2C_Read... [21:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:22]Read from MH i2c: E2 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 03 00 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 03 00 35 2B 00 90 00 D4 [21:10:22]RAPDU: 90 00 [21:10:22]wFMCommunicate OK [21:10:22]wFMCommunicate request_size=10 [21:10:22]MH_SAM_APDU [21:10:22]CAPDU: 80 0D 02 02 05 5B BA B4 5E A0 [21:10:22]Write to MH i2c: E2 0D 00 36 2B 80 0D 02 02 05 00 5B BA B4 5E A0 00 00 AC [21:10:22]Write i2c OK [21:10:22]MH_I2C_Read... [21:10:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:22]Read from MH i2c: E2 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 03 00 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 03 00 36 2B 00 90 00 D5 [21:10:22]RAPDU: 90 00 [21:10:22]wFMCommunicate OK [21:10:22]wFMCommunicate request_size=4 [21:10:22]MH_SAM_APDU [21:10:22]CAPDU: 80 0D 03 02 [21:10:22]Write to MH i2c: E2 08 00 37 2B 80 0D 03 02 00 00 00 00 DD [21:10:22]Write i2c OK [21:10:22]MH_I2C_Read... [21:10:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:22]Read from MH i2c: E2 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 0B 00 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 0B 00 37 2B 00 D7 7C 8E EC 07 07 42 8D 90 00 88 [21:10:22]RAPDU: D7 7C 8E EC 07 07 42 8D 90 00 [21:10:22]wFMCommunicate OK [21:10:22]SAM_PROTO_SignData done [21:10:22]FM_MakeSignedData done [21:10:22]CreateOFDProtocolMessage [21:10:22]wFMCommunicate request_size=4 [21:10:22]MH_SAM_APDU [21:10:22]CAPDU: 80 11 00 00 [21:10:22]Write to MH i2c: E2 08 00 38 2B 80 11 00 00 00 00 00 00 DD [21:10:22]Write i2c OK [21:10:22]MH_I2C_Read... [21:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:22]Read from MH i2c: E2 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 17 00 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: E2 17 00 38 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 32 [21:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:10:22]wFMCommunicate OK [21:10:22]CreateOFDProtocolMessage done [21:10:22]OFDSenderStorePacket 155693 [21:10:22]StoreOFDPacket docnum=155693 [21:10:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D1 CE 07 01 F0 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 BE B7 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 60 02 00 35 04 06 00 A4 5B BA B4 5E A0 D7 7C 8E EC 07 07 42 8D [21:10:22]CheckFolder [21:10:22]dirname=/storage/ofd_packets [21:10:22]CheckFolder done [21:10:22]ProducePacketName [21:10:22]name=ofd_packets/00155693 [21:10:22]NVStorageSaveData ofd_packets/00155693 [21:10:22]File name is /storage/ofd_packets/00155693 [21:10:22]Write 301 bytes [21:10:22]NVStorageSaveData done [21:10:22]OFDSenderStorePacket done [21:10:22]KKMCreateOFDPacket done [21:10:22]NVStorageSaveData kkm_last_timestamp [21:10:22]File name is /storage/kkm_last_timestamp [21:10:22]Write 4 bytes [21:10:22]NVStorageSaveData done [21:10:22]ExternCall_PrintAddStr [21:10:22]wPrintStart [21:10:22]Write to MH i2c: 01 00 00 39 2B 64 [21:10:22]Write i2c OK [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: 01 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: 01 07 00 [21:10:22]MH_I2C_Read... [21:10:22]Read from MH i2c: 01 07 00 39 2B 00 00 00 00 00 FF 0F 79 [21:10:22]RasterBufferAndPrint [21:10:22]line Счет N : (1)98501 [21:10:22]line ИНН: 02508201610067 [21:10:22]line Контрольно-Кассовый Чек [21:10:22]line ПРОДАЖА [21:10:22]line ТРК (МРК, ГНК) : 31 [21:10:22]line Товар: 2710124130 [21:10:22]line Аи-92-К-5 [21:10:22]line 2.990 * 66.90 [21:10:22]line = 200.03 [21:10:22]line НДС 12% НСП 1% [21:10:22]line > о реализуемом товаре [21:10:22]line ОКРУГЛЕНИЕ: -0.03 [21:10:22]line ИТОГО: 200.00 [21:10:22]line Внесено: 200.00 [21:10:22]line СДАЧА: 0.00 [21:10:22]line НСП 1% : 1.77 [21:10:22]line НДС 12% : 21.24 [21:10:22]line Наличными: 200.00 [21:10:22]line Безнал.: 0.00 [21:10:22]line Место: АЗС № 143 "Партнер Нефть" [21:10:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:10:22]line СНО: Общий режим [21:10:22]line Чек 318 24.10.2024 21:10 [21:10:22]line Смена: 534 ФФД: 1.0 [21:10:22]line ЗНМ: 0300000096 [21:10:22]line РНМ: 0000000000091693 [21:10:22]line Версия ККМ: 001 [21:10:22]line ФМ: 0000000000871792 [21:10:22]line ФД: 155693 [21:10:22]line ФПД: 180713881362080 [21:10:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T211022&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155693&fm=180713881362080&tin=02508201610067®Number=0000000000091693&sum=20000 [21:10:23]OFD Sender: Processing packet 155693 [packets to send 31, broken 30] [21:10:23]ProducePacketName [21:10:23]name=ofd_packets/00155693 [21:10:23]OFD Sender: To server: pG, [21:10:23]CommunicateWithHost lk.salyk.kg:30040 [21:10:23]ConnectInit lk.salyk.kg [21:10:23]written 0, free lines is 4095 [21:10:23]Connected sock=10 [21:10: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 39 32 0F 01 00 00 D1 CE 07 01 F0 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 BE B7 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 60 02 00 35 04 06 00 A4 5B BA B4 5E A0 D7 7C 8E EC 07 07 42 8D [21:10: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 39 32 4F 00 00 00 37 36 47 00 F3 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 39 32 10 04 04 00 2D 60 02 00 F4 03 04 00 36 5D 1A 67 B6 04 01 00 00 BD F5 2E 53 C3 7A 12 CB [21:10:23]CommunicateWithHost err = 0 [21:10:23]CheckOFDResponse [21:10:23]1017 (14) - 77093643461234 [21:10:23]1041 (16) - 0000000000871792 [21:10:23]1040 (4) - 155693 [21:10:23]1012 (4) - 24.10.2024 14:44 [21:10:23]1206 (1) - 0 [21:10:23]OFD Sender: Remove packet 155693 [21:10:23]ProducePacketName [21:10:23]name=ofd_packets/00155693 [21:10:23]NVStorageDeleteData [21:10:23]Write to MH i2c: 01 00 00 64 2B 8F [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: 01 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: 01 07 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: 01 07 00 64 2B 00 00 00 00 00 E4 0C 86 [21:10:23]RasterBufferAndPrint [21:10:23]line [21:10:23]line [21:10:23]line [21:10:23]line [21:10:23]line [21:10:23]written 0, free lines is 3309 [21:10:23]process_action close_receipt done [21:10:23]requested_data is exist [21:10:23]produce_requested_data [21:10:23]requested_item fm.sn is exist - process it [21:10:23]wFMCommunicate request_size=4 [21:10:23]MH_SAM_APDU [21:10:23]CAPDU: 80 11 00 00 [21:10:23]Write to MH i2c: E2 08 00 6B 2B 80 11 00 00 00 00 00 00 10 [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:23]Read from MH i2c: E2 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 17 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 17 00 6B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 65 [21:10:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:10:23]wFMCommunicate OK [21:10:23]requested_item fd.num is exist - process it [21:10:23]SAM_PROTO_GetFieldsCounters [21:10:23]wFMCommunicate request_size=4 [21:10:23]MH_SAM_APDU [21:10:23]CAPDU: 80 13 00 00 [21:10:23]Write to MH i2c: E2 08 00 6C 2B 80 13 00 00 00 00 00 00 13 [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:23]Read from MH i2c: E2 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 62 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 62 00 6C 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2D 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [21:10: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2D 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:10:23]wFMCommunicate OK [21:10:23]SAM_PROTO_GetFieldsCounters done [21:10:23]requested_item shift.num is exist - process it [21:10:23]requested_item shift.opened is exist - process it [21:10:23]req_shift_opened [21:10:23]FM_GetShiftState [21:10:23]SAM_PROTO_GetShiftState [21:10:23]wFMCommunicate request_size=4 [21:10:23]MH_SAM_APDU [21:10:23]CAPDU: 80 13 01 00 [21:10:23]Write to MH i2c: E2 08 00 6D 2B 80 13 01 00 00 00 00 00 15 [21:10:23]Write i2c OK [21:10:23]MH_I2C_Read... [21:10:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:23]Read from MH i2c: E2 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 0E 00 [21:10:23]MH_I2C_Read... [21:10:23]Read from MH i2c: E2 0E 00 6D 2B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 62 [21:10:23]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:10:23]wFMCommunicate OK [21:10:23]SAM_PROTO_GetShiftState done [21:10:23]FM_GetShiftState done [21:10:23]req_shift_opened done [21:10:23]requested_item shift.open_date is exist - process it [21:10:23]req_shift_open_date [21:10:23]req_shift_open_date done [21:10:23]produce_requested_data done [21:10:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155693,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [21:10:23]process_action_free close_receipt [21:10:23]json_value_free [21:10:23]json_value_free done [21:10:23]process_json_proto returns [21:10:23]Send response to host [21:10:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155693,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [21:10:23]free response buf [21:10:23]execute_script done [21:10:23]execute_script returns [21:10:23]free content buf [21:10:23]Sock 9.Close socket [21:10:23]Sock 9.Thread stoped [21:10:23]OFD Sender: No OFD packet to send [21:10:28]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:20]accept exits with 8 [21:13:20]New connection [21:13:20]New thread 3066637668 created [21:13:20]Thread 3066781028 joined [21:13:20]Waiting for new connection... [21:13:20] Sock 8.Parse request [21:13:20]Sock 8.Check first char [21:13:20]Sock 8.First char is OK [21:13:20]request: POST /json_proto HTTP/1.0 [21:13:20]Method: POST [21:13:20]URL: /json_proto [21:13:20]Method is POST - this is cgi request [21:13:20]url: /json_proto [21:13:20]query_string will be loaded in cgi processing [21:13:20]execute_cgi json_proto POST (null) [21:13:20]execute_cgi path=json_proto method=POST [21:13:20]POST find Content-Length [21:13:20]Host: 172.17.63.3:8080 [21:13:20]Content-Length: 681 [21:13:20]Content-Type: application/json [21:13:20] [21:13:20]POST finish read [21:13:20]Found Content-Length = 681 [21:13:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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:13:20]execute_script... [21: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)98502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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:13:20]POST & json_proto [21:13:20]process_json_proto [21:13:20]json parsed OK: [21:13:20]protocol is kg_v1.0 [21:13:20]action value=close_receipt [21:13:20]process_action close_receipt [21:13:20]cmd_close_receipt [21:13:20]MH_GetDate [21:13:20]Write to MH i2c: F0 00 00 6E 2B 88 [21:13:20]Write i2c OK [21:13:20]MH_I2C_Read... [21:13:20]Read from MH i2c: F0 [21:13:20]MH_I2C_Read... [21:13:20]Read from MH i2c: F0 09 00 [21:13:20]MH_I2C_Read... [21:13:20]Read from MH i2c: F0 09 00 6E 2B 00 72 B8 1A 67 50 D1 6C 64 2D [21:13:20]GetLastDocTimeStamp 1729804222 [21:13:20]current date 1729804402 [21:13:20]FM_GetShiftState [21:13:20]SAM_PROTO_GetShiftState [21:13:20]wFMCommunicate request_size=4 [21:13:20]MH_SAM_APDU [21:13:20]CAPDU: 80 13 01 00 [21:13:20]Write to MH i2c: E2 08 00 6F 2B 80 13 01 00 00 00 00 00 17 [21:13:20]Write i2c OK [21:13:20]MH_I2C_Read... [21:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:20]Read from MH i2c: E2 [21:13:20]MH_I2C_Read... [21:13:20]Read from MH i2c: E2 0E 00 [21:13:20]MH_I2C_Read... [21:13:20]Read from MH i2c: E2 0E 00 6F 2B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 64 [21:13:20]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:13:20]wFMCommunicate OK [21:13:20]SAM_PROTO_GetShiftState done [21:13:20]FM_GetShiftState done [21:13:20]opened in 1729729836 [21:13:20]opened+sec_in_day 1729816236 [21:13:20]quantity*price = 150056 [21:13:20]sum+1 = 150058 [21:13:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 319 24.10.2024 21:13 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155694 ФПД: 40700936466739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T211322&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155694&fm=40700936466739&tin=02508201610067®Number=0000000000091693&sum=150000 [21:13:22]StoreToDocumentArchive [21:13:22]shift 534 fd 155694 [21:13:22]save to /storage/0534/doc_00155694 [21:13:22]save last doc name /storage/0534/doc_00155694 to /storage/kkm_last_doc_name [21:13:22]save OK [21:13:22]Clear old archive folders... [21:13:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:13:22]tlvbuf is B6F2E6C0 [21:13:22]SAM_PROTO_ClearQueue [21:13:22]wFMCommunicate request_size=4 [21:13:22]MH_SAM_APDU [21:13:22]CAPDU: 80 09 00 00 [21:13:22]Write to MH i2c: E2 08 00 7C 2B 80 09 00 00 00 00 00 00 19 [21:13:22]Write i2c OK [21:13:22]MH_I2C_Read... [21:13:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:22]Read from MH i2c: E2 [21:13:22]MH_I2C_Read... [21:13:22]Read from MH i2c: E2 03 00 [21:13:22]MH_I2C_Read... [21:13:22]Read from MH i2c: E2 03 00 7C 2B 00 90 00 1B [21:13:22]RAPDU: 90 00 [21:13:22]wFMCommunicate OK [21:13:22]SAM_PROTO_ClearQueue done [21:13:22]KKMCreateOFDPacket [21:13:22]OFDProtocolAddRootSTLVToBuf [21:13:22]FM_MakeSignedData [21:13:22]FM_MakeSignedData [21:13:22]SAM_PROTO_SignData [21:13:22]wFMCommunicate request_size=4 [21:13:22]MH_SAM_APDU [21:13:22]CAPDU: 80 0D 01 02 [21:13:22]Write to MH i2c: E2 08 00 7D 2B 80 0D 01 02 00 00 00 00 21 [21:13:22]Write i2c OK [21:13:22]MH_I2C_Read... [21:13:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:22]Read from MH i2c: E2 [21:13:22]MH_I2C_Read... [21:13:22]Read from MH i2c: E2 03 00 [21:13:22]MH_I2C_Read... [21:13:22]Read from MH i2c: E2 03 00 7D 2B 00 90 00 1C [21:13:22]RAPDU: 90 00 [21:13:22]wFMCommunicate OK [21:13:22]wFMCommunicate request_size=255 [21:13:22]MH_SAM_APDU [21:13:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 72 B8 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 60 02 00 35 04 06 00 25 [21:13:22]Write to MH i2c: E2 02 01 7E 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 72 B8 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 60 02 00 35 04 06 00 25 00 00 B6 [21:13:22]Write i2c OK [21:13:22]MH_I2C_Read... [21:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:22]Read from MH i2c: E2 [21:13:22]MH_I2C_Read... [21:13:22]Read from MH i2c: E2 03 00 [21:13:22]MH_I2C_Read... [21:13:22]Read from MH i2c: E2 03 00 7E 2B 00 90 00 1D [21:13:22]RAPDU: 90 00 [21:13:22]wFMCommunicate OK [21:13:22]wFMCommunicate request_size=10 [21:13:22]MH_SAM_APDU [21:13:22]CAPDU: 80 0D 02 02 05 04 6C DC 31 33 [21:13:22]Write to MH i2c: E2 0D 00 7F 2B 80 0D 02 02 05 00 04 6C DC 31 33 00 00 DE [21:13:22]Write i2c OK [21:13:22]MH_I2C_Read... [21:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:22]Read from MH i2c: E2 [21:13:22]MH_I2C_Read... [21:13:22]Read from MH i2c: E2 03 00 [21:13:22]MH_I2C_Read... [21:13:22]Read from MH i2c: E2 03 00 7F 2B 00 90 00 1E [21:13:22]RAPDU: 90 00 [21:13:22]wFMCommunicate OK [21:13:22]wFMCommunicate request_size=4 [21:13:22]MH_SAM_APDU [21:13:22]CAPDU: 80 0D 03 02 [21:13:22]Write to MH i2c: E2 08 00 80 2B 80 0D 03 02 00 00 00 00 26 [21:13:22]Write i2c OK [21:13:22]MH_I2C_Read... [21:13:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:22]Read from MH i2c: E2 [21:13:22]MH_I2C_Read... [21:13:22]Read from MH i2c: E2 0B 00 [21:13:22]MH_I2C_Read... [21:13:22]Read from MH i2c: E2 0B 00 80 2B 00 A5 09 10 73 F7 A2 40 C7 90 00 F8 [21:13:22]RAPDU: A5 09 10 73 F7 A2 40 C7 90 00 [21:13:22]wFMCommunicate OK [21:13:22]SAM_PROTO_SignData done [21:13:22]FM_MakeSignedData done [21:13:22]CreateOFDProtocolMessage [21:13:22]wFMCommunicate request_size=4 [21:13:22]MH_SAM_APDU [21:13:22]CAPDU: 80 11 00 00 [21:13:22]Write to MH i2c: E2 08 00 81 2B 80 11 00 00 00 00 00 00 26 [21:13:22]Write i2c OK [21:13:22]MH_I2C_Read... [21:13:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:22]Read from MH i2c: E2 [21:13:22]MH_I2C_Read... [21:13:22]Read from MH i2c: E2 17 00 [21:13:22]MH_I2C_Read... [21:13:22]Read from MH i2c: E2 17 00 81 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7B [21:13:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:13:22]wFMCommunicate OK [21:13:22]CreateOFDProtocolMessage done [21:13:22]OFDSenderStorePacket 155694 [21:13:22]StoreOFDPacket docnum=155694 [21:13:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 04 FF 07 01 61 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 72 B8 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 60 02 00 35 04 06 00 25 04 6C DC 31 33 A5 09 10 73 F7 A2 40 C7 [21:13:22]CheckFolder [21:13:22]dirname=/storage/ofd_packets [21:13:22]CheckFolder done [21:13:22]ProducePacketName [21:13:22]name=ofd_packets/00155694 [21:13:22]NVStorageSaveData ofd_packets/00155694 [21:13:22]File name is /storage/ofd_packets/00155694 [21:13:22]Write 301 bytes [21:13:22]NVStorageSaveData done [21:13:22]OFDSenderStorePacket done [21:13:22]KKMCreateOFDPacket done [21:13:22]NVStorageSaveData kkm_last_timestamp [21:13:22]File name is /storage/kkm_last_timestamp [21:13:22]Write 4 bytes [21:13:22]NVStorageSaveData done [21:13:22]ExternCall_PrintAddStr [21:13:22]wPrintStart [21:13:22]Write to MH i2c: 01 00 00 82 2B AD [21:13:22]Write i2c OK [21:13:22]MH_I2C_Read... [21:13:22]Read from MH i2c: 01 [21:13:22]MH_I2C_Read... [21:13:22]Read from MH i2c: 01 07 00 [21:13:22]MH_I2C_Read... [21:13:22]Read from MH i2c: 01 07 00 82 2B 00 00 00 00 00 FF 0F C2 [21:13:22]RasterBufferAndPrint [21:13:22]line Счет N : (1)98502 [21:13:22]line ИНН: 02508201610067 [21:13:22]line Контрольно-Кассовый Чек [21:13:22]line ПРОДАЖА [21:13:22]line ТРК (МРК, ГНК) : 31 [21:13:22]line Товар: 2710124130 [21:13:22]line Аи-92-К-5 [21:13:22]line 22.430 * 66.90 [21:13:22]line = 1500.57 [21:13:22]line НДС 12% НСП 1% [21:13:22]line > о реализуемом товаре [21:13:22]line ОКРУГЛЕНИЕ: -0.57 [21:13:22]line ИТОГО: 1500.00 [21:13:22]line Внесено: 1500.00 [21:13:22]line СДАЧА: 0.00 [21:13:22]line НСП 1% : 13.28 [21:13:22]line НДС 12% : 159.35 [21:13:22]line Наличными: 1500.00 [21:13:22]line Безнал.: 0.00 [21:13:22]line Место: АЗС № 143 "Партнер Нефть" [21:13:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:13:22]line СНО: Общий режим [21:13:22]line Чек 319 24.10.2024 21:13 [21:13:22]line Смена: 534 ФФД: 1.0 [21:13:22]line ЗНМ: 0300000096 [21:13:22]line РНМ: 0000000000091693 [21:13:22]line Версия ККМ: 001 [21:13:22]line ФМ: 0000000000871792 [21:13:22]line ФД: 155694 [21:13:22]line ФПД: 40700936466739 [21:13:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T211322&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155694&fm=40700936466739&tin=02508201610067®Number=0000000000091693&sum=150000 [21:13:22]OFD Sender: Processing packet 155694 [packets to send 31, broken 30] [21:13:22]ProducePacketName [21:13:22]name=ofd_packets/00155694 [21:13:22]OFD Sender: To server: pG, [21:13:22]CommunicateWithHost lk.salyk.kg:30040 [21:13:22]ConnectInit lk.salyk.kg [21:13:22]written 0, free lines is 4095 [21:13:23]Connected sock=10 [21:13:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 04 FF 07 01 61 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 72 B8 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 60 02 00 35 04 06 00 25 04 6C DC 31 33 A5 09 10 73 F7 A2 40 C7 [21:13:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A2 E2 47 00 39 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 60 02 00 F4 03 04 00 EA 5D 1A 67 B6 04 01 00 00 81 86 F4 AC C9 4D 3E 22 [21:13:23]CommunicateWithHost err = 0 [21:13:23]CheckOFDResponse [21:13:23]1017 (14) - 77093643461234 [21:13:23]1041 (16) - 0000000000871792 [21:13:23]1040 (4) - 155694 [21:13:23]1012 (4) - 24.10.2024 14:47 [21:13:23]1206 (1) - 0 [21:13:23]OFD Sender: Remove packet 155694 [21:13:23]ProducePacketName [21:13:23]name=ofd_packets/00155694 [21:13:23]NVStorageDeleteData [21:13:23]Write to MH i2c: 01 00 00 AD 2B D8 [21:13:23]Write i2c OK [21:13:23]MH_I2C_Read... [21:13:23]Read from MH i2c: 01 [21:13:23]MH_I2C_Read... [21:13:23]Read from MH i2c: 01 07 00 [21:13:23]MH_I2C_Read... [21:13:23]Read from MH i2c: 01 07 00 AD 2B 00 00 00 00 00 E6 0C D1 [21:13:23]RasterBufferAndPrint [21:13:23]line [21:13:23]line [21:13:23]line [21:13:23]line [21:13:23]line [21:13:23]written 0, free lines is 3308 [21:13:23]process_action close_receipt done [21:13:23]requested_data is exist [21:13:23]produce_requested_data [21:13:23]requested_item fm.sn is exist - process it [21:13:23]wFMCommunicate request_size=4 [21:13:23]MH_SAM_APDU [21:13:23]CAPDU: 80 11 00 00 [21:13:23]Write to MH i2c: E2 08 00 B4 2B 80 11 00 00 00 00 00 00 59 [21:13:23]Write i2c OK [21:13:23]MH_I2C_Read... [21:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:23]Read from MH i2c: E2 [21:13:23]MH_I2C_Read... [21:13:23]Read from MH i2c: E2 17 00 [21:13:23]MH_I2C_Read... [21:13:23]Read from MH i2c: E2 17 00 B4 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AE [21:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:13:23]wFMCommunicate OK [21:13:23]requested_item fd.num is exist - process it [21:13:23]SAM_PROTO_GetFieldsCounters [21:13:23]wFMCommunicate request_size=4 [21:13:23]MH_SAM_APDU [21:13:23]CAPDU: 80 13 00 00 [21:13:23]Write to MH i2c: E2 08 00 B5 2B 80 13 00 00 00 00 00 00 5C [21:13:23]Write i2c OK [21:13:23]MH_I2C_Read... [21:13:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:23]Read from MH i2c: E2 [21:13:23]MH_I2C_Read... [21:13:23]Read from MH i2c: E2 62 00 [21:13:23]MH_I2C_Read... [21:13:23]Read from MH i2c: E2 62 00 B5 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2E 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [21:13: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2E 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:13:23]wFMCommunicate OK [21:13:23]SAM_PROTO_GetFieldsCounters done [21:13:23]requested_item shift.num is exist - process it [21:13:23]requested_item shift.opened is exist - process it [21:13:23]req_shift_opened [21:13:23]FM_GetShiftState [21:13:23]SAM_PROTO_GetShiftState [21:13:23]wFMCommunicate request_size=4 [21:13:23]MH_SAM_APDU [21:13:23]CAPDU: 80 13 01 00 [21:13:23]Write to MH i2c: E2 08 00 B6 2B 80 13 01 00 00 00 00 00 5E [21:13:23]Write i2c OK [21:13:23]MH_I2C_Read... [21:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:23]Read from MH i2c: E2 [21:13:23]MH_I2C_Read... [21:13:23]Read from MH i2c: E2 0E 00 [21:13:23]MH_I2C_Read... [21:13:23]Read from MH i2c: E2 0E 00 B6 2B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AB [21:13:23]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:13:23]wFMCommunicate OK [21:13:23]SAM_PROTO_GetShiftState done [21:13:23]FM_GetShiftState done [21:13:23]req_shift_opened done [21:13:23]requested_item shift.open_date is exist - process it [21:13:23]req_shift_open_date [21:13:23]req_shift_open_date done [21:13:23]produce_requested_data done [21:13:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155694,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [21:13:23]process_action_free close_receipt [21:13:23]json_value_free [21:13:23]json_value_free done [21:13:23]process_json_proto returns [21:13:23]Send response to host [21:13:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155694,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [21:13:23]free response buf [21:13:23]execute_script done [21:13:23]execute_script returns [21:13:23]free content buf [21:13:23]Sock 8.Close socket [21:13:23]Sock 8.Thread stoped [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]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:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]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:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:23]accept exits with 9 [21:20:23]New connection [21:20:23]New thread 3066781028 created [21:20:23]Thread 3066637668 joined [21:20:23]Waiting for new connection... [21:20:23] Sock 9.Parse request [21:20:23]Sock 9.Check first char [21:20:23]Sock 9.First char is OK [21:20:23]request: POST /json_proto HTTP/1.0 [21:20:23]Method: POST [21:20:23]URL: /json_proto [21:20:23]Method is POST - this is cgi request [21:20:23]url: /json_proto [21:20:23]query_string will be loaded in cgi processing [21:20:23]execute_cgi json_proto POST (null) [21:20:23]execute_cgi path=json_proto method=POST [21:20:23]POST find Content-Length [21:20:23]Host: 172.17.63.3:8080 [21:20:23]Content-Length: 678 [21:20:23]Content-Type: application/json [21:20:23] [21:20:23]POST finish read [21:20:23]Found Content-Length = 678 [21:20:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [21:20:23]execute_script... [21:20: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)98503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [21:20:23]POST & json_proto [21:20:23]process_json_proto [21:20:23]json parsed OK: [21:20:23]protocol is kg_v1.0 [21:20:23]action value=close_receipt [21:20:23]process_action close_receipt [21:20:23]cmd_close_receipt [21:20:23]MH_GetDate [21:20:23]Write to MH i2c: F0 00 00 B7 2B D1 [21:20:23]Write i2c OK [21:20:23]MH_I2C_Read... [21:20:23]Read from MH i2c: F0 [21:20:23]MH_I2C_Read... [21:20:23]Read from MH i2c: F0 09 00 [21:20:23]MH_I2C_Read... [21:20:23]Read from MH i2c: F0 09 00 B7 2B 00 19 BA 1A 67 50 D1 6C 64 1F [21:20:23]GetLastDocTimeStamp 1729804402 [21:20:23]current date 1729804825 [21:20:23]FM_GetShiftState [21:20:23]SAM_PROTO_GetShiftState [21:20:23]wFMCommunicate request_size=4 [21:20:23]MH_SAM_APDU [21:20:23]CAPDU: 80 13 01 00 [21:20:23]Write to MH i2c: E2 08 00 B8 2B 80 13 01 00 00 00 00 00 60 [21:20:23]Write i2c OK [21:20:23]MH_I2C_Read... [21:20:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:23]Read from MH i2c: E2 [21:20:23]MH_I2C_Read... [21:20:23]Read from MH i2c: E2 0E 00 [21:20:23]MH_I2C_Read... [21:20:23]Read from MH i2c: E2 0E 00 B8 2B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AD [21:20:23]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:20:23]wFMCommunicate OK [21:20:23]SAM_PROTO_GetShiftState done [21:20:23]FM_GetShiftState done [21:20:23]opened in 1729729836 [21:20:23]opened+sec_in_day 1729816236 [21:20:23]quantity*price = 300075 [21:20:23]sum+1 = 300077 [21:20:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 320 24.10.2024 21:20 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155695 ФПД: 152892331622064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212025&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155695&fm=152892331622064&tin=02508201610067®Number=0000000000091693&sum=300000 [21:20:25]StoreToDocumentArchive [21:20:25]shift 534 fd 155695 [21:20:25]save to /storage/0534/doc_00155695 [21:20:25]save last doc name /storage/0534/doc_00155695 to /storage/kkm_last_doc_name [21:20:25]save OK [21:20:25]Clear old archive folders... [21:20:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:20:25]tlvbuf is 0204C340 [21:20:25]SAM_PROTO_ClearQueue [21:20:25]wFMCommunicate request_size=4 [21:20:25]MH_SAM_APDU [21:20:25]CAPDU: 80 09 00 00 [21:20:25]Write to MH i2c: E2 08 00 C5 2B 80 09 00 00 00 00 00 00 62 [21:20:25]Write i2c OK [21:20:25]MH_I2C_Read... [21:20:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:25]Read from MH i2c: E2 [21:20:25]MH_I2C_Read... [21:20:25]Read from MH i2c: E2 03 00 [21:20:25]MH_I2C_Read... [21:20:25]Read from MH i2c: E2 03 00 C5 2B 00 90 00 64 [21:20:25]RAPDU: 90 00 [21:20:25]wFMCommunicate OK [21:20:25]SAM_PROTO_ClearQueue done [21:20:25]KKMCreateOFDPacket [21:20:25]OFDProtocolAddRootSTLVToBuf [21:20:25]FM_MakeSignedData [21:20:25]FM_MakeSignedData [21:20:25]SAM_PROTO_SignData [21:20:25]wFMCommunicate request_size=4 [21:20:25]MH_SAM_APDU [21:20:25]CAPDU: 80 0D 01 02 [21:20:25]Write to MH i2c: E2 08 00 C6 2B 80 0D 01 02 00 00 00 00 6A [21:20:25]Write i2c OK [21:20:25]MH_I2C_Read... [21:20:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:25]Read from MH i2c: E2 [21:20:25]MH_I2C_Read... [21:20:25]Read from MH i2c: E2 03 00 [21:20:25]MH_I2C_Read... [21:20:25]Read from MH i2c: E2 03 00 C6 2B 00 90 00 65 [21:20:25]RAPDU: 90 00 [21:20:25]wFMCommunicate OK [21:20:25]wFMCommunicate request_size=255 [21:20:25]MH_SAM_APDU [21:20:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 40 01 00 00 F4 03 04 00 19 BA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 60 02 00 35 04 06 00 8B 0E 05 1D [21:20:25]Write to MH i2c: E2 02 01 C7 2B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 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 40 01 00 00 F4 03 04 00 19 BA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 60 02 00 35 04 06 00 8B 0E 05 1D 00 00 24 [21:20:25]Write i2c OK [21:20:25]MH_I2C_Read... [21:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:25]Read from MH i2c: E2 [21:20:25]MH_I2C_Read... [21:20:25]Read from MH i2c: E2 03 00 [21:20:25]MH_I2C_Read... [21:20:25]Read from MH i2c: E2 03 00 C7 2B 00 90 00 66 [21:20:25]RAPDU: 90 00 [21:20:25]wFMCommunicate OK [21:20:25]wFMCommunicate request_size=7 [21:20:25]MH_SAM_APDU [21:20:25]CAPDU: 80 0D 02 02 02 7E B0 [21:20:25]Write to MH i2c: E2 0A 00 C8 2B 80 0D 02 02 02 00 7E B0 00 00 9F [21:20:25]Write i2c OK [21:20:25]MH_I2C_Read... [21:20:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:25]Read from MH i2c: E2 [21:20:25]MH_I2C_Read... [21:20:25]Read from MH i2c: E2 03 00 [21:20:25]MH_I2C_Read... [21:20:25]Read from MH i2c: E2 03 00 C8 2B 00 90 00 67 [21:20:25]RAPDU: 90 00 [21:20:25]wFMCommunicate OK [21:20:25]wFMCommunicate request_size=4 [21:20:25]MH_SAM_APDU [21:20:25]CAPDU: 80 0D 03 02 [21:20:25]Write to MH i2c: E2 08 00 C9 2B 80 0D 03 02 00 00 00 00 6F [21:20:25]Write i2c OK [21:20:25]MH_I2C_Read... [21:20:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:25]Read from MH i2c: E2 [21:20:25]MH_I2C_Read... [21:20:25]Read from MH i2c: E2 0B 00 [21:20:25]MH_I2C_Read... [21:20:25]Read from MH i2c: E2 0B 00 C9 2B 00 74 A9 23 4B E1 1A B7 C1 90 00 6E [21:20:25]RAPDU: 74 A9 23 4B E1 1A B7 C1 90 00 [21:20:25]wFMCommunicate OK [21:20:25]SAM_PROTO_SignData done [21:20:25]FM_MakeSignedData done [21:20:25]CreateOFDProtocolMessage [21:20:25]wFMCommunicate request_size=4 [21:20:25]MH_SAM_APDU [21:20:25]CAPDU: 80 11 00 00 [21:20:25]Write to MH i2c: E2 08 00 CA 2B 80 11 00 00 00 00 00 00 6F [21:20:25]Write i2c OK [21:20:25]MH_I2C_Read... [21:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:25]Read from MH i2c: E2 [21:20:25]MH_I2C_Read... [21:20:25]Read from MH i2c: E2 17 00 [21:20:25]MH_I2C_Read... [21:20:25]Read from MH i2c: E2 17 00 CA 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C4 [21:20:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:20:25]wFMCommunicate OK [21:20:25]CreateOFDProtocolMessage done [21:20:25]OFDSenderStorePacket 155695 [21:20:25]StoreOFDPacket docnum=155695 [21:20:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 32 EB 04 01 DA 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 40 01 00 00 F4 03 04 00 19 BA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 60 02 00 35 04 06 00 8B 0E 05 1D 7E B0 74 A9 23 4B E1 1A B7 C1 [21:20:25]CheckFolder [21:20:25]dirname=/storage/ofd_packets [21:20:25]CheckFolder done [21:20:25]ProducePacketName [21:20:25]name=ofd_packets/00155695 [21:20:25]NVStorageSaveData ofd_packets/00155695 [21:20:25]File name is /storage/ofd_packets/00155695 [21:20:25]Write 298 bytes [21:20:25]NVStorageSaveData done [21:20:25]OFDSenderStorePacket done [21:20:25]KKMCreateOFDPacket done [21:20:25]NVStorageSaveData kkm_last_timestamp [21:20:25]File name is /storage/kkm_last_timestamp [21:20:25]Write 4 bytes [21:20:25]NVStorageSaveData done [21:20:25]ExternCall_PrintAddStr [21:20:25]wPrintStart [21:20:25]Write to MH i2c: 01 00 00 CB 2B F6 [21:20:25]Write i2c OK [21:20:25]MH_I2C_Read... [21:20:25]Read from MH i2c: 01 [21:20:25]MH_I2C_Read... [21:20:25]Read from MH i2c: 01 07 00 [21:20:25]MH_I2C_Read... [21:20:25]Read from MH i2c: 01 07 00 CB 2B 00 00 00 00 00 FF 0F 0B [21:20:25]RasterBufferAndPrint [21:20:25]line Счет N : (1)98503 [21:20:25]line ИНН: 02508201610067 [21:20:25]line Контрольно-Кассовый Чек [21:20:25]line ПРОДАЖА [21:20:25]line ТРК (МРК, ГНК) : 32 [21:20:25]line Товар: 2710194210 [21:20:25]line ДТ-К-5 [21:20:25]line 39.380 * 76.20 [21:20:25]line = 3000.76 [21:20:25]line НДС 12% НСП 1% [21:20:25]line > о реализуемом товаре [21:20:25]line ОКРУГЛЕНИЕ: -0.76 [21:20:25]line ИТОГО: 3000.00 [21:20:25]line Внесено: 3000.00 [21:20:25]line СДАЧА: 0.00 [21:20:25]line НСП 1% : 26.55 [21:20:25]line НДС 12% : 318.66 [21:20:25]line Наличными: 3000.00 [21:20:25]line Безнал.: 0.00 [21:20:25]line Место: АЗС № 143 "Партнер Нефть" [21:20:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:20:25]line СНО: Общий режим [21:20:25]line Чек 320 24.10.2024 21:20 [21:20:25]line Смена: 534 ФФД: 1.0 [21:20:25]line ЗНМ: 0300000096 [21:20:25]line РНМ: 0000000000091693 [21:20:25]line Версия ККМ: 001 [21:20:25]line ФМ: 0000000000871792 [21:20:25]line ФД: 155695 [21:20:25]line ФПД: 152892331622064 [21:20:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212025&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155695&fm=152892331622064&tin=02508201610067®Number=0000000000091693&sum=300000 [21:20:25]OFD Sender: Processing packet 155695 [packets to send 31, broken 30] [21:20:25]ProducePacketName [21:20:25]name=ofd_packets/00155695 [21:20:25]OFD Sender: To server: pG, [21:20:25]CommunicateWithHost lk.salyk.kg:30040 [21:20:25]ConnectInit lk.salyk.kg [21:20:25]written 0, free lines is 4095 [21:20:26]Connected sock=10 [21:20: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 39 32 0C 01 00 00 32 EB 04 01 DA 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 40 01 00 00 F4 03 04 00 19 BA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 60 02 00 35 04 06 00 8B 0E 05 1D 7E B0 74 A9 23 4B E1 1A B7 C1 [21:20: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 39 32 4F 00 00 00 12 04 47 00 7D 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 39 32 10 04 04 00 2F 60 02 00 F4 03 04 00 91 5F 1A 67 B6 04 01 00 00 BD 08 0C 8A 67 08 70 0F [21:20:26]CommunicateWithHost err = 0 [21:20:26]CheckOFDResponse [21:20:26]1017 (14) - 77093643461234 [21:20:26]1041 (16) - 0000000000871792 [21:20:26]1040 (4) - 155695 [21:20:26]1012 (4) - 24.10.2024 14:54 [21:20:26]1206 (1) - 0 [21:20:26]OFD Sender: Remove packet 155695 [21:20:26]ProducePacketName [21:20:26]name=ofd_packets/00155695 [21:20:26]NVStorageDeleteData [21:20:26]Write to MH i2c: 01 00 00 F6 2B 21 [21:20:26]Write i2c OK [21:20:26]MH_I2C_Read... [21:20:26]Read from MH i2c: 01 [21:20:26]MH_I2C_Read... [21:20:26]Read from MH i2c: 01 07 00 [21:20:26]MH_I2C_Read... [21:20:26]Read from MH i2c: 01 07 00 F6 2B 00 00 00 00 00 DF 0C 13 [21:20:26]RasterBufferAndPrint [21:20:26]line [21:20:26]line [21:20:26]line [21:20:26]line [21:20:26]line [21:20:26]written 0, free lines is 3303 [21:20:26]process_action close_receipt done [21:20:26]requested_data is exist [21:20:26]produce_requested_data [21:20:26]requested_item fm.sn is exist - process it [21:20:26]wFMCommunicate request_size=4 [21:20:26]MH_SAM_APDU [21:20:26]CAPDU: 80 11 00 00 [21:20:26]Write to MH i2c: E2 08 00 FD 2B 80 11 00 00 00 00 00 00 A2 [21:20:26]Write i2c OK [21:20:26]MH_I2C_Read... [21:20:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:26]Read from MH i2c: E2 [21:20:26]MH_I2C_Read... [21:20:26]Read from MH i2c: E2 17 00 [21:20:26]MH_I2C_Read... [21:20:26]Read from MH i2c: E2 17 00 FD 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F7 [21:20:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:20:26]wFMCommunicate OK [21:20:26]requested_item fd.num is exist - process it [21:20:26]SAM_PROTO_GetFieldsCounters [21:20:26]wFMCommunicate request_size=4 [21:20:26]MH_SAM_APDU [21:20:26]CAPDU: 80 13 00 00 [21:20:26]Write to MH i2c: E2 08 00 FE 2B 80 13 00 00 00 00 00 00 A5 [21:20:26]Write i2c OK [21:20:26]MH_I2C_Read... [21:20:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:26]Read from MH i2c: E2 [21:20:26]MH_I2C_Read... [21:20:26]Read from MH i2c: E2 62 00 [21:20:26]MH_I2C_Read... [21:20:26]Read from MH i2c: E2 62 00 FE 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2F 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [21: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2F 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:20:26]wFMCommunicate OK [21:20:26]SAM_PROTO_GetFieldsCounters done [21:20:26]requested_item shift.num is exist - process it [21:20:26]requested_item shift.opened is exist - process it [21:20:26]req_shift_opened [21:20:26]FM_GetShiftState [21:20:26]SAM_PROTO_GetShiftState [21:20:26]wFMCommunicate request_size=4 [21:20:26]MH_SAM_APDU [21:20:26]CAPDU: 80 13 01 00 [21:20:26]Write to MH i2c: E2 08 00 FF 2B 80 13 01 00 00 00 00 00 A7 [21:20:26]Write i2c OK [21:20:26]MH_I2C_Read... [21:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:26]Read from MH i2c: E2 [21:20:26]MH_I2C_Read... [21:20:26]Read from MH i2c: E2 0E 00 [21:20:26]MH_I2C_Read... [21:20:26]Read from MH i2c: E2 0E 00 FF 2B 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F4 [21:20:26]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:20:26]wFMCommunicate OK [21:20:26]SAM_PROTO_GetShiftState done [21:20:26]FM_GetShiftState done [21:20:26]req_shift_opened done [21:20:26]requested_item shift.open_date is exist - process it [21:20:26]req_shift_open_date [21:20:26]req_shift_open_date done [21:20:26]produce_requested_data done [21:20:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155695,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [21:20:26]process_action_free close_receipt [21:20:26]json_value_free [21:20:26]json_value_free done [21:20:26]process_json_proto returns [21:20:26]Send response to host [21:20:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155695,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [21:20:26]free response buf [21:20:26]execute_script done [21:20:26]execute_script returns [21:20:26]free content buf [21:20:26]Sock 9.Close socket [21:20:26]Sock 9.Thread stoped [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]accept exits with 8 [21:20:56]New connection [21:20:56]New thread 3066637668 created [21:20:56]Thread 3066781028 joined [21:20:56]Waiting for new connection... [21:20:56] Sock 8.Parse request [21:20:56]Sock 8.Check first char [21:20:56]Sock 8.First char is OK [21:20:56]request: POST /json_proto HTTP/1.0 [21:20:56]Method: POST [21:20:56]URL: /json_proto [21:20:56]Method is POST - this is cgi request [21:20:56]url: /json_proto [21:20:56]query_string will be loaded in cgi processing [21:20:56]execute_cgi json_proto POST (null) [21:20:56]execute_cgi path=json_proto method=POST [21:20:56]POST find Content-Length [21:20:56]Host: 172.17.63.3:8080 [21:20:56]Content-Length: 676 [21:20:56]Content-Type: application/json [21:20:56] [21:20:56]POST finish read [21:20:56]Found Content-Length = 676 [21:20:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:56]execute_script... [21:20:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:56]POST & json_proto [21:20:56]process_json_proto [21:20:56]json parsed OK: [21:20:56]protocol is kg_v1.0 [21:20:56]action value=close_receipt [21:20:56]process_action close_receipt [21:20:56]cmd_close_receipt [21:20:56]MH_GetDate [21:20:56]Write to MH i2c: F0 00 00 00 2C 1B [21:20:56]Write i2c OK [21:20:56]MH_I2C_Read... [21:20:56]Read from MH i2c: F0 [21:20:56]MH_I2C_Read... [21:20:56]Read from MH i2c: F0 09 00 [21:20:56]MH_I2C_Read... [21:20:56]Read from MH i2c: F0 09 00 00 2C 00 3A BA 1A 67 50 D1 6C 64 8A [21:20:56]GetLastDocTimeStamp 1729804825 [21:20:56]current date 1729804858 [21:20:56]FM_GetShiftState [21:20:56]SAM_PROTO_GetShiftState [21:20:56]wFMCommunicate request_size=4 [21:20:56]MH_SAM_APDU [21:20:56]CAPDU: 80 13 01 00 [21:20:56]Write to MH i2c: E2 08 00 01 2C 80 13 01 00 00 00 00 00 AA [21:20:56]Write i2c OK [21:20:56]MH_I2C_Read... [21:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:56]Read from MH i2c: E2 [21:20:56]MH_I2C_Read... [21:20:56]Read from MH i2c: E2 0E 00 [21:20:56]MH_I2C_Read... [21:20:56]Read from MH i2c: E2 0E 00 01 2C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F7 [21:20:56]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:20:56]wFMCommunicate OK [21:20:56]SAM_PROTO_GetShiftState done [21:20:56]FM_GetShiftState done [21:20:56]opened in 1729729836 [21:20:56]opened+sec_in_day 1729816236 [21:20:56]quantity*price = 20003 [21:20:56]sum+1 = 20004 [21:20:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 321 24.10.2024 21:20 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155696 ФПД: 23080062345181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212058&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155696&fm=23080062345181&tin=02508201610067®Number=0000000000091693&sum=20000 [21:20:57]StoreToDocumentArchive [21:20:57]shift 534 fd 155696 [21:20:57]save to /storage/0534/doc_00155696 [21:20:57]save last doc name /storage/0534/doc_00155696 to /storage/kkm_last_doc_name [21:20:57]save OK [21:20:57]Clear old archive folders... [21:20:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:20:57]tlvbuf is B6EB0AF0 [21:20:57]SAM_PROTO_ClearQueue [21:20:57]wFMCommunicate request_size=4 [21:20:57]MH_SAM_APDU [21:20:57]CAPDU: 80 09 00 00 [21:20:57]Write to MH i2c: E2 08 00 0E 2C 80 09 00 00 00 00 00 00 AC [21:20:57]Write i2c OK [21:20:57]MH_I2C_Read... [21:20:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:57]Read from MH i2c: E2 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: E2 03 00 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: E2 03 00 0E 2C 00 90 00 AE [21:20:57]RAPDU: 90 00 [21:20:57]wFMCommunicate OK [21:20:57]SAM_PROTO_ClearQueue done [21:20:57]KKMCreateOFDPacket [21:20:57]OFDProtocolAddRootSTLVToBuf [21:20:57]FM_MakeSignedData [21:20:57]FM_MakeSignedData [21:20:57]SAM_PROTO_SignData [21:20:57]wFMCommunicate request_size=4 [21:20:57]MH_SAM_APDU [21:20:57]CAPDU: 80 0D 01 02 [21:20:57]Write to MH i2c: E2 08 00 0F 2C 80 0D 01 02 00 00 00 00 B4 [21:20:57]Write i2c OK [21:20:57]MH_I2C_Read... [21:20:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:57]Read from MH i2c: E2 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: E2 03 00 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: E2 03 00 0F 2C 00 90 00 AF [21:20:57]RAPDU: 90 00 [21:20:57]wFMCommunicate OK [21:20:57]wFMCommunicate request_size=255 [21:20:57]MH_SAM_APDU [21:20:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 3A BA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 60 02 00 35 04 06 00 14 [21:20:57]Write to MH i2c: E2 02 01 10 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 3A BA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 60 02 00 35 04 06 00 14 00 00 7F [21:20:57]Write i2c OK [21:20:57]MH_I2C_Read... [21:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:58]Read from MH i2c: E2 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: E2 03 00 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: E2 03 00 10 2C 00 90 00 B0 [21:20:58]RAPDU: 90 00 [21:20:58]wFMCommunicate OK [21:20:58]wFMCommunicate request_size=10 [21:20:58]MH_SAM_APDU [21:20:58]CAPDU: 80 0D 02 02 05 FD BE EA DF DD [21:20:58]Write to MH i2c: E2 0D 00 11 2C 80 0D 02 02 05 00 FD BE EA DF DD 00 00 22 [21:20:58]Write i2c OK [21:20:58]MH_I2C_Read... [21:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:58]Read from MH i2c: E2 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: E2 03 00 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: E2 03 00 11 2C 00 90 00 B1 [21:20:58]RAPDU: 90 00 [21:20:58]wFMCommunicate OK [21:20:58]wFMCommunicate request_size=4 [21:20:58]MH_SAM_APDU [21:20:58]CAPDU: 80 0D 03 02 [21:20:58]Write to MH i2c: E2 08 00 12 2C 80 0D 03 02 00 00 00 00 B9 [21:20:58]Write i2c OK [21:20:58]MH_I2C_Read... [21:20:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:58]Read from MH i2c: E2 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: E2 0B 00 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: E2 0B 00 12 2C 00 6C 60 2B DD 63 18 C5 ED 90 00 BB [21:20:58]RAPDU: 6C 60 2B DD 63 18 C5 ED 90 00 [21:20:58]wFMCommunicate OK [21:20:58]SAM_PROTO_SignData done [21:20:58]FM_MakeSignedData done [21:20:58]CreateOFDProtocolMessage [21:20:58]wFMCommunicate request_size=4 [21:20:58]MH_SAM_APDU [21:20:58]CAPDU: 80 11 00 00 [21:20:58]Write to MH i2c: E2 08 00 13 2C 80 11 00 00 00 00 00 00 B9 [21:20:58]Write i2c OK [21:20:58]MH_I2C_Read... [21:20:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:58]Read from MH i2c: E2 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: E2 17 00 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: E2 17 00 13 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0E [21:20:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:20:58]wFMCommunicate OK [21:20:58]CreateOFDProtocolMessage done [21:20:58]OFDSenderStorePacket 155696 [21:20:58]StoreOFDPacket docnum=155696 [21:20:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E1 38 07 01 4D 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 3A BA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 60 02 00 35 04 06 00 14 FD BE EA DF DD 6C 60 2B DD 63 18 C5 ED [21:20:58]CheckFolder [21:20:58]dirname=/storage/ofd_packets [21:20:58]CheckFolder done [21:20:58]ProducePacketName [21:20:58]name=ofd_packets/00155696 [21:20:58]NVStorageSaveData ofd_packets/00155696 [21:20:58]File name is /storage/ofd_packets/00155696 [21:20:58]Write 301 bytes [21:20:58]NVStorageSaveData done [21:20:58]OFDSenderStorePacket done [21:20:58]KKMCreateOFDPacket done [21:20:58]NVStorageSaveData kkm_last_timestamp [21:20:58]File name is /storage/kkm_last_timestamp [21:20:58]Write 4 bytes [21:20:58]NVStorageSaveData done [21:20:58]ExternCall_PrintAddStr [21:20:58]wPrintStart [21:20:58]Write to MH i2c: 01 00 00 14 2C 40 [21:20:58]Write i2c OK [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: 01 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: 01 07 00 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: 01 07 00 14 2C 00 00 00 00 00 FF 0F 55 [21:20:58]RasterBufferAndPrint [21:20:58]line Счет N : (1)98504 [21:20:58]line ИНН: 02508201610067 [21:20:58]line Контрольно-Кассовый Чек [21:20:58]line ПРОДАЖА [21:20:58]line ТРК (МРК, ГНК) : 31 [21:20:58]line Товар: 2710124130 [21:20:58]line Аи-92-К-5 [21:20:58]line 2.990 * 66.90 [21:20:58]line = 200.03 [21:20:58]line НДС 12% НСП 1% [21:20:58]line > о реализуемом товаре [21:20:58]line ОКРУГЛЕНИЕ: -0.03 [21:20:58]line ИТОГО: 200.00 [21:20:58]line Внесено: 200.00 [21:20:58]line СДАЧА: 0.00 [21:20:58]line НСП 1% : 1.77 [21:20:58]line НДС 12% : 21.24 [21:20:58]line Наличными: 200.00 [21:20:58]line Безнал.: 0.00 [21:20:58]line Место: АЗС № 143 "Партнер Нефть" [21:20:58]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:20:58]line СНО: Общий режим [21:20:58]line Чек 321 24.10.2024 21:20 [21:20:58]line Смена: 534 ФФД: 1.0 [21:20:58]line ЗНМ: 0300000096 [21:20:58]line РНМ: 0000000000091693 [21:20:58]line Версия ККМ: 001 [21:20:58]line ФМ: 0000000000871792 [21:20:58]line ФД: 155696 [21:20:58]line ФПД: 23080062345181 [21:20:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212058&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155696&fm=23080062345181&tin=02508201610067®Number=0000000000091693&sum=20000 [21:20:58]OFD Sender: Processing packet 155696 [packets to send 31, broken 30] [21:20:58]ProducePacketName [21:20:58]name=ofd_packets/00155696 [21:20:58]OFD Sender: To server: pG, [21:20:58]CommunicateWithHost lk.salyk.kg:30040 [21:20:58]ConnectInit lk.salyk.kg [21:20:58]written 0, free lines is 4095 [21:20:58]Write to MH i2c: 01 00 00 3F 2C 6B [21:20:58]Write i2c OK [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: 01 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: 01 07 00 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: 01 07 00 3F 2C 00 00 00 00 00 D4 0C 52 [21:20:58]RasterBufferAndPrint [21:20:58]line [21:20:58]line [21:20:58]line [21:20:58]line [21:20:58]line [21:20:58]written 0, free lines is 3288 [21:20:59]process_action close_receipt done [21:20:59]requested_data is exist [21:20:59]produce_requested_data [21:20:59]requested_item fm.sn is exist - process it [21:20:59]wFMCommunicate request_size=4 [21:20:59]MH_SAM_APDU [21:20:59]CAPDU: 80 11 00 00 [21:20:59]Write to MH i2c: E2 08 00 46 2C 80 11 00 00 00 00 00 00 EC [21:20:59]Write i2c OK [21:20:59]MH_I2C_Read... [21:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:59]Read from MH i2c: E2 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 17 00 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 17 00 46 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 41 [21:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:20:59]wFMCommunicate OK [21:20:59]requested_item fd.num is exist - process it [21:20:59]SAM_PROTO_GetFieldsCounters [21:20:59]wFMCommunicate request_size=4 [21:20:59]MH_SAM_APDU [21:20:59]CAPDU: 80 13 00 00 [21:20:59]Write to MH i2c: E2 08 00 47 2C 80 13 00 00 00 00 00 00 EF [21:20:59]Write i2c OK [21:20:59]MH_I2C_Read... [21:20:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:59]Read from MH i2c: E2 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 62 00 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 62 00 47 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 30 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [21:20: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 30 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:20:59]wFMCommunicate OK [21:20:59]SAM_PROTO_GetFieldsCounters done [21:20:59]requested_item shift.num is exist - process it [21:20:59]requested_item shift.opened is exist - process it [21:20:59]req_shift_opened [21:20:59]FM_GetShiftState [21:20:59]SAM_PROTO_GetShiftState [21:20:59]wFMCommunicate request_size=4 [21:20:59]MH_SAM_APDU [21:20:59]CAPDU: 80 13 01 00 [21:20:59]Write to MH i2c: E2 08 00 48 2C 80 13 01 00 00 00 00 00 F1 [21:20:59]Write i2c OK [21:20:59]MH_I2C_Read... [21:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:59]Read from MH i2c: E2 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 0E 00 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 0E 00 48 2C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3E [21:20:59]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:20:59]wFMCommunicate OK [21:20:59]SAM_PROTO_GetShiftState done [21:20:59]FM_GetShiftState done [21:20:59]req_shift_opened done [21:20:59]requested_item shift.open_date is exist - process it [21:20:59]req_shift_open_date [21:20:59]req_shift_open_date done [21:20:59]produce_requested_data done [21:20:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155696,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [21:20:59]process_action_free close_receipt [21:20:59]json_value_free [21:20:59]json_value_free done [21:20:59]process_json_proto returns [21:20:59]Send response to host [21:20:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155696,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [21:20:59]free response buf [21:20:59]execute_script done [21:20:59]execute_script returns [21:20:59]free content buf [21:20:59]Sock 8.Close socket [21:20:59]Sock 8.Thread stoped [21:23:00]accept exits with 9 [21:23:00]New connection [21:23:00]New thread 3066781028 created [21:23:00]Thread 3066637668 joined [21:23:00]Waiting for new connection... [21:23:00] Sock 9.Parse request [21:23:00]Sock 9.Check first char [21:23:00]Sock 9.First char is OK [21:23:00]request: POST /json_proto HTTP/1.0 [21:23:00]Method: POST [21:23:00]URL: /json_proto [21:23:00]Method is POST - this is cgi request [21:23:00]url: /json_proto [21:23:00]query_string will be loaded in cgi processing [21:23:00]execute_cgi json_proto POST (null) [21:23:00]execute_cgi path=json_proto method=POST [21:23:00]POST find Content-Length [21:23:00]Host: 172.17.63.3:8080 [21:23:00]Content-Length: 681 [21:23:00]Content-Type: application/json [21:23:00] [21:23:00]POST finish read [21:23:00]Found Content-Length = 681 [21:23:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:00]execute_script... [21:23: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)98505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:00]POST & json_proto [21:23:00]process_json_proto [21:23:00]json parsed OK: [21:23:00]protocol is kg_v1.0 [21:23:00]action value=close_receipt [21:23:00]process_action close_receipt [21:23:00]cmd_close_receipt [21:23:00]MH_GetDate [21:23:00]Write to MH i2c: F0 00 00 49 2C 64 [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: F0 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: F0 09 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: F0 09 00 49 2C 00 B6 BA 1A 67 50 D1 6C 64 4F [21:23:00]GetLastDocTimeStamp 1729804858 [21:23:00]current date 1729804982 [21:23:00]FM_GetShiftState [21:23:00]SAM_PROTO_GetShiftState [21:23:00]wFMCommunicate request_size=4 [21:23:00]MH_SAM_APDU [21:23:00]CAPDU: 80 13 01 00 [21:23:00]Write to MH i2c: E2 08 00 4A 2C 80 13 01 00 00 00 00 00 F3 [21:23:00]Write i2c OK [21:23:00]MH_I2C_Read... [21:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:00]Read from MH i2c: E2 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: E2 0E 00 [21:23:00]MH_I2C_Read... [21:23:00]Read from MH i2c: E2 0E 00 4A 2C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 40 [21:23:00]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:23:00]wFMCommunicate OK [21:23:00]SAM_PROTO_GetShiftState done [21:23:00]FM_GetShiftState done [21:23:00]opened in 1729729836 [21:23:00]opened+sec_in_day 1729816236 [21:23:00]quantity*price = 100015 [21:23:00]sum+1 = 100017 [21:23:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 322 24.10.2024 21:23 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155697 ФПД: 194601348020113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212302&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155697&fm=194601348020113&tin=02508201610067®Number=0000000000091693&sum=100000 [21:23:01]StoreToDocumentArchive [21:23:01]shift 534 fd 155697 [21:23:01]save to /storage/0534/doc_00155697 [21:23:01]save last doc name /storage/0534/doc_00155697 to /storage/kkm_last_doc_name [21:23:01]save OK [21:23:01]Clear old archive folders... [21:23:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:23:01]tlvbuf is 01F4F430 [21:23:01]SAM_PROTO_ClearQueue [21:23:01]wFMCommunicate request_size=4 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 09 00 00 [21:23:01]Write to MH i2c: E2 08 00 57 2C 80 09 00 00 00 00 00 00 F5 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 57 2C 00 90 00 F7 [21:23:01]RAPDU: 90 00 [21:23:01]wFMCommunicate OK [21:23:01]SAM_PROTO_ClearQueue done [21:23:01]KKMCreateOFDPacket [21:23:01]OFDProtocolAddRootSTLVToBuf [21:23:01]FM_MakeSignedData [21:23:01]FM_MakeSignedData [21:23:01]SAM_PROTO_SignData [21:23:01]wFMCommunicate request_size=4 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 0D 01 02 [21:23:01]Write to MH i2c: E2 08 00 58 2C 80 0D 01 02 00 00 00 00 FD [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 03 00 58 2C 00 90 00 F8 [21:23:01]RAPDU: 90 00 [21:23:01]wFMCommunicate OK [21:23:01]wFMCommunicate request_size=255 [21:23:01]MH_SAM_APDU [21:23: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 B6 BA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 60 02 00 35 04 06 00 B0 [21:23:01]Write to MH i2c: E2 02 01 59 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 B6 BA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 60 02 00 35 04 06 00 B0 00 00 1A [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 03 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 03 00 59 2C 00 90 00 F9 [21:23:02]RAPDU: 90 00 [21:23:02]wFMCommunicate OK [21:23:02]wFMCommunicate request_size=10 [21:23:02]MH_SAM_APDU [21:23:02]CAPDU: 80 0D 02 02 05 FD 28 38 B7 91 [21:23:02]Write to MH i2c: E2 0D 00 5A 2C 80 0D 02 02 05 00 FD 28 38 B7 91 00 00 AF [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 03 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 03 00 5A 2C 00 90 00 FA [21:23:02]RAPDU: 90 00 [21:23:02]wFMCommunicate OK [21:23:02]wFMCommunicate request_size=4 [21:23:02]MH_SAM_APDU [21:23:02]CAPDU: 80 0D 03 02 [21:23:02]Write to MH i2c: E2 08 00 5B 2C 80 0D 03 02 00 00 00 00 02 [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 0B 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 0B 00 5B 2C 00 B0 03 B2 DB 91 77 72 1E 90 00 DB [21:23:02]RAPDU: B0 03 B2 DB 91 77 72 1E 90 00 [21:23:02]wFMCommunicate OK [21:23:02]SAM_PROTO_SignData done [21:23:02]FM_MakeSignedData done [21:23:02]CreateOFDProtocolMessage [21:23:02]wFMCommunicate request_size=4 [21:23:02]MH_SAM_APDU [21:23:02]CAPDU: 80 11 00 00 [21:23:02]Write to MH i2c: E2 08 00 5C 2C 80 11 00 00 00 00 00 00 02 [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:02]Read from MH i2c: E2 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 17 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: E2 17 00 5C 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 57 [21:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:23:02]wFMCommunicate OK [21:23:02]CreateOFDProtocolMessage done [21:23:02]OFDSenderStorePacket 155697 [21:23:02]StoreOFDPacket docnum=155697 [21:23:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7E 7F 07 01 AD 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 B6 BA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 60 02 00 35 04 06 00 B0 FD 28 38 B7 91 B0 03 B2 DB 91 77 72 1E [21:23:02]CheckFolder [21:23:02]dirname=/storage/ofd_packets [21:23:02]CheckFolder done [21:23:02]ProducePacketName [21:23:02]name=ofd_packets/00155697 [21:23:02]NVStorageSaveData ofd_packets/00155697 [21:23:02]File name is /storage/ofd_packets/00155697 [21:23:02]Write 301 bytes [21:23:02]NVStorageSaveData done [21:23:02]OFDSenderStorePacket done [21:23:02]KKMCreateOFDPacket done [21:23:02]NVStorageSaveData kkm_last_timestamp [21:23:02]File name is /storage/kkm_last_timestamp [21:23:02]Write 4 bytes [21:23:02]NVStorageSaveData done [21:23:02]ExternCall_PrintAddStr [21:23:02]wPrintStart [21:23:02]Write to MH i2c: 01 00 00 5D 2C 89 [21:23:02]Write i2c OK [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: 01 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: 01 07 00 [21:23:02]MH_I2C_Read... [21:23:02]Read from MH i2c: 01 07 00 5D 2C 00 00 00 00 00 FF 0F 9E [21:23:02]RasterBufferAndPrint [21:23:02]line Счет N : (1)98505 [21:23:02]line ИНН: 02508201610067 [21:23:02]line Контрольно-Кассовый Чек [21:23:02]line ПРОДАЖА [21:23:02]line ТРК (МРК, ГНК) : 31 [21:23:02]line Товар: 2710124130 [21:23:02]line Аи-92-К-5 [21:23:02]line 14.950 * 66.90 [21:23:02]line = 1000.16 [21:23:02]line НДС 12% НСП 1% [21:23:02]line > о реализуемом товаре [21:23:02]line ОКРУГЛЕНИЕ: -0.16 [21:23:02]line ИТОГО: 1000.00 [21:23:02]line Внесено: 1000.00 [21:23:02]line СДАЧА: 0.00 [21:23:02]line НСП 1% : 8.85 [21:23:02]line НДС 12% : 106.21 [21:23:02]line Наличными: 1000.00 [21:23:02]line Безнал.: 0.00 [21:23:02]line Место: АЗС № 143 "Партнер Нефть" [21:23:02]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:23:02]line СНО: Общий режим [21:23:02]line Чек 322 24.10.2024 21:23 [21:23:02]line Смена: 534 ФФД: 1.0 [21:23:02]line ЗНМ: 0300000096 [21:23:02]line РНМ: 0000000000091693 [21:23:02]line Версия ККМ: 001 [21:23:02]line ФМ: 0000000000871792 [21:23:02]line ФД: 155697 [21:23:02]line ФПД: 194601348020113 [21:23:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212302&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155697&fm=194601348020113&tin=02508201610067®Number=0000000000091693&sum=100000 [21:23:02]written 0, free lines is 4095 [21:23:03]Write to MH i2c: 01 00 00 88 2C B4 [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: 01 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: 01 07 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: 01 07 00 88 2C 00 00 00 00 00 D8 0C 9F [21:23:03]RasterBufferAndPrint [21:23:03]line [21:23:03]line [21:23:03]line [21:23:03]line [21:23:03]line [21:23:03]written 0, free lines is 3296 [21:23:03]process_action close_receipt done [21:23:03]requested_data is exist [21:23:03]produce_requested_data [21:23:03]requested_item fm.sn is exist - process it [21:23:03]wFMCommunicate request_size=4 [21:23:03]MH_SAM_APDU [21:23:03]CAPDU: 80 11 00 00 [21:23:03]Write to MH i2c: E2 08 00 8F 2C 80 11 00 00 00 00 00 00 35 [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:03]Read from MH i2c: E2 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 17 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 17 00 8F 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8A [21:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:23:03]wFMCommunicate OK [21:23:03]requested_item fd.num is exist - process it [21:23:03]SAM_PROTO_GetFieldsCounters [21:23:03]wFMCommunicate request_size=4 [21:23:03]MH_SAM_APDU [21:23:03]CAPDU: 80 13 00 00 [21:23:03]Write to MH i2c: E2 08 00 90 2C 80 13 00 00 00 00 00 00 38 [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:03]Read from MH i2c: E2 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 62 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 62 00 90 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 31 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [21:23: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 31 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:23:03]wFMCommunicate OK [21:23:03]SAM_PROTO_GetFieldsCounters done [21:23:03]requested_item shift.num is exist - process it [21:23:03]requested_item shift.opened is exist - process it [21:23:03]req_shift_opened [21:23:03]FM_GetShiftState [21:23:03]SAM_PROTO_GetShiftState [21:23:03]wFMCommunicate request_size=4 [21:23:03]MH_SAM_APDU [21:23:03]CAPDU: 80 13 01 00 [21:23:03]Write to MH i2c: E2 08 00 91 2C 80 13 01 00 00 00 00 00 3A [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:03]Read from MH i2c: E2 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 0E 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 0E 00 91 2C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 87 [21:23:03]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:23:03]wFMCommunicate OK [21:23:03]SAM_PROTO_GetShiftState done [21:23:03]FM_GetShiftState done [21:23:03]req_shift_opened done [21:23:03]requested_item shift.open_date is exist - process it [21:23:03]req_shift_open_date [21:23:03]req_shift_open_date done [21:23:03]produce_requested_data done [21:23:03]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155697,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [21:23:03]process_action_free close_receipt [21:23:03]json_value_free [21:23:03]json_value_free done [21:23:03]process_json_proto returns [21:23:03]Send response to host [21:23:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155697,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [21:23:03]free response buf [21:23:03]execute_script done [21:23:03]execute_script returns [21:23:03]free content buf [21:23:03]Sock 9.Close socket [21:23:03]Sock 9.Thread stoped [21:23:08]ConnectInit Can't connect to host [21:23:08]CommunicateWithHost connect error [21:23:08]CommunicateWithHost err = -1 [21:23:08]OFD Sender: Server communicate error [21:23:08]OFD Sender: Processing packet 155696 [packets to send 32, broken 30] [21:23:08]ProducePacketName [21:23:08]name=ofd_packets/00155696 [21:23:08]OFD Sender: To server: pG, [21:23:08]CommunicateWithHost lk.salyk.kg:30040 [21:23:08]ConnectInit lk.salyk.kg [21:23:08]Connected sock=9 [21:23:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E1 38 07 01 4D 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 3A BA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 60 02 00 35 04 06 00 14 FD BE EA DF DD 6C 60 2B DD 63 18 C5 ED [21:23:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4F 28 47 00 5A 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 39 32 10 04 04 00 30 60 02 00 F4 03 04 00 33 60 1A 67 B6 04 01 00 00 EE EE EF 95 43 4D 04 93 [21:23:08]CommunicateWithHost err = 0 [21:23:08]CheckOFDResponse [21:23:08]1017 (14) - 77093643461234 [21:23:08]1041 (16) - 0000000000871792 [21:23:08]1040 (4) - 155696 [21:23:08]1012 (4) - 24.10.2024 14:56 [21:23:08]1206 (1) - 0 [21:23:08]OFD Sender: Remove packet 155696 [21:23:08]ProducePacketName [21:23:08]name=ofd_packets/00155696 [21:23:08]NVStorageDeleteData [21:23:09]OFD Sender: Processing packet 155697 [packets to send 31, broken 30] [21:23:09]ProducePacketName [21:23:09]name=ofd_packets/00155697 [21:23:09]OFD Sender: To server: pG, [21:23:09]CommunicateWithHost lk.salyk.kg:30040 [21:23:09]ConnectInit lk.salyk.kg [21:23:09]Connected sock=9 [21:23: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 39 32 0F 01 00 00 7E 7F 07 01 AD 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 B6 BA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 60 02 00 35 04 06 00 B0 FD 28 38 B7 91 B0 03 B2 DB 91 77 72 1E [21:23: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 39 32 4F 00 00 00 9B 21 47 00 7D 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 39 32 10 04 04 00 31 60 02 00 F4 03 04 00 34 60 1A 67 B6 04 01 00 00 35 94 BD A9 E7 4F EC 87 [21:23:09]CommunicateWithHost err = 0 [21:23:09]CheckOFDResponse [21:23:09]1017 (14) - 77093643461234 [21:23:09]1041 (16) - 0000000000871792 [21:23:09]1040 (4) - 155697 [21:23:09]1012 (4) - 24.10.2024 14:56 [21:23:09]1206 (1) - 0 [21:23:09]OFD Sender: Remove packet 155697 [21:23:09]ProducePacketName [21:23:09]name=ofd_packets/00155697 [21:23:09]NVStorageDeleteData [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]accept exits with 8 [21:24:34]New connection [21:24:34]New thread 3066637668 created [21:24:34]Thread 3066781028 joined [21:24:34]Waiting for new connection... [21:24:34] Sock 8.Parse request [21:24:34]Sock 8.Check first char [21:24:34]Sock 8.First char is OK [21:24:34]request: POST /json_proto HTTP/1.0 [21:24:34]Method: POST [21:24:34]URL: /json_proto [21:24:34]Method is POST - this is cgi request [21:24:34]url: /json_proto [21:24:34]query_string will be loaded in cgi processing [21:24:34]execute_cgi json_proto POST (null) [21:24:34]execute_cgi path=json_proto method=POST [21:24:34]POST find Content-Length [21:24:34]Host: 172.17.63.3:8080 [21:24:34]Content-Length: 676 [21:24:34]Content-Type: application/json [21:24:34] [21:24:34]POST finish read [21:24:34]Found Content-Length = 676 [21:24:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:34]execute_script... [21:24: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)98506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:34]POST & json_proto [21:24:34]process_json_proto [21:24:34]json parsed OK: [21:24:34]protocol is kg_v1.0 [21:24:34]action value=close_receipt [21:24:34]process_action close_receipt [21:24:34]cmd_close_receipt [21:24:34]MH_GetDate [21:24:34]Write to MH i2c: F0 00 00 92 2C AD [21:24:34]Write i2c OK [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: F0 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: F0 09 00 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: F0 09 00 92 2C 00 14 BB 1A 67 50 D1 6C 64 F7 [21:24:34]GetLastDocTimeStamp 1729804982 [21:24:34]current date 1729805076 [21:24:34]FM_GetShiftState [21:24:34]SAM_PROTO_GetShiftState [21:24:34]wFMCommunicate request_size=4 [21:24:34]MH_SAM_APDU [21:24:34]CAPDU: 80 13 01 00 [21:24:34]Write to MH i2c: E2 08 00 93 2C 80 13 01 00 00 00 00 00 3C [21:24:34]Write i2c OK [21:24:34]MH_I2C_Read... [21:24:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:34]Read from MH i2c: E2 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: E2 0E 00 [21:24:34]MH_I2C_Read... [21:24:34]Read from MH i2c: E2 0E 00 93 2C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 89 [21:24:34]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:24:34]wFMCommunicate OK [21:24:34]SAM_PROTO_GetShiftState done [21:24:34]FM_GetShiftState done [21:24:34]opened in 1729729836 [21:24:34]opened+sec_in_day 1729816236 [21:24:34]quantity*price = 60009 [21:24:34]sum+1 = 60010 [21:24:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 323 24.10.2024 21:24 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155698 ФПД: 16694869743660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212436&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155698&fm=16694869743660&tin=02508201610067®Number=0000000000091693&sum=60000 [21:24:35]StoreToDocumentArchive [21:24:35]shift 534 fd 155698 [21:24:35]save to /storage/0534/doc_00155698 [21:24:35]save last doc name /storage/0534/doc_00155698 to /storage/kkm_last_doc_name [21:24:35]save OK [21:24:35]Clear old archive folders... [21:24:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:24:35]tlvbuf is 01F52F70 [21:24:35]SAM_PROTO_ClearQueue [21:24:35]wFMCommunicate request_size=4 [21:24:35]MH_SAM_APDU [21:24:35]CAPDU: 80 09 00 00 [21:24:35]Write to MH i2c: E2 08 00 A0 2C 80 09 00 00 00 00 00 00 3E [21:24:35]Write i2c OK [21:24:35]MH_I2C_Read... [21:24:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:35]Read from MH i2c: E2 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: E2 03 00 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: E2 03 00 A0 2C 00 90 00 40 [21:24:35]RAPDU: 90 00 [21:24:35]wFMCommunicate OK [21:24:35]SAM_PROTO_ClearQueue done [21:24:35]KKMCreateOFDPacket [21:24:35]OFDProtocolAddRootSTLVToBuf [21:24:35]FM_MakeSignedData [21:24:35]FM_MakeSignedData [21:24:35]SAM_PROTO_SignData [21:24:35]wFMCommunicate request_size=4 [21:24:35]MH_SAM_APDU [21:24:35]CAPDU: 80 0D 01 02 [21:24:35]Write to MH i2c: E2 08 00 A1 2C 80 0D 01 02 00 00 00 00 46 [21:24:35]Write i2c OK [21:24:35]MH_I2C_Read... [21:24:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:35]Read from MH i2c: E2 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: E2 03 00 [21:24:35]MH_I2C_Read... [21:24:35]Read from MH i2c: E2 03 00 A1 2C 00 90 00 41 [21:24:35]RAPDU: 90 00 [21:24:35]wFMCommunicate OK [21:24:35]wFMCommunicate request_size=255 [21:24:35]MH_SAM_APDU [21:24: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 14 BB 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 60 02 00 35 04 06 00 0F [21:24:35]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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 14 BB 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 60 02 00 35 04 06 00 0F 00 00 06 [21:24:35]Write i2c OK [21:24:35]MH_I2C_Read... [21:24:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:36]Read from MH i2c: E2 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: E2 03 00 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: E2 03 00 A2 2C 00 90 00 42 [21:24:36]RAPDU: 90 00 [21:24:36]wFMCommunicate OK [21:24:36]wFMCommunicate request_size=10 [21:24:36]MH_SAM_APDU [21:24:36]CAPDU: 80 0D 02 02 05 2F 13 C7 D8 2C [21:24:36]Write to MH i2c: E2 0D 00 A3 2C 80 0D 02 02 05 00 2F 13 C7 D8 2C 00 00 60 [21:24:36]Write i2c OK [21:24:36]MH_I2C_Read... [21:24:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:36]Read from MH i2c: E2 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: E2 03 00 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: E2 03 00 A3 2C 00 90 00 43 [21:24:36]RAPDU: 90 00 [21:24:36]wFMCommunicate OK [21:24:36]wFMCommunicate request_size=4 [21:24:36]MH_SAM_APDU [21:24:36]CAPDU: 80 0D 03 02 [21:24:36]Write to MH i2c: E2 08 00 A4 2C 80 0D 03 02 00 00 00 00 4B [21:24:36]Write i2c OK [21:24:36]MH_I2C_Read... [21:24:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:36]Read from MH i2c: E2 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: E2 0B 00 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: E2 0B 00 A4 2C 00 4D 1D 85 A6 CC 01 2C C2 90 00 9C [21:24:36]RAPDU: 4D 1D 85 A6 CC 01 2C C2 90 00 [21:24:36]wFMCommunicate OK [21:24:36]SAM_PROTO_SignData done [21:24:36]FM_MakeSignedData done [21:24:36]CreateOFDProtocolMessage [21:24:36]wFMCommunicate request_size=4 [21:24:36]MH_SAM_APDU [21:24:36]CAPDU: 80 11 00 00 [21:24:36]Write to MH i2c: E2 08 00 A5 2C 80 11 00 00 00 00 00 00 4B [21:24:36]Write i2c OK [21:24:36]MH_I2C_Read... [21:24:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:36]Read from MH i2c: E2 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: E2 17 00 [21:24:36]MH_I2C_Read... [21:24:36]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 39 32 90 00 A0 [21:24:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:24:36]wFMCommunicate OK [21:24:36]CreateOFDProtocolMessage done [21:24:36]OFDSenderStorePacket 155698 [21:24:36]StoreOFDPacket docnum=155698 [21:24:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6C 34 07 01 D2 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 14 BB 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 60 02 00 35 04 06 00 0F 2F 13 C7 D8 2C 4D 1D 85 A6 CC 01 2C C2 [21:24:36]CheckFolder [21:24:36]dirname=/storage/ofd_packets [21:24:36]CheckFolder done [21:24:36]ProducePacketName [21:24:36]name=ofd_packets/00155698 [21:24:36]NVStorageSaveData ofd_packets/00155698 [21:24:36]File name is /storage/ofd_packets/00155698 [21:24:36]Write 301 bytes [21:24:36]NVStorageSaveData done [21:24:36]OFDSenderStorePacket done [21:24:36]KKMCreateOFDPacket done [21:24:36]NVStorageSaveData kkm_last_timestamp [21:24:36]File name is /storage/kkm_last_timestamp [21:24:36]Write 4 bytes [21:24:36]NVStorageSaveData done [21:24:36]ExternCall_PrintAddStr [21:24:36]wPrintStart [21:24:36]Write to MH i2c: 01 00 00 A6 2C D2 [21:24:36]Write i2c OK [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: 01 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: 01 07 00 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: 01 07 00 A6 2C 00 00 00 00 00 FF 0F E7 [21:24:36]RasterBufferAndPrint [21:24:36]line Счет N : (1)98506 [21:24:36]line ИНН: 02508201610067 [21:24:36]line Контрольно-Кассовый Чек [21:24:36]line ПРОДАЖА [21:24:36]line ТРК (МРК, ГНК) : 31 [21:24:36]line Товар: 2710124130 [21:24:36]line Аи-92-К-5 [21:24:36]line 8.970 * 66.90 [21:24:36]line = 600.09 [21:24:36]line НДС 12% НСП 1% [21:24:36]line > о реализуемом товаре [21:24:36]line ОКРУГЛЕНИЕ: -0.09 [21:24:36]line ИТОГО: 600.00 [21:24:36]line Внесено: 600.00 [21:24:36]line СДАЧА: 0.00 [21:24:36]line НСП 1% : 5.31 [21:24:36]line НДС 12% : 63.73 [21:24:36]line Наличными: 600.00 [21:24:36]line Безнал.: 0.00 [21:24:36]line Место: АЗС № 143 "Партнер Нефть" [21:24:36]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:24:36]line СНО: Общий режим [21:24:36]line Чек 323 24.10.2024 21:24 [21:24:36]line Смена: 534 ФФД: 1.0 [21:24:36]line ЗНМ: 0300000096 [21:24:36]line РНМ: 0000000000091693 [21:24:36]line Версия ККМ: 001 [21:24:36]line ФМ: 0000000000871792 [21:24:36]line ФД: 155698 [21:24:36]line ФПД: 16694869743660 [21:24:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212436&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155698&fm=16694869743660&tin=02508201610067®Number=0000000000091693&sum=60000 [21:24:36]OFD Sender: Processing packet 155698 [packets to send 31, broken 30] [21:24:36]ProducePacketName [21:24:36]name=ofd_packets/00155698 [21:24:36]OFD Sender: To server: pG, [21:24:36]CommunicateWithHost lk.salyk.kg:30040 [21:24:36]ConnectInit lk.salyk.kg [21:24:36]written 0, free lines is 4095 [21:24:36]Connected sock=10 [21:24: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 39 32 0F 01 00 00 6C 34 07 01 D2 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 14 BB 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 60 02 00 35 04 06 00 0F 2F 13 C7 D8 2C 4D 1D 85 A6 CC 01 2C C2 [21:24: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 39 32 4F 00 00 00 DF 44 47 00 47 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 39 32 10 04 04 00 32 60 02 00 F4 03 04 00 8C 60 1A 67 B6 04 01 00 00 E3 D2 4A 30 1B 90 21 2E [21:24:36]CommunicateWithHost err = 0 [21:24:36]CheckOFDResponse [21:24:36]1017 (14) - 77093643461234 [21:24:36]1041 (16) - 0000000000871792 [21:24:36]1040 (4) - 155698 [21:24:36]1012 (4) - 24.10.2024 14:58 [21:24:36]1206 (1) - 0 [21:24:36]OFD Sender: Remove packet 155698 [21:24:36]ProducePacketName [21:24:36]name=ofd_packets/00155698 [21:24:36]NVStorageDeleteData [21:24:36]Write to MH i2c: 01 00 00 D1 2C FD [21:24:36]Write i2c OK [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: 01 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: 01 07 00 [21:24:36]MH_I2C_Read... [21:24:36]Read from MH i2c: 01 07 00 D1 2C 00 00 00 00 00 DC 0C EC [21:24:36]RasterBufferAndPrint [21:24:36]line [21:24:36]line [21:24:36]line [21:24:36]line [21:24:36]line [21:24:36]written 0, free lines is 3298 [21:24:36]process_action close_receipt done [21:24:36]requested_data is exist [21:24:36]produce_requested_data [21:24:36]requested_item fm.sn is exist - process it [21:24:36]wFMCommunicate request_size=4 [21:24:36]MH_SAM_APDU [21:24:36]CAPDU: 80 11 00 00 [21:24:36]Write to MH i2c: E2 08 00 D8 2C 80 11 00 00 00 00 00 00 7E [21:24:36]Write i2c OK [21:24:36]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 D8 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D3 [21:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:24:37]wFMCommunicate OK [21:24:37]requested_item fd.num is exist - process it [21:24:37]SAM_PROTO_GetFieldsCounters [21:24:37]wFMCommunicate request_size=4 [21:24:37]MH_SAM_APDU [21:24:37]CAPDU: 80 13 00 00 [21:24:37]Write to MH i2c: E2 08 00 D9 2C 80 13 00 00 00 00 00 00 81 [21:24:37]Write i2c OK [21:24:37]MH_I2C_Read... [21:24:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:37]Read from MH i2c: E2 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 62 00 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 62 00 D9 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 32 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 1F [21:24: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 32 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:24:37]wFMCommunicate OK [21:24:37]SAM_PROTO_GetFieldsCounters done [21:24:37]requested_item shift.num is exist - process it [21:24:37]requested_item shift.opened is exist - process it [21:24:37]req_shift_opened [21:24:37]FM_GetShiftState [21:24:37]SAM_PROTO_GetShiftState [21:24:37]wFMCommunicate request_size=4 [21:24:37]MH_SAM_APDU [21:24:37]CAPDU: 80 13 01 00 [21:24:37]Write to MH i2c: E2 08 00 DA 2C 80 13 01 00 00 00 00 00 83 [21:24:37]Write i2c OK [21:24:37]MH_I2C_Read... [21:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:37]Read from MH i2c: E2 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 0E 00 [21:24:37]MH_I2C_Read... [21:24:37]Read from MH i2c: E2 0E 00 DA 2C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D0 [21:24:37]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:24:37]wFMCommunicate OK [21:24:37]SAM_PROTO_GetShiftState done [21:24:37]FM_GetShiftState done [21:24:37]req_shift_opened done [21:24:37]requested_item shift.open_date is exist - process it [21:24:37]req_shift_open_date [21:24:37]req_shift_open_date done [21:24:37]produce_requested_data done [21:24:37]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155698,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [21:24:37]process_action_free close_receipt [21:24:37]json_value_free [21:24:37]json_value_free done [21:24:37]process_json_proto returns [21:24:37]Send response to host [21:24:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155698,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [21:24:37]free response buf [21:24:37]execute_script done [21:24:37]execute_script returns [21:24:37]free content buf [21:24:37]Sock 8.Close socket [21:24:37]Sock 8.Thread stoped [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:57]OFD Sender: No OFD packet to send [21:25:02]OFD Sender: No OFD packet to send [21:25:07]OFD Sender: No OFD packet to send [21:25:12]OFD Sender: No OFD packet to send [21:25:17]OFD Sender: No OFD packet to send [21:25:22]OFD Sender: No OFD packet to send [21:25:27]OFD Sender: No OFD packet to send [21:25:32]OFD Sender: No OFD packet to send [21:25:37]OFD Sender: No OFD packet to send [21:25:42]OFD Sender: No OFD packet to send [21:25:47]OFD Sender: No OFD packet to send [21:25:52]OFD Sender: No OFD packet to send [21:25:57]OFD Sender: No OFD packet to send [21:26:02]OFD Sender: No OFD packet to send [21:26:07]OFD Sender: No OFD packet to send [21:26:12]OFD Sender: No OFD packet to send [21:26:17]OFD Sender: No OFD packet to send [21:26:22]OFD Sender: No OFD packet to send [21:26:26]accept exits with 9 [21:26:26]New connection [21:26:26]New thread 3066781028 created [21:26:26]Thread 3066637668 joined [21:26:26]Waiting for new connection... [21:26:26] Sock 9.Parse request [21:26:26]Sock 9.Check first char [21:26:26]Sock 9.First char is OK [21:26:26]request: POST /json_proto HTTP/1.0 [21:26:26]Method: POST [21:26:26]URL: /json_proto [21:26:26]Method is POST - this is cgi request [21:26:26]url: /json_proto [21:26:26]query_string will be loaded in cgi processing [21:26:26]execute_cgi json_proto POST (null) [21:26:26]execute_cgi path=json_proto method=POST [21:26:26]POST find Content-Length [21:26:26]Host: 172.17.63.3:8080 [21:26:26]Content-Length: 676 [21:26:26]Content-Type: application/json [21:26:26] [21:26:26]POST finish read [21:26:26]Found Content-Length = 676 [21:26:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:26]execute_script... [21:26: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)98507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:26]POST & json_proto [21:26:26]process_json_proto [21:26:26]json parsed OK: [21:26:26]protocol is kg_v1.0 [21:26:26]action value=close_receipt [21:26:26]process_action close_receipt [21:26:26]cmd_close_receipt [21:26:26]MH_GetDate [21:26:26]Write to MH i2c: F0 00 00 DB 2C F6 [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: F0 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: F0 09 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: F0 09 00 DB 2C 00 84 BB 1A 67 50 D1 6C 64 B0 [21:26:26]GetLastDocTimeStamp 1729805076 [21:26:26]current date 1729805188 [21:26:26]FM_GetShiftState [21:26:26]SAM_PROTO_GetShiftState [21:26:26]wFMCommunicate request_size=4 [21:26:26]MH_SAM_APDU [21:26:26]CAPDU: 80 13 01 00 [21:26:26]Write to MH i2c: E2 08 00 DC 2C 80 13 01 00 00 00 00 00 85 [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:26]Read from MH i2c: E2 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 0E 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 0E 00 DC 2C 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D2 [21:26:26]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:26:26]wFMCommunicate OK [21:26:26]SAM_PROTO_GetShiftState done [21:26:26]FM_GetShiftState done [21:26:26]opened in 1729729836 [21:26:26]opened+sec_in_day 1729816236 [21:26:26]quantity*price = 50041 [21:26:26]sum+1 = 50042 [21:26:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 324 24.10.2024 21:26 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155699 ФПД: 170006610895537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212628&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155699&fm=170006610895537&tin=02508201610067®Number=0000000000091693&sum=50000 [21:26:27]StoreToDocumentArchive [21:26:27]shift 534 fd 155699 [21:26:27]save to /storage/0534/doc_00155699 [21:26:27]save last doc name /storage/0534/doc_00155699 to /storage/kkm_last_doc_name [21:26:27]save OK [21:26:27]Clear old archive folders... [21:26:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:26:27]tlvbuf is 01F7CF70 [21:26:27]SAM_PROTO_ClearQueue [21:26:27]wFMCommunicate request_size=4 [21:26:27]MH_SAM_APDU [21:26:27]CAPDU: 80 09 00 00 [21:26:27]Write to MH i2c: E2 08 00 E9 2C 80 09 00 00 00 00 00 00 87 [21:26:27]Write i2c OK [21:26:27]MH_I2C_Read... [21:26:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:27]Read from MH i2c: E2 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: E2 03 00 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: E2 03 00 E9 2C 00 90 00 89 [21:26:27]RAPDU: 90 00 [21:26:27]wFMCommunicate OK [21:26:27]SAM_PROTO_ClearQueue done [21:26:27]KKMCreateOFDPacket [21:26:27]OFDProtocolAddRootSTLVToBuf [21:26:27]FM_MakeSignedData [21:26:27]FM_MakeSignedData [21:26:27]SAM_PROTO_SignData [21:26:27]wFMCommunicate request_size=4 [21:26:27]MH_SAM_APDU [21:26:27]CAPDU: 80 0D 01 02 [21:26:27]Write to MH i2c: E2 08 00 EA 2C 80 0D 01 02 00 00 00 00 8F [21:26:27]Write i2c OK [21:26:27]MH_I2C_Read... [21:26:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:27]Read from MH i2c: E2 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: E2 03 00 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: E2 03 00 EA 2C 00 90 00 8A [21:26:27]RAPDU: 90 00 [21:26:27]wFMCommunicate OK [21:26:27]wFMCommunicate request_size=255 [21:26:27]MH_SAM_APDU [21:26: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 84 BB 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 60 02 00 35 04 06 00 9A [21:26:27]Write to MH i2c: E2 02 01 EB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 84 BB 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 60 02 00 35 04 06 00 9A 00 00 6F [21:26:27]Write i2c OK [21:26:27]MH_I2C_Read... [21:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:27]Read from MH i2c: E2 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: E2 03 00 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: E2 03 00 EB 2C 00 90 00 8B [21:26:27]RAPDU: 90 00 [21:26:27]wFMCommunicate OK [21:26:27]wFMCommunicate request_size=10 [21:26:27]MH_SAM_APDU [21:26:27]CAPDU: 80 0D 02 02 05 9E BF A6 E2 B1 [21:26:27]Write to MH i2c: E2 0D 00 EC 2C 80 0D 02 02 05 00 9E BF A6 E2 B1 00 00 32 [21:26:27]Write i2c OK [21:26:27]MH_I2C_Read... [21:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:28]Read from MH i2c: E2 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: E2 03 00 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: E2 03 00 EC 2C 00 90 00 8C [21:26:28]RAPDU: 90 00 [21:26:28]wFMCommunicate OK [21:26:28]wFMCommunicate request_size=4 [21:26:28]MH_SAM_APDU [21:26:28]CAPDU: 80 0D 03 02 [21:26:28]Write to MH i2c: E2 08 00 ED 2C 80 0D 03 02 00 00 00 00 94 [21:26:28]Write i2c OK [21:26:28]MH_I2C_Read... [21:26:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:28]Read from MH i2c: E2 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: E2 0B 00 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: E2 0B 00 ED 2C 00 9A 26 4F E5 FF F4 0F A5 90 00 30 [21:26:28]RAPDU: 9A 26 4F E5 FF F4 0F A5 90 00 [21:26:28]wFMCommunicate OK [21:26:28]SAM_PROTO_SignData done [21:26:28]FM_MakeSignedData done [21:26:28]CreateOFDProtocolMessage [21:26:28]wFMCommunicate request_size=4 [21:26:28]MH_SAM_APDU [21:26:28]CAPDU: 80 11 00 00 [21:26:28]Write to MH i2c: E2 08 00 EE 2C 80 11 00 00 00 00 00 00 94 [21:26:28]Write i2c OK [21:26:28]MH_I2C_Read... [21:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:28]Read from MH i2c: E2 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: E2 17 00 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: E2 17 00 EE 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E9 [21:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:26:28]wFMCommunicate OK [21:26:28]CreateOFDProtocolMessage done [21:26:28]OFDSenderStorePacket 155699 [21:26:28]StoreOFDPacket docnum=155699 [21:26:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4E 04 07 01 15 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 84 BB 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 60 02 00 35 04 06 00 9A 9E BF A6 E2 B1 9A 26 4F E5 FF F4 0F A5 [21:26:28]CheckFolder [21:26:28]dirname=/storage/ofd_packets [21:26:28]CheckFolder done [21:26:28]ProducePacketName [21:26:28]name=ofd_packets/00155699 [21:26:28]NVStorageSaveData ofd_packets/00155699 [21:26:28]File name is /storage/ofd_packets/00155699 [21:26:28]Write 301 bytes [21:26:28]NVStorageSaveData done [21:26:28]OFDSenderStorePacket done [21:26:28]KKMCreateOFDPacket done [21:26:28]NVStorageSaveData kkm_last_timestamp [21:26:28]File name is /storage/kkm_last_timestamp [21:26:28]Write 4 bytes [21:26:28]NVStorageSaveData done [21:26:28]ExternCall_PrintAddStr [21:26:28]wPrintStart [21:26:28]Write to MH i2c: 01 00 00 EF 2C 1B [21:26:28]OFD Sender: Processing packet 155699 [packets to send 31, broken 30] [21:26:28]ProducePacketName [21:26:28]name=ofd_packets/00155699 [21:26:28]OFD Sender: To server: pG, [21:26:28]CommunicateWithHost lk.salyk.kg:30040 [21:26:28]ConnectInit lk.salyk.kg [21:26:28]Write i2c OK [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: 01 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: 01 07 00 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: 01 07 00 EF 2C 00 00 00 00 00 FF 0F 30 [21:26:28]RasterBufferAndPrint [21:26:28]line Счет N : (1)98507 [21:26:28]line ИНН: 02508201610067 [21:26:28]line Контрольно-Кассовый Чек [21:26:28]line ПРОДАЖА [21:26:28]line ТРК (МРК, ГНК) : 31 [21:26:28]line Товар: 2710124130 [21:26:28]line Аи-92-К-5 [21:26:28]line 7.480 * 66.90 [21:26:28]line = 500.41 [21:26:28]line НДС 12% НСП 1% [21:26:28]line > о реализуемом товаре [21:26:28]line ОКРУГЛЕНИЕ: -0.41 [21:26:28]line ИТОГО: 500.00 [21:26:28]line Внесено: 500.00 [21:26:28]line СДАЧА: 0.00 [21:26:28]line НСП 1% : 4.43 [21:26:28]line НДС 12% : 53.14 [21:26:28]line Наличными: 500.00 [21:26:28]line Безнал.: 0.00 [21:26:28]line Место: АЗС № 143 "Партнер Нефть" [21:26:28]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:26:28]line СНО: Общий режим [21:26:28]line Чек 324 24.10.2024 21:26 [21:26:28]line Смена: 534 ФФД: 1.0 [21:26:28]line ЗНМ: 0300000096 [21:26:28]line РНМ: 0000000000091693 [21:26:28]line Версия ККМ: 001 [21:26:28]line ФМ: 0000000000871792 [21:26:28]line ФД: 155699 [21:26:28]line ФПД: 170006610895537 [21:26:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T212628&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155699&fm=170006610895537&tin=02508201610067®Number=0000000000091693&sum=50000 [21:26:28]Connected sock=10 [21:26: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 39 32 0F 01 00 00 4E written 0, free lines is 4095 [21:26:28]04 07 01 15 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 84 BB 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 60 02 00 35 04 06 00 9A 9E BF A6 E2 B1 9A 26 4F E5 FF F4 0F A5 [21:26: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 39 32 4F 00 00 00 71 19 47 00 08 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 39 32 10 04 04 00 33 60 02 00 F4 03 04 00 FC 60 1A 67 B6 04 01 00 00 5F 7F F3 59 B0 54 62 99 [21:26:28]CommunicateWithHost err = 0 [21:26:28]CheckOFDResponse [21:26:28]1017 (14) - 77093643461234 [21:26:28]1041 (16) - 0000000000871792 [21:26:28]1040 (4) - 155699 [21:26:28]1012 (4) - 24.10.2024 15:00 [21:26:28]1206 (1) - 0 [21:26:28]OFD Sender: Remove packet 155699 [21:26:28]ProducePacketName [21:26:28]name=ofd_packets/00155699 [21:26:28]NVStorageDeleteData [21:26:28]Write to MH i2c: 01 00 00 1A 2D 47 [21:26:28]Write i2c OK [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: 01 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: 01 07 00 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: 01 07 00 1A 2D 00 00 00 00 00 D8 0C 32 [21:26:28]RasterBufferAndPrint [21:26:28]line [21:26:28]line [21:26:28]line [21:26:28]line [21:26:28]line [21:26:28]written 0, free lines is 3296 [21:26:28]process_action close_receipt done [21:26:28]requested_data is exist [21:26:28]produce_requested_data [21:26:28]requested_item fm.sn is exist - process it [21:26:28]wFMCommunicate request_size=4 [21:26:28]MH_SAM_APDU [21:26:28]CAPDU: 80 11 00 00 [21:26:28]Write to MH i2c: E2 08 00 21 2D 80 11 00 00 00 00 00 00 C8 [21:26:28]Write i2c OK [21:26:28]MH_I2C_Read... [21:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:28]Read from MH i2c: E2 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: E2 17 00 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: E2 17 00 21 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1D [21:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:26:29]wFMCommunicate OK [21:26:29]requested_item fd.num is exist - process it [21:26:29]SAM_PROTO_GetFieldsCounters [21:26:29]wFMCommunicate request_size=4 [21:26:29]MH_SAM_APDU [21:26:29]CAPDU: 80 13 00 00 [21:26:29]Write to MH i2c: E2 08 00 22 2D 80 13 00 00 00 00 00 00 CB [21:26:29]Write i2c OK [21:26:29]MH_I2C_Read... [21:26:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:29]Read from MH i2c: E2 [21:26:29]MH_I2C_Read... [21:26:29]Read from MH i2c: E2 62 00 [21:26:29]MH_I2C_Read... [21:26:29]Read from MH i2c: E2 62 00 22 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 33 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 6D [21:26: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 33 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:26:29]wFMCommunicate OK [21:26:29]SAM_PROTO_GetFieldsCounters done [21:26:29]requested_item shift.num is exist - process it [21:26:29]requested_item shift.opened is exist - process it [21:26:29]req_shift_opened [21:26:29]FM_GetShiftState [21:26:29]SAM_PROTO_GetShiftState [21:26:29]wFMCommunicate request_size=4 [21:26:29]MH_SAM_APDU [21:26:29]CAPDU: 80 13 01 00 [21:26:29]Write to MH i2c: E2 08 00 23 2D 80 13 01 00 00 00 00 00 CD [21:26:29]Write i2c OK [21:26:29]MH_I2C_Read... [21:26:29]OFD Sender: No OFD packet to send [21:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:29]Read from MH i2c: E2 [21:26:29]MH_I2C_Read... [21:26:29]Read from MH i2c: E2 0E 00 [21:26:29]MH_I2C_Read... [21:26:29]Read from MH i2c: E2 0E 00 23 2D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1A [21:26:29]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:26:29]wFMCommunicate OK [21:26:29]SAM_PROTO_GetShiftState done [21:26:29]FM_GetShiftState done [21:26:29]req_shift_opened done [21:26:29]requested_item shift.open_date is exist - process it [21:26:29]req_shift_open_date [21:26:29]req_shift_open_date done [21:26:29]produce_requested_data done [21:26:29]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155699,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [21:26:29]process_action_free close_receipt [21:26:29]json_value_free [21:26:29]json_value_free done [21:26:29]process_json_proto returns [21:26:29]Send response to host [21:26:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155699,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [21:26:29]free response buf [21:26:29]execute_script done [21:26:29]execute_script returns [21:26:29]free content buf [21:26:29]Sock 9.Close socket [21:26:29]Sock 9.Thread stoped [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28: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:45]accept exits with 8 [21:33:45]New connection [21:33:45]New thread 3066637668 created [21:33:45]Thread 3066781028 joined [21:33:45]Waiting for new connection... [21:33:45] Sock 8.Parse request [21:33:45]Sock 8.Check first char [21:33:45]Sock 8.First char is OK [21:33:45]request: POST /json_proto HTTP/1.0 [21:33:45]Method: POST [21:33:45]URL: /json_proto [21:33:45]Method is POST - this is cgi request [21:33:45]url: /json_proto [21:33:45]query_string will be loaded in cgi processing [21:33:45]execute_cgi json_proto POST (null) [21:33:45]execute_cgi path=json_proto method=POST [21:33:45]POST find Content-Length [21:33:45]Host: 172.17.63.3:8080 [21:33:45]Content-Length: 676 [21:33:45]Content-Type: application/json [21:33:45] [21:33:45]POST finish read [21:33:45]Found Content-Length = 676 [21:33:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:45]execute_script... [21:33:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:45]POST & json_proto [21:33:45]process_json_proto [21:33:45]json parsed OK: [21:33:45]protocol is kg_v1.0 [21:33:45]action value=close_receipt [21:33:45]process_action close_receipt [21:33:45]cmd_close_receipt [21:33:45]MH_GetDate [21:33:45]Write to MH i2c: F0 00 00 24 2D 40 [21:33:45]Write i2c OK [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: F0 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: F0 09 00 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: F0 09 00 24 2D 00 3B BD 1A 67 50 D1 6C 64 B3 [21:33:45]GetLastDocTimeStamp 1729805188 [21:33:45]current date 1729805627 [21:33:45]FM_GetShiftState [21:33:45]SAM_PROTO_GetShiftState [21:33:45]wFMCommunicate request_size=4 [21:33:45]MH_SAM_APDU [21:33:45]CAPDU: 80 13 01 00 [21:33:45]Write to MH i2c: E2 08 00 25 2D 80 13 01 00 00 00 00 00 CF [21:33:45]Write i2c OK [21:33:45]MH_I2C_Read... [21:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:45]Read from MH i2c: E2 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: E2 0E 00 [21:33:45]MH_I2C_Read... [21:33:45]Read from MH i2c: E2 0E 00 25 2D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1C [21:33:45]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:33:45]wFMCommunicate OK [21:33:45]SAM_PROTO_GetShiftState done [21:33:45]FM_GetShiftState done [21:33:45]opened in 1729729836 [21:33:45]opened+sec_in_day 1729816236 [21:33:45]quantity*price = 50041 [21:33:45]sum+1 = 50042 [21:33:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 325 24.10.2024 21:33 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155700 ФПД: 65744686055972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213347&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155700&fm=65744686055972&tin=02508201610067®Number=0000000000091693&sum=50000 [21:33:46]StoreToDocumentArchive [21:33:46]shift 534 fd 155700 [21:33:46]save to /storage/0534/doc_00155700 [21:33:46]save last doc name /storage/0534/doc_00155700 to /storage/kkm_last_doc_name [21:33:46]save OK [21:33:46]Clear old archive folders... [21:33:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:33:46]tlvbuf is B6D7EA20 [21:33:46]SAM_PROTO_ClearQueue [21:33:46]wFMCommunicate request_size=4 [21:33:46]MH_SAM_APDU [21:33:46]CAPDU: 80 09 00 00 [21:33:46]Write to MH i2c: E2 08 00 32 2D 80 09 00 00 00 00 00 00 D1 [21:33:46]Write i2c OK [21:33:46]MH_I2C_Read... [21:33:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:33:46]Read from MH i2c: E2 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: E2 03 00 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: E2 03 00 32 2D 00 90 00 D3 [21:33:46]RAPDU: 90 00 [21:33:46]wFMCommunicate OK [21:33:46]SAM_PROTO_ClearQueue done [21:33:46]KKMCreateOFDPacket [21:33:46]OFDProtocolAddRootSTLVToBuf [21:33:46]FM_MakeSignedData [21:33:46]FM_MakeSignedData [21:33:46]SAM_PROTO_SignData [21:33:46]wFMCommunicate request_size=4 [21:33:46]MH_SAM_APDU [21:33:46]CAPDU: 80 0D 01 02 [21:33:46]Write to MH i2c: E2 08 00 33 2D 80 0D 01 02 00 00 00 00 D9 [21:33:46]Write i2c OK [21:33:46]MH_I2C_Read... [21:33:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:33:46]Read from MH i2c: E2 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: E2 03 00 [21:33:46]MH_I2C_Read... [21:33:46]Read from MH i2c: E2 03 00 33 2D 00 90 00 D4 [21:33:46]RAPDU: 90 00 [21:33:46]wFMCommunicate OK [21:33:46]wFMCommunicate request_size=255 [21:33:46]MH_SAM_APDU [21:33: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 3B BD 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 60 02 00 35 04 06 00 3B [21:33:46]Write to MH i2c: E2 02 01 34 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 3B BD 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 60 02 00 35 04 06 00 3B 00 00 15 [21:33:46]Write i2c OK [21:33:46]MH_I2C_Read... [21:33:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:47]Read from MH i2c: E2 [21:33:47]MH_I2C_Read... [21:33:47]Read from MH i2c: E2 03 00 [21:33:47]MH_I2C_Read... [21:33:47]Read from MH i2c: E2 03 00 34 2D 00 90 00 D5 [21:33:47]RAPDU: 90 00 [21:33:47]wFMCommunicate OK [21:33:47]wFMCommunicate request_size=10 [21:33:47]MH_SAM_APDU [21:33:47]CAPDU: 80 0D 02 02 05 CB 60 A8 82 24 [21:33:47]Write to MH i2c: E2 0D 00 35 2D 80 0D 02 02 05 00 CB 60 A8 82 24 00 00 5F [21:33:47]Write i2c OK [21:33:47]MH_I2C_Read... [21:33:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:47]Read from MH i2c: E2 [21:33:47]MH_I2C_Read... [21:33:47]Read from MH i2c: E2 03 00 [21:33:47]MH_I2C_Read... [21:33:47]Read from MH i2c: E2 03 00 35 2D 00 90 00 D6 [21:33:47]RAPDU: 90 00 [21:33:47]wFMCommunicate OK [21:33:47]wFMCommunicate request_size=4 [21:33:47]MH_SAM_APDU [21:33:47]CAPDU: 80 0D 03 02 [21:33:47]Write to MH i2c: E2 08 00 36 2D 80 0D 03 02 00 00 00 00 DE [21:33:47]Write i2c OK [21:33:47]MH_I2C_Read... [21:33:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:33:47]Read from MH i2c: E2 [21:33:47]MH_I2C_Read... [21:33:47]Read from MH i2c: E2 0B 00 [21:33:47]MH_I2C_Read... [21:33:47]Read from MH i2c: E2 0B 00 36 2D 00 AC 46 97 30 0E 37 2C 8F 90 00 98 [21:33:47]RAPDU: AC 46 97 30 0E 37 2C 8F 90 00 [21:33:47]wFMCommunicate OK [21:33:47]SAM_PROTO_SignData done [21:33:47]FM_MakeSignedData done [21:33:47]CreateOFDProtocolMessage [21:33:47]wFMCommunicate request_size=4 [21:33:47]MH_SAM_APDU [21:33:47]CAPDU: 80 11 00 00 [21:33:47]Write to MH i2c: E2 08 00 37 2D 80 11 00 00 00 00 00 00 DE [21:33:47]Write i2c OK [21:33:47]MH_I2C_Read... [21:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:47]Read from MH i2c: E2 [21:33:47]MH_I2C_Read... [21:33:47]Read from MH i2c: E2 17 00 [21:33:47]MH_I2C_Read... [21:33:47]Read from MH i2c: E2 17 00 37 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 33 [21:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:33:47]wFMCommunicate OK [21:33:47]CreateOFDProtocolMessage done [21:33:47]OFDSenderStorePacket 155700 [21:33:47]StoreOFDPacket docnum=155700 [21:33:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 04 63 07 01 3D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 3B BD 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 60 02 00 35 04 06 00 3B CB 60 A8 82 24 AC 46 97 30 0E 37 2C 8F [21:33:47]CheckFolder [21:33:47]dirname=/storage/ofd_packets [21:33:47]CheckFolder done [21:33:47]ProducePacketName [21:33:47]name=ofd_packets/00155700 [21:33:47]NVStorageSaveData ofd_packets/00155700 [21:33:47]File name is /storage/ofd_packets/00155700 [21:33:47]Write 301 bytes [21:33:47]NVStorageSaveData done [21:33:47]OFDSenderStorePacket done [21:33:47]KKMCreateOFDPacket done [21:33:47]NVStorageSaveData kkm_last_timestamp [21:33:47]File name is /storage/kkm_last_timestamp [21:33:47]Write 4 bytes [21:33:47]NVStorageSaveData done [21:33:47]ExternCall_PrintAddStr [21:33:47]wPrintStart [21:33:47]Write to MH i2c: 01 00 00 38 2D 65 [21:33:47]Write i2c OK [21:33:47]MH_I2C_Read... [21:33:47]Read from MH i2c: 01 [21:33:47]MH_I2C_Read... [21:33:47]Read from MH i2c: 01 07 00 [21:33:47]MH_I2C_Read... [21:33:47]Read from MH i2c: 01 07 00 38 2D 00 00 00 00 00 FF 0F 7A [21:33:47]RasterBufferAndPrint [21:33:47]line Счет N : (1)98508 [21:33:47]line ИНН: 02508201610067 [21:33:47]line Контрольно-Кассовый Чек [21:33:47]line ПРОДАЖА [21:33:47]line ТРК (МРК, ГНК) : 11 [21:33:47]line Товар: 2710124130 [21:33:47]line Аи-92-К-5 [21:33:47]line 7.480 * 66.90 [21:33:47]line = 500.41 [21:33:47]line НДС 12% НСП 1% [21:33:47]line > о реализуемом товаре [21:33:47]line ОКРУГЛЕНИЕ: -0.41 [21:33:47]line ИТОГО: 500.00 [21:33:47]line Внесено: 500.00 [21:33:47]line СДАЧА: 0.00 [21:33:47]line НСП 1% : 4.43 [21:33:47]line НДС 12% : 53.14 [21:33:47]line Наличными: 500.00 [21:33:47]line Безнал.: 0.00 [21:33:47]line Место: АЗС № 143 "Партнер Нефть" [21:33:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:33:47]line СНО: Общий режим [21:33:47]line Чек 325 24.10.2024 21:33 [21:33:47]line Смена: 534 ФФД: 1.0 [21:33:47]line ЗНМ: 0300000096 [21:33:47]line РНМ: 0000000000091693 [21:33:47]line Версия ККМ: 001 [21:33:47]line ФМ: 0000000000871792 [21:33:47]line ФД: 155700 [21:33:47]line ФПД: 65744686055972 [21:33:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T213347&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155700&fm=65744686055972&tin=02508201610067®Number=0000000000091693&sum=50000 [21:33:47]OFD Sender: Processing packet 155700 [packets to send 31, broken 30] [21:33:47]ProducePacketName [21:33:47]name=ofd_packets/00155700 [21:33:47]OFD Sender: To server: pG, [21:33:47]CommunicateWithHost lk.salyk.kg:30040 [21:33:47]ConnectInit lk.salyk.kg [21:33:47]written 0, free lines is 4095 [21:33:47]Connected sock=10 [21:33: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 39 32 0F 01 00 00 04 63 07 01 3D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 3B BD 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 60 02 00 35 04 06 00 3B CB 60 A8 82 24 AC 46 97 30 0E 37 2C 8F [21:33: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 39 32 4F 00 00 00 64 35 47 00 06 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 39 32 10 04 04 00 34 60 02 00 F4 03 04 00 B3 62 1A 67 B6 04 01 00 00 77 1B 08 61 BA F7 58 A0 [21:33:48]CommunicateWithHost err = 0 [21:33:48]CheckOFDResponse [21:33:48]1017 (14) - 77093643461234 [21:33:48]1041 (16) - 0000000000871792 [21:33:48]1040 (4) - 155700 [21:33:48]1012 (4) - 24.10.2024 15:07 [21:33:48]1206 (1) - 0 [21:33:48]OFD Sender: Remove packet 155700 [21:33:48]ProducePacketName [21:33:48]name=ofd_packets/00155700 [21:33:48]NVStorageDeleteData [21:33:48]Write to MH i2c: 01 00 00 63 2D 90 [21:33:48]Write i2c OK [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: 01 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: 01 07 00 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: 01 07 00 63 2D 00 00 00 00 00 E0 0C 83 [21:33:48]RasterBufferAndPrint [21:33:48]line [21:33:48]line [21:33:48]line [21:33:48]line [21:33:48]line [21:33:48]written 0, free lines is 3301 [21:33:48]process_action close_receipt done [21:33:48]requested_data is exist [21:33:48]produce_requested_data [21:33:48]requested_item fm.sn is exist - process it [21:33:48]wFMCommunicate request_size=4 [21:33:48]MH_SAM_APDU [21:33:48]CAPDU: 80 11 00 00 [21:33:48]Write to MH i2c: E2 08 00 6A 2D 80 11 00 00 00 00 00 00 11 [21:33:48]Write i2c OK [21:33:48]MH_I2C_Read... [21:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:48]Read from MH i2c: E2 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 17 00 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 17 00 6A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 66 [21:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:33:48]wFMCommunicate OK [21:33:48]requested_item fd.num is exist - process it [21:33:48]SAM_PROTO_GetFieldsCounters [21:33:48]wFMCommunicate request_size=4 [21:33:48]MH_SAM_APDU [21:33:48]CAPDU: 80 13 00 00 [21:33:48]Write to MH i2c: E2 08 00 6B 2D 80 13 00 00 00 00 00 00 14 [21:33:48]Write i2c OK [21:33:48]MH_I2C_Read... [21:33:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:33:48]Read from MH i2c: E2 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 62 00 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 62 00 6B 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 34 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 BA [21:33: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 34 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:33:48]wFMCommunicate OK [21:33:48]SAM_PROTO_GetFieldsCounters done [21:33:48]requested_item shift.num is exist - process it [21:33:48]requested_item shift.opened is exist - process it [21:33:48]req_shift_opened [21:33:48]FM_GetShiftState [21:33:48]SAM_PROTO_GetShiftState [21:33:48]wFMCommunicate request_size=4 [21:33:48]MH_SAM_APDU [21:33:48]CAPDU: 80 13 01 00 [21:33:48]Write to MH i2c: E2 08 00 6C 2D 80 13 01 00 00 00 00 00 16 [21:33:48]Write i2c OK [21:33:48]MH_I2C_Read... [21:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:48]Read from MH i2c: E2 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 0E 00 [21:33:48]MH_I2C_Read... [21:33:48]Read from MH i2c: E2 0E 00 6C 2D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 63 [21:33:48]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:33:48]wFMCommunicate OK [21:33:48]SAM_PROTO_GetShiftState done [21:33:48]FM_GetShiftState done [21:33:48]req_shift_opened done [21:33:48]requested_item shift.open_date is exist - process it [21:33:48]req_shift_open_date [21:33:48]req_shift_open_date done [21:33:48]produce_requested_data done [21:33:48]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155700,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [21:33:48]process_action_free close_receipt [21:33:48]json_value_free [21:33:48]json_value_free done [21:33:48]process_json_proto returns [21:33:48]Send response to host [21:33:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155700,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [21:33:48]free response buf [21:33:48]execute_script done [21:33:48]execute_script returns [21:33:48]free content buf [21:33:48]Sock 8.Close socket [21:33:48]Sock 8.Thread stoped [21:33:48]OFD Sender: No OFD packet to send [21:33:49]int [21:33:49]Write to MH i2c: 01 00 00 6D 2D 9A [21:33:49]*** FLAG_PRN_KEY set [21:33:49]Write i2c OK [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: 01 [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: 01 07 00 [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: 01 07 00 6D 2D 00 08 00 00 00 FF 0F B7 [21:33:49]state=0 [21:33:49]Key pressed [21:33:49]Feed [21:33:49]Write to MH i2c: D8 00 00 6E 2D 72 [21:33:49]Write i2c OK [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: D8 [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: D8 01 00 [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: D8 01 00 6E 2D 00 73 [21:33:49]int [21:33:49]Write to MH i2c: 01 00 00 6F 2D 9C [21:33:49]Write i2c OK [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: 01 [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: 01 07 00 [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: 01 07 00 6F 2D 00 48 00 00 00 3C 00 27 [21:33:49]state=2 [21:33:49]Key pressed [21:33:49]int [21:33:49]Write to MH i2c: 01 00 00 70 2D 9D [21:33:49]*** FLAG_PRN_KEY reset [21:33:49]Write i2c OK [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: 01 [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: 01 07 00 [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: 01 07 00 70 2D 00 00 00 00 00 F7 0F AA [21:33:49]state=2 [21:33:49]Stop feed [21:33:53]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:18]OFD Sender: No OFD packet to send [21:35:23]OFD Sender: No OFD packet to send [21:35:28]OFD Sender: No OFD packet to send [21:35:33]OFD Sender: No OFD packet to send [21:35:38]OFD Sender: No OFD packet to send [21:35:43]OFD Sender: No OFD packet to send [21:35:48]OFD Sender: No OFD packet to send [21:35:53]OFD Sender: No OFD packet to send [21:35:58]OFD Sender: No OFD packet to send [21:36:03]OFD Sender: No OFD packet to send [21:36:08]OFD Sender: No OFD packet to send [21:36:13]OFD Sender: No OFD packet to send [21:36:18]OFD Sender: No OFD packet to send [21:36:23]OFD Sender: No OFD packet to send [21:36:28]OFD Sender: No OFD packet to send [21:36:33]OFD Sender: No OFD packet to send [21:36:38]OFD Sender: No OFD packet to send [21:36:43]OFD Sender: No OFD packet to send [21:36:48]OFD Sender: No OFD packet to send [21:36:53]OFD Sender: No OFD packet to send [21:36:58]OFD Sender: No OFD packet to send [21:37:03]OFD Sender: No OFD packet to send [21:37:08]OFD Sender: No OFD packet to send [21:37:13]OFD Sender: No OFD packet to send [21:37:18]OFD Sender: No OFD packet to send [21:37:23]OFD Sender: No OFD packet to send [21:37:28]OFD Sender: No OFD packet to send [21:37:33]OFD Sender: No OFD packet to send [21:37:38]OFD Sender: No OFD packet to send [21:37:43]OFD Sender: No OFD packet to send [21:37:48]OFD Sender: No OFD packet to send [21:37:53]OFD Sender: No OFD packet to send [21:37:58]OFD Sender: No OFD packet to send [21:38:03]OFD Sender: No OFD packet to send [21:38:08]OFD Sender: No OFD packet to send [21:38:13]OFD Sender: No OFD packet to send [21:38:18]OFD Sender: No OFD packet to send [21:38:23]OFD Sender: No OFD packet to send [21:38:28]OFD Sender: No OFD packet to send [21:38:33]OFD Sender: No OFD packet to send [21:38:38]OFD Sender: No OFD packet to send [21:38:43]OFD Sender: No OFD packet to send [21:38:48]OFD Sender: No OFD packet to send [21:38:53]OFD Sender: No OFD packet to send [21:38:58]OFD Sender: No OFD packet to send [21:39:03]OFD Sender: No OFD packet to send [21:39:08]OFD Sender: No OFD packet to send [21:39:13]OFD Sender: No OFD packet to send [21:39:18]OFD Sender: No OFD packet to send [21:39:23]OFD Sender: No OFD packet to send [21:39:28]OFD Sender: No OFD packet to send [21:39:33]OFD Sender: No OFD packet to send [21:39:38]OFD Sender: No OFD packet to send [21:39:43]OFD Sender: No OFD packet to send [21:39:48]OFD Sender: No OFD packet to send [21:39:53]OFD Sender: No OFD packet to send [21:39:58]OFD Sender: No OFD packet to send [21:40:03]OFD Sender: No OFD packet to send [21:40:08]OFD Sender: No OFD packet to send [21:40:13]OFD Sender: No OFD packet to send [21:40:18]OFD Sender: No OFD packet to send [21:40:23]OFD Sender: No OFD packet to send [21:40:28]OFD Sender: No OFD packet to send [21:40:33]OFD Sender: No OFD packet to send [21:40:38]OFD Sender: No OFD packet to send [21:40:43]OFD Sender: No OFD packet to send [21:40:48]OFD Sender: No OFD packet to send [21:40:53]OFD Sender: No OFD packet to send [21:40:58]OFD Sender: No OFD packet to send [21:41:03]OFD Sender: No OFD packet to send [21:41:08]OFD Sender: No OFD packet to send [21:41:13]OFD Sender: No OFD packet to send [21:41:18]OFD Sender: No OFD packet to send [21:41:23]OFD Sender: No OFD packet to send [21:41:28]OFD Sender: No OFD packet to send [21:41:33]OFD Sender: No OFD packet to send [21:41:38]OFD Sender: No OFD packet to send [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:13]OFD Sender: No OFD packet to send [21:42:18]OFD Sender: No OFD packet to send [21:42:23]OFD Sender: No OFD packet to send [21:42:28]OFD Sender: No OFD packet to send [21:42:33]OFD Sender: No OFD packet to send [21:42:38]OFD Sender: No OFD packet to send [21:42:43]OFD Sender: No OFD packet to send [21:42:48]OFD Sender: No OFD packet to send [21:42:53]OFD Sender: No OFD packet to send [21:42:58]OFD Sender: No OFD packet to send [21:43: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:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:11]accept exits with 9 [21:47:11]New connection [21:47:11]New thread 3066781028 created [21:47:11]Thread 3066637668 joined [21:47:11]Waiting for new connection... [21:47:11] Sock 9.Parse request [21:47:11]Sock 9.Check first char [21:47:11]Sock 9.First char is OK [21:47:11]request: POST /json_proto HTTP/1.0 [21:47:11]Method: POST [21:47:11]URL: /json_proto [21:47:11]Method is POST - this is cgi request [21:47:11]url: /json_proto [21:47:11]query_string will be loaded in cgi processing [21:47:11]execute_cgi json_proto POST (null) [21:47:11]execute_cgi path=json_proto method=POST [21:47:11]POST find Content-Length [21:47:11]Host: 172.17.63.3:8080 [21:47:11]Content-Length: 799 [21:47:11]Content-Type: application/json [21:47:11] [21:47:11]POST finish read [21:47:11]Found Content-Length = 799 [21:47:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4221106", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:11]execute_script... [21:47:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4221106", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:11]POST & json_proto [21:47:11]process_json_proto [21:47:11]json parsed OK: [21:47:11]protocol is kg_v1.0 [21:47:11]action value=close_receipt [21:47:11]process_action close_receipt [21:47:11]cmd_close_receipt [21:47:11]MH_GetDate [21:47:11]Write to MH i2c: F0 00 00 71 2D 8D [21:47:11]Write i2c OK [21:47:11]MH_I2C_Read... [21:47:12]Read from MH i2c: F0 [21:47:12]MH_I2C_Read... [21:47:12]Read from MH i2c: F0 09 00 [21:47:12]MH_I2C_Read... [21:47:12]Read from MH i2c: F0 09 00 71 2D 00 61 C0 1A 67 50 D1 6C 64 29 [21:47:12]GetLastDocTimeStamp 1729805627 [21:47:12]current date 1729806433 [21:47:12]FM_GetShiftState [21:47:12]SAM_PROTO_GetShiftState [21:47:12]wFMCommunicate request_size=4 [21:47:12]MH_SAM_APDU [21:47:12]CAPDU: 80 13 01 00 [21:47:12]Write to MH i2c: E2 08 00 72 2D 80 13 01 00 00 00 00 00 1C [21:47:12]Write i2c OK [21:47:12]MH_I2C_Read... [21:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:12]Read from MH i2c: E2 [21:47:12]MH_I2C_Read... [21:47:12]Read from MH i2c: E2 0E 00 [21:47:12]MH_I2C_Read... [21:47:12]Read from MH i2c: E2 0E 00 72 2D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 69 [21:47:12]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:47:12]wFMCommunicate OK [21:47:12]SAM_PROTO_GetShiftState done [21:47:12]FM_GetShiftState done [21:47:12]opened in 1729729836 [21:47:12]opened+sec_in_day 1729816236 [21:47:12]quantity*price = 0 [21:47:12]sum+1 = 1 [21:47:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 326 24.10.2024 21:47 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4221106 ФМ: 0000000000871792 ФД: 155701 ФПД: 200104062090383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T214714&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155701&fm=200104062090383&tin=02508201610067®Number=0000000000091693&sum=0 [21:47:13]StoreToDocumentArchive [21:47:13]shift 534 fd 155701 [21:47:13]save to /storage/0534/doc_00155701 [21:47:13]save last doc name /storage/0534/doc_00155701 to /storage/kkm_last_doc_name [21:47:13]save OK [21:47:13]Clear old archive folders... [21:47:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:47:13]tlvbuf is 01F85E10 [21:47:13]SAM_PROTO_ClearQueue [21:47:13]wFMCommunicate request_size=4 [21:47:13]MH_SAM_APDU [21:47:13]CAPDU: 80 09 00 00 [21:47:13]Write to MH i2c: E2 08 00 7F 2D 80 09 00 00 00 00 00 00 1E [21:47:13]Write i2c OK [21:47:13]MH_I2C_Read... [21:47:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:13]Read from MH i2c: E2 [21:47:13]MH_I2C_Read... [21:47:13]Read from MH i2c: E2 03 00 [21:47:13]MH_I2C_Read... [21:47:13]Read from MH i2c: E2 03 00 7F 2D 00 90 00 20 [21:47:13]RAPDU: 90 00 [21:47:13]wFMCommunicate OK [21:47:13]SAM_PROTO_ClearQueue done [21:47:13]KKMCreateOFDPacket [21:47:13]OFDProtocolAddRootSTLVToBuf [21:47:13]FM_MakeSignedData [21:47:13]FM_MakeSignedData [21:47:13]SAM_PROTO_SignData [21:47:13]wFMCommunicate request_size=4 [21:47:13]MH_SAM_APDU [21:47:13]CAPDU: 80 0D 01 02 [21:47:13]Write to MH i2c: E2 08 00 80 2D 80 0D 01 02 00 00 00 00 26 [21:47:13]Write i2c OK [21:47:13]MH_I2C_Read... [21:47:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:13]Read from MH i2c: E2 [21:47:13]MH_I2C_Read... [21:47:13]Read from MH i2c: E2 03 00 [21:47:13]MH_I2C_Read... [21:47:13]Read from MH i2c: E2 03 00 80 2D 00 90 00 21 [21:47:13]RAPDU: 90 00 [21:47:13]wFMCommunicate OK [21:47:13]wFMCommunicate request_size=255 [21:47:13]MH_SAM_APDU [21:47: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 62 C0 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 60 02 00 35 04 06 00 B5 [21:47:13]Write to MH i2c: E2 02 01 81 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 46 01 00 00 F4 03 04 00 62 C0 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 60 02 00 35 04 06 00 B5 00 00 BA [21:47:13]Write i2c OK [21:47:13]MH_I2C_Read... [21:47:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:13]Read from MH i2c: E2 [21:47:13]MH_I2C_Read... [21:47:13]Read from MH i2c: E2 03 00 [21:47:13]MH_I2C_Read... [21:47:13]Read from MH i2c: E2 03 00 81 2D 00 90 00 22 [21:47:13]RAPDU: 90 00 [21:47:13]wFMCommunicate OK [21:47:13]wFMCommunicate request_size=10 [21:47:13]MH_SAM_APDU [21:47:13]CAPDU: 80 0D 02 02 05 FE 5B 89 FC 8F [21:47:13]Write to MH i2c: E2 0D 00 82 2D 80 0D 02 02 05 00 FE 5B 89 FC 8F 00 00 A0 [21:47:13]Write i2c OK [21:47:13]MH_I2C_Read... [21:47:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:13]Read from MH i2c: E2 [21:47:13]MH_I2C_Read... [21:47:13]Read from MH i2c: E2 03 00 [21:47:13]MH_I2C_Read... [21:47:13]Read from MH i2c: E2 03 00 82 2D 00 90 00 23 [21:47:13]RAPDU: 90 00 [21:47:13]wFMCommunicate OK [21:47:13]wFMCommunicate request_size=4 [21:47:13]MH_SAM_APDU [21:47:13]CAPDU: 80 0D 03 02 [21:47:13]Write to MH i2c: E2 08 00 83 2D 80 0D 03 02 00 00 00 00 2B [21:47:13]Write i2c OK [21:47:13]MH_I2C_Read... [21:47:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:13]Read from MH i2c: E2 [21:47:13]MH_I2C_Read... [21:47:13]Read from MH i2c: E2 0B 00 [21:47:13]MH_I2C_Read... [21:47:13]Read from MH i2c: E2 0B 00 83 2D 00 99 65 17 9D A8 51 29 94 90 00 94 [21:47:13]RAPDU: 99 65 17 9D A8 51 29 94 90 00 [21:47:13]wFMCommunicate OK [21:47:13]SAM_PROTO_SignData done [21:47:13]FM_MakeSignedData done [21:47:13]CreateOFDProtocolMessage [21:47:13]wFMCommunicate request_size=4 [21:47:13]MH_SAM_APDU [21:47:13]CAPDU: 80 11 00 00 [21:47:13]Write to MH i2c: E2 08 00 84 2D 80 11 00 00 00 00 00 00 2B [21:47:13]Write i2c OK [21:47:13]MH_I2C_Read... [21:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:13]Read from MH i2c: E2 [21:47:13]MH_I2C_Read... [21:47:13]Read from MH i2c: E2 17 00 [21:47:13]MH_I2C_Read... [21:47:13]Read from MH i2c: E2 17 00 84 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 80 [21:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:47:13]wFMCommunicate OK [21:47:13]CreateOFDProtocolMessage done [21:47:13]OFDSenderStorePacket 155701 [21:47:13]StoreOFDPacket docnum=155701 [21:47:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AD 0C 07 01 BE 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 62 C0 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 60 02 00 35 04 06 00 B5 FE 5B 89 FC 8F 99 65 17 9D A8 51 29 94 [21:47:13]CheckFolder [21:47:13]dirname=/storage/ofd_packets [21:47:13]CheckFolder done [21:47:13]ProducePacketName [21:47:13]name=ofd_packets/00155701 [21:47:13]NVStorageSaveData ofd_packets/00155701 [21:47:13]File name is /storage/ofd_packets/00155701 [21:47:13]Write 301 bytes [21:47:13]NVStorageSaveData done [21:47:13]OFDSenderStorePacket done [21:47:13]KKMCreateOFDPacket done [21:47:13]NVStorageSaveData kkm_last_timestamp [21:47:13]File name is /storage/kkm_last_timestamp [21:47:13]Write 4 bytes [21:47:13]NVStorageSaveData done [21:47:13]ExternCall_PrintAddStr [21:47:13]wPrintStart [21:47:13]Write to MH i2c: 01 00 00 85 2D B2 [21:47:13]Write i2c OK [21:47:13]MH_I2C_Read... [21:47:13]Read from MH i2c: 01 [21:47:13]MH_I2C_Read... [21:47:13]Read from MH i2c: 01 07 00 [21:47:13]MH_I2C_Read... [21:47:13]Read from MH i2c: 01 07 00 85 2D 00 00 00 00 00 FF 0F C7 [21:47:13]RasterBufferAndPrint [21:47:13]line Счет N : (1)98509 [21:47:13]line ИНН: 02508201610067 [21:47:13]line Контрольно-Кассовый Чек [21:47:13]line ПРОДАЖА [21:47:13]line ТРК (МРК, ГНК) : 11 [21:47:13]line Товар: 2710124130 [21:47:13]line Аи-92-К-5 [21:47:13]line 10.000 * 0.00 [21:47:13]line = 0.00 [21:47:13]line НДС 12% НСП 1% [21:47:13]line > о реализуемом товаре [21:47:13]line ИТОГО: 0.00 [21:47:13]line НСП 1% : 0.00 [21:47:13]line НДС 12% : 0.00 [21:47:13]line Наличными: 0.00 [21:47:13]line Безнал.: 0.00 [21:47:13]line Место: АЗС № 143 "Партнер Нефть" [21:47:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:47:13]line СНО: Общий режим [21:47:13]line Чек 326 24.10.2024 21:47 [21:47:13]line Смена: 534 ФФД: 1.0 [21:47:13]line ЗНМ: 0300000096 [21:47:13]line РНМ: 0000000000091693 [21:47:13]line Версия ККМ: 001 [21:47:13]line Талоны: Топливные Талоны [21:47:13]line 4221106 [21:47:13]line ФМ: 0000000000871792 [21:47:13]line ФД: 155701 [21:47:13]line ФПД: 200104062090383 [21:47:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T214714&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155701&fm=200104062090383&tin=02508201610067®Number=0000000000091693&sum=0 [21:47:14]written 0, free lines is 4095 [21:47:14]OFD Sender: Processing packet 155701 [packets to send 31, broken 30] [21:47:14]ProducePacketName [21:47:14]name=ofd_packets/00155701 [21:47:14]OFD Sender: To server: pG, [21:47:14]CommunicateWithHost lk.salyk.kg:30040 [21:47:14]ConnectInit lk.salyk.kg [21:47:14]Connected sock=10 [21:47: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 39 32 0F 01 00 00 AD 0C 07 01 BE 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 62 C0 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 60 02 00 35 04 06 00 B5 FE 5B 89 FC 8F 99 65 17 9D A8 51 29 94 [21:47: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 39 32 4F 00 00 00 7F F3 47 00 13 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 39 32 10 04 04 00 35 60 02 00 F4 03 04 00 D9 65 1A 67 B6 04 01 00 00 6B C9 A9 9A AC 11 AE 45 [21:47:14]CommunicateWithHost err = 0 [21:47:14]CheckOFDResponse [21:47:14]1017 (14) - 77093643461234 [21:47:14]1041 (16) - 0000000000871792 [21:47:14]1040 (4) - 155701 [21:47:14]1012 (4) - 24.10.2024 15:20 [21:47:14]1206 (1) - 0 [21:47:14]OFD Sender: Remove packet 155701 [21:47:14]ProducePacketName [21:47:14]name=ofd_packets/00155701 [21:47:14]NVStorageDeleteData [21:47:14]Write to MH i2c: 01 00 00 AF 2D DC [21:47:14]Write i2c OK [21:47:14]MH_I2C_Read... [21:47:14]Read from MH i2c: 01 [21:47:14]MH_I2C_Read... [21:47:14]Read from MH i2c: 01 07 00 [21:47:14]MH_I2C_Read... [21:47:14]Read from MH i2c: 01 07 00 AF 2D 00 00 00 00 00 E3 0C D2 [21:47:14]RasterBufferAndPrint [21:47:14]line [21:47:14]line [21:47:14]line [21:47:14]line [21:47:14]line [21:47:14]written 0, free lines is 3305 [21:47:14]process_action close_receipt done [21:47:14]requested_data is exist [21:47:14]produce_requested_data [21:47:14]requested_item fm.sn is exist - process it [21:47:14]wFMCommunicate request_size=4 [21:47:14]MH_SAM_APDU [21:47:14]CAPDU: 80 11 00 00 [21:47:14]Write to MH i2c: E2 08 00 B6 2D 80 11 00 00 00 00 00 00 5D [21:47:14]Write i2c OK [21:47:14]MH_I2C_Read... [21:47:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:14]Read from MH i2c: E2 [21:47:14]MH_I2C_Read... [21:47:14]Read from MH i2c: E2 17 00 [21:47:14]MH_I2C_Read... [21:47:14]Read from MH i2c: E2 17 00 B6 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B2 [21:47:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:47:14]wFMCommunicate OK [21:47:14]requested_item fd.num is exist - process it [21:47:14]SAM_PROTO_GetFieldsCounters [21:47:14]wFMCommunicate request_size=4 [21:47:14]MH_SAM_APDU [21:47:14]CAPDU: 80 13 00 00 [21:47:14]Write to MH i2c: E2 08 00 B7 2D 80 13 00 00 00 00 00 00 60 [21:47:14]Write i2c OK [21:47:14]MH_I2C_Read... [21:47:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:14]Read from MH i2c: E2 [21:47:14]MH_I2C_Read... [21:47:14]Read from MH i2c: E2 62 00 [21:47:14]MH_I2C_Read... [21:47:14]Read from MH i2c: E2 62 00 B7 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 35 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [21:47: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 35 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:14]wFMCommunicate OK [21:47:14]SAM_PROTO_GetFieldsCounters done [21:47:14]requested_item shift.num is exist - process it [21:47:14]requested_item shift.opened is exist - process it [21:47:14]req_shift_opened [21:47:14]FM_GetShiftState [21:47:14]SAM_PROTO_GetShiftState [21:47:14]wFMCommunicate request_size=4 [21:47:14]MH_SAM_APDU [21:47:14]CAPDU: 80 13 01 00 [21:47:14]Write to MH i2c: E2 08 00 B8 2D 80 13 01 00 00 00 00 00 62 [21:47:14]Write i2c OK [21:47:14]MH_I2C_Read... [21:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:14]Read from MH i2c: E2 [21:47:14]MH_I2C_Read... [21:47:14]Read from MH i2c: E2 0E 00 [21:47:14]MH_I2C_Read... [21:47:14]Read from MH i2c: E2 0E 00 B8 2D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 AF [21:47:14]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:47:14]wFMCommunicate OK [21:47:14]SAM_PROTO_GetShiftState done [21:47:14]FM_GetShiftState done [21:47:14]req_shift_opened done [21:47:14]requested_item shift.open_date is exist - process it [21:47:14]req_shift_open_date [21:47:14]req_shift_open_date done [21:47:14]produce_requested_data done [21:47:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155701,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [21:47:14]process_action_free close_receipt [21:47:14]json_value_free [21:47:14]json_value_free done [21:47:14]process_json_proto returns [21:47:14]Send response to host [21:47:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155701,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [21:47:14]free response buf [21:47:14]execute_script done [21:47:14]execute_script returns [21:47:14]free content buf [21:47:14]Sock 9.Close socket [21:47:14]Sock 9.Thread stoped [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:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52: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:14]accept exits with 8 [21:54:14]New connection [21:54:14]New thread 3066637668 created [21:54:14]Thread 3066781028 joined [21:54:14]Waiting for new connection... [21:54:14] Sock 8.Parse request [21:54:14]Sock 8.Check first char [21:54:14]Sock 8.First char is OK [21:54:14]request: POST /json_proto HTTP/1.0 [21:54:14]Method: POST [21:54:14]URL: /json_proto [21:54:14]Method is POST - this is cgi request [21:54:14]url: /json_proto [21:54:14]query_string will be loaded in cgi processing [21:54:14]execute_cgi json_proto POST (null) [21:54:14]execute_cgi path=json_proto method=POST [21:54:14]POST find Content-Length [21:54:14]Host: 172.17.63.3:8080 [21:54:14]Content-Length: 676 [21:54:14]Content-Type: application/json [21:54:14] [21:54:14]POST finish read [21:54:14]Found Content-Length = 676 [21:54:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:14]execute_script... [21: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)98510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:14]POST & json_proto [21:54:14]process_json_proto [21:54:14]json parsed OK: [21:54:14]protocol is kg_v1.0 [21:54:14]action value=close_receipt [21:54:14]process_action close_receipt [21:54:14]cmd_close_receipt [21:54:14]MH_GetDate [21:54:14]Write to MH i2c: F0 00 00 B9 2D D5 [21:54:14]Write i2c OK [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: F0 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: F0 09 00 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: F0 09 00 B9 2D 00 08 C2 1A 67 50 D1 6C 64 1A [21:54:14]GetLastDocTimeStamp 1729806434 [21:54:14]current date 1729806856 [21:54:14]FM_GetShiftState [21:54:14]SAM_PROTO_GetShiftState [21:54:14]wFMCommunicate request_size=4 [21:54:14]MH_SAM_APDU [21:54:14]CAPDU: 80 13 01 00 [21:54:14]Write to MH i2c: E2 08 00 BA 2D 80 13 01 00 00 00 00 00 64 [21:54:14]Write i2c OK [21:54:14]MH_I2C_Read... [21:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:14]Read from MH i2c: E2 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 0E 00 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 0E 00 BA 2D 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 B1 [21:54:14]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:54:14]wFMCommunicate OK [21:54:14]SAM_PROTO_GetShiftState done [21:54:14]FM_GetShiftState done [21:54:14]opened in 1729729836 [21:54:14]opened+sec_in_day 1729816236 [21:54:14]quantity*price = 40006 [21:54:14]sum+1 = 40007 [21:54:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 327 24.10.2024 21:54 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155702 ФПД: 319400276369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T215416&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155702&fm=319400276369&tin=02508201610067®Number=0000000000091693&sum=40000 [21:54:15]StoreToDocumentArchive [21:54:15]shift 534 fd 155702 [21:54:15]save to /storage/0534/doc_00155702 [21:54:15]save last doc name /storage/0534/doc_00155702 to /storage/kkm_last_doc_name [21:54:15]save OK [21:54:15]Clear old archive folders... [21:54:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:54:15]tlvbuf is 01F6A2A0 [21:54:15]SAM_PROTO_ClearQueue [21:54:15]wFMCommunicate request_size=4 [21:54:15]MH_SAM_APDU [21:54:15]CAPDU: 80 09 00 00 [21:54:15]Write to MH i2c: E2 08 00 C7 2D 80 09 00 00 00 00 00 00 66 [21:54:15]Write i2c OK [21:54:15]MH_I2C_Read... [21:54:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:15]Read from MH i2c: E2 [21:54:15]MH_I2C_Read... [21:54:15]Read from MH i2c: E2 03 00 [21:54:15]MH_I2C_Read... [21:54:15]Read from MH i2c: E2 03 00 C7 2D 00 90 00 68 [21:54:15]RAPDU: 90 00 [21:54:15]wFMCommunicate OK [21:54:15]SAM_PROTO_ClearQueue done [21:54:15]KKMCreateOFDPacket [21:54:15]OFDProtocolAddRootSTLVToBuf [21:54:15]FM_MakeSignedData [21:54:15]FM_MakeSignedData [21:54:15]SAM_PROTO_SignData [21:54:15]wFMCommunicate request_size=4 [21:54:15]MH_SAM_APDU [21:54:15]CAPDU: 80 0D 01 02 [21:54:15]Write to MH i2c: E2 08 00 C8 2D 80 0D 01 02 00 00 00 00 6E [21:54:15]Write i2c OK [21:54:15]MH_I2C_Read... [21:54:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:15]Read from MH i2c: E2 [21:54:15]MH_I2C_Read... [21:54:15]Read from MH i2c: E2 03 00 [21:54:15]MH_I2C_Read... [21:54:15]Read from MH i2c: E2 03 00 C8 2D 00 90 00 69 [21:54:15]RAPDU: 90 00 [21:54:15]wFMCommunicate OK [21:54:15]wFMCommunicate request_size=255 [21:54:15]MH_SAM_APDU [21: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 08 C2 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 60 02 00 35 04 06 00 00 [21:54:15]Write to MH i2c: E2 02 01 C9 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 08 C2 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 60 02 00 35 04 06 00 00 00 00 14 [21:54:15]Write i2c OK [21:54:15]MH_I2C_Read... [21:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:16]Read from MH i2c: E2 [21:54:16]MH_I2C_Read... [21:54:16]Read from MH i2c: E2 03 00 [21:54:16]MH_I2C_Read... [21:54:16]Read from MH i2c: E2 03 00 C9 2D 00 90 00 6A [21:54:16]RAPDU: 90 00 [21:54:16]wFMCommunicate OK [21:54:16]wFMCommunicate request_size=10 [21:54:16]MH_SAM_APDU [21:54:16]CAPDU: 80 0D 02 02 05 4A 5D BD 71 91 [21:54:16]Write to MH i2c: E2 0D 00 CA 2D 80 0D 02 02 05 00 4A 5D BD 71 91 00 00 E1 [21:54:16]Write i2c OK [21:54:16]MH_I2C_Read... [21:54:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:16]Read from MH i2c: E2 [21:54:16]MH_I2C_Read... [21:54:16]Read from MH i2c: E2 03 00 [21:54:16]MH_I2C_Read... [21:54:16]Read from MH i2c: E2 03 00 CA 2D 00 90 00 6B [21:54:16]RAPDU: 90 00 [21:54:16]wFMCommunicate OK [21:54:16]wFMCommunicate request_size=4 [21:54:16]MH_SAM_APDU [21:54:16]CAPDU: 80 0D 03 02 [21:54:16]Write to MH i2c: E2 08 00 CB 2D 80 0D 03 02 00 00 00 00 73 [21:54:16]Write i2c OK [21:54:16]MH_I2C_Read... [21:54:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:16]Read from MH i2c: E2 [21:54:16]MH_I2C_Read... [21:54:16]Read from MH i2c: E2 0B 00 [21:54:16]MH_I2C_Read... [21:54:16]Read from MH i2c: E2 0B 00 CB 2D 00 01 B0 0E C3 C6 D5 6A 27 90 00 22 [21:54:16]RAPDU: 01 B0 0E C3 C6 D5 6A 27 90 00 [21:54:16]wFMCommunicate OK [21:54:16]SAM_PROTO_SignData done [21:54:16]FM_MakeSignedData done [21:54:16]CreateOFDProtocolMessage [21:54:16]wFMCommunicate request_size=4 [21:54:16]MH_SAM_APDU [21:54:16]CAPDU: 80 11 00 00 [21:54:16]Write to MH i2c: E2 08 00 CC 2D 80 11 00 00 00 00 00 00 73 [21:54:16]Write i2c OK [21:54:16]MH_I2C_Read... [21:54:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:16]Read from MH i2c: E2 [21:54:16]MH_I2C_Read... [21:54:16]Read from MH i2c: E2 17 00 [21:54:16]MH_I2C_Read... [21:54:16]Read from MH i2c: E2 17 00 CC 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C8 [21:54:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:54:16]wFMCommunicate OK [21:54:16]CreateOFDProtocolMessage done [21:54:16]OFDSenderStorePacket 155702 [21:54:16]StoreOFDPacket docnum=155702 [21:54:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 76 D4 07 01 78 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 08 C2 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 60 02 00 35 04 06 00 00 4A 5D BD 71 91 01 B0 0E C3 C6 D5 6A 27 [21:54:16]CheckFolder [21:54:16]dirname=/storage/ofd_packets [21:54:16]CheckFolder done [21:54:16]ProducePacketName [21:54:16]name=ofd_packets/00155702 [21:54:16]NVStorageSaveData ofd_packets/00155702 [21:54:16]File name is /storage/ofd_packets/00155702 [21:54:16]Write 301 bytes [21:54:16]NVStorageSaveData done [21:54:16]OFDSenderStorePacket done [21:54:16]KKMCreateOFDPacket done [21:54:16]NVStorageSaveData kkm_last_timestamp [21:54:16]File name is /storage/kkm_last_timestamp [21:54:16]Write 4 bytes [21:54:16]NVStorageSaveData done [21:54:16]ExternCall_PrintAddStr [21:54:16]wPrintStart [21:54:16]Write to MH i2c: 01 00 00 CD 2D FA [21:54:16]Write i2c OK [21:54:16]MH_I2C_Read... [21:54:16]Read from MH i2c: 01 [21:54:16]MH_I2C_Read... [21:54:16]Read from MH i2c: 01 07 00 [21:54:16]MH_I2C_Read... [21:54:16]Read from MH i2c: 01 07 00 CD 2D 00 00 00 00 00 FF 0F 0F [21:54:16]RasterBufferAndPrint [21:54:16]line Счет N : (1)98510 [21:54:16]line ИНН: 02508201610067 [21:54:16]line Контрольно-Кассовый Чек [21:54:16]line ПРОДАЖА [21:54:16]line ТРК (МРК, ГНК) : 21 [21:54:16]line Товар: 2710124130 [21:54:16]line Аи-92-К-5 [21:54:16]line 5.980 * 66.90 [21:54:16]line = 400.06 [21:54:16]line НДС 12% НСП 1% [21:54:16]line > о реализуемом товаре [21:54:16]line ОКРУГЛЕНИЕ: -0.06 [21:54:16]line ИТОГО: 400.00 [21:54:16]line Внесено: 400.00 [21:54:16]line СДАЧА: 0.00 [21:54:16]line НСП 1% : 3.54 [21:54:16]line НДС 12% : 42.48 [21:54:16]line Наличными: 400.00 [21:54:16]line Безнал.: 0.00 [21:54:16]line Место: АЗС № 143 "Партнер Нефть" [21:54:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:54:16]line СНО: Общий режим [21:54:16]line Чек 327 24.10.2024 21:54 [21:54:16]line Смена: 534 ФФД: 1.0 [21:54:16]line ЗНМ: 0300000096 [21:54:16]line РНМ: 0000000000091693 [21:54:16]line Версия ККМ: 001 [21:54:16]line ФМ: 0000000000871792 [21:54:16]line ФД: 155702 [21:54:16]line ФПД: 319400276369 [21:54:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T215416&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155702&fm=319400276369&tin=02508201610067®Number=0000000000091693&sum=40000 [21:54:16]OFD Sender: Processing packet 155702 [packets to send 31, broken 30] [21:54:16]ProducePacketName [21:54:16]name=ofd_packets/00155702 [21:54:16]OFD Sender: To server: pG, [21:54:16]CommunicateWithHost lk.salyk.kg:30040 [21:54:16]ConnectInit lk.salyk.kg [21:54:16]written 0, free lines is 4095 [21:54:16]Connected sock=10 [21: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 39 32 0F 01 00 00 76 D4 07 01 78 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 08 C2 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 60 02 00 35 04 06 00 00 4A 5D BD 71 91 01 B0 0E C3 C6 D5 6A 27 [21: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 39 32 4F 00 00 00 31 47 47 00 52 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 60 02 00 F4 03 04 00 80 67 1A 67 B6 04 01 00 00 E2 88 5C 51 C8 EE 3D C9 [21:54:16]CommunicateWithHost err = 0 [21:54:16]CheckOFDResponse [21:54:16]1017 (14) - 77093643461234 [21:54:16]1041 (16) - 0000000000871792 [21:54:16]1040 (4) - 155702 [21:54:16]1012 (4) - 24.10.2024 15:28 [21:54:16]1206 (1) - 0 [21:54:16]OFD Sender: Remove packet 155702 [21:54:16]ProducePacketName [21:54:16]name=ofd_packets/00155702 [21:54:16]NVStorageDeleteData [21:54:16]Write to MH i2c: 01 00 00 F8 2D 25 [21:54:16]Write i2c OK [21:54:16]MH_I2C_Read... [21:54:16]Read from MH i2c: 01 [21:54:16]MH_I2C_Read... [21:54:16]Read from MH i2c: 01 07 00 [21:54:16]MH_I2C_Read... [21:54:16]Read from MH i2c: 01 07 00 F8 2D 00 00 00 00 00 E1 0C 19 [21:54:16]RasterBufferAndPrint [21:54:16]line [21:54:16]line [21:54:16]line [21:54:16]line [21:54:16]line [21:54:16]written 0, free lines is 3303 [21:54:16]process_action close_receipt done [21:54:16]requested_data is exist [21:54:16]produce_requested_data [21:54:16]requested_item fm.sn is exist - process it [21:54:16]wFMCommunicate request_size=4 [21:54:16]MH_SAM_APDU [21:54:17]CAPDU: 80 11 00 00 [21:54:17]Write to MH i2c: E2 08 00 FF 2D 80 11 00 00 00 00 00 00 A6 [21:54:17]Write i2c OK [21:54:17]MH_I2C_Read... [21:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:17]Read from MH i2c: E2 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 17 00 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 17 00 FF 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FB [21:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:54:17]wFMCommunicate OK [21:54:17]requested_item fd.num is exist - process it [21:54:17]SAM_PROTO_GetFieldsCounters [21:54:17]wFMCommunicate request_size=4 [21:54:17]MH_SAM_APDU [21:54:17]CAPDU: 80 13 00 00 [21:54:17]Write to MH i2c: E2 08 00 00 2E 80 13 00 00 00 00 00 00 AA [21:54:17]Write i2c OK [21:54:17]MH_I2C_Read... [21:54:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:17]Read from MH i2c: E2 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 62 00 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 62 00 00 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 36 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [21:54:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 36 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:54:17]wFMCommunicate OK [21:54:17]SAM_PROTO_GetFieldsCounters done [21:54:17]requested_item shift.num is exist - process it [21:54:17]requested_item shift.opened is exist - process it [21:54:17]req_shift_opened [21:54:17]FM_GetShiftState [21:54:17]SAM_PROTO_GetShiftState [21:54:17]wFMCommunicate request_size=4 [21:54:17]MH_SAM_APDU [21:54:17]CAPDU: 80 13 01 00 [21:54:17]Write to MH i2c: E2 08 00 01 2E 80 13 01 00 00 00 00 00 AC [21:54:17]Write i2c OK [21:54:17]MH_I2C_Read... [21:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:17]Read from MH i2c: E2 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 0E 00 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 0E 00 01 2E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 F9 [21:54:17]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [21:54:17]wFMCommunicate OK [21:54:17]SAM_PROTO_GetShiftState done [21:54:17]FM_GetShiftState done [21:54:17]req_shift_opened done [21:54:17]requested_item shift.open_date is exist - process it [21:54:17]req_shift_open_date [21:54:17]req_shift_open_date done [21:54:17]produce_requested_data done [21:54:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155702,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [21:54:17]process_action_free close_receipt [21:54:17]json_value_free [21:54:17]json_value_free done [21:54:17]process_json_proto returns [21:54:17]Send response to host [21:54:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155702,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [21:54:17]free response buf [21:54:17]execute_script done [21:54:17]execute_script returns [21:54:17]free content buf [21:54:17]Sock 8.Close socket [21:54:17]Sock 8.Thread stoped [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]accept exits with 9 [22:00:07]New connection [22:00:07]New thread 3066781028 created [22:00:07]Thread 3066637668 joined [22:00:07]Waiting for new connection... [22:00:07] Sock 9.Parse request [22:00:07]Sock 9.Check first char [22:00:07]Sock 9.First char is OK [22:00:07]request: POST /json_proto HTTP/1.0 [22:00:07]Method: POST [22:00:07]URL: /json_proto [22:00:07]Method is POST - this is cgi request [22:00:07]url: /json_proto [22:00:07]query_string will be loaded in cgi processing [22:00:07]execute_cgi json_proto POST (null) [22:00:07]execute_cgi path=json_proto method=POST [22:00:07]POST find Content-Length [22:00:07]Host: 172.17.63.3:8080 [22:00:07]Content-Length: 672 [22:00:07]Content-Type: application/json [22:00:07] [22:00:07]POST finish read [22:00:07]Found Content-Length = 672 [22:00:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.050, "sum" : 70.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:07]execute_script... [22:00:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.050, "sum" : 70.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:07]POST & json_proto [22:00:07]process_json_proto [22:00:07]json parsed OK: [22:00:07]protocol is kg_v1.0 [22:00:07]action value=close_receipt [22:00:07]process_action close_receipt [22:00:07]cmd_close_receipt [22:00:07]MH_GetDate [22:00:07]Write to MH i2c: F0 00 00 02 2E 1F [22:00:07]Write i2c OK [22:00:07]MH_I2C_Read... [22:00:07]Read from MH i2c: F0 [22:00:07]MH_I2C_Read... [22:00:07]Read from MH i2c: F0 09 00 [22:00:07]MH_I2C_Read... [22:00:07]Read from MH i2c: F0 09 00 02 2E 00 69 C3 1A 67 50 D1 6C 64 C6 [22:00:07]GetLastDocTimeStamp 1729806856 [22:00:07]current date 1729807209 [22:00:07]FM_GetShiftState [22:00:07]SAM_PROTO_GetShiftState [22:00:07]wFMCommunicate request_size=4 [22:00:07]MH_SAM_APDU [22:00:07]CAPDU: 80 13 01 00 [22:00:07]Write to MH i2c: E2 08 00 03 2E 80 13 01 00 00 00 00 00 AE [22:00:07]Write i2c OK [22:00:07]MH_I2C_Read... [22:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:07]Read from MH i2c: E2 [22:00:07]MH_I2C_Read... [22:00:07]Read from MH i2c: E2 0E 00 [22:00:07]MH_I2C_Read... [22:00:07]Read from MH i2c: E2 0E 00 03 2E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 FB [22:00:07]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:00:07]wFMCommunicate OK [22:00:07]SAM_PROTO_GetShiftState done [22:00:07]FM_GetShiftState done [22:00:07]opened in 1729729836 [22:00:07]opened+sec_in_day 1729816236 [22:00:07]quantity*price = 7024 [22:00:07]sum+1 = 7026 [22:00:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 70.00 Внесено: 70.00 СДАЧА: 0.00 НСП 1% : 0.62 НДС 12% : 7.46 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 328 24.10.2024 22:00 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155703 ФПД: 237556678285300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T220009&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155703&fm=237556678285300&tin=02508201610067®Number=0000000000091693&sum=7000 [22:00:08]StoreToDocumentArchive [22:00:08]shift 534 fd 155703 [22:00:08]save to /storage/0534/doc_00155703 [22:00:08]save last doc name /storage/0534/doc_00155703 to /storage/kkm_last_doc_name [22:00:08]save OK [22:00:08]Clear old archive folders... [22:00:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:00:08]tlvbuf is 01F9EDD0 [22:00:08]SAM_PROTO_ClearQueue [22:00:08]wFMCommunicate request_size=4 [22:00:08]MH_SAM_APDU [22:00:08]CAPDU: 80 09 00 00 [22:00:08]Write to MH i2c: E2 08 00 10 2E 80 09 00 00 00 00 00 00 B0 [22:00:08]Write i2c OK [22:00:08]MH_I2C_Read... [22:00:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:00:08]Read from MH i2c: E2 [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: E2 03 00 [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: E2 03 00 10 2E 00 90 00 B2 [22:00:08]RAPDU: 90 00 [22:00:08]wFMCommunicate OK [22:00:08]SAM_PROTO_ClearQueue done [22:00:08]KKMCreateOFDPacket [22:00:08]OFDProtocolAddRootSTLVToBuf [22:00:08]FM_MakeSignedData [22:00:08]FM_MakeSignedData [22:00:08]SAM_PROTO_SignData [22:00:08]wFMCommunicate request_size=4 [22:00:08]MH_SAM_APDU [22:00:08]CAPDU: 80 0D 01 02 [22:00:08]Write to MH i2c: E2 08 00 11 2E 80 0D 01 02 00 00 00 00 B8 [22:00:08]Write i2c OK [22:00:08]MH_I2C_Read... [22:00:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:00:08]Read from MH i2c: E2 [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: E2 03 00 [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: E2 03 00 11 2E 00 90 00 B3 [22:00:08]RAPDU: 90 00 [22:00:08]wFMCommunicate OK [22:00:08]wFMCommunicate request_size=255 [22:00:08]MH_SAM_APDU [22:00: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 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 69 C3 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 60 02 00 35 04 06 00 D8 [22:00:08]Write to MH i2c: E2 02 01 12 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 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 69 C3 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 60 02 00 35 04 06 00 D8 00 00 3C [22:00:08]Write i2c OK [22:00:08]MH_I2C_Read... [22:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:08]Read from MH i2c: E2 [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: E2 03 00 [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: E2 03 00 12 2E 00 90 00 B4 [22:00:08]RAPDU: 90 00 [22:00:08]wFMCommunicate OK [22:00:08]wFMCommunicate request_size=10 [22:00:08]MH_SAM_APDU [22:00:08]CAPDU: 80 0D 02 02 05 0E 79 6C 57 F4 [22:00:08]Write to MH i2c: E2 0D 00 13 2E 80 0D 02 02 05 00 0E 79 6C 57 F4 00 00 03 [22:00:08]Write i2c OK [22:00:08]MH_I2C_Read... [22:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:08]Read from MH i2c: E2 [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: E2 03 00 [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: E2 03 00 13 2E 00 90 00 B5 [22:00:08]RAPDU: 90 00 [22:00:08]wFMCommunicate OK [22:00:08]wFMCommunicate request_size=4 [22:00:08]MH_SAM_APDU [22:00:08]CAPDU: 80 0D 03 02 [22:00:08]Write to MH i2c: E2 08 00 14 2E 80 0D 03 02 00 00 00 00 BD [22:00:08]Write i2c OK [22:00:08]MH_I2C_Read... [22:00:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:00:08]Read from MH i2c: E2 [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: E2 0B 00 [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: E2 0B 00 14 2E 00 F4 FE E3 F2 69 2D C0 C5 90 00 A0 [22:00:08]RAPDU: F4 FE E3 F2 69 2D C0 C5 90 00 [22:00:08]wFMCommunicate OK [22:00:08]SAM_PROTO_SignData done [22:00:08]FM_MakeSignedData done [22:00:08]CreateOFDProtocolMessage [22:00:08]wFMCommunicate request_size=4 [22:00:08]MH_SAM_APDU [22:00:08]CAPDU: 80 11 00 00 [22:00:08]Write to MH i2c: E2 08 00 15 2E 80 11 00 00 00 00 00 00 BD [22:00:08]Write i2c OK [22:00:08]MH_I2C_Read... [22:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:08]Read from MH i2c: E2 [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: E2 17 00 [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: E2 17 00 15 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 12 [22:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:00:08]wFMCommunicate OK [22:00:08]CreateOFDProtocolMessage done [22:00:08]OFDSenderStorePacket 155703 [22:00:08]StoreOFDPacket docnum=155703 [22:00:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 49 5A 07 01 A0 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 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 69 C3 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 60 02 00 35 04 06 00 D8 0E 79 6C 57 F4 F4 FE E3 F2 69 2D C0 C5 [22:00:08]CheckFolder [22:00:08]dirname=/storage/ofd_packets [22:00:08]CheckFolder done [22:00:08]ProducePacketName [22:00:08]name=ofd_packets/00155703 [22:00:08]NVStorageSaveData ofd_packets/00155703 [22:00:08]File name is /storage/ofd_packets/00155703 [22:00:08]Write 301 bytes [22:00:08]NVStorageSaveData done [22:00:08]OFDSenderStorePacket done [22:00:08]KKMCreateOFDPacket done [22:00:08]NVStorageSaveData kkm_last_timestamp [22:00:08]File name is /storage/kkm_last_timestamp [22:00:08]Write 4 bytes [22:00:08]NVStorageSaveData done [22:00:08]ExternCall_PrintAddStr [22:00:08]wPrintStart [22:00:08]Write to MH i2c: 01 00 00 16 2E 44 [22:00:08]Write i2c OK [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: 01 [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: 01 07 00 [22:00:08]MH_I2C_Read... [22:00:08]Read from MH i2c: 01 07 00 16 2E 00 00 00 00 00 FF 0F 59 [22:00:08]RasterBufferAndPrint [22:00:08]line Счет N : (1)98511 [22:00:08]line ИНН: 02508201610067 [22:00:08]line Контрольно-Кассовый Чек [22:00:08]line ПРОДАЖА [22:00:08]line ТРК (МРК, ГНК) : 31 [22:00:08]line Товар: 2710124130 [22:00:08]line Аи-92-К-5 [22:00:08]line 1.050 * 66.90 [22:00:08]line = 70.25 [22:00:08]line НДС 12% НСП 1% [22:00:08]line > о реализуемом товаре [22:00:08]line ОКРУГЛЕНИЕ: -0.25 [22:00:08]line ИТОГО: 70.00 [22:00:08]line Внесено: 70.00 [22:00:08]line СДАЧА: 0.00 [22:00:08]line НСП 1% : 0.62 [22:00:08]line НДС 12% : 7.46 [22:00:08]line Наличными: 70.00 [22:00:08]line Безнал.: 0.00 [22:00:08]line Место: АЗС № 143 "Партнер Нефть" [22:00:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:00:08]line СНО: Общий режим [22:00:08]line Чек 328 24.10.2024 22:00 [22:00:08]line Смена: 534 ФФД: 1.0 [22:00:08]line ЗНМ: 0300000096 [22:00:08]line РНМ: 0000000000091693 [22:00:08]line Версия ККМ: 001 [22:00:08]line ФМ: 0000000000871792 [22:00:08]line ФД: 155703 [22:00:08]line ФПД: 237556678285300 [22:00:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T220009&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155703&fm=237556678285300&tin=02508201610067®Number=0000000000091693&sum=7000 [22:00:08]written 0, free lines is 4095 [22:00:09]OFD Sender: Processing packet 155703 [packets to send 31, broken 30] [22:00:09]ProducePacketName [22:00:09]name=ofd_packets/00155703 [22:00:09]OFD Sender: To server: pG, [22:00:09]CommunicateWithHost lk.salyk.kg:30040 [22:00:09]ConnectInit lk.salyk.kg [22:00:09]Connected sock=10 [22:00:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 49 5A 07 01 A0 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 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 69 C3 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 60 02 00 35 04 06 00 D8 0E 79 6C 57 F4 F4 FE E3 F2 69 2D C0 C5 [22:00: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 39 32 4F 00 00 00 12 8A 47 00 A7 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 39 32 10 04 04 00 37 60 02 00 F4 03 04 00 E0 68 1A 67 B6 04 01 00 00 9D C3 9E 7E F3 44 F3 F7 [22:00:09]CommunicateWithHost err = 0 [22:00:09]CheckOFDResponse [22:00:09]1017 (14) - 77093643461234 [22:00:09]1041 (16) - 0000000000871792 [22:00:09]1040 (4) - 155703 [22:00:09]1012 (4) - 24.10.2024 15:33 [22:00:09]1206 (1) - 0 [22:00:09]OFD Sender: Remove packet 155703 [22:00:09]ProducePacketName [22:00:09]name=ofd_packets/00155703 [22:00:09]NVStorageDeleteData [22:00:09]Write to MH i2c: 01 00 00 41 2E 6F [22:00:09]Write i2c OK [22:00:09]MH_I2C_Read... [22:00:09]Read from MH i2c: 01 [22:00:09]MH_I2C_Read... [22:00:09]Read from MH i2c: 01 07 00 [22:00:09]MH_I2C_Read... [22:00:09]Read from MH i2c: 01 07 00 41 2E 00 00 00 00 00 DA 0C 5C [22:00:09]RasterBufferAndPrint [22:00:09]line [22:00:09]line [22:00:09]line [22:00:09]line [22:00:09]line [22:00:09]written 0, free lines is 3300 [22:00:09]process_action close_receipt done [22:00:09]requested_data is exist [22:00:09]produce_requested_data [22:00:09]requested_item fm.sn is exist - process it [22:00:09]wFMCommunicate request_size=4 [22:00:09]MH_SAM_APDU [22:00:09]CAPDU: 80 11 00 00 [22:00:09]Write to MH i2c: E2 08 00 48 2E 80 11 00 00 00 00 00 00 F0 [22:00:09]Write i2c OK [22:00:09]MH_I2C_Read... [22:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:09]Read from MH i2c: E2 [22:00:09]MH_I2C_Read... [22:00:09]Read from MH i2c: E2 17 00 [22:00:09]MH_I2C_Read... [22:00:09]Read from MH i2c: E2 17 00 48 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 45 [22:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:00:09]wFMCommunicate OK [22:00:09]requested_item fd.num is exist - process it [22:00:09]SAM_PROTO_GetFieldsCounters [22:00:09]wFMCommunicate request_size=4 [22:00:09]MH_SAM_APDU [22:00:09]CAPDU: 80 13 00 00 [22:00:09]Write to MH i2c: E2 08 00 49 2E 80 13 00 00 00 00 00 00 F3 [22:00:09]Write i2c OK [22:00:09]MH_I2C_Read... [22:00:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:09]Read from MH i2c: E2 [22:00:09]MH_I2C_Read... [22:00:09]Read from MH i2c: E2 62 00 [22:00:09]MH_I2C_Read... [22:00:09]Read from MH i2c: E2 62 00 49 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 37 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 A5 [22:00:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 37 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:00:09]wFMCommunicate OK [22:00:09]SAM_PROTO_GetFieldsCounters done [22:00:09]requested_item shift.num is exist - process it [22:00:09]requested_item shift.opened is exist - process it [22:00:09]req_shift_opened [22:00:09]FM_GetShiftState [22:00:09]SAM_PROTO_GetShiftState [22:00:09]wFMCommunicate request_size=4 [22:00:09]MH_SAM_APDU [22:00:09]CAPDU: 80 13 01 00 [22:00:09]Write to MH i2c: E2 08 00 4A 2E 80 13 01 00 00 00 00 00 F5 [22:00:09]Write i2c OK [22:00:09]MH_I2C_Read... [22:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:09]Read from MH i2c: E2 [22:00:09]MH_I2C_Read... [22:00:09]Read from MH i2c: E2 0E 00 [22:00:09]MH_I2C_Read... [22:00:09]Read from MH i2c: E2 0E 00 4A 2E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 42 [22:00:09]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:00:09]wFMCommunicate OK [22:00:09]SAM_PROTO_GetShiftState done [22:00:09]FM_GetShiftState done [22:00:09]req_shift_opened done [22:00:09]requested_item shift.open_date is exist - process it [22:00:09]req_shift_open_date [22:00:09]req_shift_open_date done [22:00:09]produce_requested_data done [22:00:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155703,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [22:00:09]process_action_free close_receipt [22:00:09]json_value_free [22:00:09]json_value_free done [22:00:09]process_json_proto returns [22:00:09]Send response to host [22:00:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155703,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [22:00:09]free response buf [22:00:09]execute_script done [22:00:09]execute_script returns [22:00:09]free content buf [22:00:09]Sock 9.Close socket [22:00:09]Sock 9.Thread stoped [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:13]accept exits with 8 [22:02:13]New connection [22:02:13]New thread 3066637668 created [22:02:13]Thread 3066781028 joined [22:02:13]Waiting for new connection... [22:02:13] Sock 8.Parse request [22:02:13]Sock 8.Check first char [22:02:13]Sock 8.First char is OK [22:02:13]request: POST /json_proto HTTP/1.0 [22:02:13]Method: POST [22:02:13]URL: /json_proto [22:02:13]Method is POST - this is cgi request [22:02:13]url: /json_proto [22:02:13]query_string will be loaded in cgi processing [22:02:13]execute_cgi json_proto POST (null) [22:02:13]execute_cgi path=json_proto method=POST [22:02:13]POST find Content-Length [22:02:13]Host: 172.17.63.3:8080 [22:02:13]Content-Length: 676 [22:02:13]Content-Type: application/json [22:02:13] [22:02:13]POST finish read [22:02:13]Found Content-Length = 676 [22:02:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:13]execute_script... [22: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)98512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:02:13]POST & json_proto [22:02:13]process_json_proto [22:02:13]json parsed OK: [22:02:13]protocol is kg_v1.0 [22:02:13]action value=close_receipt [22:02:13]process_action close_receipt [22:02:13]cmd_close_receipt [22:02:13]MH_GetDate [22:02:13]Write to MH i2c: F0 00 00 4B 2E 68 [22:02:13]Write i2c OK [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: F0 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: F0 09 00 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: F0 09 00 4B 2E 00 E7 C3 1A 67 50 D1 6C 64 8D [22:02:13]GetLastDocTimeStamp 1729807209 [22:02:13]current date 1729807335 [22:02:13]FM_GetShiftState [22:02:13]SAM_PROTO_GetShiftState [22:02:13]wFMCommunicate request_size=4 [22:02:13]MH_SAM_APDU [22:02:13]CAPDU: 80 13 01 00 [22:02:13]Write to MH i2c: E2 08 00 4C 2E 80 13 01 00 00 00 00 00 F7 [22:02:13]Write i2c OK [22:02:13]MH_I2C_Read... [22:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:13]Read from MH i2c: E2 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: E2 0E 00 [22:02:13]MH_I2C_Read... [22:02:13]Read from MH i2c: E2 0E 00 4C 2E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 44 [22:02:13]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:02:13]wFMCommunicate OK [22:02:13]SAM_PROTO_GetShiftState done [22:02:13]FM_GetShiftState done [22:02:13]opened in 1729729836 [22:02:13]opened+sec_in_day 1729816236 [22:02:13]quantity*price = 50041 [22:02:13]sum+1 = 50042 [22:02:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 329 24.10.2024 22:02 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155704 ФПД: 183291107033372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T220215&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155704&fm=183291107033372&tin=02508201610067®Number=0000000000091693&sum=50000 [22:02:14]StoreToDocumentArchive [22:02:14]shift 534 fd 155704 [22:02:14]save to /storage/0534/doc_00155704 [22:02:14]save last doc name /storage/0534/doc_00155704 to /storage/kkm_last_doc_name [22:02:14]save OK [22:02:14]Clear old archive folders... [22:02:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:02:14]tlvbuf is 01F53210 [22:02:14]SAM_PROTO_ClearQueue [22:02:14]wFMCommunicate request_size=4 [22:02:14]MH_SAM_APDU [22:02:14]CAPDU: 80 09 00 00 [22:02:14]Write to MH i2c: E2 08 00 59 2E 80 09 00 00 00 00 00 00 F9 [22:02:14]Write i2c OK [22:02:14]MH_I2C_Read... [22:02:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:14]Read from MH i2c: E2 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: E2 03 00 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: E2 03 00 59 2E 00 90 00 FB [22:02:14]RAPDU: 90 00 [22:02:14]wFMCommunicate OK [22:02:14]SAM_PROTO_ClearQueue done [22:02:14]KKMCreateOFDPacket [22:02:14]OFDProtocolAddRootSTLVToBuf [22:02:14]FM_MakeSignedData [22:02:14]FM_MakeSignedData [22:02:14]SAM_PROTO_SignData [22:02:14]wFMCommunicate request_size=4 [22:02:14]MH_SAM_APDU [22:02:14]CAPDU: 80 0D 01 02 [22:02:14]Write to MH i2c: E2 08 00 5A 2E 80 0D 01 02 00 00 00 00 01 [22:02:14]Write i2c OK [22:02:14]MH_I2C_Read... [22:02:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:14]Read from MH i2c: E2 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: E2 03 00 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: E2 03 00 5A 2E 00 90 00 FC [22:02:14]RAPDU: 90 00 [22:02:14]wFMCommunicate OK [22:02:14]wFMCommunicate request_size=255 [22:02:14]MH_SAM_APDU [22: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 E7 C3 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 60 02 00 35 04 06 00 A6 [22:02:14]Write to MH i2c: E2 02 01 5B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 E7 C3 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 60 02 00 35 04 06 00 A6 00 00 62 [22:02:14]Write i2c OK [22:02:14]MH_I2C_Read... [22:02:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:14]Read from MH i2c: E2 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: E2 03 00 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: E2 03 00 5B 2E 00 90 00 FD [22:02:14]RAPDU: 90 00 [22:02:14]wFMCommunicate OK [22:02:14]wFMCommunicate request_size=10 [22:02:14]MH_SAM_APDU [22:02:14]CAPDU: 80 0D 02 02 05 B3 C9 53 41 1C [22:02:14]Write to MH i2c: E2 0D 00 5C 2E 80 0D 02 02 05 00 B3 C9 53 41 1C 00 00 3A [22:02:14]Write i2c OK [22:02:14]MH_I2C_Read... [22:02:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:14]Read from MH i2c: E2 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: E2 03 00 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: E2 03 00 5C 2E 00 90 00 FE [22:02:14]RAPDU: 90 00 [22:02:14]wFMCommunicate OK [22:02:14]wFMCommunicate request_size=4 [22:02:14]MH_SAM_APDU [22:02:14]CAPDU: 80 0D 03 02 [22:02:14]Write to MH i2c: E2 08 00 5D 2E 80 0D 03 02 00 00 00 00 06 [22:02:14]Write i2c OK [22:02:14]MH_I2C_Read... [22:02:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:14]Read from MH i2c: E2 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: E2 0B 00 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: E2 0B 00 5D 2E 00 46 5D 54 61 0C 89 DF C3 90 00 96 [22:02:14]RAPDU: 46 5D 54 61 0C 89 DF C3 90 00 [22:02:14]wFMCommunicate OK [22:02:14]SAM_PROTO_SignData done [22:02:14]FM_MakeSignedData done [22:02:14]CreateOFDProtocolMessage [22:02:14]wFMCommunicate request_size=4 [22:02:14]MH_SAM_APDU [22:02:14]CAPDU: 80 11 00 00 [22:02:14]Write to MH i2c: E2 08 00 5E 2E 80 11 00 00 00 00 00 00 06 [22:02:14]Write i2c OK [22:02:14]MH_I2C_Read... [22:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:14]Read from MH i2c: E2 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: E2 17 00 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: E2 17 00 5E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5B [22:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:02:14]wFMCommunicate OK [22:02:14]CreateOFDProtocolMessage done [22:02:14]OFDSenderStorePacket 155704 [22:02:14]StoreOFDPacket docnum=155704 [22:02:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CE 03 07 01 26 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 E7 C3 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 60 02 00 35 04 06 00 A6 B3 C9 53 41 1C 46 5D 54 61 0C 89 DF C3 [22:02:14]CheckFolder [22:02:14]dirname=/storage/ofd_packets [22:02:14]CheckFolder done [22:02:14]ProducePacketName [22:02:14]name=ofd_packets/00155704 [22:02:14]NVStorageSaveData ofd_packets/00155704 [22:02:14]File name is /storage/ofd_packets/00155704 [22:02:14]Write 301 bytes [22:02:14]NVStorageSaveData done [22:02:14]OFDSenderStorePacket done [22:02:14]KKMCreateOFDPacket done [22:02:14]NVStorageSaveData kkm_last_timestamp [22:02:14]File name is /storage/kkm_last_timestamp [22:02:14]Write 4 bytes [22:02:14]NVStorageSaveData done [22:02:14]ExternCall_PrintAddStr [22:02:14]wPrintStart [22:02:14]Write to MH i2c: 01 00 00 5F 2E 8D [22:02:14]Write i2c OK [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: 01 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: 01 07 00 [22:02:14]MH_I2C_Read... [22:02:14]Read from MH i2c: 01 07 00 5F 2E 00 00 00 00 00 FF 0F A2 [22:02:14]RasterBufferAndPrint [22:02:14]line Счет N : (1)98512 [22:02:14]line ИНН: 02508201610067 [22:02:14]line Контрольно-Кассовый Чек [22:02:14]line ПРОДАЖА [22:02:14]line ТРК (МРК, ГНК) : 21 [22:02:14]line Товар: 2710124130 [22:02:14]line Аи-92-К-5 [22:02:14]line 7.480 * 66.90 [22:02:14]line = 500.41 [22:02:14]line НДС 12% НСП 1% [22:02:14]line > о реализуемом товаре [22:02:14]line ОКРУГЛЕНИЕ: -0.41 [22:02:14]line ИТОГО: 500.00 [22:02:14]line Внесено: 500.00 [22:02:14]line СДАЧА: 0.00 [22:02:14]line НСП 1% : 4.43 [22:02:14]line НДС 12% : 53.14 [22:02:14]line Наличными: 500.00 [22:02:14]line Безнал.: 0.00 [22:02:14]line Место: АЗС № 143 "Партнер Нефть" [22:02:14]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:02:14]line СНО: Общий режим [22:02:14]line Чек 329 24.10.2024 22:02 [22:02:14]line Смена: 534 ФФД: 1.0 [22:02:14]line ЗНМ: 0300000096 [22:02:14]line РНМ: 0000000000091693 [22:02:14]line Версия ККМ: 001 [22:02:14]line ФМ: 0000000000871792 [22:02:14]line ФД: 155704 [22:02:14]line ФПД: 183291107033372 [22:02:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T220215&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155704&fm=183291107033372&tin=02508201610067®Number=0000000000091693&sum=50000 [22:02:15]OFD Sender: Processing packet 155704 [packets to send 31, broken 30] [22:02:15]ProducePacketName [22:02:15]name=ofd_packets/00155704 [22:02:15]OFD Sender: To server: pG, [22:02:15]CommunicateWithHost lk.salyk.kg:30040 [22:02:15]ConnectInit lk.salyk.kg [22:02:15]written 0, free lines is 4095 [22:02:15]Connected sock=9 [22: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 39 32 0F 01 00 00 CE 03 07 01 26 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 E7 C3 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 60 02 00 35 04 06 00 A6 B3 C9 53 41 1C 46 5D 54 61 0C 89 DF C3 [22:02: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 39 32 4F 00 00 00 7B 80 47 00 94 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 39 32 10 04 04 00 38 60 02 00 F4 03 04 00 5E 69 1A 67 B6 04 01 00 00 93 F7 BC AB 10 24 A7 35 [22:02:15]CommunicateWithHost err = 0 [22:02:15]CheckOFDResponse [22:02:15]1017 (14) - 77093643461234 [22:02:15]1041 (16) - 0000000000871792 [22:02:15]1040 (4) - 155704 [22:02:15]1012 (4) - 24.10.2024 15:35 [22:02:15]1206 (1) - 0 [22:02:15]OFD Sender: Remove packet 155704 [22:02:15]ProducePacketName [22:02:15]name=ofd_packets/00155704 [22:02:15]NVStorageDeleteData [22:02:15]Write to MH i2c: 01 00 00 8A 2E B8 [22:02:15]Write i2c OK [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: 01 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: 01 07 00 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: 01 07 00 8A 2E 00 00 00 00 00 E9 0C B4 [22:02:15]RasterBufferAndPrint [22:02:15]line [22:02:15]line [22:02:15]line [22:02:15]line [22:02:15]line [22:02:15]written 0, free lines is 3311 [22:02:15]process_action close_receipt done [22:02:15]requested_data is exist [22:02:15]produce_requested_data [22:02:15]requested_item fm.sn is exist - process it [22:02:15]wFMCommunicate request_size=4 [22:02:15]MH_SAM_APDU [22:02:15]CAPDU: 80 11 00 00 [22:02:15]Write to MH i2c: E2 08 00 91 2E 80 11 00 00 00 00 00 00 39 [22:02:15]Write i2c OK [22:02:15]MH_I2C_Read... [22:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:15]Read from MH i2c: E2 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: E2 17 00 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: E2 17 00 91 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8E [22:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:02:15]wFMCommunicate OK [22:02:15]requested_item fd.num is exist - process it [22:02:15]SAM_PROTO_GetFieldsCounters [22:02:15]wFMCommunicate request_size=4 [22:02:15]MH_SAM_APDU [22:02:15]CAPDU: 80 13 00 00 [22:02:15]Write to MH i2c: E2 08 00 92 2E 80 13 00 00 00 00 00 00 3C [22:02:15]Write i2c OK [22:02:15]MH_I2C_Read... [22:02:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:15]Read from MH i2c: E2 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: E2 62 00 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: E2 62 00 92 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 38 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [22:02: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 38 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:02:15]wFMCommunicate OK [22:02:15]SAM_PROTO_GetFieldsCounters done [22:02:15]requested_item shift.num is exist - process it [22:02:15]requested_item shift.opened is exist - process it [22:02:15]req_shift_opened [22:02:15]FM_GetShiftState [22:02:15]SAM_PROTO_GetShiftState [22:02:15]wFMCommunicate request_size=4 [22:02:15]MH_SAM_APDU [22:02:15]CAPDU: 80 13 01 00 [22:02:15]Write to MH i2c: E2 08 00 93 2E 80 13 01 00 00 00 00 00 3E [22:02:15]Write i2c OK [22:02:15]MH_I2C_Read... [22:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:15]Read from MH i2c: E2 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: E2 0E 00 [22:02:15]MH_I2C_Read... [22:02:15]Read from MH i2c: E2 0E 00 93 2E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8B [22:02:15]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:02:15]wFMCommunicate OK [22:02:15]SAM_PROTO_GetShiftState done [22:02:15]FM_GetShiftState done [22:02:15]req_shift_opened done [22:02:15]requested_item shift.open_date is exist - process it [22:02:15]req_shift_open_date [22:02:15]req_shift_open_date done [22:02:15]produce_requested_data done [22:02:15]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155704,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [22:02:15]process_action_free close_receipt [22:02:15]json_value_free [22:02:15]json_value_free done [22:02:15]process_json_proto returns [22:02:15]Send response to host [22:02:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155704,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [22:02:15]free response buf [22:02:15]execute_script done [22:02:15]execute_script returns [22:02:15]free content buf [22:02:15]Sock 8.Close socket [22:02:15]Sock 8.Thread stoped [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:20]accept exits with 10 [22:09:20]New connection [22:09:20]New thread 3066781028 created [22:09:20]Thread 3066637668 joined [22:09:20]Waiting for new connection... [22:09:20] Sock 10.Parse request [22:09:20]Sock 10.Check first char [22:09:20]Sock 10.First char is OK [22:09:20]request: POST /json_proto HTTP/1.0 [22:09:20]Method: POST [22:09:20]URL: /json_proto [22:09:20]Method is POST - this is cgi request [22:09:20]url: /json_proto [22:09:20]query_string will be loaded in cgi processing [22:09:20]execute_cgi json_proto POST (null) [22:09:20]execute_cgi path=json_proto method=POST [22:09:20]POST find Content-Length [22:09:20]Host: 172.17.63.3:8080 [22:09:20]Content-Length: 681 [22:09:20]Content-Type: application/json [22:09:20] [22:09:20]POST finish read [22:09:20]Found Content-Length = 681 [22:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:20]execute_script... [22: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)98513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:09:20]POST & json_proto [22:09:20]process_json_proto [22:09:20]json parsed OK: [22:09:20]protocol is kg_v1.0 [22:09:20]action value=close_receipt [22:09:20]process_action close_receipt [22:09:20]cmd_close_receipt [22:09:20]MH_GetDate [22:09:20]Write to MH i2c: F0 00 00 94 2E B1 [22:09:20]Write i2c OK [22:09:20]MH_I2C_Read... [22:09:20]Read from MH i2c: F0 [22:09:20]MH_I2C_Read... [22:09:20]Read from MH i2c: F0 09 00 [22:09:20]MH_I2C_Read... [22:09:20]Read from MH i2c: F0 09 00 94 2E 00 92 C5 1A 67 50 D1 6C 64 83 [22:09:20]GetLastDocTimeStamp 1729807335 [22:09:20]current date 1729807762 [22:09:20]FM_GetShiftState [22:09:20]SAM_PROTO_GetShiftState [22:09:20]wFMCommunicate request_size=4 [22:09:20]MH_SAM_APDU [22:09:20]CAPDU: 80 13 01 00 [22:09:20]Write to MH i2c: E2 08 00 95 2E 80 13 01 00 00 00 00 00 40 [22:09:20]Write i2c OK [22:09:20]MH_I2C_Read... [22:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:20]Read from MH i2c: E2 [22:09:20]MH_I2C_Read... [22:09:20]Read from MH i2c: E2 0E 00 [22:09:20]MH_I2C_Read... [22:09:20]Read from MH i2c: E2 0E 00 95 2E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 8D [22:09:20]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:09:20]wFMCommunicate OK [22:09:20]SAM_PROTO_GetShiftState done [22:09:20]FM_GetShiftState done [22:09:20]opened in 1729729836 [22:09:20]opened+sec_in_day 1729816236 [22:09:20]quantity*price = 100015 [22:09:20]sum+1 = 100017 [22:09:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 330 24.10.2024 22:09 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155705 ФПД: 92071881942388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T220922&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155705&fm=92071881942388&tin=02508201610067®Number=0000000000091693&sum=100000 [22:09:21]StoreToDocumentArchive [22:09:21]shift 534 fd 155705 [22:09:21]save to /storage/0534/doc_00155705 [22:09:21]save last doc name /storage/0534/doc_00155705 to /storage/kkm_last_doc_name [22:09:21]save OK [22:09:21]Clear old archive folders... [22:09:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:09:21]tlvbuf is 01F34920 [22:09:21]SAM_PROTO_ClearQueue [22:09:21]wFMCommunicate request_size=4 [22:09:21]MH_SAM_APDU [22:09:21]CAPDU: 80 09 00 00 [22:09:21]Write to MH i2c: E2 08 00 A2 2E 80 09 00 00 00 00 00 00 42 [22:09:21]Write i2c OK [22:09:21]MH_I2C_Read... [22:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:09:21]Read from MH i2c: E2 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 03 00 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 03 00 A2 2E 00 90 00 44 [22:09:21]RAPDU: 90 00 [22:09:21]wFMCommunicate OK [22:09:21]SAM_PROTO_ClearQueue done [22:09:21]KKMCreateOFDPacket [22:09:21]OFDProtocolAddRootSTLVToBuf [22:09:21]FM_MakeSignedData [22:09:21]FM_MakeSignedData [22:09:21]SAM_PROTO_SignData [22:09:21]wFMCommunicate request_size=4 [22:09:21]MH_SAM_APDU [22:09:21]CAPDU: 80 0D 01 02 [22:09:21]Write to MH i2c: E2 08 00 A3 2E 80 0D 01 02 00 00 00 00 4A [22:09:21]Write i2c OK [22:09:21]MH_I2C_Read... [22:09:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:09:21]Read from MH i2c: E2 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 03 00 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 03 00 A3 2E 00 90 00 45 [22:09:21]RAPDU: 90 00 [22:09:21]wFMCommunicate OK [22:09:21]wFMCommunicate request_size=255 [22:09:21]MH_SAM_APDU [22:09: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 92 C5 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 60 02 00 35 04 06 00 53 [22:09:21]Write to MH i2c: E2 02 01 A4 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 92 C5 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 60 02 00 35 04 06 00 53 00 00 01 [22:09:21]Write i2c OK [22:09:21]MH_I2C_Read... [22:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:21]Read from MH i2c: E2 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 03 00 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 03 00 A4 2E 00 90 00 46 [22:09:21]RAPDU: 90 00 [22:09:21]wFMCommunicate OK [22:09:21]wFMCommunicate request_size=10 [22:09:21]MH_SAM_APDU [22:09:21]CAPDU: 80 0D 02 02 05 BD 27 D1 25 74 [22:09:21]Write to MH i2c: E2 0D 00 A5 2E 80 0D 02 02 05 00 BD 27 D1 25 74 00 00 A5 [22:09:21]Write i2c OK [22:09:21]MH_I2C_Read... [22:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:09:21]Read from MH i2c: E2 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 03 00 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 03 00 A5 2E 00 90 00 47 [22:09:21]RAPDU: 90 00 [22:09:21]wFMCommunicate OK [22:09:21]wFMCommunicate request_size=4 [22:09:21]MH_SAM_APDU [22:09:21]CAPDU: 80 0D 03 02 [22:09:21]Write to MH i2c: E2 08 00 A6 2E 80 0D 03 02 00 00 00 00 4F [22:09:21]Write i2c OK [22:09:21]MH_I2C_Read... [22:09:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:09:21]Read from MH i2c: E2 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 0B 00 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 0B 00 A6 2E 00 6B 71 32 52 6B 13 0E 26 90 00 62 [22:09:21]RAPDU: 6B 71 32 52 6B 13 0E 26 90 00 [22:09:21]wFMCommunicate OK [22:09:21]SAM_PROTO_SignData done [22:09:21]FM_MakeSignedData done [22:09:21]CreateOFDProtocolMessage [22:09:21]wFMCommunicate request_size=4 [22:09:21]MH_SAM_APDU [22:09:21]CAPDU: 80 11 00 00 [22:09:21]Write to MH i2c: E2 08 00 A7 2E 80 11 00 00 00 00 00 00 4F [22:09:21]Write i2c OK [22:09:21]MH_I2C_Read... [22:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:21]Read from MH i2c: E2 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 17 00 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: E2 17 00 A7 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A4 [22:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:09:21]wFMCommunicate OK [22:09:21]CreateOFDProtocolMessage done [22:09:21]OFDSenderStorePacket 155705 [22:09:21]StoreOFDPacket docnum=155705 [22:09:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9F 8A 07 01 D4 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 92 C5 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 60 02 00 35 04 06 00 53 BD 27 D1 25 74 6B 71 32 52 6B 13 0E 26 [22:09:21]CheckFolder [22:09:21]dirname=/storage/ofd_packets [22:09:21]CheckFolder done [22:09:21]ProducePacketName [22:09:21]name=ofd_packets/00155705 [22:09:21]NVStorageSaveData ofd_packets/00155705 [22:09:21]File name is /storage/ofd_packets/00155705 [22:09:21]Write 301 bytes [22:09:21]NVStorageSaveData done [22:09:21]OFDSenderStorePacket done [22:09:21]KKMCreateOFDPacket done [22:09:21]NVStorageSaveData kkm_last_timestamp [22:09:21]File name is /storage/kkm_last_timestamp [22:09:21]Write 4 bytes [22:09:21]NVStorageSaveData done [22:09:21]ExternCall_PrintAddStr [22:09:21]wPrintStart [22:09:21]Write to MH i2c: 01 00 00 A8 2E D6 [22:09:21]Write i2c OK [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: 01 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: 01 07 00 [22:09:21]MH_I2C_Read... [22:09:21]Read from MH i2c: 01 07 00 A8 2E 00 00 00 00 00 FF 0F EB [22:09:21]RasterBufferAndPrint [22:09:21]line Счет N : (1)98513 [22:09:21]line ИНН: 02508201610067 [22:09:21]line Контрольно-Кассовый Чек [22:09:21]line ПРОДАЖА [22:09:21]line ТРК (МРК, ГНК) : 11 [22:09:21]line Товар: 2710124130 [22:09:21]line Аи-92-К-5 [22:09:21]line 14.950 * 66.90 [22:09:21]line = 1000.16 [22:09:21]line НДС 12% НСП 1% [22:09:21]line > о реализуемом товаре [22:09:21]line ОКРУГЛЕНИЕ: -0.16 [22:09:21]line ИТОГО: 1000.00 [22:09:21]line Внесено: 1000.00 [22:09:21]line СДАЧА: 0.00 [22:09:21]line НСП 1% : 8.85 [22:09:21]line НДС 12% : 106.21 [22:09:21]line Наличными: 1000.00 [22:09:21]line Безнал.: 0.00 [22:09:21]line Место: АЗС № 143 "Партнер Нефть" [22:09:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:09:21]line СНО: Общий режим [22:09:21]line Чек 330 24.10.2024 22:09 [22:09:21]line Смена: 534 ФФД: 1.0 [22:09:21]line ЗНМ: 0300000096 [22:09:21]line РНМ: 0000000000091693 [22:09:21]line Версия ККМ: 001 [22:09:21]line ФМ: 0000000000871792 [22:09:21]line ФД: 155705 [22:09:21]line ФПД: 92071881942388 [22:09:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T220922&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155705&fm=92071881942388&tin=02508201610067®Number=0000000000091693&sum=100000 [22:09:22]OFD Sender: Processing packet 155705 [packets to send 31, broken 30] [22:09:22]ProducePacketName [22:09:22]name=ofd_packets/00155705 [22:09:22]OFD Sender: To server: pG, [22:09:22]CommunicateWithHost lk.salyk.kg:30040 [22:09:22]ConnectInit lk.salyk.kg [22:09:22]written 0, free lines is 4095 [22:09:22]Connected sock=9 [22: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 39 32 0F 01 00 00 9F 8A 07 01 D4 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 92 C5 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 60 02 00 35 04 06 00 53 BD 27 D1 25 74 6B 71 32 52 6B 13 0E 26 [22:09: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 39 32 4F 00 00 00 9C 9B 47 00 E9 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 39 32 10 04 04 00 39 60 02 00 F4 03 04 00 09 6B 1A 67 B6 04 01 00 00 4E A4 F4 40 46 C2 31 71 [22:09:22]CommunicateWithHost err = 0 [22:09:22]CheckOFDResponse [22:09:22]1017 (14) - 77093643461234 [22:09:22]1041 (16) - 0000000000871792 [22:09:22]1040 (4) - 155705 [22:09:22]1012 (4) - 24.10.2024 15:43 [22:09:22]1206 (1) - 0 [22:09:22]OFD Sender: Remove packet 155705 [22:09:22]ProducePacketName [22:09:22]name=ofd_packets/00155705 [22:09:22]NVStorageDeleteData [22:09:22]Write to MH i2c: 01 00 00 D3 2E 01 [22:09:22]Write i2c OK [22:09:22]MH_I2C_Read... [22:09:22]Read from MH i2c: 01 [22:09:22]MH_I2C_Read... [22:09:22]Read from MH i2c: 01 07 00 [22:09:22]MH_I2C_Read... [22:09:22]Read from MH i2c: 01 07 00 D3 2E 00 00 00 00 00 DF 0C F3 [22:09:22]RasterBufferAndPrint [22:09:22]line [22:09:22]line [22:09:22]line [22:09:22]line [22:09:22]line [22:09:22]written 0, free lines is 3301 [22:09:22]process_action close_receipt done [22:09:22]requested_data is exist [22:09:22]produce_requested_data [22:09:22]requested_item fm.sn is exist - process it [22:09:22]wFMCommunicate request_size=4 [22:09:22]MH_SAM_APDU [22:09:22]CAPDU: 80 11 00 00 [22:09:22]Write to MH i2c: E2 08 00 DA 2E 80 11 00 00 00 00 00 00 82 [22:09:22]Write i2c OK [22:09:22]MH_I2C_Read... [22:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:09:22]Read from MH i2c: E2 [22:09:22]MH_I2C_Read... [22:09:22]Read from MH i2c: E2 17 00 [22:09:22]MH_I2C_Read... [22:09:22]Read from MH i2c: E2 17 00 DA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D7 [22:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:09:22]wFMCommunicate OK [22:09:22]requested_item fd.num is exist - process it [22:09:22]SAM_PROTO_GetFieldsCounters [22:09:22]wFMCommunicate request_size=4 [22:09:22]MH_SAM_APDU [22:09:22]CAPDU: 80 13 00 00 [22:09:22]Write to MH i2c: E2 08 00 DB 2E 80 13 00 00 00 00 00 00 85 [22:09:22]Write i2c OK [22:09:22]MH_I2C_Read... [22:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:09:22]Read from MH i2c: E2 [22:09:22]MH_I2C_Read... [22:09:22]Read from MH i2c: E2 62 00 [22:09:22]MH_I2C_Read... [22:09:22]Read from MH i2c: E2 62 00 DB 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 39 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [22:09: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 39 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:09:22]wFMCommunicate OK [22:09:22]SAM_PROTO_GetFieldsCounters done [22:09:22]requested_item shift.num is exist - process it [22:09:22]requested_item shift.opened is exist - process it [22:09:22]req_shift_opened [22:09:22]FM_GetShiftState [22:09:22]SAM_PROTO_GetShiftState [22:09:22]wFMCommunicate request_size=4 [22:09:22]MH_SAM_APDU [22:09:22]CAPDU: 80 13 01 00 [22:09:22]Write to MH i2c: E2 08 00 DC 2E 80 13 01 00 00 00 00 00 87 [22:09:22]Write i2c OK [22:09:22]MH_I2C_Read... [22:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:09:22]Read from MH i2c: E2 [22:09:22]MH_I2C_Read... [22:09:22]Read from MH i2c: E2 0E 00 [22:09:22]MH_I2C_Read... [22:09:22]Read from MH i2c: E2 0E 00 DC 2E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D4 [22:09:22]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:09:22]wFMCommunicate OK [22:09:22]SAM_PROTO_GetShiftState done [22:09:22]FM_GetShiftState done [22:09:22]req_shift_opened done [22:09:22]requested_item shift.open_date is exist - process it [22:09:22]req_shift_open_date [22:09:22]req_shift_open_date done [22:09:22]produce_requested_data done [22:09:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155705,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [22:09:22]process_action_free close_receipt [22:09:22]json_value_free [22:09:22]json_value_free done [22:09:22]process_json_proto returns [22:09:22]Send response to host [22:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155705,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [22:09:22]free response buf [22:09:22]execute_script done [22:09:22]execute_script returns [22:09:22]free content buf [22:09:22]Sock 10.Close socket [22:09:22]Sock 10.Thread stoped [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:24]accept exits with 8 [22:11:24]New connection [22:11:24]New thread 3066637668 created [22:11:24]Thread 3066781028 joined [22:11:24]Waiting for new connection... [22:11:24] Sock 8.Parse request [22:11:24]Sock 8.Check first char [22:11:24]Sock 8.First char is OK [22:11:24]request: POST /json_proto HTTP/1.0 [22:11:24]Method: POST [22:11:24]URL: /json_proto [22:11:24]Method is POST - this is cgi request [22:11:24]url: /json_proto [22:11:24]query_string will be loaded in cgi processing [22:11:24]execute_cgi json_proto POST (null) [22:11:24]execute_cgi path=json_proto method=POST [22:11:24]POST find Content-Length [22:11:24]Host: 172.17.63.3:8080 [22:11:24]Content-Length: 676 [22:11:24]Content-Type: application/json [22:11:24] [22:11:24]POST finish read [22:11:24]Found Content-Length = 676 [22:11:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:24]execute_script... [22:11: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)98514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:24]POST & json_proto [22:11:24]process_json_proto [22:11:24]json parsed OK: [22:11:24]protocol is kg_v1.0 [22:11:24]action value=close_receipt [22:11:24]process_action close_receipt [22:11:24]cmd_close_receipt [22:11:24]MH_GetDate [22:11:24]Write to MH i2c: F0 00 00 DD 2E FA [22:11:24]Write i2c OK [22:11:24]MH_I2C_Read... [22:11:24]Read from MH i2c: F0 [22:11:24]MH_I2C_Read... [22:11:24]Read from MH i2c: F0 09 00 [22:11:24]MH_I2C_Read... [22:11:24]Read from MH i2c: F0 09 00 DD 2E 00 0E C6 1A 67 50 D1 6C 64 49 [22:11:24]GetLastDocTimeStamp 1729807762 [22:11:24]current date 1729807886 [22:11:24]FM_GetShiftState [22:11:24]SAM_PROTO_GetShiftState [22:11:24]wFMCommunicate request_size=4 [22:11:24]MH_SAM_APDU [22:11:24]CAPDU: 80 13 01 00 [22:11:24]Write to MH i2c: E2 08 00 DE 2E 80 13 01 00 00 00 00 00 89 [22:11:24]Write i2c OK [22:11:24]MH_I2C_Read... [22:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:24]Read from MH i2c: E2 [22:11:24]MH_I2C_Read... [22:11:24]Read from MH i2c: E2 0E 00 [22:11:24]MH_I2C_Read... [22:11:24]Read from MH i2c: E2 0E 00 DE 2E 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D6 [22:11:24]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:11:24]wFMCommunicate OK [22:11:24]SAM_PROTO_GetShiftState done [22:11:24]FM_GetShiftState done [22:11:24]opened in 1729729836 [22:11:24]opened+sec_in_day 1729816236 [22:11:24]quantity*price = 20003 [22:11:24]sum+1 = 20004 [22:11:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 331 24.10.2024 22:11 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155706 ФПД: 58700338448451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T221126&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155706&fm=58700338448451&tin=02508201610067®Number=0000000000091693&sum=20000 [22:11:25]StoreToDocumentArchive [22:11:25]shift 534 fd 155706 [22:11:25]save to /storage/0534/doc_00155706 [22:11:25]save last doc name /storage/0534/doc_00155706 to /storage/kkm_last_doc_name [22:11:25]save OK [22:11:25]Clear old archive folders... [22:11:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:11:25]tlvbuf is 01F85C90 [22:11:25]SAM_PROTO_ClearQueue [22:11:25]wFMCommunicate request_size=4 [22:11:25]MH_SAM_APDU [22:11:25]CAPDU: 80 09 00 00 [22:11:25]Write to MH i2c: E2 08 00 EB 2E 80 09 00 00 00 00 00 00 8B [22:11:25]Write i2c OK [22:11:25]MH_I2C_Read... [22:11:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:25]Read from MH i2c: E2 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 03 00 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 03 00 EB 2E 00 90 00 8D [22:11:25]RAPDU: 90 00 [22:11:25]wFMCommunicate OK [22:11:25]SAM_PROTO_ClearQueue done [22:11:25]KKMCreateOFDPacket [22:11:25]OFDProtocolAddRootSTLVToBuf [22:11:25]FM_MakeSignedData [22:11:25]FM_MakeSignedData [22:11:25]SAM_PROTO_SignData [22:11:25]wFMCommunicate request_size=4 [22:11:25]MH_SAM_APDU [22:11:25]CAPDU: 80 0D 01 02 [22:11:25]Write to MH i2c: E2 08 00 EC 2E 80 0D 01 02 00 00 00 00 93 [22:11:25]Write i2c OK [22:11:25]MH_I2C_Read... [22:11:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:25]Read from MH i2c: E2 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 03 00 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 03 00 EC 2E 00 90 00 8E [22:11:25]RAPDU: 90 00 [22:11:25]wFMCommunicate OK [22:11:25]wFMCommunicate request_size=255 [22:11:25]MH_SAM_APDU [22:11: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 0E C6 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 60 02 00 35 04 06 00 35 [22:11:25]Write to MH i2c: E2 02 01 ED 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 0E C6 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 60 02 00 35 04 06 00 35 00 00 73 [22:11:25]Write i2c OK [22:11:25]MH_I2C_Read... [22:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:25]Read from MH i2c: E2 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 03 00 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 03 00 ED 2E 00 90 00 8F [22:11:25]RAPDU: 90 00 [22:11:25]wFMCommunicate OK [22:11:25]wFMCommunicate request_size=10 [22:11:25]MH_SAM_APDU [22:11:25]CAPDU: 80 0D 02 02 05 63 3C D2 48 43 [22:11:25]Write to MH i2c: E2 0D 00 EE 2E 80 0D 02 02 05 00 63 3C D2 48 43 00 00 9C [22:11:25]Write i2c OK [22:11:25]MH_I2C_Read... [22:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:25]Read from MH i2c: E2 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 03 00 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 03 00 EE 2E 00 90 00 90 [22:11:25]RAPDU: 90 00 [22:11:25]wFMCommunicate OK [22:11:25]wFMCommunicate request_size=4 [22:11:25]MH_SAM_APDU [22:11:25]CAPDU: 80 0D 03 02 [22:11:25]Write to MH i2c: E2 08 00 EF 2E 80 0D 03 02 00 00 00 00 98 [22:11:25]Write i2c OK [22:11:25]MH_I2C_Read... [22:11:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:25]Read from MH i2c: E2 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 0B 00 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 0B 00 EF 2E 00 CE 1F B1 95 93 FD 96 12 90 00 04 [22:11:25]RAPDU: CE 1F B1 95 93 FD 96 12 90 00 [22:11:25]wFMCommunicate OK [22:11:25]SAM_PROTO_SignData done [22:11:25]FM_MakeSignedData done [22:11:25]CreateOFDProtocolMessage [22:11:25]wFMCommunicate request_size=4 [22:11:25]MH_SAM_APDU [22:11:25]CAPDU: 80 11 00 00 [22:11:25]Write to MH i2c: E2 08 00 F0 2E 80 11 00 00 00 00 00 00 98 [22:11:25]Write i2c OK [22:11:25]MH_I2C_Read... [22:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:25]Read from MH i2c: E2 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 17 00 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: E2 17 00 F0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 ED [22:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:11:25]wFMCommunicate OK [22:11:25]CreateOFDProtocolMessage done [22:11:25]OFDSenderStorePacket 155706 [22:11:25]StoreOFDPacket docnum=155706 [22:11:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E4 32 07 01 26 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 0E C6 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 60 02 00 35 04 06 00 35 63 3C D2 48 43 CE 1F B1 95 93 FD 96 12 [22:11:25]CheckFolder [22:11:25]dirname=/storage/ofd_packets [22:11:25]CheckFolder done [22:11:25]ProducePacketName [22:11:25]name=ofd_packets/00155706 [22:11:25]NVStorageSaveData ofd_packets/00155706 [22:11:25]File name is /storage/ofd_packets/00155706 [22:11:25]Write 301 bytes [22:11:25]NVStorageSaveData done [22:11:25]OFDSenderStorePacket done [22:11:25]KKMCreateOFDPacket done [22:11:25]NVStorageSaveData kkm_last_timestamp [22:11:25]File name is /storage/kkm_last_timestamp [22:11:25]Write 4 bytes [22:11:25]NVStorageSaveData done [22:11:25]ExternCall_PrintAddStr [22:11:25]wPrintStart [22:11:25]Write to MH i2c: 01 00 00 F1 2E 1F [22:11:25]Write i2c OK [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: 01 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: 01 07 00 [22:11:25]MH_I2C_Read... [22:11:25]Read from MH i2c: 01 07 00 F1 2E 00 00 00 00 00 FF 0F 34 [22:11:25]RasterBufferAndPrint [22:11:25]line Счет N : (1)98514 [22:11:25]line ИНН: 02508201610067 [22:11:25]line Контрольно-Кассовый Чек [22:11:25]line ПРОДАЖА [22:11:25]line ТРК (МРК, ГНК) : 21 [22:11:25]line Товар: 2710124130 [22:11:25]line Аи-92-К-5 [22:11:25]line 2.990 * 66.90 [22:11:25]line = 200.03 [22:11:25]line НДС 12% НСП 1% [22:11:25]line > о реализуемом товаре [22:11:25]line ОКРУГЛЕНИЕ: -0.03 [22:11:25]line ИТОГО: 200.00 [22:11:25]line Внесено: 200.00 [22:11:25]line СДАЧА: 0.00 [22:11:25]line НСП 1% : 1.77 [22:11:25]line НДС 12% : 21.24 [22:11:25]line Наличными: 200.00 [22:11:25]line Безнал.: 0.00 [22:11:25]line Место: АЗС № 143 "Партнер Нефть" [22:11:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:11:25]line СНО: Общий режим [22:11:25]line Чек 331 24.10.2024 22:11 [22:11:25]line Смена: 534 ФФД: 1.0 [22:11:25]line ЗНМ: 0300000096 [22:11:25]line РНМ: 0000000000091693 [22:11:25]line Версия ККМ: 001 [22:11:25]line ФМ: 0000000000871792 [22:11:25]line ФД: 155706 [22:11:25]line ФПД: 58700338448451 [22:11:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T221126&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155706&fm=58700338448451&tin=02508201610067®Number=0000000000091693&sum=20000 [22:11:26]OFD Sender: Processing packet 155706 [packets to send 31, broken 30] [22:11:26]ProducePacketName [22:11:26]name=ofd_packets/00155706 [22:11:26]OFD Sender: To server: pG, [22:11:26]CommunicateWithHost lk.salyk.kg:30040 [22:11:26]ConnectInit lk.salyk.kg [22:11:26]written 0, free lines is 4095 [22:11:26]Connected sock=10 [22:11: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 39 32 0F 01 00 00 E4 32 07 01 26 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 0E C6 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 60 02 00 35 04 06 00 35 63 3C D2 48 43 CE 1F B1 95 93 FD 96 12 [22:11: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 39 32 4F 00 00 00 F5 5B 47 00 DF 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 39 32 10 04 04 00 3A 60 02 00 F4 03 04 00 85 6B 1A 67 B6 04 01 00 00 EF EE 18 DB 16 0F FE A7 [22:11:26]CommunicateWithHost err = 0 [22:11:26]CheckOFDResponse [22:11:26]1017 (14) - 77093643461234 [22:11:26]1041 (16) - 0000000000871792 [22:11:26]1040 (4) - 155706 [22:11:26]1012 (4) - 24.10.2024 15:45 [22:11:26]1206 (1) - 0 [22:11:26]OFD Sender: Remove packet 155706 [22:11:26]ProducePacketName [22:11:26]name=ofd_packets/00155706 [22:11:26]NVStorageDeleteData [22:11:26]Write to MH i2c: 01 00 00 1C 2F 4B [22:11:26]Write i2c OK [22:11:26]MH_I2C_Read... [22:11:26]Read from MH i2c: 01 [22:11:26]MH_I2C_Read... [22:11:26]Read from MH i2c: 01 07 00 [22:11:26]MH_I2C_Read... [22:11:26]Read from MH i2c: 01 07 00 1C 2F 00 00 00 00 00 E4 0C 42 [22:11:26]RasterBufferAndPrint [22:11:26]line [22:11:26]line [22:11:26]line [22:11:26]line [22:11:26]line [22:11:26]written 0, free lines is 3306 [22:11:26]process_action close_receipt done [22:11:26]requested_data is exist [22:11:26]produce_requested_data [22:11:26]requested_item fm.sn is exist - process it [22:11:26]wFMCommunicate request_size=4 [22:11:26]MH_SAM_APDU [22:11:26]CAPDU: 80 11 00 00 [22:11:26]Write to MH i2c: E2 08 00 23 2F 80 11 00 00 00 00 00 00 CC [22:11:26]Write i2c OK [22:11:26]MH_I2C_Read... [22:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:26]Read from MH i2c: E2 [22:11:26]MH_I2C_Read... [22:11:26]Read from MH i2c: E2 17 00 [22:11:26]MH_I2C_Read... [22:11:26]Read from MH i2c: E2 17 00 23 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 21 [22:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:11:26]wFMCommunicate OK [22:11:26]requested_item fd.num is exist - process it [22:11:26]SAM_PROTO_GetFieldsCounters [22:11:26]wFMCommunicate request_size=4 [22:11:26]MH_SAM_APDU [22:11:26]CAPDU: 80 13 00 00 [22:11:26]Write to MH i2c: E2 08 00 24 2F 80 13 00 00 00 00 00 00 CF [22:11:26]Write i2c OK [22:11:26]MH_I2C_Read... [22:11:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:26]Read from MH i2c: E2 [22:11:26]MH_I2C_Read... [22:11:26]Read from MH i2c: E2 62 00 [22:11:26]MH_I2C_Read... [22:11:26]Read from MH i2c: E2 62 00 24 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3A 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [22:11: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3A 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:26]wFMCommunicate OK [22:11:26]SAM_PROTO_GetFieldsCounters done [22:11:26]requested_item shift.num is exist - process it [22:11:26]requested_item shift.opened is exist - process it [22:11:26]req_shift_opened [22:11:26]FM_GetShiftState [22:11:26]SAM_PROTO_GetShiftState [22:11:26]wFMCommunicate request_size=4 [22:11:26]MH_SAM_APDU [22:11:26]CAPDU: 80 13 01 00 [22:11:26]Write to MH i2c: E2 08 00 25 2F 80 13 01 00 00 00 00 00 D1 [22:11:26]Write i2c OK [22:11:26]MH_I2C_Read... [22:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:26]Read from MH i2c: E2 [22:11:26]MH_I2C_Read... [22:11:26]Read from MH i2c: E2 0E 00 [22:11:26]MH_I2C_Read... [22:11:26]Read from MH i2c: E2 0E 00 25 2F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 1E [22:11:26]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:11:26]wFMCommunicate OK [22:11:26]SAM_PROTO_GetShiftState done [22:11:26]FM_GetShiftState done [22:11:26]req_shift_opened done [22:11:26]requested_item shift.open_date is exist - process it [22:11:26]req_shift_open_date [22:11:26]req_shift_open_date done [22:11:26]produce_requested_data done [22:11:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155706,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [22:11:26]process_action_free close_receipt [22:11:26]json_value_free [22:11:26]json_value_free done [22:11:26]process_json_proto returns [22:11:26]Send response to host [22:11:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155706,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [22:11:26]free response buf [22:11:26]execute_script done [22:11:26]execute_script returns [22:11:26]free content buf [22:11:26]Sock 8.Close socket [22:11:26]Sock 8.Thread stoped [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:51]accept exits with 9 [22:14:51]New connection [22:14:51]New thread 3066781028 created [22:14:51]Thread 3066637668 joined [22:14:51]Waiting for new connection... [22:14:51] Sock 9.Parse request [22:14:51]Sock 9.Check first char [22:14:51]Sock 9.First char is OK [22:14:51]request: POST /json_proto HTTP/1.0 [22:14:51]Method: POST [22:14:51]URL: /json_proto [22:14:51]Method is POST - this is cgi request [22:14:51]url: /json_proto [22:14:51]query_string will be loaded in cgi processing [22:14:51]execute_cgi json_proto POST (null) [22:14:51]execute_cgi path=json_proto method=POST [22:14:51]POST find Content-Length [22:14:51]Host: 172.17.63.3:8080 [22:14:51]Content-Length: 673 [22:14:51]Content-Type: application/json [22:14:51] [22:14:51]POST finish read [22:14:51]Found Content-Length = 673 [22:14:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:51]execute_script... [22:14:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:51]POST & json_proto [22:14:51]process_json_proto [22:14:51]json parsed OK: [22:14:51]protocol is kg_v1.0 [22:14:51]action value=close_receipt [22:14:51]process_action close_receipt [22:14:51]cmd_close_receipt [22:14:51]MH_GetDate [22:14:51]Write to MH i2c: F0 00 00 26 2F 44 [22:14:51]Write i2c OK [22:14:51]MH_I2C_Read... [22:14:51]Read from MH i2c: F0 [22:14:51]MH_I2C_Read... [22:14:51]Read from MH i2c: F0 09 00 [22:14:51]MH_I2C_Read... [22:14:51]Read from MH i2c: F0 09 00 26 2F 00 DD C6 1A 67 50 D1 6C 64 62 [22:14:51]GetLastDocTimeStamp 1729807886 [22:14:51]current date 1729808093 [22:14:51]FM_GetShiftState [22:14:51]SAM_PROTO_GetShiftState [22:14:51]wFMCommunicate request_size=4 [22:14:51]MH_SAM_APDU [22:14:51]CAPDU: 80 13 01 00 [22:14:51]Write to MH i2c: E2 08 00 27 2F 80 13 01 00 00 00 00 00 D3 [22:14:51]Write i2c OK [22:14:51]MH_I2C_Read... [22:14:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:51]Read from MH i2c: E2 [22:14:51]MH_I2C_Read... [22:14:51]Read from MH i2c: E2 0E 00 [22:14:51]MH_I2C_Read... [22:14:51]Read from MH i2c: E2 0E 00 27 2F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 20 [22:14:51]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:14:51]wFMCommunicate OK [22:14:51]SAM_PROTO_GetShiftState done [22:14:51]FM_GetShiftState done [22:14:51]opened in 1729729836 [22:14:51]opened+sec_in_day 1729816236 [22:14:51]quantity*price = 50063 [22:14:51]sum+1 = 50064 [22:14: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 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 332 24.10.2024 22:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155707 ФПД: 35279579972076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T221453&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155707&fm=35279579972076&tin=02508201610067®Number=0000000000091693&sum=50000 [22:14:52]StoreToDocumentArchive [22:14:52]shift 534 fd 155707 [22:14:52]save to /storage/0534/doc_00155707 [22:14:52]save last doc name /storage/0534/doc_00155707 to /storage/kkm_last_doc_name [22:14:52]save OK [22:14:52]Clear old archive folders... [22:14:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:14:52]tlvbuf is 0204C2A0 [22:14:52]SAM_PROTO_ClearQueue [22:14:52]wFMCommunicate request_size=4 [22:14:52]MH_SAM_APDU [22:14:52]CAPDU: 80 09 00 00 [22:14:52]Write to MH i2c: E2 08 00 34 2F 80 09 00 00 00 00 00 00 D5 [22:14:52]Write i2c OK [22:14:52]MH_I2C_Read... [22:14:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:14:52]Read from MH i2c: E2 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 03 00 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 03 00 34 2F 00 90 00 D7 [22:14:52]RAPDU: 90 00 [22:14:52]wFMCommunicate OK [22:14:52]SAM_PROTO_ClearQueue done [22:14:52]KKMCreateOFDPacket [22:14:52]OFDProtocolAddRootSTLVToBuf [22:14:52]FM_MakeSignedData [22:14:52]FM_MakeSignedData [22:14:52]SAM_PROTO_SignData [22:14:52]wFMCommunicate request_size=4 [22:14:52]MH_SAM_APDU [22:14:52]CAPDU: 80 0D 01 02 [22:14:52]Write to MH i2c: E2 08 00 35 2F 80 0D 01 02 00 00 00 00 DD [22:14:52]Write i2c OK [22:14:52]MH_I2C_Read... [22:14:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:14:52]Read from MH i2c: E2 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 03 00 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 03 00 35 2F 00 90 00 D8 [22:14:52]RAPDU: 90 00 [22:14:52]wFMCommunicate OK [22:14:52]wFMCommunicate request_size=255 [22:14:52]MH_SAM_APDU [22:14:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 4C 01 00 00 F4 03 04 00 DD C6 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 60 02 00 35 04 06 00 20 16 2A D5 [22:14:52]Write to MH i2c: E2 02 01 36 2F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 DD C6 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 60 02 00 35 04 06 00 20 16 2A D5 00 00 4A [22:14:52]Write i2c OK [22:14:52]MH_I2C_Read... [22:14:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:52]Read from MH i2c: E2 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 03 00 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 03 00 36 2F 00 90 00 D9 [22:14:52]RAPDU: 90 00 [22:14:52]wFMCommunicate OK [22:14:52]wFMCommunicate request_size=7 [22:14:52]MH_SAM_APDU [22:14:52]CAPDU: 80 0D 02 02 02 01 EC [22:14:52]Write to MH i2c: E2 0A 00 37 2F 80 0D 02 02 02 00 01 EC 00 00 D1 [22:14:52]Write i2c OK [22:14:52]MH_I2C_Read... [22:14:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:52]Read from MH i2c: E2 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 03 00 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 03 00 37 2F 00 90 00 DA [22:14:52]RAPDU: 90 00 [22:14:52]wFMCommunicate OK [22:14:52]wFMCommunicate request_size=4 [22:14:52]MH_SAM_APDU [22:14:52]CAPDU: 80 0D 03 02 [22:14:52]Write to MH i2c: E2 08 00 38 2F 80 0D 03 02 00 00 00 00 E2 [22:14:52]Write i2c OK [22:14:52]MH_I2C_Read... [22:14:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:14:52]Read from MH i2c: E2 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 0B 00 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 0B 00 38 2F 00 68 48 63 64 0D 10 4F C9 90 00 8F [22:14:52]RAPDU: 68 48 63 64 0D 10 4F C9 90 00 [22:14:52]wFMCommunicate OK [22:14:52]SAM_PROTO_SignData done [22:14:52]FM_MakeSignedData done [22:14:52]CreateOFDProtocolMessage [22:14:52]wFMCommunicate request_size=4 [22:14:52]MH_SAM_APDU [22:14:52]CAPDU: 80 11 00 00 [22:14:52]Write to MH i2c: E2 08 00 39 2F 80 11 00 00 00 00 00 00 E2 [22:14:52]Write i2c OK [22:14:52]MH_I2C_Read... [22:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:52]Read from MH i2c: E2 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: E2 17 00 [22:14:52]MH_I2C_Read... [22:14:52]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 39 32 90 00 37 [22:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:14:52]wFMCommunicate OK [22:14:52]CreateOFDProtocolMessage done [22:14:52]OFDSenderStorePacket 155707 [22:14:52]StoreOFDPacket docnum=155707 [22:14:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 8E DC 04 01 FE 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 DD C6 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 60 02 00 35 04 06 00 20 16 2A D5 01 EC 68 48 63 64 0D 10 4F C9 [22:14:52]CheckFolder [22:14:52]dirname=/storage/ofd_packets [22:14:52]CheckFolder done [22:14:52]ProducePacketName [22:14:52]name=ofd_packets/00155707 [22:14:52]NVStorageSaveData ofd_packets/00155707 [22:14:52]File name is /storage/ofd_packets/00155707 [22:14:52]Write 298 bytes [22:14:52]NVStorageSaveData done [22:14:52]OFDSenderStorePacket done [22:14:52]KKMCreateOFDPacket done [22:14:52]NVStorageSaveData kkm_last_timestamp [22:14:52]File name is /storage/kkm_last_timestamp [22:14:52]Write 4 bytes [22:14:52]NVStorageSaveData done [22:14:52]ExternCall_PrintAddStr [22:14:52]wPrintStart [22:14:52]Write to MH i2c: 01 00 00 3A 2F 69 [22:14:52]Write i2c OK [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: 01 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: 01 07 00 [22:14:52]MH_I2C_Read... [22:14:52]Read from MH i2c: 01 07 00 3A 2F 00 00 00 00 00 FF 0F 7E [22:14:52]RasterBufferAndPrint [22:14:52]line Счет N : (1)98515 [22:14:52]line ИНН: 02508201610067 [22:14:52]line Контрольно-Кассовый Чек [22:14:52]line ПРОДАЖА [22:14:52]line ТРК (МРК, ГНК) : 32 [22:14:52]line Товар: 2710194210 [22:14:52]line ДТ-К-5 [22:14:52]line 6.570 * 76.20 [22:14:52]line = 500.63 [22:14:52]line НДС 12% НСП 1% [22:14:52]line > о реализуемом товаре [22:14:52]line ОКРУГЛЕНИЕ: -0.63 [22:14:52]line ИТОГО: 500.00 [22:14:52]line Внесено: 500.00 [22:14:52]line СДАЧА: 0.00 [22:14:52]line НСП 1% : 4.43 [22:14:52]line НДС 12% : 53.16 [22:14:52]line Наличными: 500.00 [22:14:52]line Безнал.: 0.00 [22:14:52]line Место: АЗС № 143 "Партнер Нефть" [22:14:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:14:52]line СНО: Общий режим [22:14:52]line Чек 332 24.10.2024 22:14 [22:14:52]line Смена: 534 ФФД: 1.0 [22:14:52]line ЗНМ: 0300000096 [22:14:52]line РНМ: 0000000000091693 [22:14:52]line Версия ККМ: 001 [22:14:52]line ФМ: 0000000000871792 [22:14:52]line ФД: 155707 [22:14:52]line ФПД: 35279579972076 [22:14:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T221453&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155707&fm=35279579972076&tin=02508201610067®Number=0000000000091693&sum=50000 [22:14:53]OFD Sender: Processing packet 155707 [packets to send 31, broken 30] [22:14:53]ProducePacketName [22:14:53]name=ofd_packets/00155707 [22:14:53]OFD Sender: To server: pG, [22:14:53]CommunicateWithHost lk.salyk.kg:30040 [22:14:53]ConnectInit lk.salyk.kg [22:14:53]written 0, free lines is 4095 [22:14:53]Connected sock=10 [22:14:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 8E DC 04 01 FE 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 DD C6 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 60 02 00 35 04 06 00 20 16 2A D5 01 EC 68 48 63 64 0D 10 4F C9 [22:14:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CD E2 47 00 92 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 60 02 00 F4 03 04 00 54 6C 1A 67 B6 04 01 00 00 F2 EE F3 22 49 2A 89 E7 [22:14:53]CommunicateWithHost err = 0 [22:14:53]CheckOFDResponse [22:14:53]1017 (14) - 77093643461234 [22:14:53]1041 (16) - 0000000000871792 [22:14:53]1040 (4) - 155707 [22:14:53]1012 (4) - 24.10.2024 15:48 [22:14:53]1206 (1) - 0 [22:14:53]OFD Sender: Remove packet 155707 [22:14:53]ProducePacketName [22:14:53]name=ofd_packets/00155707 [22:14:53]NVStorageDeleteData [22:14:53]Write to MH i2c: 01 00 00 65 2F 94 [22:14:53]Write i2c OK [22:14:53]MH_I2C_Read... [22:14:53]Read from MH i2c: 01 [22:14:53]MH_I2C_Read... [22:14:53]Read from MH i2c: 01 07 00 [22:14:53]MH_I2C_Read... [22:14:53]Read from MH i2c: 01 07 00 65 2F 00 00 00 00 00 D8 0C 7F [22:14:53]RasterBufferAndPrint [22:14:53]line [22:14:53]line [22:14:53]line [22:14:53]line [22:14:53]line [22:14:53]written 0, free lines is 3296 [22:14:53]process_action close_receipt done [22:14:53]requested_data is exist [22:14:53]produce_requested_data [22:14:53]requested_item fm.sn is exist - process it [22:14:53]wFMCommunicate request_size=4 [22:14:53]MH_SAM_APDU [22:14:53]CAPDU: 80 11 00 00 [22:14:53]Write to MH i2c: E2 08 00 6C 2F 80 11 00 00 00 00 00 00 15 [22:14:53]Write i2c OK [22:14:53]MH_I2C_Read... [22:14:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:53]Read from MH i2c: E2 [22:14:53]MH_I2C_Read... [22:14:53]Read from MH i2c: E2 17 00 [22:14:53]MH_I2C_Read... [22:14:53]Read from MH i2c: E2 17 00 6C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6A [22:14:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:14:53]wFMCommunicate OK [22:14:53]requested_item fd.num is exist - process it [22:14:53]SAM_PROTO_GetFieldsCounters [22:14:53]wFMCommunicate request_size=4 [22:14:53]MH_SAM_APDU [22:14:53]CAPDU: 80 13 00 00 [22:14:53]Write to MH i2c: E2 08 00 6D 2F 80 13 00 00 00 00 00 00 18 [22:14:53]Write i2c OK [22:14:53]MH_I2C_Read... [22:14:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:14:53]Read from MH i2c: E2 [22:14:53]MH_I2C_Read... [22:14:53]Read from MH i2c: E2 62 00 [22:14:53]MH_I2C_Read... [22:14:53]Read from MH i2c: E2 62 00 6D 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3B 60 02 00 0E 04 04 00 16 02 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 DA [22:14: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3B 60 02 00 0E 04 04 00 16 02 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 [22:14:53]wFMCommunicate OK [22:14:53]SAM_PROTO_GetFieldsCounters done [22:14:53]requested_item shift.num is exist - process it [22:14:53]requested_item shift.opened is exist - process it [22:14:53]req_shift_opened [22:14:53]FM_GetShiftState [22:14:53]SAM_PROTO_GetShiftState [22:14:53]wFMCommunicate request_size=4 [22:14:53]MH_SAM_APDU [22:14:53]CAPDU: 80 13 01 00 [22:14:53]Write to MH i2c: E2 08 00 6E 2F 80 13 01 00 00 00 00 00 1A [22:14:53]Write i2c OK [22:14:53]MH_I2C_Read... [22:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:53]Read from MH i2c: E2 [22:14:53]MH_I2C_Read... [22:14:53]Read from MH i2c: E2 0E 00 [22:14:53]MH_I2C_Read... [22:14:53]Read from MH i2c: E2 0E 00 6E 2F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 67 [22:14:53]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:14:53]wFMCommunicate OK [22:14:53]SAM_PROTO_GetShiftState done [22:14:53]FM_GetShiftState done [22:14:53]req_shift_opened done [22:14:53]requested_item shift.open_date is exist - process it [22:14:53]req_shift_open_date [22:14:53]req_shift_open_date done [22:14:53]produce_requested_data done [22:14:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155707,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [22:14:53]process_action_free close_receipt [22:14:53]json_value_free [22:14:53]json_value_free done [22:14:53]process_json_proto returns [22:14:53]Send response to host [22:14:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155707,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [22:14:53]free response buf [22:14:53]execute_script done [22:14:53]execute_script returns [22:14:53]free content buf [22:14:53]Sock 9.Close socket [22:14:53]Sock 9.Thread stoped [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:17]accept exits with 8 [22:19:17]New connection [22:19:17]New thread 3066637668 created [22:19:17]Thread 3066781028 joined [22:19:17]Waiting for new connection... [22:19:17] Sock 8.Parse request [22:19:17]Sock 8.Check first char [22:19:17]Sock 8.First char is OK [22:19:17]request: POST /json_proto HTTP/1.0 [22:19:17]Method: POST [22:19:17]URL: /json_proto [22:19:17]Method is POST - this is cgi request [22:19:17]url: /json_proto [22:19:17]query_string will be loaded in cgi processing [22:19:17]execute_cgi json_proto POST (null) [22:19:17]execute_cgi path=json_proto method=POST [22:19:17]POST find Content-Length [22:19:17]Host: 172.17.63.3:8080 [22:19:17]Content-Length: 676 [22:19:17]Content-Type: application/json [22:19:17] [22:19:17]POST finish read [22:19:17]Found Content-Length = 676 [22:19:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [22:19:17]execute_script... [22:19: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)98516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [22:19:17]POST & json_proto [22:19:17]process_json_proto [22:19:17]json parsed OK: [22:19:17]protocol is kg_v1.0 [22:19:17]action value=close_receipt [22:19:17]process_action close_receipt [22:19:17]cmd_close_receipt [22:19:17]MH_GetDate [22:19:17]Write to MH i2c: F0 00 00 6F 2F 8D [22:19:17]Write i2c OK [22:19:17]MH_I2C_Read... [22:19:17]Read from MH i2c: F0 [22:19:17]MH_I2C_Read... [22:19:17]Read from MH i2c: F0 09 00 [22:19:17]MH_I2C_Read... [22:19:17]Read from MH i2c: F0 09 00 6F 2F 00 E7 C7 1A 67 50 D1 6C 64 B6 [22:19:17]GetLastDocTimeStamp 1729808093 [22:19:17]current date 1729808359 [22:19:17]FM_GetShiftState [22:19:17]SAM_PROTO_GetShiftState [22:19:17]wFMCommunicate request_size=4 [22:19:17]MH_SAM_APDU [22:19:17]CAPDU: 80 13 01 00 [22:19:17]Write to MH i2c: E2 08 00 70 2F 80 13 01 00 00 00 00 00 1C [22:19:17]Write i2c OK [22:19:17]MH_I2C_Read... [22:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:17]Read from MH i2c: E2 [22:19:17]MH_I2C_Read... [22:19:17]Read from MH i2c: E2 0E 00 [22:19:17]MH_I2C_Read... [22:19:17]Read from MH i2c: E2 0E 00 70 2F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 69 [22:19:17]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:19:17]wFMCommunicate OK [22:19:17]SAM_PROTO_GetShiftState done [22:19:17]FM_GetShiftState done [22:19:17]opened in 1729729836 [22:19:17]opened+sec_in_day 1729816236 [22:19:17]quantity*price = 35055 [22:19:17]sum+1 = 35057 [22:19:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 333 24.10.2024 22:19 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155708 ФПД: 204649873677447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T221919&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155708&fm=204649873677447&tin=02508201610067®Number=0000000000091693&sum=35000 [22:19:18]StoreToDocumentArchive [22:19:18]shift 534 fd 155708 [22:19:18]save to /storage/0534/doc_00155708 [22:19:18]save last doc name /storage/0534/doc_00155708 to /storage/kkm_last_doc_name [22:19:18]save OK [22:19:18]Clear old archive folders... [22:19:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:19:18]tlvbuf is 01F4F8F0 [22:19:18]SAM_PROTO_ClearQueue [22:19:18]wFMCommunicate request_size=4 [22:19:18]MH_SAM_APDU [22:19:18]CAPDU: 80 09 00 00 [22:19:18]Write to MH i2c: E2 08 00 7D 2F 80 09 00 00 00 00 00 00 1E [22:19:18]Write i2c OK [22:19:18]MH_I2C_Read... [22:19:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:19]Read from MH i2c: E2 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 03 00 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 03 00 7D 2F 00 90 00 20 [22:19:19]RAPDU: 90 00 [22:19:19]wFMCommunicate OK [22:19:19]SAM_PROTO_ClearQueue done [22:19:19]KKMCreateOFDPacket [22:19:19]OFDProtocolAddRootSTLVToBuf [22:19:19]FM_MakeSignedData [22:19:19]FM_MakeSignedData [22:19:19]SAM_PROTO_SignData [22:19:19]wFMCommunicate request_size=4 [22:19:19]MH_SAM_APDU [22:19:19]CAPDU: 80 0D 01 02 [22:19:19]Write to MH i2c: E2 08 00 7E 2F 80 0D 01 02 00 00 00 00 26 [22:19:19]Write i2c OK [22:19:19]MH_I2C_Read... [22:19:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:19]Read from MH i2c: E2 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 03 00 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 03 00 7E 2F 00 90 00 21 [22:19:19]RAPDU: 90 00 [22:19:19]wFMCommunicate OK [22:19:19]wFMCommunicate request_size=255 [22:19:19]MH_SAM_APDU [22:19: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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 4D 01 00 00 F4 03 04 00 E7 C7 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 60 02 00 35 04 06 00 BA [22:19:19]Write to MH i2c: E2 02 01 7F 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 4D 01 00 00 F4 03 04 00 E7 C7 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 60 02 00 35 04 06 00 BA 00 00 B2 [22:19:19]Write i2c OK [22:19:19]MH_I2C_Read... [22:19:19]OFD Sender: No OFD packet to send [22:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:19]Read from MH i2c: E2 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 03 00 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 03 00 7F 2F 00 90 00 22 [22:19:19]RAPDU: 90 00 [22:19:19]wFMCommunicate OK [22:19:19]wFMCommunicate request_size=10 [22:19:19]MH_SAM_APDU [22:19:19]CAPDU: 80 0D 02 02 05 20 C3 06 1C 87 [22:19:19]Write to MH i2c: E2 0D 00 80 2F 80 0D 02 02 05 00 20 C3 06 1C 87 00 00 BF [22:19:19]Write i2c OK [22:19:19]MH_I2C_Read... [22:19:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:19]Read from MH i2c: E2 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 03 00 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 03 00 80 2F 00 90 00 23 [22:19:19]RAPDU: 90 00 [22:19:19]wFMCommunicate OK [22:19:19]wFMCommunicate request_size=4 [22:19:19]MH_SAM_APDU [22:19:19]CAPDU: 80 0D 03 02 [22:19:19]Write to MH i2c: E2 08 00 81 2F 80 0D 03 02 00 00 00 00 2B [22:19:19]Write i2c OK [22:19:19]MH_I2C_Read... [22:19:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:19]Read from MH i2c: E2 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 0B 00 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 0B 00 81 2F 00 90 7D 7E 5B 39 66 8D 57 90 00 95 [22:19:19]RAPDU: 90 7D 7E 5B 39 66 8D 57 90 00 [22:19:19]wFMCommunicate OK [22:19:19]SAM_PROTO_SignData done [22:19:19]FM_MakeSignedData done [22:19:19]CreateOFDProtocolMessage [22:19:19]wFMCommunicate request_size=4 [22:19:19]MH_SAM_APDU [22:19:19]CAPDU: 80 11 00 00 [22:19:19]Write to MH i2c: E2 08 00 82 2F 80 11 00 00 00 00 00 00 2B [22:19:19]Write i2c OK [22:19:19]MH_I2C_Read... [22:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:19]Read from MH i2c: E2 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 17 00 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: E2 17 00 82 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 80 [22:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:19:19]wFMCommunicate OK [22:19:19]CreateOFDProtocolMessage done [22:19:19]OFDSenderStorePacket 155708 [22:19:19]StoreOFDPacket docnum=155708 [22:19:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 64 21 07 01 E9 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 4D 01 00 00 F4 03 04 00 E7 C7 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 60 02 00 35 04 06 00 BA 20 C3 06 1C 87 90 7D 7E 5B 39 66 8D 57 [22:19:19]CheckFolder [22:19:19]dirname=/storage/ofd_packets [22:19:19]CheckFolder done [22:19:19]ProducePacketName [22:19:19]name=ofd_packets/00155708 [22:19:19]NVStorageSaveData ofd_packets/00155708 [22:19:19]File name is /storage/ofd_packets/00155708 [22:19:19]Write 301 bytes [22:19:19]NVStorageSaveData done [22:19:19]OFDSenderStorePacket done [22:19:19]KKMCreateOFDPacket done [22:19:19]NVStorageSaveData kkm_last_timestamp [22:19:19]File name is /storage/kkm_last_timestamp [22:19:19]Write 4 bytes [22:19:19]NVStorageSaveData done [22:19:19]ExternCall_PrintAddStr [22:19:19]wPrintStart [22:19:19]Write to MH i2c: 01 00 00 83 2F B2 [22:19:19]OFD Sender: Processing packet 155708 [packets to send 31, broken 30] [22:19:19]ProducePacketName [22:19:19]name=ofd_packets/00155708 [22:19:19]OFD Sender: To server: pG, [22:19:19]CommunicateWithHost lk.salyk.kg:30040 [22:19:19]ConnectInit lk.salyk.kg [22:19:19]Write i2c OK [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: 01 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: 01 07 00 [22:19:19]MH_I2C_Read... [22:19:19]Read from MH i2c: 01 07 00 83 2F 00 00 00 00 00 FF 0F C7 [22:19:19]RasterBufferAndPrint [22:19:19]line Счет N : (1)98516 [22:19:19]line ИНН: 02508201610067 [22:19:19]line Контрольно-Кассовый Чек [22:19:19]line ПРОДАЖА [22:19:19]line ТРК (МРК, ГНК) : 21 [22:19:19]line Товар: 2710124130 [22:19:19]line Аи-92-К-5 [22:19:19]line 5.240 * 66.90 [22:19:19]line = 350.56 [22:19:19]line НДС 12% НСП 1% [22:19:19]line > о реализуемом товаре [22:19:19]line ОКРУГЛЕНИЕ: -0.56 [22:19:19]line ИТОГО: 350.00 [22:19:19]line Внесено: 350.00 [22:19:19]line СДАЧА: 0.00 [22:19:19]line НСП 1% : 3.10 [22:19:19]line НДС 12% : 37.23 [22:19:19]line Наличными: 350.00 [22:19:19]line Безнал.: 0.00 [22:19:19]line Место: АЗС № 143 "Партнер Нефть" [22:19:19]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:19:19]line СНО: Общий режим [22:19:19]line Чек 333 24.10.2024 22:19 [22:19:19]line Смена: 534 ФФД: 1.0 [22:19:19]line ЗНМ: 0300000096 [22:19:19]line РНМ: 0000000000091693 [22:19:19]line Версия ККМ: 001 [22:19:19]line ФМ: 0000000000871792 [22:19:19]line ФД: 155708 [22:19:19]line ФПД: 204649873677447 [22:19:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T221919&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155708&fm=204649873677447&tin=02508201610067®Number=0000000000091693&sum=35000 [22:19:19]written 0, free lines is 4095 [22:19:19]Connected sock=10 [22:19: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 39 32 0F 01 00 00 64 21 07 01 E9 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 4D 01 00 00 F4 03 04 00 E7 C7 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 60 02 00 35 04 06 00 BA 20 C3 06 1C 87 90 7D 7E 5B 39 66 8D 57 [22:19: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 39 32 4F 00 00 00 F9 79 47 00 E7 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 39 32 10 04 04 00 3C 60 02 00 F4 03 04 00 5F 6D 1A 67 B6 04 01 00 00 27 0D 11 E7 BD F1 68 FB [22:19:20]CommunicateWithHost err = 0 [22:19:20]CheckOFDResponse [22:19:20]1017 (14) - 77093643461234 [22:19:20]1041 (16) - 0000000000871792 [22:19:20]1040 (4) - 155708 [22:19:20]1012 (4) - 24.10.2024 15:53 [22:19:20]1206 (1) - 0 [22:19:20]OFD Sender: Remove packet 155708 [22:19:20]ProducePacketName [22:19:20]name=ofd_packets/00155708 [22:19:20]NVStorageDeleteData [22:19:20]Write to MH i2c: 01 00 00 AE 2F DD [22:19:20]Write i2c OK [22:19:20]MH_I2C_Read... [22:19:20]Read from MH i2c: 01 [22:19:20]MH_I2C_Read... [22:19:20]Read from MH i2c: 01 07 00 [22:19:20]MH_I2C_Read... [22:19:20]Read from MH i2c: 01 07 00 AE 2F 00 00 00 00 00 D9 0C C9 [22:19:20]RasterBufferAndPrint [22:19:20]line [22:19:20]line [22:19:20]line [22:19:20]line [22:19:20]line [22:19:20]written 0, free lines is 3299 [22:19:20]process_action close_receipt done [22:19:20]requested_data is exist [22:19:20]produce_requested_data [22:19:20]requested_item fm.sn is exist - process it [22:19:20]wFMCommunicate request_size=4 [22:19:20]MH_SAM_APDU [22:19:20]CAPDU: 80 11 00 00 [22:19:20]Write to MH i2c: E2 08 00 B5 2F 80 11 00 00 00 00 00 00 5E [22:19:20]Write i2c OK [22:19:20]MH_I2C_Read... [22:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:20]Read from MH i2c: E2 [22:19:20]MH_I2C_Read... [22:19:20]Read from MH i2c: E2 17 00 [22:19:20]MH_I2C_Read... [22:19:20]Read from MH i2c: E2 17 00 B5 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B3 [22:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:19:20]wFMCommunicate OK [22:19:20]requested_item fd.num is exist - process it [22:19:20]SAM_PROTO_GetFieldsCounters [22:19:20]wFMCommunicate request_size=4 [22:19:20]MH_SAM_APDU [22:19:20]CAPDU: 80 13 00 00 [22:19:20]Write to MH i2c: E2 08 00 B6 2F 80 13 00 00 00 00 00 00 61 [22:19:20]Write i2c OK [22:19:20]MH_I2C_Read... [22:19:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:20]Read from MH i2c: E2 [22:19:20]MH_I2C_Read... [22:19:20]Read from MH i2c: E2 62 00 [22:19:20]MH_I2C_Read... [22:19:20]Read from MH i2c: E2 62 00 B6 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3C 60 02 00 0E 04 04 00 16 02 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 27 [22:19:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3C 60 02 00 0E 04 04 00 16 02 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 [22:19:20]wFMCommunicate OK [22:19:20]SAM_PROTO_GetFieldsCounters done [22:19:20]requested_item shift.num is exist - process it [22:19:20]requested_item shift.opened is exist - process it [22:19:20]req_shift_opened [22:19:20]FM_GetShiftState [22:19:20]SAM_PROTO_GetShiftState [22:19:20]wFMCommunicate request_size=4 [22:19:20]MH_SAM_APDU [22:19:20]CAPDU: 80 13 01 00 [22:19:20]Write to MH i2c: E2 08 00 B7 2F 80 13 01 00 00 00 00 00 63 [22:19:20]Write i2c OK [22:19:20]MH_I2C_Read... [22:19:20]OFD Sender: No OFD packet to send [22:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:20]Read from MH i2c: E2 [22:19:20]MH_I2C_Read... [22:19:20]Read from MH i2c: E2 0E 00 [22:19:20]MH_I2C_Read... [22:19:20]Read from MH i2c: E2 0E 00 B7 2F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 B0 [22:19:20]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:19:20]wFMCommunicate OK [22:19:20]SAM_PROTO_GetShiftState done [22:19:20]FM_GetShiftState done [22:19:20]req_shift_opened done [22:19:20]requested_item shift.open_date is exist - process it [22:19:20]req_shift_open_date [22:19:20]req_shift_open_date done [22:19:20]produce_requested_data done [22:19:20]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155708,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [22:19:20]process_action_free close_receipt [22:19:20]json_value_free [22:19:20]json_value_free done [22:19:20]process_json_proto returns [22:19:20]Send response to host [22:19:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155708,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [22:19:20]free response buf [22:19:20]execute_script done [22:19:20]execute_script returns [22:19:20]free content buf [22:19:20]Sock 8.Close socket [22:19:20]Sock 8.Thread stoped [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:35]OFD Sender: No OFD packet to send [22:20:40]OFD Sender: No OFD packet to send [22:20:45]OFD Sender: No OFD packet to send [22:20:50]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:31]accept exits with 9 [22:23:31]New connection [22:23:31]New thread 3066781028 created [22:23:31]Thread 3066637668 joined [22:23:31]Waiting for new connection... [22:23:31] Sock 9.Parse request [22:23:31]Sock 9.Check first char [22:23:31]Sock 9.First char is OK [22:23:31]request: POST /json_proto HTTP/1.0 [22:23:31]Method: POST [22:23:31]URL: /json_proto [22:23:31]Method is POST - this is cgi request [22:23:31]url: /json_proto [22:23:31]query_string will be loaded in cgi processing [22:23:31]execute_cgi json_proto POST (null) [22:23:31]execute_cgi path=json_proto method=POST [22:23:31]POST find Content-Length [22:23:31]Host: 172.17.63.3:8080 [22:23:31]Content-Length: 676 [22:23:31]Content-Type: application/json [22:23:31] [22:23:31]POST finish read [22:23:31]Found Content-Length = 676 [22:23:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:31]execute_script... [22:23: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)98518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:31]POST & json_proto [22:23:31]process_json_proto [22:23:31]json parsed OK: [22:23:31]protocol is kg_v1.0 [22:23:31]action value=close_receipt [22:23:31]process_action close_receipt [22:23:31]cmd_close_receipt [22:23:31]MH_GetDate [22:23:31]Write to MH i2c: F0 00 00 B8 2F D6 [22:23:31]Write i2c OK [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: F0 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: F0 09 00 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: F0 09 00 B8 2F 00 E5 C8 1A 67 50 D1 6C 64 FE [22:23:31]GetLastDocTimeStamp 1729808359 [22:23:31]current date 1729808613 [22:23:31]FM_GetShiftState [22:23:31]SAM_PROTO_GetShiftState [22:23:31]wFMCommunicate request_size=4 [22:23:31]MH_SAM_APDU [22:23:31]CAPDU: 80 13 01 00 [22:23:31]Write to MH i2c: E2 08 00 B9 2F 80 13 01 00 00 00 00 00 65 [22:23:31]Write i2c OK [22:23:31]MH_I2C_Read... [22:23:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:31]Read from MH i2c: E2 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: E2 0E 00 [22:23:31]MH_I2C_Read... [22:23:31]Read from MH i2c: E2 0E 00 B9 2F 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 B2 [22:23:31]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:23:31]wFMCommunicate OK [22:23:31]SAM_PROTO_GetShiftState done [22:23:31]FM_GetShiftState done [22:23:31]opened in 1729729836 [22:23:31]opened+sec_in_day 1729816236 [22:23:31]quantity*price = 50041 [22:23:31]sum+1 = 50042 [22:23:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 334 24.10.2024 22:23 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155709 ФПД: 126763842347772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222333&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155709&fm=126763842347772&tin=02508201610067®Number=0000000000091693&sum=50000 [22:23:32]StoreToDocumentArchive [22:23:32]shift 534 fd 155709 [22:23:32]save to /storage/0534/doc_00155709 [22:23:32]save last doc name /storage/0534/doc_00155709 to /storage/kkm_last_doc_name [22:23:32]save OK [22:23:32]Clear old archive folders... [22:23:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:23:32]tlvbuf is 01F7D390 [22:23:32]SAM_PROTO_ClearQueue [22:23:32]wFMCommunicate request_size=4 [22:23:32]MH_SAM_APDU [22:23:32]CAPDU: 80 09 00 00 [22:23:32]Write to MH i2c: E2 08 00 C6 2F 80 09 00 00 00 00 00 00 67 [22:23:32]Write i2c OK [22:23:32]MH_I2C_Read... [22:23:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:32]Read from MH i2c: E2 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 03 00 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 03 00 C6 2F 00 90 00 69 [22:23:32]RAPDU: 90 00 [22:23:32]wFMCommunicate OK [22:23:32]SAM_PROTO_ClearQueue done [22:23:32]KKMCreateOFDPacket [22:23:32]OFDProtocolAddRootSTLVToBuf [22:23:32]FM_MakeSignedData [22:23:32]FM_MakeSignedData [22:23:32]SAM_PROTO_SignData [22:23:32]wFMCommunicate request_size=4 [22:23:32]MH_SAM_APDU [22:23:32]CAPDU: 80 0D 01 02 [22:23:32]Write to MH i2c: E2 08 00 C7 2F 80 0D 01 02 00 00 00 00 6F [22:23:32]Write i2c OK [22:23:32]MH_I2C_Read... [22:23:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:32]Read from MH i2c: E2 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 03 00 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 03 00 C7 2F 00 90 00 6A [22:23:32]RAPDU: 90 00 [22:23:32]wFMCommunicate OK [22:23:32]wFMCommunicate request_size=255 [22:23:32]MH_SAM_APDU [22:23: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 E5 C8 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 60 02 00 35 04 06 00 73 [22:23:32]Write to MH i2c: E2 02 01 C8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 E5 C8 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 60 02 00 35 04 06 00 73 00 00 AA [22:23:32]Write i2c OK [22:23:32]MH_I2C_Read... [22:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:32]Read from MH i2c: E2 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 03 00 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 03 00 C8 2F 00 90 00 6B [22:23:32]RAPDU: 90 00 [22:23:32]wFMCommunicate OK [22:23:32]wFMCommunicate request_size=10 [22:23:32]MH_SAM_APDU [22:23:32]CAPDU: 80 0D 02 02 05 4A 81 CB 22 FC [22:23:32]Write to MH i2c: E2 0D 00 C9 2F 80 0D 02 02 05 00 4A 81 CB 22 FC 00 00 30 [22:23:32]Write i2c OK [22:23:32]MH_I2C_Read... [22:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:32]Read from MH i2c: E2 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 03 00 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 03 00 C9 2F 00 90 00 6C [22:23:32]RAPDU: 90 00 [22:23:32]wFMCommunicate OK [22:23:32]wFMCommunicate request_size=4 [22:23:32]MH_SAM_APDU [22:23:32]CAPDU: 80 0D 03 02 [22:23:32]Write to MH i2c: E2 08 00 CA 2F 80 0D 03 02 00 00 00 00 74 [22:23:32]Write i2c OK [22:23:32]MH_I2C_Read... [22:23:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:32]Read from MH i2c: E2 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 0B 00 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 0B 00 CA 2F 00 23 A1 5B 6C 2F A1 49 2D 90 00 46 [22:23:32]RAPDU: 23 A1 5B 6C 2F A1 49 2D 90 00 [22:23:32]wFMCommunicate OK [22:23:32]SAM_PROTO_SignData done [22:23:32]FM_MakeSignedData done [22:23:32]CreateOFDProtocolMessage [22:23:32]wFMCommunicate request_size=4 [22:23:32]MH_SAM_APDU [22:23:32]CAPDU: 80 11 00 00 [22:23:32]Write to MH i2c: E2 08 00 CB 2F 80 11 00 00 00 00 00 00 74 [22:23:32]Write i2c OK [22:23:32]MH_I2C_Read... [22:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:32]Read from MH i2c: E2 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 17 00 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: E2 17 00 CB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C9 [22:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:23:32]wFMCommunicate OK [22:23:32]CreateOFDProtocolMessage done [22:23:32]OFDSenderStorePacket 155709 [22:23:32]StoreOFDPacket docnum=155709 [22:23:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5A 45 07 01 FA 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 E5 C8 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 60 02 00 35 04 06 00 73 4A 81 CB 22 FC 23 A1 5B 6C 2F A1 49 2D [22:23:32]CheckFolder [22:23:32]dirname=/storage/ofd_packets [22:23:32]CheckFolder done [22:23:32]ProducePacketName [22:23:32]name=ofd_packets/00155709 [22:23:32]NVStorageSaveData ofd_packets/00155709 [22:23:32]File name is /storage/ofd_packets/00155709 [22:23:32]Write 301 bytes [22:23:32]NVStorageSaveData done [22:23:32]OFDSenderStorePacket done [22:23:32]KKMCreateOFDPacket done [22:23:32]NVStorageSaveData kkm_last_timestamp [22:23:32]File name is /storage/kkm_last_timestamp [22:23:32]Write 4 bytes [22:23:32]NVStorageSaveData done [22:23:32]ExternCall_PrintAddStr [22:23:32]wPrintStart [22:23:32]Write to MH i2c: 01 00 00 CC 2F FB [22:23:32]Write i2c OK [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: 01 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: 01 07 00 [22:23:32]MH_I2C_Read... [22:23:32]Read from MH i2c: 01 07 00 CC 2F 00 00 00 00 00 FF 0F 10 [22:23:32]RasterBufferAndPrint [22:23:32]line Счет N : (1)98518 [22:23:32]line ИНН: 02508201610067 [22:23:32]line Контрольно-Кассовый Чек [22:23:32]line ПРОДАЖА [22:23:32]line ТРК (МРК, ГНК) : 21 [22:23:32]line Товар: 2710124130 [22:23:32]line Аи-92-К-5 [22:23:32]line 7.480 * 66.90 [22:23:32]line = 500.41 [22:23:32]line НДС 12% НСП 1% [22:23:32]line > о реализуемом товаре [22:23:32]line ОКРУГЛЕНИЕ: -0.41 [22:23:32]line ИТОГО: 500.00 [22:23:32]line Внесено: 500.00 [22:23:32]line СДАЧА: 0.00 [22:23:32]line НСП 1% : 4.43 [22:23:32]line НДС 12% : 53.14 [22:23:32]line Наличными: 500.00 [22:23:32]line Безнал.: 0.00 [22:23:32]line Место: АЗС № 143 "Партнер Нефть" [22:23:32]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:23:32]line СНО: Общий режим [22:23:32]line Чек 334 24.10.2024 22:23 [22:23:32]line Смена: 534 ФФД: 1.0 [22:23:32]line ЗНМ: 0300000096 [22:23:32]line РНМ: 0000000000091693 [22:23:32]line Версия ККМ: 001 [22:23:32]line ФМ: 0000000000871792 [22:23:32]line ФД: 155709 [22:23:32]line ФПД: 126763842347772 [22:23:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222333&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155709&fm=126763842347772&tin=02508201610067®Number=0000000000091693&sum=50000 [22:23:32]written 0, free lines is 4095 [22:23:32]OFD Sender: Processing packet 155709 [packets to send 31, broken 30] [22:23:32]ProducePacketName [22:23:32]name=ofd_packets/00155709 [22:23:32]OFD Sender: To server: pG, [22:23:32]CommunicateWithHost lk.salyk.kg:30040 [22:23:32]ConnectInit lk.salyk.kg [22:23:33]Connected sock=8 [22:23: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 39 32 0F 01 00 00 5A 45 07 01 FA 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 E5 C8 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 60 02 00 35 04 06 00 73 4A 81 CB 22 FC 23 A1 5B 6C 2F A1 49 2D [22:23: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 39 32 4F 00 00 00 1D 75 47 00 C4 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 39 32 10 04 04 00 3D 60 02 00 F4 03 04 00 5C 6E 1A 67 B6 04 01 00 00 29 91 22 78 1B 1D A9 14 [22:23:33]CommunicateWithHost err = 0 [22:23:33]CheckOFDResponse [22:23:33]1017 (14) - 77093643461234 [22:23:33]1041 (16) - 0000000000871792 [22:23:33]1040 (4) - 155709 [22:23:33]1012 (4) - 24.10.2024 15:57 [22:23:33]1206 (1) - 0 [22:23:33]OFD Sender: Remove packet 155709 [22:23:33]ProducePacketName [22:23:33]name=ofd_packets/00155709 [22:23:33]NVStorageDeleteData [22:23:33]Write to MH i2c: 01 00 00 F7 2F 26 [22:23:33]Write i2c OK [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: 01 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: 01 07 00 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: 01 07 00 F7 2F 00 00 00 00 00 E0 0C 19 [22:23:33]RasterBufferAndPrint [22:23:33]line [22:23:33]line [22:23:33]line [22:23:33]line [22:23:33]line [22:23:33]written 0, free lines is 3302 [22:23:33]process_action close_receipt done [22:23:33]requested_data is exist [22:23:33]produce_requested_data [22:23:33]requested_item fm.sn is exist - process it [22:23:33]wFMCommunicate request_size=4 [22:23:33]MH_SAM_APDU [22:23:33]CAPDU: 80 11 00 00 [22:23:33]Write to MH i2c: E2 08 00 FE 2F 80 11 00 00 00 00 00 00 A7 [22:23:33]Write i2c OK [22:23:33]MH_I2C_Read... [22:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:33]Read from MH i2c: E2 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 17 00 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 17 00 FE 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FC [22:23:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:23:33]wFMCommunicate OK [22:23:33]requested_item fd.num is exist - process it [22:23:33]SAM_PROTO_GetFieldsCounters [22:23:33]wFMCommunicate request_size=4 [22:23:33]MH_SAM_APDU [22:23:33]CAPDU: 80 13 00 00 [22:23:33]Write to MH i2c: E2 08 00 FF 2F 80 13 00 00 00 00 00 00 AA [22:23:33]Write i2c OK [22:23:33]MH_I2C_Read... [22:23:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:33]Read from MH i2c: E2 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 62 00 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 62 00 FF 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3D 60 02 00 0E 04 04 00 16 02 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 74 [22:23: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3D 60 02 00 0E 04 04 00 16 02 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 [22:23:33]wFMCommunicate OK [22:23:33]SAM_PROTO_GetFieldsCounters done [22:23:33]requested_item shift.num is exist - process it [22:23:33]requested_item shift.opened is exist - process it [22:23:33]req_shift_opened [22:23:33]FM_GetShiftState [22:23:33]SAM_PROTO_GetShiftState [22:23:33]wFMCommunicate request_size=4 [22:23:33]MH_SAM_APDU [22:23:33]CAPDU: 80 13 01 00 [22:23:33]Write to MH i2c: E2 08 00 00 30 80 13 01 00 00 00 00 00 AD [22:23:33]Write i2c OK [22:23:33]MH_I2C_Read... [22:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:33]Read from MH i2c: E2 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 0E 00 [22:23:33]MH_I2C_Read... [22:23:33]Read from MH i2c: E2 0E 00 00 30 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 FA [22:23:33]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:23:33]wFMCommunicate OK [22:23:33]SAM_PROTO_GetShiftState done [22:23:33]FM_GetShiftState done [22:23:33]req_shift_opened done [22:23:33]requested_item shift.open_date is exist - process it [22:23:33]req_shift_open_date [22:23:33]req_shift_open_date done [22:23:33]produce_requested_data done [22:23:33]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155709,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [22:23:33]process_action_free close_receipt [22:23:33]json_value_free [22:23:33]json_value_free done [22:23:33]process_json_proto returns [22:23:33]Send response to host [22:23:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155709,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [22:23:33]free response buf [22:23:33]execute_script done [22:23:33]execute_script returns [22:23:33]free content buf [22:23:33]Sock 9.Close socket [22:23:33]Sock 9.Thread stoped [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:28]accept exits with 10 [22:24:28]New connection [22:24:28]New thread 3066637668 created [22:24:28]Thread 3066781028 joined [22:24:28]Waiting for new connection... [22:24:28] Sock 10.Parse request [22:24:28]Sock 10.Check first char [22:24:28]Sock 10.First char is OK [22:24:28]request: POST /json_proto HTTP/1.0 [22:24:28]Method: POST [22:24:28]URL: /json_proto [22:24:28]Method is POST - this is cgi request [22:24:28]url: /json_proto [22:24:28]query_string will be loaded in cgi processing [22:24:28]execute_cgi json_proto POST (null) [22:24:28]execute_cgi path=json_proto method=POST [22:24:28]POST find Content-Length [22:24:28]Host: 172.17.63.3:8080 [22:24:28]Content-Length: 670 [22:24:28]Content-Type: application/json [22:24:28] [22:24:28]POST finish read [22:24:28]Found Content-Length = 670 [22:24:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:28]execute_script... [22:24: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)98517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.010, "sum" : 0.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:28]POST & json_proto [22:24:28]process_json_proto [22:24:28]json parsed OK: [22:24:28]protocol is kg_v1.0 [22:24:28]action value=close_receipt [22:24:28]process_action close_receipt [22:24:28]cmd_close_receipt [22:24:28]MH_GetDate [22:24:28]Write to MH i2c: F0 00 00 01 30 20 [22:24:28]Write i2c OK [22:24:28]MH_I2C_Read... [22:24:28]Read from MH i2c: F0 [22:24:28]MH_I2C_Read... [22:24:28]Read from MH i2c: F0 09 00 [22:24:28]MH_I2C_Read... [22:24:28]Read from MH i2c: F0 09 00 01 30 00 1F C9 1A 67 50 D1 6C 64 83 [22:24:28]GetLastDocTimeStamp 1729808613 [22:24:28]current date 1729808671 [22:24:28]FM_GetShiftState [22:24:28]SAM_PROTO_GetShiftState [22:24:28]wFMCommunicate request_size=4 [22:24:28]MH_SAM_APDU [22:24:28]CAPDU: 80 13 01 00 [22:24:28]Write to MH i2c: E2 08 00 02 30 80 13 01 00 00 00 00 00 AF [22:24:28]Write i2c OK [22:24:28]MH_I2C_Read... [22:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:28]Read from MH i2c: E2 [22:24:28]MH_I2C_Read... [22:24:28]Read from MH i2c: E2 0E 00 [22:24:28]MH_I2C_Read... [22:24:28]Read from MH i2c: E2 0E 00 02 30 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 FC [22:24:28]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:24:28]wFMCommunicate OK [22:24:28]SAM_PROTO_GetShiftState done [22:24:28]FM_GetShiftState done [22:24:28]opened in 1729729836 [22:24:28]opened+sec_in_day 1729816236 [22:24:28]quantity*price = 66 [22:24:28]sum+1 = 68 [22:24:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 0.00 Внесено: 500.00 СДАЧА: 500.00 НСП 1% : 0.01 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 335 24.10.2024 22:24 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155710 ФПД: 68640520361569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222431&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155710&fm=68640520361569&tin=02508201610067®Number=0000000000091693&sum=0 [22:24:30]StoreToDocumentArchive [22:24:30]shift 534 fd 155710 [22:24:30]save to /storage/0534/doc_00155710 [22:24:30]save last doc name /storage/0534/doc_00155710 to /storage/kkm_last_doc_name [22:24:30]save OK [22:24:30]Clear old archive folders... [22:24:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:24:30]tlvbuf is B6D7EBD0 [22:24:30]SAM_PROTO_ClearQueue [22:24:30]wFMCommunicate request_size=4 [22:24:30]MH_SAM_APDU [22:24:30]CAPDU: 80 09 00 00 [22:24:30]Write to MH i2c: E2 08 00 0F 30 80 09 00 00 00 00 00 00 B1 [22:24:30]Write i2c OK [22:24:30]MH_I2C_Read... [22:24:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:30]Read from MH i2c: E2 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: E2 03 00 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: E2 03 00 0F 30 00 90 00 B3 [22:24:30]RAPDU: 90 00 [22:24:30]wFMCommunicate OK [22:24:30]SAM_PROTO_ClearQueue done [22:24:30]KKMCreateOFDPacket [22:24:30]OFDProtocolAddRootSTLVToBuf [22:24:30]FM_MakeSignedData [22:24:30]FM_MakeSignedData [22:24:30]SAM_PROTO_SignData [22:24:30]wFMCommunicate request_size=4 [22:24:30]MH_SAM_APDU [22:24:30]CAPDU: 80 0D 01 02 [22:24:30]Write to MH i2c: E2 08 00 10 30 80 0D 01 02 00 00 00 00 B9 [22:24:30]Write i2c OK [22:24:30]MH_I2C_Read... [22:24:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:30]Read from MH i2c: E2 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: E2 03 00 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: E2 03 00 10 30 00 90 00 B4 [22:24:30]RAPDU: 90 00 [22:24:30]wFMCommunicate OK [22:24:30]wFMCommunicate request_size=255 [22:24:30]MH_SAM_APDU [22:24:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 1F C9 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 60 02 00 35 04 06 00 3E [22:24:30]Write to MH i2c: E2 02 01 11 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 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 1F C9 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 60 02 00 35 04 06 00 3E 00 00 08 [22:24:30]Write i2c OK [22:24:30]MH_I2C_Read... [22:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:30]Read from MH i2c: E2 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: E2 03 00 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: E2 03 00 11 30 00 90 00 B5 [22:24:30]RAPDU: 90 00 [22:24:30]wFMCommunicate OK [22:24:30]wFMCommunicate request_size=10 [22:24:30]MH_SAM_APDU [22:24:30]CAPDU: 80 0D 02 02 05 6D 9D D5 56 61 [22:24:30]Write to MH i2c: E2 0D 00 12 30 80 0D 02 02 05 00 6D 9D D5 56 61 00 00 5C [22:24:30]Write i2c OK [22:24:30]MH_I2C_Read... [22:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:30]Read from MH i2c: E2 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: E2 03 00 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: E2 03 00 12 30 00 90 00 B6 [22:24:30]RAPDU: 90 00 [22:24:30]wFMCommunicate OK [22:24:30]wFMCommunicate request_size=4 [22:24:30]MH_SAM_APDU [22:24:30]CAPDU: 80 0D 03 02 [22:24:30]Write to MH i2c: E2 08 00 13 30 80 0D 03 02 00 00 00 00 BE [22:24:30]Write i2c OK [22:24:30]MH_I2C_Read... [22:24:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:30]Read from MH i2c: E2 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: E2 0B 00 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: E2 0B 00 13 30 00 A7 6E B6 54 38 6A D8 46 90 00 9E [22:24:30]RAPDU: A7 6E B6 54 38 6A D8 46 90 00 [22:24:30]wFMCommunicate OK [22:24:30]SAM_PROTO_SignData done [22:24:30]FM_MakeSignedData done [22:24:30]CreateOFDProtocolMessage [22:24:30]wFMCommunicate request_size=4 [22:24:30]MH_SAM_APDU [22:24:30]CAPDU: 80 11 00 00 [22:24:30]Write to MH i2c: E2 08 00 14 30 80 11 00 00 00 00 00 00 BE [22:24:30]Write i2c OK [22:24:30]MH_I2C_Read... [22:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:30]Read from MH i2c: E2 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: E2 17 00 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: E2 17 00 14 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 13 [22:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:24:30]wFMCommunicate OK [22:24:30]CreateOFDProtocolMessage done [22:24:30]OFDSenderStorePacket 155710 [22:24:30]StoreOFDPacket docnum=155710 [22:24:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E1 68 07 01 F7 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 1F C9 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 60 02 00 35 04 06 00 3E 6D 9D D5 56 61 A7 6E B6 54 38 6A D8 46 [22:24:30]CheckFolder [22:24:30]dirname=/storage/ofd_packets [22:24:30]CheckFolder done [22:24:30]ProducePacketName [22:24:30]name=ofd_packets/00155710 [22:24:30]NVStorageSaveData ofd_packets/00155710 [22:24:30]File name is /storage/ofd_packets/00155710 [22:24:30]Write 301 bytes [22:24:30]NVStorageSaveData done [22:24:30]OFDSenderStorePacket done [22:24:30]KKMCreateOFDPacket done [22:24:30]NVStorageSaveData kkm_last_timestamp [22:24:30]File name is /storage/kkm_last_timestamp [22:24:30]Write 4 bytes [22:24:30]NVStorageSaveData done [22:24:30]ExternCall_PrintAddStr [22:24:30]wPrintStart [22:24:30]Write to MH i2c: 01 00 00 15 30 45 [22:24:30]Write i2c OK [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: 01 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: 01 07 00 [22:24:30]MH_I2C_Read... [22:24:30]Read from MH i2c: 01 07 00 15 30 00 00 00 00 00 FF 0F 5A [22:24:30]RasterBufferAndPrint [22:24:30]line Счет N : (1)98517 [22:24:30]line ИНН: 02508201610067 [22:24:30]line Контрольно-Кассовый Чек [22:24:30]line ПРОДАЖА [22:24:30]line ТРК (МРК, ГНК) : 11 [22:24:30]line Товар: 2710124130 [22:24:30]line Аи-92-К-5 [22:24:30]line 0.010 * 66.90 [22:24:30]line = 0.67 [22:24:30]line НДС 12% НСП 1% [22:24:30]line > о реализуемом товаре [22:24:30]line ОКРУГЛЕНИЕ: -0.67 [22:24:30]line ИТОГО: 0.00 [22:24:30]line Внесено: 500.00 [22:24:30]line СДАЧА: 500.00 [22:24:30]line НСП 1% : 0.01 [22:24:30]line НДС 12% : 0.07 [22:24:30]line Наличными: 0.00 [22:24:30]line Безнал.: 0.00 [22:24:30]line Место: АЗС № 143 "Партнер Нефть" [22:24:30]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:24:30]line СНО: Общий режим [22:24:30]line Чек 335 24.10.2024 22:24 [22:24:30]line Смена: 534 ФФД: 1.0 [22:24:30]line ЗНМ: 0300000096 [22:24:30]line РНМ: 0000000000091693 [22:24:30]line Версия ККМ: 001 [22:24:30]line ФМ: 0000000000871792 [22:24:30]line ФД: 155710 [22:24:30]line ФПД: 68640520361569 [22:24:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222431&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155710&fm=68640520361569&tin=02508201610067®Number=0000000000091693&sum=0 [22:24:30]OFD Sender: Processing packet 155710 [packets to send 31, broken 30] [22:24:30]ProducePacketName [22:24:30]name=ofd_packets/00155710 [22:24:30]OFD Sender: To server: pG, [22:24:30]CommunicateWithHost lk.salyk.kg:30040 [22:24:30]ConnectInit lk.salyk.kg [22:24:31]Connected sock=11 [22:24:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E1 68 07 01 F7 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A written 0, free lines is 4095 [22:24:31]04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 43 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 1F C9 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 60 02 00 35 04 06 00 3E 6D 9D D5 56 61 A7 6E B6 54 38 6A D8 46 [22:24:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E3 24 47 00 16 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 39 32 10 04 04 00 3E 60 02 00 F4 03 04 00 96 6E 1A 67 B6 04 01 00 00 81 5A 57 1F CA 3E 39 9C [22:24:31]CommunicateWithHost err = 0 [22:24:31]CheckOFDResponse [22:24:31]1017 (14) - 77093643461234 [22:24:31]1041 (16) - 0000000000871792 [22:24:31]1040 (4) - 155710 [22:24:31]1012 (4) - 24.10.2024 15:58 [22:24:31]1206 (1) - 0 [22:24:31]OFD Sender: Remove packet 155710 [22:24:31]ProducePacketName [22:24:31]name=ofd_packets/00155710 [22:24:31]NVStorageDeleteData [22:24:31]Write to MH i2c: 01 00 00 40 30 70 [22:24:31]Write i2c OK [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: 01 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: 01 07 00 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: 01 07 00 40 30 00 00 00 00 00 D8 0C 5B [22:24:31]RasterBufferAndPrint [22:24:31]line [22:24:31]line [22:24:31]line [22:24:31]line [22:24:31]line [22:24:31]written 0, free lines is 3294 [22:24:31]process_action close_receipt done [22:24:31]requested_data is exist [22:24:31]produce_requested_data [22:24:31]requested_item fm.sn is exist - process it [22:24:31]wFMCommunicate request_size=4 [22:24:31]MH_SAM_APDU [22:24:31]CAPDU: 80 11 00 00 [22:24:31]Write to MH i2c: E2 08 00 47 30 80 11 00 00 00 00 00 00 F1 [22:24:31]Write i2c OK [22:24:31]MH_I2C_Read... [22:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:31]Read from MH i2c: E2 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 17 00 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 17 00 47 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 46 [22:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:24:31]wFMCommunicate OK [22:24:31]requested_item fd.num is exist - process it [22:24:31]SAM_PROTO_GetFieldsCounters [22:24:31]wFMCommunicate request_size=4 [22:24:31]MH_SAM_APDU [22:24:31]CAPDU: 80 13 00 00 [22:24:31]Write to MH i2c: E2 08 00 48 30 80 13 00 00 00 00 00 00 F4 [22:24:31]Write i2c OK [22:24:31]MH_I2C_Read... [22:24:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:31]Read from MH i2c: E2 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 62 00 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 62 00 48 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3E 60 02 00 0E 04 04 00 16 02 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 C2 [22:24: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3E 60 02 00 0E 04 04 00 16 02 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 [22:24:31]wFMCommunicate OK [22:24:31]SAM_PROTO_GetFieldsCounters done [22:24:31]requested_item shift.num is exist - process it [22:24:31]requested_item shift.opened is exist - process it [22:24:31]req_shift_opened [22:24:31]FM_GetShiftState [22:24:31]SAM_PROTO_GetShiftState [22:24:31]wFMCommunicate request_size=4 [22:24:31]MH_SAM_APDU [22:24:31]CAPDU: 80 13 01 00 [22:24:31]Write to MH i2c: E2 08 00 49 30 80 13 01 00 00 00 00 00 F6 [22:24:31]Write i2c OK [22:24:31]MH_I2C_Read... [22:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:31]Read from MH i2c: E2 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 0E 00 [22:24:31]MH_I2C_Read... [22:24:31]Read from MH i2c: E2 0E 00 49 30 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 43 [22:24:31]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:24:31]wFMCommunicate OK [22:24:31]SAM_PROTO_GetShiftState done [22:24:31]FM_GetShiftState done [22:24:31]req_shift_opened done [22:24:31]requested_item shift.open_date is exist - process it [22:24:31]req_shift_open_date [22:24:31]req_shift_open_date done [22:24:31]produce_requested_data done [22:24:31]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155710,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [22:24:31]process_action_free close_receipt [22:24:31]json_value_free [22:24:31]json_value_free done [22:24:31]process_json_proto returns [22:24:31]Send response to host [22:24:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155710,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [22:24:31]free response buf [22:24:31]execute_script done [22:24:31]execute_script returns [22:24:31]free content buf [22:24:31]Sock 10.Close socket [22:24:31]Sock 10.Thread stoped [22:24:31]OFD Sender: No OFD packet to send [22:24:34]int [22:24:34]Write to MH i2c: 01 00 00 4A 30 7A [22:24:34]*** FLAG_PRN_KEY set [22:24:34]Write i2c OK [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 07 00 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 07 00 4A 30 00 08 00 00 00 FF 0F 97 [22:24:34]state=0 [22:24:34]Key pressed [22:24:34]Feed [22:24:34]Write to MH i2c: D8 00 00 4B 30 52 [22:24:34]Write i2c OK [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: D8 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: D8 01 00 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: D8 01 00 4B 30 00 53 [22:24:34]int [22:24:34]Write to MH i2c: 01 00 00 4C 30 7C [22:24:34]Write i2c OK [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 07 00 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 07 00 4C 30 00 48 00 00 00 3C 00 07 [22:24:34]state=2 [22:24:34]Key pressed [22:24:34]int [22:24:34]Write to MH i2c: 01 00 00 4D 30 7D [22:24:34]*** FLAG_PRN_KEY reset [22:24:34]Write i2c OK [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 07 00 [22:24:34]MH_I2C_Read... [22:24:34]Read from MH i2c: 01 07 00 4D 30 00 00 00 00 00 F7 0F 8A [22:24:34]state=2 [22:24:34]Stop feed [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:37]accept exits with 8 [22:25:37]New connection [22:25:37]New thread 3066781028 created [22:25:37]Thread 3066637668 joined [22:25:37]Waiting for new connection... [22:25:37] Sock 8.Parse request [22:25:37]Sock 8.Check first char [22:25:37]Sock 8.First char is OK [22:25:37]request: POST /json_proto HTTP/1.0 [22:25:37]Method: POST [22:25:37]URL: /json_proto [22:25:37]Method is POST - this is cgi request [22:25:37]url: /json_proto [22:25:37]query_string will be loaded in cgi processing [22:25:37]execute_cgi json_proto POST (null) [22:25:37]execute_cgi path=json_proto method=POST [22:25:37]POST find Content-Length [22:25:37]Host: 172.17.63.3:8080 [22:25:37]Content-Length: 677 [22:25:37]Content-Type: application/json [22:25:37] [22:25:37]POST finish read [22:25:37]Found Content-Length = 677 [22:25:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:37]execute_script... [22:25: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)98519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:37]POST & json_proto [22:25:37]process_json_proto [22:25:37]json parsed OK: [22:25:37]protocol is kg_v1.0 [22:25:37]action value=close_receipt [22:25:37]process_action close_receipt [22:25:37]cmd_close_receipt [22:25:37]MH_GetDate [22:25:37]Write to MH i2c: F0 00 00 4E 30 6D [22:25:37]Write i2c OK [22:25:37]MH_I2C_Read... [22:25:37]Read from MH i2c: F0 [22:25:37]MH_I2C_Read... [22:25:37]Read from MH i2c: F0 09 00 [22:25:37]MH_I2C_Read... [22:25:37]Read from MH i2c: F0 09 00 4E 30 00 63 C9 1A 67 50 D1 6C 64 14 [22:25:37]GetLastDocTimeStamp 1729808671 [22:25:37]current date 1729808739 [22:25:37]FM_GetShiftState [22:25:37]SAM_PROTO_GetShiftState [22:25:37]wFMCommunicate request_size=4 [22:25:37]MH_SAM_APDU [22:25:37]CAPDU: 80 13 01 00 [22:25:37]Write to MH i2c: E2 08 00 4F 30 80 13 01 00 00 00 00 00 FC [22:25:37]Write i2c OK [22:25:37]MH_I2C_Read... [22:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:37]Read from MH i2c: E2 [22:25:37]MH_I2C_Read... [22:25:37]Read from MH i2c: E2 0E 00 [22:25:37]MH_I2C_Read... [22:25:37]Read from MH i2c: E2 0E 00 4F 30 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 49 [22:25:37]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:25:37]wFMCommunicate OK [22:25:37]SAM_PROTO_GetShiftState done [22:25:37]FM_GetShiftState done [22:25:37]opened in 1729729836 [22:25:37]opened+sec_in_day 1729816236 [22:25:37]quantity*price = 70044 [22:25:37]sum+1 = 70045 [22:25:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 336 24.10.2024 22:25 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155711 ФПД: 128648135961731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222539&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155711&fm=128648135961731&tin=02508201610067®Number=0000000000091693&sum=70000 [22:25:38]StoreToDocumentArchive [22:25:38]shift 534 fd 155711 [22:25:38]save to /storage/0534/doc_00155711 [22:25:38]save last doc name /storage/0534/doc_00155711 to /storage/kkm_last_doc_name [22:25:38]save OK [22:25:38]Clear old archive folders... [22:25:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:25:38]tlvbuf is B6EB0750 [22:25:38]SAM_PROTO_ClearQueue [22:25:38]wFMCommunicate request_size=4 [22:25:38]MH_SAM_APDU [22:25:38]CAPDU: 80 09 00 00 [22:25:38]Write to MH i2c: E2 08 00 5C 30 80 09 00 00 00 00 00 00 FE [22:25:38]Write i2c OK [22:25:38]MH_I2C_Read... [22:25:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:25:38]Read from MH i2c: E2 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 03 00 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 03 00 5C 30 00 90 00 00 [22:25:38]RAPDU: 90 00 [22:25:38]wFMCommunicate OK [22:25:38]SAM_PROTO_ClearQueue done [22:25:38]KKMCreateOFDPacket [22:25:38]OFDProtocolAddRootSTLVToBuf [22:25:38]FM_MakeSignedData [22:25:38]FM_MakeSignedData [22:25:38]SAM_PROTO_SignData [22:25:38]wFMCommunicate request_size=4 [22:25:38]MH_SAM_APDU [22:25:38]CAPDU: 80 0D 01 02 [22:25:38]Write to MH i2c: E2 08 00 5D 30 80 0D 01 02 00 00 00 00 06 [22:25:38]Write i2c OK [22:25:38]MH_I2C_Read... [22:25:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:25:38]Read from MH i2c: E2 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 03 00 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 03 00 5D 30 00 90 00 01 [22:25:38]RAPDU: 90 00 [22:25:38]wFMCommunicate OK [22:25:38]wFMCommunicate request_size=255 [22:25:38]MH_SAM_APDU [22:25:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 63 C9 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 60 02 00 35 04 06 00 75 [22:25:38]Write to MH i2c: E2 02 01 5E 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 63 C9 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 60 02 00 35 04 06 00 75 00 00 D6 [22:25:38]Write i2c OK [22:25:38]MH_I2C_Read... [22:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:38]Read from MH i2c: E2 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 03 00 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 03 00 5E 30 00 90 00 02 [22:25:38]RAPDU: 90 00 [22:25:38]wFMCommunicate OK [22:25:38]wFMCommunicate request_size=10 [22:25:38]MH_SAM_APDU [22:25:38]CAPDU: 80 0D 02 02 05 01 3A 71 EC 83 [22:25:38]Write to MH i2c: E2 0D 00 5F 30 80 0D 02 02 05 00 01 3A 71 EC 83 00 00 2E [22:25:38]Write i2c OK [22:25:38]MH_I2C_Read... [22:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:38]Read from MH i2c: E2 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 03 00 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 03 00 5F 30 00 90 00 03 [22:25:38]RAPDU: 90 00 [22:25:38]wFMCommunicate OK [22:25:38]wFMCommunicate request_size=4 [22:25:38]MH_SAM_APDU [22:25:38]CAPDU: 80 0D 03 02 [22:25:38]Write to MH i2c: E2 08 00 60 30 80 0D 03 02 00 00 00 00 0B [22:25:38]Write i2c OK [22:25:38]MH_I2C_Read... [22:25:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:25:38]Read from MH i2c: E2 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 0B 00 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 0B 00 60 30 00 6C 34 6B AB CE 52 DB 40 90 00 FD [22:25:38]RAPDU: 6C 34 6B AB CE 52 DB 40 90 00 [22:25:38]wFMCommunicate OK [22:25:38]SAM_PROTO_SignData done [22:25:38]FM_MakeSignedData done [22:25:38]CreateOFDProtocolMessage [22:25:38]wFMCommunicate request_size=4 [22:25:38]MH_SAM_APDU [22:25:38]CAPDU: 80 11 00 00 [22:25:38]Write to MH i2c: E2 08 00 61 30 80 11 00 00 00 00 00 00 0B [22:25:38]Write i2c OK [22:25:38]MH_I2C_Read... [22:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:38]Read from MH i2c: E2 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 17 00 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: E2 17 00 61 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 60 [22:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:25:38]wFMCommunicate OK [22:25:38]CreateOFDProtocolMessage done [22:25:38]OFDSenderStorePacket 155711 [22:25:38]StoreOFDPacket docnum=155711 [22:25:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7C 27 07 01 27 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 63 C9 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 60 02 00 35 04 06 00 75 01 3A 71 EC 83 6C 34 6B AB CE 52 DB 40 [22:25:38]CheckFolder [22:25:38]dirname=/storage/ofd_packets [22:25:38]CheckFolder done [22:25:38]ProducePacketName [22:25:38]name=ofd_packets/00155711 [22:25:38]NVStorageSaveData ofd_packets/00155711 [22:25:38]File name is /storage/ofd_packets/00155711 [22:25:38]Write 301 bytes [22:25:38]NVStorageSaveData done [22:25:38]OFDSenderStorePacket done [22:25:38]KKMCreateOFDPacket done [22:25:38]NVStorageSaveData kkm_last_timestamp [22:25:38]File name is /storage/kkm_last_timestamp [22:25:38]Write 4 bytes [22:25:38]NVStorageSaveData done [22:25:38]ExternCall_PrintAddStr [22:25:38]wPrintStart [22:25:38]Write to MH i2c: 01 00 00 62 30 92 [22:25:38]Write i2c OK [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: 01 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: 01 07 00 [22:25:38]MH_I2C_Read... [22:25:38]Read from MH i2c: 01 07 00 62 30 00 00 00 00 00 FF 0F A7 [22:25:38]RasterBufferAndPrint [22:25:38]line Счет N : (1)98519 [22:25:38]line ИНН: 02508201610067 [22:25:38]line Контрольно-Кассовый Чек [22:25:38]line ПРОДАЖА [22:25:38]line ТРК (МРК, ГНК) : 11 [22:25:38]line Товар: 2710124130 [22:25:38]line Аи-92-К-5 [22:25:38]line 10.470 * 66.90 [22:25:38]line = 700.44 [22:25:38]line НДС 12% НСП 1% [22:25:38]line > о реализуемом товаре [22:25:38]line ОКРУГЛЕНИЕ: -0.44 [22:25:38]line ИТОГО: 700.00 [22:25:38]line Внесено: 700.00 [22:25:38]line СДАЧА: 0.00 [22:25:38]line НСП 1% : 6.20 [22:25:38]line НДС 12% : 74.38 [22:25:38]line Наличными: 700.00 [22:25:38]line Безнал.: 0.00 [22:25:38]line Место: АЗС № 143 "Партнер Нефть" [22:25:38]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:25:38]line СНО: Общий режим [22:25:38]line Чек 336 24.10.2024 22:25 [22:25:38]line Смена: 534 ФФД: 1.0 [22:25:38]line ЗНМ: 0300000096 [22:25:38]line РНМ: 0000000000091693 [22:25:38]line Версия ККМ: 001 [22:25:38]line ФМ: 0000000000871792 [22:25:38]line ФД: 155711 [22:25:38]line ФПД: 128648135961731 [22:25:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222539&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155711&fm=128648135961731&tin=02508201610067®Number=0000000000091693&sum=70000 [22:25:39]OFD Sender: Processing packet 155711 [packets to send 31, broken 30] [22:25:39]ProducePacketName [22:25:39]name=ofd_packets/00155711 [22:25:39]OFD Sender: To server: pG, [22:25:39]CommunicateWithHost lk.salyk.kg:30040 [22:25:39]ConnectInit lk.salyk.kg [22:25:39]written 0, free lines is 4095 [22:25:39]Connected sock=10 [22:25: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 39 32 0F 01 00 00 7C 27 07 01 27 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 63 C9 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 60 02 00 35 04 06 00 75 01 3A 71 EC 83 6C 34 6B AB CE 52 DB 40 [22:25:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 74 2F 47 00 60 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 39 32 10 04 04 00 3F 60 02 00 F4 03 04 00 DB 6E 1A 67 B6 04 01 00 00 1D E4 4D E4 E0 5F C4 92 [22:25:39]CommunicateWithHost err = 0 [22:25:39]CheckOFDResponse [22:25:39]1017 (14) - 77093643461234 [22:25:39]1041 (16) - 0000000000871792 [22:25:39]1040 (4) - 155711 [22:25:39]1012 (4) - 24.10.2024 15:59 [22:25:39]1206 (1) - 0 [22:25:39]OFD Sender: Remove packet 155711 [22:25:39]ProducePacketName [22:25:39]name=ofd_packets/00155711 [22:25:39]NVStorageDeleteData [22:25:39]Write to MH i2c: 01 00 00 8D 30 BD [22:25:39]Write i2c OK [22:25:39]MH_I2C_Read... [22:25:39]Read from MH i2c: 01 [22:25:39]MH_I2C_Read... [22:25:39]Read from MH i2c: 01 07 00 [22:25:39]MH_I2C_Read... [22:25:39]Read from MH i2c: 01 07 00 8D 30 00 00 00 00 00 EB 0C BB [22:25:39]RasterBufferAndPrint [22:25:39]line [22:25:39]line [22:25:39]line [22:25:39]line [22:25:39]line [22:25:39]written 0, free lines is 3313 [22:25:39]process_action close_receipt done [22:25:39]requested_data is exist [22:25:39]produce_requested_data [22:25:39]requested_item fm.sn is exist - process it [22:25:39]wFMCommunicate request_size=4 [22:25:39]MH_SAM_APDU [22:25:39]CAPDU: 80 11 00 00 [22:25:39]Write to MH i2c: E2 08 00 94 30 80 11 00 00 00 00 00 00 3E [22:25:39]Write i2c OK [22:25:39]MH_I2C_Read... [22:25:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:39]Read from MH i2c: E2 [22:25:39]MH_I2C_Read... [22:25:39]Read from MH i2c: E2 17 00 [22:25:39]MH_I2C_Read... [22:25:39]Read from MH i2c: E2 17 00 94 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 93 [22:25:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:25:39]wFMCommunicate OK [22:25:39]requested_item fd.num is exist - process it [22:25:39]SAM_PROTO_GetFieldsCounters [22:25:39]wFMCommunicate request_size=4 [22:25:39]MH_SAM_APDU [22:25:39]CAPDU: 80 13 00 00 [22:25:39]Write to MH i2c: E2 08 00 95 30 80 13 00 00 00 00 00 00 41 [22:25:39]Write i2c OK [22:25:39]MH_I2C_Read... [22:25:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:39]Read from MH i2c: E2 [22:25:39]MH_I2C_Read... [22:25:39]Read from MH i2c: E2 62 00 [22:25:39]MH_I2C_Read... [22:25:39]Read from MH i2c: E2 62 00 95 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3F 60 02 00 0E 04 04 00 16 02 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 13 [22:25:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3F 60 02 00 0E 04 04 00 16 02 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 [22:25:39]wFMCommunicate OK [22:25:39]SAM_PROTO_GetFieldsCounters done [22:25:39]requested_item shift.num is exist - process it [22:25:39]requested_item shift.opened is exist - process it [22:25:39]req_shift_opened [22:25:39]FM_GetShiftState [22:25:39]SAM_PROTO_GetShiftState [22:25:39]wFMCommunicate request_size=4 [22:25:39]MH_SAM_APDU [22:25:39]CAPDU: 80 13 01 00 [22:25:39]Write to MH i2c: E2 08 00 96 30 80 13 01 00 00 00 00 00 43 [22:25:39]Write i2c OK [22:25:39]MH_I2C_Read... [22:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:39]Read from MH i2c: E2 [22:25:39]MH_I2C_Read... [22:25:39]Read from MH i2c: E2 0E 00 [22:25:39]MH_I2C_Read... [22:25:39]Read from MH i2c: E2 0E 00 96 30 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 90 [22:25:39]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:25:39]wFMCommunicate OK [22:25:39]SAM_PROTO_GetShiftState done [22:25:39]FM_GetShiftState done [22:25:39]req_shift_opened done [22:25:39]requested_item shift.open_date is exist - process it [22:25:39]req_shift_open_date [22:25:39]req_shift_open_date done [22:25:39]produce_requested_data done [22:25:39]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155711,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [22:25:39]process_action_free close_receipt [22:25:39]json_value_free [22:25:39]json_value_free done [22:25:39]process_json_proto returns [22:25:39]Send response to host [22:25:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155711,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [22:25:39]free response buf [22:25:39]execute_script done [22:25:39]execute_script returns [22:25:39]free content buf [22:25:39]Sock 8.Close socket [22:25:39]Sock 8.Thread stoped [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:29:55]accept exits with 9 [22:29:55]New connection [22:29:55]New thread 3066637668 created [22:29:55]Thread 3066781028 joined [22:29:55]Waiting for new connection... [22:29:55] Sock 9.Parse request [22:29:55]Sock 9.Check first char [22:29:55]Sock 9.First char is OK [22:29:55]request: POST /json_proto HTTP/1.0 [22:29:55]Method: POST [22:29:55]URL: /json_proto [22:29:55]Method is POST - this is cgi request [22:29:55]url: /json_proto [22:29:55]query_string will be loaded in cgi processing [22:29:55]execute_cgi json_proto POST (null) [22:29:55]execute_cgi path=json_proto method=POST [22:29:55]POST find Content-Length [22:29:55]Host: 172.17.63.3:8080 [22:29:55]Content-Length: 681 [22:29:55]Content-Type: application/json [22:29:55] [22:29:55]POST finish read [22:29:55]Found Content-Length = 681 [22:29:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 59.800, "sum" : 4000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:55]execute_script... [22:29:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 59.800, "sum" : 4000.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:55]POST & json_proto [22:29:55]process_json_proto [22:29:55]json parsed OK: [22:29:55]protocol is kg_v1.0 [22:29:55]action value=close_receipt [22:29:55]process_action close_receipt [22:29:55]cmd_close_receipt [22:29:55]MH_GetDate [22:29:55]Write to MH i2c: F0 00 00 97 30 B6 [22:29:55]Write i2c OK [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: F0 [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: F0 09 00 [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: F0 09 00 97 30 00 65 CA 1A 67 50 D1 6C 64 60 [22:29:55]GetLastDocTimeStamp 1729808739 [22:29:55]current date 1729808997 [22:29:55]FM_GetShiftState [22:29:55]SAM_PROTO_GetShiftState [22:29:55]wFMCommunicate request_size=4 [22:29:55]MH_SAM_APDU [22:29:55]CAPDU: 80 13 01 00 [22:29:55]Write to MH i2c: E2 08 00 98 30 80 13 01 00 00 00 00 00 45 [22:29:55]Write i2c OK [22:29:55]MH_I2C_Read... [22:29:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:55]Read from MH i2c: E2 [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: E2 0E 00 [22:29:55]MH_I2C_Read... [22:29:55]Read from MH i2c: E2 0E 00 98 30 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 92 [22:29:55]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:29:55]wFMCommunicate OK [22:29:55]SAM_PROTO_GetShiftState done [22:29:55]FM_GetShiftState done [22:29:55]opened in 1729729836 [22:29:55]opened+sec_in_day 1729816236 [22:29:55]quantity*price = 400062 [22:29:55]sum+1 = 400063 [22:29:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.84 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 337 24.10.2024 22:29 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155712 ФПД: 127792281432790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222957&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155712&fm=127792281432790&tin=02508201610067®Number=0000000000091693&sum=400000 [22:29:56]StoreToDocumentArchive [22:29:56]shift 534 fd 155712 [22:29:56]save to /storage/0534/doc_00155712 [22:29:56]save last doc name /storage/0534/doc_00155712 to /storage/kkm_last_doc_name [22:29:56]save OK [22:29:56]Clear old archive folders... [22:29:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:29:56]tlvbuf is 01FB6D60 [22:29:56]SAM_PROTO_ClearQueue [22:29:56]wFMCommunicate request_size=4 [22:29:56]MH_SAM_APDU [22:29:56]CAPDU: 80 09 00 00 [22:29:56]Write to MH i2c: E2 08 00 A5 30 80 09 00 00 00 00 00 00 47 [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 A5 30 00 90 00 49 [22:29:56]RAPDU: 90 00 [22:29:56]wFMCommunicate OK [22:29:56]SAM_PROTO_ClearQueue done [22:29:56]KKMCreateOFDPacket [22:29:56]OFDProtocolAddRootSTLVToBuf [22:29:56]FM_MakeSignedData [22:29:56]FM_MakeSignedData [22:29:56]SAM_PROTO_SignData [22:29:56]wFMCommunicate request_size=4 [22:29:56]MH_SAM_APDU [22:29:56]CAPDU: 80 0D 01 02 [22:29:56]Write to MH i2c: E2 08 00 A6 30 80 0D 01 02 00 00 00 00 4F [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 A6 30 00 90 00 4A [22:29:56]RAPDU: 90 00 [22:29:56]wFMCommunicate OK [22:29:56]wFMCommunicate request_size=255 [22:29:56]MH_SAM_APDU [22:29: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 98 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 65 CA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 60 02 00 35 04 06 00 74 [22:29:56]Write to MH i2c: E2 02 01 A7 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 98 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 65 CA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 60 02 00 35 04 06 00 74 00 00 E3 [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:57]Read from MH i2c: E2 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 03 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 03 00 A7 30 00 90 00 4B [22:29:57]RAPDU: 90 00 [22:29:57]wFMCommunicate OK [22:29:57]wFMCommunicate request_size=10 [22:29:57]MH_SAM_APDU [22:29:57]CAPDU: 80 0D 02 02 05 39 F5 8A 32 D6 [22:29:57]Write to MH i2c: E2 0D 00 A8 30 80 0D 02 02 05 00 39 F5 8A 32 D6 00 00 1C [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:57]Read from MH i2c: E2 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 03 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 03 00 A8 30 00 90 00 4C [22:29:57]RAPDU: 90 00 [22:29:57]wFMCommunicate OK [22:29:57]wFMCommunicate request_size=4 [22:29:57]MH_SAM_APDU [22:29:57]CAPDU: 80 0D 03 02 [22:29:57]Write to MH i2c: E2 08 00 A9 30 80 0D 03 02 00 00 00 00 54 [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:57]Read from MH i2c: E2 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 0B 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 0B 00 A9 30 00 DA 33 11 F4 1B 0B AE 2F 90 00 6A [22:29:57]RAPDU: DA 33 11 F4 1B 0B AE 2F 90 00 [22:29:57]wFMCommunicate OK [22:29:57]SAM_PROTO_SignData done [22:29:57]FM_MakeSignedData done [22:29:57]CreateOFDProtocolMessage [22:29:57]wFMCommunicate request_size=4 [22:29:57]MH_SAM_APDU [22:29:57]CAPDU: 80 11 00 00 [22:29:57]Write to MH i2c: E2 08 00 AA 30 80 11 00 00 00 00 00 00 54 [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:57]Read from MH i2c: E2 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 17 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: E2 17 00 AA 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A9 [22:29:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:29:57]wFMCommunicate OK [22:29:57]CreateOFDProtocolMessage done [22:29:57]OFDSenderStorePacket 155712 [22:29:57]StoreOFDPacket docnum=155712 [22:29:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AA FB 07 01 80 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 98 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 65 CA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 60 02 00 35 04 06 00 74 39 F5 8A 32 D6 DA 33 11 F4 1B 0B AE 2F [22:29:57]CheckFolder [22:29:57]dirname=/storage/ofd_packets [22:29:57]CheckFolder done [22:29:57]ProducePacketName [22:29:57]name=ofd_packets/00155712 [22:29:57]NVStorageSaveData ofd_packets/00155712 [22:29:57]File name is /storage/ofd_packets/00155712 [22:29:57]Write 301 bytes [22:29:57]NVStorageSaveData done [22:29:57]OFDSenderStorePacket done [22:29:57]KKMCreateOFDPacket done [22:29:57]NVStorageSaveData kkm_last_timestamp [22:29:57]File name is /storage/kkm_last_timestamp [22:29:57]Write 4 bytes [22:29:57]NVStorageSaveData done [22:29:57]ExternCall_PrintAddStr [22:29:57]wPrintStart [22:29:57]Write to MH i2c: 01 00 00 AB 30 DB [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: 01 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: 01 07 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: 01 07 00 AB 30 00 00 00 00 00 FF 0F F0 [22:29:57]RasterBufferAndPrint [22:29:57]line Счет N : (1)98520 [22:29:57]line ИНН: 02508201610067 [22:29:57]line Контрольно-Кассовый Чек [22:29:57]line ПРОДАЖА [22:29:57]line ТРК (МРК, ГНК) : 11 [22:29:57]line Товар: 2710124130 [22:29:57]line Аи-92-К-5 [22:29:57]line 59.800 * 66.90 [22:29:57]line = 4000.62 [22:29:57]line НДС 12% НСП 1% [22:29:57]line > о реализуемом товаре [22:29:57]line ОКРУГЛЕНИЕ: -0.62 [22:29:57]line ИТОГО: 4000.00 [22:29:57]line Внесено: 4000.00 [22:29:57]line СДАЧА: 0.00 [22:29:57]line НСП 1% : 35.40 [22:29:57]line НДС 12% : 424.84 [22:29:57]line Наличными: 4000.00 [22:29:57]line Безнал.: 0.00 [22:29:57]line Место: АЗС № 143 "Партнер Нефть" [22:29:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:29:57]line СНО: Общий режим [22:29:57]line Чек 337 24.10.2024 22:29 [22:29:57]line Смена: 534 ФФД: 1.0 [22:29:57]line ЗНМ: 0300000096 [22:29:57]line РНМ: 0000000000091693 [22:29:57]line Версия ККМ: 001 [22:29:57]line ФМ: 0000000000871792 [22:29:57]line ФД: 155712 [22:29:57]line ФПД: 127792281432790 [22:29:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T222957&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155712&fm=127792281432790&tin=02508201610067®Number=0000000000091693&sum=400000 [22:29:57]OFD Sender: Processing packet 155712 [packets to send 31, broken 30] [22:29:57]ProducePacketName [22:29:57]name=ofd_packets/00155712 [22:29:57]OFD Sender: To server: pG, [22:29:57]CommunicateWithHost lk.salyk.kg:30040 [22:29:57]ConnectInit lk.salyk.kg [22:29:57]written 0, free lines is 4095 [22:29:57]Connected sock=10 [22:29:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AA FB 07 01 80 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 98 E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BE 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 65 CA 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 60 02 00 35 04 06 00 74 39 F5 8A 32 D6 DA 33 11 F4 1B 0B AE 2F [22:29: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 39 32 4F 00 00 00 A7 90 47 00 8E 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 39 32 10 04 04 00 40 60 02 00 F4 03 04 00 DD 6F 1A 67 B6 04 01 00 00 ED 6D FC 1C 10 1E EE 59 [22:29:58]CommunicateWithHost err = 0 [22:29:58]CheckOFDResponse [22:29:58]1017 (14) - 77093643461234 [22:29:58]1041 (16) - 0000000000871792 [22:29:58]1040 (4) - 155712 [22:29:58]1012 (4) - 24.10.2024 16:03 [22:29:58]1206 (1) - 0 [22:29:58]OFD Sender: Remove packet 155712 [22:29:58]ProducePacketName [22:29:58]name=ofd_packets/00155712 [22:29:58]NVStorageDeleteData [22:29:58]Write to MH i2c: 01 00 00 D6 30 06 [22:29:58]Write i2c OK [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: 01 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: 01 07 00 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: 01 07 00 D6 30 00 00 00 00 00 E9 0C 02 [22:29:58]RasterBufferAndPrint [22:29:58]line [22:29:58]line [22:29:58]line [22:29:58]line [22:29:58]line [22:29:58]written 0, free lines is 3311 [22:29:58]process_action close_receipt done [22:29:58]requested_data is exist [22:29:58]produce_requested_data [22:29:58]requested_item fm.sn is exist - process it [22:29:58]wFMCommunicate request_size=4 [22:29:58]MH_SAM_APDU [22:29:58]CAPDU: 80 11 00 00 [22:29:58]Write to MH i2c: E2 08 00 DD 30 80 11 00 00 00 00 00 00 87 [22:29:58]Write i2c OK [22:29:58]MH_I2C_Read... [22:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:58]Read from MH i2c: E2 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: E2 17 00 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: E2 17 00 DD 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DC [22:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:29:58]wFMCommunicate OK [22:29:58]requested_item fd.num is exist - process it [22:29:58]SAM_PROTO_GetFieldsCounters [22:29:58]wFMCommunicate request_size=4 [22:29:58]MH_SAM_APDU [22:29:58]CAPDU: 80 13 00 00 [22:29:58]Write to MH i2c: E2 08 00 DE 30 80 13 00 00 00 00 00 00 8A [22:29:58]Write i2c OK [22:29:58]MH_I2C_Read... [22:29:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:58]Read from MH i2c: E2 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: E2 62 00 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: E2 62 00 DE 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 40 60 02 00 0E 04 04 00 16 02 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 60 [22:29: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 40 60 02 00 0E 04 04 00 16 02 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 [22:29:58]wFMCommunicate OK [22:29:58]SAM_PROTO_GetFieldsCounters done [22:29:58]requested_item shift.num is exist - process it [22:29:58]requested_item shift.opened is exist - process it [22:29:58]req_shift_opened [22:29:58]FM_GetShiftState [22:29:58]SAM_PROTO_GetShiftState [22:29:58]wFMCommunicate request_size=4 [22:29:58]MH_SAM_APDU [22:29:58]CAPDU: 80 13 01 00 [22:29:58]Write to MH i2c: E2 08 00 DF 30 80 13 01 00 00 00 00 00 8C [22:29:58]Write i2c OK [22:29:58]MH_I2C_Read... [22:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:58]Read from MH i2c: E2 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: E2 0E 00 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: E2 0E 00 DF 30 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 D9 [22:29:58]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [22:29:58]wFMCommunicate OK [22:29:58]SAM_PROTO_GetShiftState done [22:29:58]FM_GetShiftState done [22:29:58]req_shift_opened done [22:29:58]requested_item shift.open_date is exist - process it [22:29:58]req_shift_open_date [22:29:58]req_shift_open_date done [22:29:58]produce_requested_data done [22:29:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155712,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [22:29:58]process_action_free close_receipt [22:29:58]json_value_free [22:29:58]json_value_free done [22:29:58]process_json_proto returns [22:29:58]Send response to host [22:29:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155712,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [22:29:58]free response buf [22:29:58]execute_script done [22:29:58]execute_script returns [22:29:58]free content buf [22:29:58]Sock 9.Close socket [22:29:58]Sock 9.Thread stoped [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:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:22]int [22:35:22]Write to MH i2c: 01 00 00 E0 30 10 [22:35:22]*** FLAG_PRN_PAP1 set [22:35:22]Write i2c OK [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: 01 [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: 01 07 00 [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: 01 07 00 E0 30 00 01 00 00 00 FF 0F 26 [22:35:22]state=0 [22:35:22]No paper [22:35:22]int [22:35:22]Write to MH i2c: 01 00 00 E1 30 11 [22:35:22]*** FLAG_PRN_PAP2 set [22:35:22]Write i2c OK [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: 01 [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: 01 07 00 [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: 01 07 00 E1 30 00 03 00 00 00 FF 0F 29 [22:35:22]state=0 [22:35:22]No paper [22:35:22]Cover opened [22:35:22]int [22:35:22]Write to MH i2c: 01 00 00 E2 30 12 [22:35:22]*** FLAG_PRN_PAP2 reset [22:35:22]Write i2c OK [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: 01 [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: 01 07 00 [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: 01 07 00 E2 30 00 01 00 00 00 FF 0F 28 [22:35:22]state=3 [22:35:22]No paper [22:35:22]Cover closed [22:35:22]int [22:35:22]Write to MH i2c: 01 00 00 E3 30 13 [22:35:22]*** FLAG_PRN_PAP2 set [22:35:22]Write i2c OK [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: 01 [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: 01 07 00 [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: 01 07 00 E3 30 00 03 00 00 00 FF 0F 2B [22:35:22]state=0 [22:35:22]No paper [22:35:22]Cover opened [22:35:23]OFD Sender: No OFD packet to send [22:35:24]int [22:35:24]Write to MH i2c: 01 00 00 E4 30 14 [22:35:24]*** FLAG_PRN_PAP2 reset [22:35:24]Write i2c OK [22:35:24]MH_I2C_Read... [22:35:24]Read from MH i2c: 01 [22:35:24]MH_I2C_Read... [22:35:24]Read from MH i2c: 01 07 00 [22:35:24]MH_I2C_Read... [22:35:24]Read from MH i2c: 01 07 00 E4 30 00 01 00 00 00 FF 0F 2A [22:35:24]state=3 [22:35:24]No paper [22:35:24]Cover closed [22:35:24]int [22:35:24]Write to MH i2c: 01 00 00 E5 30 15 [22:35:24]*** FLAG_PRN_PAP1 reset [22:35:24]Write i2c OK [22:35:24]MH_I2C_Read... [22:35:24]Read from MH i2c: 01 [22:35:24]MH_I2C_Read... [22:35:24]Read from MH i2c: 01 07 00 [22:35:24]MH_I2C_Read... [22:35:24]Read from MH i2c: 01 07 00 E5 30 00 00 00 00 00 FF 0F 2A [22:35:24]state=0 [22:35:25]int [22:35:25]Write to MH i2c: 01 00 00 E6 30 16 [22:35:25]*** FLAG_PRN_KEY set [22:35:25]Write i2c OK [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: 01 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: 01 07 00 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: 01 07 00 E6 30 00 08 00 00 00 FF 0F 33 [22:35:25]state=0 [22:35:25]Key pressed [22:35:25]Feed [22:35:25]Write to MH i2c: D8 00 00 E7 30 EE [22:35:25]Write i2c OK [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: D8 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: D8 01 00 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: D8 01 00 E7 30 00 EF [22:35:25]int [22:35:25]Write to MH i2c: 01 00 00 E8 30 18 [22:35:25]Write i2c OK [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: 01 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: 01 07 00 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: 01 07 00 E8 30 00 48 00 00 00 3D 00 A4 [22:35:25]state=2 [22:35:25]Key pressed [22:35:25]int [22:35:25]Write to MH i2c: 01 00 00 E9 30 19 [22:35:25]*** FLAG_PRN_KEY reset [22:35:25]Write i2c OK [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: 01 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: 01 07 00 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: 01 07 00 E9 30 00 00 00 00 00 F6 0F 25 [22:35:25]state=2 [22:35:25]Stop feed [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]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:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:48]ConnectInit Can't connect to host [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]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:05]accept exits with 8 [23:01:05]New connection [23:01:05]New thread 3066781028 created [23:01:05]Thread 3066637668 joined [23:01:05]Waiting for new connection... [23:01:05] Sock 8.Parse request [23:01:05]Sock 8.Check first char [23:01:05]Sock 8.First char is OK [23:01:05]request: POST /json_proto HTTP/1.0 [23:01:05]Method: POST [23:01:05]URL: /json_proto [23:01:05]Method is POST - this is cgi request [23:01:05]url: /json_proto [23:01:05]query_string will be loaded in cgi processing [23:01:05]execute_cgi json_proto POST (null) [23:01:05]execute_cgi path=json_proto method=POST [23:01:05]POST find Content-Length [23:01:05]Host: 172.17.63.3:8080 [23:01:05]Content-Length: 676 [23:01:05]Content-Type: application/json [23:01:05] [23:01:05]POST finish read [23:01:05]Found Content-Length = 676 [23:01:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:05]execute_script... [23: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)98522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:05]POST & json_proto [23:01:05]process_json_proto [23:01:05]json parsed OK: [23:01:05]protocol is kg_v1.0 [23:01:05]action value=close_receipt [23:01:05]process_action close_receipt [23:01:05]cmd_close_receipt [23:01:05]MH_GetDate [23:01:05]Write to MH i2c: F0 00 00 EA 30 09 [23:01:05]Write i2c OK [23:01:05]MH_I2C_Read... [23:01:05]Read from MH i2c: F0 [23:01:05]MH_I2C_Read... [23:01:05]Read from MH i2c: F0 09 00 [23:01:05]MH_I2C_Read... [23:01:05]Read from MH i2c: F0 09 00 EA 30 00 B4 D1 1A 67 50 D1 6C 64 09 [23:01:05]GetLastDocTimeStamp 1729808997 [23:01:05]current date 1729810868 [23:01:05]FM_GetShiftState [23:01:05]SAM_PROTO_GetShiftState [23:01:05]wFMCommunicate request_size=4 [23:01:05]MH_SAM_APDU [23:01:05]CAPDU: 80 13 01 00 [23:01:05]Write to MH i2c: E2 08 00 EB 30 80 13 01 00 00 00 00 00 98 [23:01:05]Write i2c OK [23:01:05]MH_I2C_Read... [23:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:05]Read from MH i2c: E2 [23:01:05]MH_I2C_Read... [23:01:05]Read from MH i2c: E2 0E 00 [23:01:05]MH_I2C_Read... [23:01:05]Read from MH i2c: E2 0E 00 EB 30 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 E5 [23:01:05]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [23:01:05]wFMCommunicate OK [23:01:05]SAM_PROTO_GetShiftState done [23:01:05]FM_GetShiftState done [23:01:05]opened in 1729729836 [23:01:05]opened+sec_in_day 1729816236 [23:01:05]quantity*price = 20003 [23:01:05]sum+1 = 20004 [23:01:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 338 24.10.2024 23:01 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155713 ФПД: 248021768639981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T230108&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155713&fm=248021768639981&tin=02508201610067®Number=0000000000091693&sum=20000 [23:01:06]StoreToDocumentArchive [23:01:06]shift 534 fd 155713 [23:01:06]save to /storage/0534/doc_00155713 [23:01:06]save last doc name /storage/0534/doc_00155713 to /storage/kkm_last_doc_name [23:01:06]save OK [23:01:06]Clear old archive folders... [23:01:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:01:06]tlvbuf is 01FD0070 [23:01:06]SAM_PROTO_ClearQueue [23:01:06]wFMCommunicate request_size=4 [23:01:06]MH_SAM_APDU [23:01:06]CAPDU: 80 09 00 00 [23:01:06]Write to MH i2c: E2 08 00 F8 30 80 09 00 00 00 00 00 00 9A [23:01:06]Write i2c OK [23:01:06]MH_I2C_Read... [23:01:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:01:07]Read from MH i2c: E2 [23:01:07]MH_I2C_Read... [23:01:07]Read from MH i2c: E2 03 00 [23:01:07]MH_I2C_Read... [23:01:07]Read from MH i2c: E2 03 00 F8 30 00 90 00 9C [23:01:07]RAPDU: 90 00 [23:01:07]wFMCommunicate OK [23:01:07]SAM_PROTO_ClearQueue done [23:01:07]KKMCreateOFDPacket [23:01:07]OFDProtocolAddRootSTLVToBuf [23:01:07]FM_MakeSignedData [23:01:07]FM_MakeSignedData [23:01:07]SAM_PROTO_SignData [23:01:07]wFMCommunicate request_size=4 [23:01:07]MH_SAM_APDU [23:01:07]CAPDU: 80 0D 01 02 [23:01:07]Write to MH i2c: E2 08 00 F9 30 80 0D 01 02 00 00 00 00 A2 [23:01:07]Write i2c OK [23:01:07]MH_I2C_Read... [23:01:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:01:07]Read from MH i2c: E2 [23:01:07]MH_I2C_Read... [23:01:07]Read from MH i2c: E2 03 00 [23:01:07]MH_I2C_Read... [23:01:07]Read from MH i2c: E2 03 00 F9 30 00 90 00 9D [23:01:07]RAPDU: 90 00 [23:01:07]wFMCommunicate OK [23:01:07]wFMCommunicate request_size=255 [23:01:07]MH_SAM_APDU [23:01: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 B4 D1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 60 02 00 35 04 06 00 E1 [23:01:07]Write to MH i2c: E2 02 01 FA 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 B4 D1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 60 02 00 35 04 06 00 E1 00 00 ED [23:01:07]Write i2c OK [23:01:07]MH_I2C_Read... [23:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:07]Read from MH i2c: E2 [23:01:07]MH_I2C_Read... [23:01:07]Read from MH i2c: E2 03 00 [23:01:07]MH_I2C_Read... [23:01:07]Read from MH i2c: E2 03 00 FA 30 00 90 00 9E [23:01:07]RAPDU: 90 00 [23:01:07]wFMCommunicate OK [23:01:07]wFMCommunicate request_size=10 [23:01:07]MH_SAM_APDU [23:01:07]CAPDU: 80 0D 02 02 05 93 11 6A 95 ED [23:01:07]Write to MH i2c: E2 0D 00 FB 30 80 0D 02 02 05 00 93 11 6A 95 ED 00 00 3F [23:01:07]Write i2c OK [23:01:07]MH_I2C_Read... [23:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:07]Read from MH i2c: E2 [23:01:07]MH_I2C_Read... [23:01:07]Read from MH i2c: E2 03 00 [23:01:07]MH_I2C_Read... [23:01:07]Read from MH i2c: E2 03 00 FB 30 00 90 00 9F [23:01:07]RAPDU: 90 00 [23:01:07]wFMCommunicate OK [23:01:07]wFMCommunicate request_size=4 [23:01:07]MH_SAM_APDU [23:01:07]CAPDU: 80 0D 03 02 [23:01:07]Write to MH i2c: E2 08 00 FC 30 80 0D 03 02 00 00 00 00 A7 [23:01:07]Write i2c OK [23:01:07]MH_I2C_Read... [23:01:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:01:07]Read from MH i2c: E2 [23:01:07]MH_I2C_Read... [23:01:07]Read from MH i2c: E2 0B 00 [23:01:07]MH_I2C_Read... [23:01:07]Read from MH i2c: E2 0B 00 FC 30 00 24 AF D4 FF 5C 4A 9B 27 90 00 B6 [23:01:07]RAPDU: 24 AF D4 FF 5C 4A 9B 27 90 00 [23:01:07]wFMCommunicate OK [23:01:07]SAM_PROTO_SignData done [23:01:07]FM_MakeSignedData done [23:01:07]CreateOFDProtocolMessage [23:01:07]wFMCommunicate request_size=4 [23:01:07]MH_SAM_APDU [23:01:07]CAPDU: 80 11 00 00 [23:01:07]Write to MH i2c: E2 08 00 FD 30 80 11 00 00 00 00 00 00 A7 [23:01:07]Write i2c OK [23:01:07]MH_I2C_Read... [23:01:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:07]Read from MH i2c: E2 [23:01:07]MH_I2C_Read... [23:01:07]Read from MH i2c: E2 17 00 [23:01:07]MH_I2C_Read... [23:01:07]Read from MH i2c: E2 17 00 FD 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FC [23:01:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:01:07]wFMCommunicate OK [23:01:07]CreateOFDProtocolMessage done [23:01:07]OFDSenderStorePacket 155713 [23:01:07]StoreOFDPacket docnum=155713 [23:01:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 48 7A 07 01 36 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 B4 D1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 60 02 00 35 04 06 00 E1 93 11 6A 95 ED 24 AF D4 FF 5C 4A 9B 27 [23:01:07]CheckFolder [23:01:07]dirname=/storage/ofd_packets [23:01:07]CheckFolder done [23:01:07]ProducePacketName [23:01:07]name=ofd_packets/00155713 [23:01:07]NVStorageSaveData ofd_packets/00155713 [23:01:07]File name is /storage/ofd_packets/00155713 [23:01:07]Write 301 bytes [23:01:07]NVStorageSaveData done [23:01:07]OFDSenderStorePacket done [23:01:07]KKMCreateOFDPacket done [23:01:07]NVStorageSaveData kkm_last_timestamp [23:01:07]File name is /storage/kkm_last_timestamp [23:01:07]Write 4 bytes [23:01:07]NVStorageSaveData done [23:01:07]ExternCall_PrintAddStr [23:01:07]wPrintStart [23:01:07]Write to MH i2c: 01 00 00 FE 30 2E [23:01:07]Write i2c OK [23:01:07]MH_I2C_Read... [23:01:07]Read from MH i2c: 01 [23:01:07]MH_I2C_Read... [23:01:07]Read from MH i2c: 01 07 00 [23:01:07]MH_I2C_Read... [23:01:07]Read from MH i2c: 01 07 00 FE 30 00 00 00 00 00 FF 0F 43 [23:01:07]RasterBufferAndPrint [23:01:07]line Счет N : (1)98522 [23:01:07]line ИНН: 02508201610067 [23:01:07]line Контрольно-Кассовый Чек [23:01:07]line ПРОДАЖА [23:01:07]line ТРК (МРК, ГНК) : 21 [23:01:07]line Товар: 2710124130 [23:01:07]line Аи-92-К-5 [23:01:07]line 2.990 * 66.90 [23:01:07]line = 200.03 [23:01:07]line НДС 12% НСП 1% [23:01:07]line > о реализуемом товаре [23:01:07]line ОКРУГЛЕНИЕ: -0.03 [23:01:07]line ИТОГО: 200.00 [23:01:07]line Внесено: 200.00 [23:01:07]line СДАЧА: 0.00 [23:01:07]line НСП 1% : 1.77 [23:01:07]line НДС 12% : 21.24 [23:01:07]line Наличными: 200.00 [23:01:07]line Безнал.: 0.00 [23:01:07]line Место: АЗС № 143 "Партнер Нефть" [23:01:07]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:01:07]line СНО: Общий режим [23:01:07]line Чек 338 24.10.2024 23:01 [23:01:07]line Смена: 534 ФФД: 1.0 [23:01:07]line ЗНМ: 0300000096 [23:01:07]line РНМ: 0000000000091693 [23:01:07]line Версия ККМ: 001 [23:01:07]line ФМ: 0000000000871792 [23:01:07]line ФД: 155713 [23:01:07]line ФПД: 248021768639981 [23:01:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T230108&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155713&fm=248021768639981&tin=02508201610067®Number=0000000000091693&sum=20000 [23:01:07]OFD Sender: Processing packet 155713 [packets to send 31, broken 30] [23:01:07]ProducePacketName [23:01:07]name=ofd_packets/00155713 [23:01:07]OFD Sender: To server: pG, [23:01:07]CommunicateWithHost lk.salyk.kg:30040 [23:01:07]ConnectInit lk.salyk.kg [23:01:07]written 0, free lines is 4095 [23:01:07]Connected sock=10 [23: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 39 32 0F 01 00 00 48 7A 07 01 36 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 B4 D1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 60 02 00 35 04 06 00 E1 93 11 6A 95 ED 24 AF D4 FF 5C 4A 9B 27 [23:01: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 39 32 4F 00 00 00 FE 1D 47 00 78 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 60 02 00 F4 03 04 00 2B 77 1A 67 B6 04 01 00 00 A8 05 FA 2B BE E1 1A 5F [23:01:08]CommunicateWithHost err = 0 [23:01:08]CheckOFDResponse [23:01:08]1017 (14) - 77093643461234 [23:01:08]1041 (16) - 0000000000871792 [23:01:08]1040 (4) - 155713 [23:01:08]1012 (4) - 24.10.2024 16:34 [23:01:08]1206 (1) - 0 [23:01:08]OFD Sender: Remove packet 155713 [23:01:08]ProducePacketName [23:01:08]name=ofd_packets/00155713 [23:01:08]NVStorageDeleteData [23:01:08]Write to MH i2c: 01 00 00 29 31 5A [23:01:08]Write i2c OK [23:01:08]MH_I2C_Read... [23:01:08]Read from MH i2c: 01 [23:01:08]MH_I2C_Read... [23:01:08]Read from MH i2c: 01 07 00 [23:01:08]MH_I2C_Read... [23:01:08]Read from MH i2c: 01 07 00 29 31 00 00 00 00 00 DC 0C 49 [23:01:08]RasterBufferAndPrint [23:01:08]line [23:01:08]line [23:01:08]line [23:01:08]line [23:01:08]line [23:01:08]written 0, free lines is 3298 [23:01:08]process_action close_receipt done [23:01:08]requested_data is exist [23:01:08]produce_requested_data [23:01:08]requested_item fm.sn is exist - process it [23:01:08]wFMCommunicate request_size=4 [23:01:08]MH_SAM_APDU [23:01:08]CAPDU: 80 11 00 00 [23:01:08]Write to MH i2c: E2 08 00 30 31 80 11 00 00 00 00 00 00 DB [23:01:08]Write i2c OK [23:01:08]MH_I2C_Read... [23:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:08]Read from MH i2c: E2 [23:01:08]MH_I2C_Read... [23:01:08]Read from MH i2c: E2 17 00 [23:01:08]MH_I2C_Read... [23:01:08]Read from MH i2c: E2 17 00 30 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 30 [23:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:01:08]wFMCommunicate OK [23:01:08]requested_item fd.num is exist - process it [23:01:08]SAM_PROTO_GetFieldsCounters [23:01:08]wFMCommunicate request_size=4 [23:01:08]MH_SAM_APDU [23:01:08]CAPDU: 80 13 00 00 [23:01:08]Write to MH i2c: E2 08 00 31 31 80 13 00 00 00 00 00 00 DE [23:01:08]Write i2c OK [23:01:08]MH_I2C_Read... [23:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:01:08]Read from MH i2c: E2 [23:01:08]MH_I2C_Read... [23:01:08]Read from MH i2c: E2 62 00 [23:01:08]MH_I2C_Read... [23:01:08]Read from MH i2c: E2 62 00 31 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 41 60 02 00 0E 04 04 00 16 02 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 B8 [23:01:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 41 60 02 00 0E 04 04 00 16 02 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 [23:01:08]wFMCommunicate OK [23:01:08]SAM_PROTO_GetFieldsCounters done [23:01:08]requested_item shift.num is exist - process it [23:01:08]requested_item shift.opened is exist - process it [23:01:08]req_shift_opened [23:01:08]FM_GetShiftState [23:01:08]SAM_PROTO_GetShiftState [23:01:08]wFMCommunicate request_size=4 [23:01:08]MH_SAM_APDU [23:01:08]CAPDU: 80 13 01 00 [23:01:08]Write to MH i2c: E2 08 00 32 31 80 13 01 00 00 00 00 00 E0 [23:01:08]Write i2c OK [23:01:08]MH_I2C_Read... [23:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:08]Read from MH i2c: E2 [23:01:08]MH_I2C_Read... [23:01:08]Read from MH i2c: E2 0E 00 [23:01:08]MH_I2C_Read... [23:01:08]Read from MH i2c: E2 0E 00 32 31 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 2D [23:01:08]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [23:01:08]wFMCommunicate OK [23:01:08]SAM_PROTO_GetShiftState done [23:01:08]FM_GetShiftState done [23:01:08]req_shift_opened done [23:01:08]requested_item shift.open_date is exist - process it [23:01:08]req_shift_open_date [23:01:08]req_shift_open_date done [23:01:08]produce_requested_data done [23:01:08]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155713,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [23:01:08]process_action_free close_receipt [23:01:08]json_value_free [23:01:08]json_value_free done [23:01:08]process_json_proto returns [23:01:08]Send response to host [23:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155713,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [23:01:08]free response buf [23:01:08]execute_script done [23:01:08]execute_script returns [23:01:08]free content buf [23:01:08]Sock 8.Close socket [23:01:08]Sock 8.Thread stoped [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:37]accept exits with 9 [23:01:37]New connection [23:01:37]New thread 3066637668 created [23:01:37]Thread 3066781028 joined [23:01:37]Waiting for new connection... [23:01:37] Sock 9.Parse request [23:01:37]Sock 9.Check first char [23:01:37]Sock 9.First char is OK [23:01:37]request: POST /json_proto HTTP/1.0 [23:01:37]Method: POST [23:01:37]URL: /json_proto [23:01:37]Method is POST - this is cgi request [23:01:37]url: /json_proto [23:01:37]query_string will be loaded in cgi processing [23:01:37]execute_cgi json_proto POST (null) [23:01:37]execute_cgi path=json_proto method=POST [23:01:37]POST find Content-Length [23:01:37]Host: 172.17.63.3:8080 [23:01:37]Content-Length: 678 [23:01:37]Content-Type: application/json [23:01:37] [23:01:37]POST finish read [23:01:37]Found Content-Length = 678 [23:01:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:37]execute_script... [23:01: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)98521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:37]POST & json_proto [23:01:37]process_json_proto [23:01:37]json parsed OK: [23:01:37]protocol is kg_v1.0 [23:01:37]action value=close_receipt [23:01:37]process_action close_receipt [23:01:37]cmd_close_receipt [23:01:37]MH_GetDate [23:01:37]Write to MH i2c: F0 00 00 33 31 53 [23:01:37]Write i2c OK [23:01:37]MH_I2C_Read... [23:01:37]Read from MH i2c: F0 [23:01:37]MH_I2C_Read... [23:01:37]Read from MH i2c: F0 09 00 [23:01:37]MH_I2C_Read... [23:01:37]Read from MH i2c: F0 09 00 33 31 00 D4 D1 1A 67 50 D1 6C 64 73 [23:01:37]GetLastDocTimeStamp 1729810868 [23:01:37]current date 1729810900 [23:01:37]FM_GetShiftState [23:01:37]SAM_PROTO_GetShiftState [23:01:37]wFMCommunicate request_size=4 [23:01:37]MH_SAM_APDU [23:01:37]CAPDU: 80 13 01 00 [23:01:37]Write to MH i2c: E2 08 00 34 31 80 13 01 00 00 00 00 00 E2 [23:01:37]Write i2c OK [23:01:37]MH_I2C_Read... [23:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:37]Read from MH i2c: E2 [23:01:37]MH_I2C_Read... [23:01:37]Read from MH i2c: E2 0E 00 [23:01:37]MH_I2C_Read... [23:01:37]Read from MH i2c: E2 0E 00 34 31 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 2F [23:01:37]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [23:01:37]wFMCommunicate OK [23:01:37]SAM_PROTO_GetShiftState done [23:01:37]FM_GetShiftState done [23:01:37]opened in 1729729836 [23:01:37]opened+sec_in_day 1729816236 [23:01:37]quantity*price = 400050 [23:01:37]sum+1 = 400051 [23:01:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 339 24.10.2024 23:01 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155714 ФПД: 173943141261076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T230140&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155714&fm=173943141261076&tin=02508201610067®Number=0000000000091693&sum=400000 [23:01:39]StoreToDocumentArchive [23:01:39]shift 534 fd 155714 [23:01:39]save to /storage/0534/doc_00155714 [23:01:39]save last doc name /storage/0534/doc_00155714 to /storage/kkm_last_doc_name [23:01:39]save OK [23:01:39]Clear old archive folders... [23:01:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:01:39]tlvbuf is 01F29D90 [23:01:39]SAM_PROTO_ClearQueue [23:01:39]wFMCommunicate request_size=4 [23:01:39]MH_SAM_APDU [23:01:39]CAPDU: 80 09 00 00 [23:01:39]Write to MH i2c: E2 08 00 41 31 80 09 00 00 00 00 00 00 E4 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:01:39]Read from MH i2c: E2 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 03 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 03 00 41 31 00 90 00 E6 [23:01:39]RAPDU: 90 00 [23:01:39]wFMCommunicate OK [23:01:39]SAM_PROTO_ClearQueue done [23:01:39]KKMCreateOFDPacket [23:01:39]OFDProtocolAddRootSTLVToBuf [23:01:39]FM_MakeSignedData [23:01:39]FM_MakeSignedData [23:01:39]SAM_PROTO_SignData [23:01:39]wFMCommunicate request_size=4 [23:01:39]MH_SAM_APDU [23:01:39]CAPDU: 80 0D 01 02 [23:01:39]Write to MH i2c: E2 08 00 42 31 80 0D 01 02 00 00 00 00 EC [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:01:39]Read from MH i2c: E2 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 03 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 03 00 42 31 00 90 00 E7 [23:01:39]RAPDU: 90 00 [23:01:39]wFMCommunicate OK [23:01:39]wFMCommunicate request_size=255 [23:01:39]MH_SAM_APDU [23:01:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 D4 D1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 60 02 00 35 04 06 00 9E 33 4B 25 [23:01:39]Write to MH i2c: E2 02 01 43 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 D4 D1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 60 02 00 35 04 06 00 9E 33 4B 25 00 00 12 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:39]Read from MH i2c: E2 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 03 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 03 00 43 31 00 90 00 E8 [23:01:39]RAPDU: 90 00 [23:01:39]wFMCommunicate OK [23:01:39]wFMCommunicate request_size=7 [23:01:39]MH_SAM_APDU [23:01:39]CAPDU: 80 0D 02 02 02 5F 14 [23:01:39]Write to MH i2c: E2 0A 00 44 31 80 0D 02 02 02 00 5F 14 00 00 66 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:39]Read from MH i2c: E2 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 03 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 03 00 44 31 00 90 00 E9 [23:01:39]RAPDU: 90 00 [23:01:39]wFMCommunicate OK [23:01:39]wFMCommunicate request_size=4 [23:01:39]MH_SAM_APDU [23:01:39]CAPDU: 80 0D 03 02 [23:01:39]Write to MH i2c: E2 08 00 45 31 80 0D 03 02 00 00 00 00 F1 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:01:39]Read from MH i2c: E2 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 0B 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 0B 00 45 31 00 3F 70 90 8D BA 34 BA 0F 90 00 75 [23:01:39]RAPDU: 3F 70 90 8D BA 34 BA 0F 90 00 [23:01:39]wFMCommunicate OK [23:01:39]SAM_PROTO_SignData done [23:01:39]FM_MakeSignedData done [23:01:39]CreateOFDProtocolMessage [23:01:39]wFMCommunicate request_size=4 [23:01:39]MH_SAM_APDU [23:01:39]CAPDU: 80 11 00 00 [23:01:39]Write to MH i2c: E2 08 00 46 31 80 11 00 00 00 00 00 00 F1 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:39]Read from MH i2c: E2 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 17 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 17 00 46 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 46 [23:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:01:39]wFMCommunicate OK [23:01:39]CreateOFDProtocolMessage done [23:01:39]OFDSenderStorePacket 155714 [23:01:39]StoreOFDPacket docnum=155714 [23:01:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 0B BD 04 01 43 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 D4 D1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 60 02 00 35 04 06 00 9E 33 4B 25 5F 14 3F 70 90 8D BA 34 BA 0F [23:01:39]CheckFolder [23:01:39]dirname=/storage/ofd_packets [23:01:39]CheckFolder done [23:01:39]ProducePacketName [23:01:39]name=ofd_packets/00155714 [23:01:39]NVStorageSaveData ofd_packets/00155714 [23:01:39]File name is /storage/ofd_packets/00155714 [23:01:39]Write 298 bytes [23:01:39]NVStorageSaveData done [23:01:39]OFDSenderStorePacket done [23:01:39]KKMCreateOFDPacket done [23:01:39]NVStorageSaveData kkm_last_timestamp [23:01:39]File name is /storage/kkm_last_timestamp [23:01:39]Write 4 bytes [23:01:39]NVStorageSaveData done [23:01:39]ExternCall_PrintAddStr [23:01:39]wPrintStart [23:01:39]Write to MH i2c: 01 00 00 47 31 78 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: 01 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: 01 07 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: 01 07 00 47 31 00 00 00 00 00 FF 0F 8D [23:01:39]RasterBufferAndPrint [23:01:39]line Счет N : (1)98521 [23:01:39]line ИНН: 02508201610067 [23:01:39]line Контрольно-Кассовый Чек [23:01:39]line ПРОДАЖА [23:01:39]line ТРК (МРК, ГНК) : 32 [23:01:39]line Товар: 2710194210 [23:01:39]line ДТ-К-5 [23:01:39]line 52.500 * 76.20 [23:01:39]line = 4000.50 [23:01:39]line НДС 12% НСП 1% [23:01:39]line > о реализуемом товаре [23:01:39]line ОКРУГЛЕНИЕ: -0.50 [23:01:39]line ИТОГО: 4000.00 [23:01:39]line Внесено: 4000.00 [23:01:39]line СДАЧА: 0.00 [23:01:39]line НСП 1% : 35.40 [23:01:39]line НДС 12% : 424.83 [23:01:39]line Наличными: 4000.00 [23:01:39]line Безнал.: 0.00 [23:01:39]line Место: АЗС № 143 "Партнер Нефть" [23:01:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:01:39]line СНО: Общий режим [23:01:39]line Чек 339 24.10.2024 23:01 [23:01:39]line Смена: 534 ФФД: 1.0 [23:01:39]line ЗНМ: 0300000096 [23:01:39]line РНМ: 0000000000091693 [23:01:39]line Версия ККМ: 001 [23:01:39]line ФМ: 0000000000871792 [23:01:39]line ФД: 155714 [23:01:39]line ФПД: 173943141261076 [23:01:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T230140&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155714&fm=173943141261076&tin=02508201610067®Number=0000000000091693&sum=400000 [23:01:39]OFD Sender: Processing packet 155714 [packets to send 31, broken 30] [23:01:39]ProducePacketName [23:01:39]name=ofd_packets/00155714 [23:01:39]OFD Sender: To server: pG, [23:01:39]CommunicateWithHost lk.salyk.kg:30040 [23:01:39]ConnectInit lk.salyk.kg [23:01:39]written 0, free lines is 4095 [23:01:40]Connected sock=10 [23:01: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 39 32 0C 01 00 00 0B BD 04 01 43 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 D4 D1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 60 02 00 35 04 06 00 9E 33 4B 25 5F 14 3F 70 90 8D BA 34 BA 0F [23:01: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 39 32 4F 00 00 00 62 2B 47 00 D6 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 39 32 10 04 04 00 42 60 02 00 F4 03 04 00 4B 77 1A 67 B6 04 01 00 00 31 3E 89 78 33 CF D4 86 [23:01:40]CommunicateWithHost err = 0 [23:01:40]CheckOFDResponse [23:01:40]1017 (14) - 77093643461234 [23:01:40]1041 (16) - 0000000000871792 [23:01:40]1040 (4) - 155714 [23:01:40]1012 (4) - 24.10.2024 16:35 [23:01:40]1206 (1) - 0 [23:01:40]OFD Sender: Remove packet 155714 [23:01:40]ProducePacketName [23:01:40]name=ofd_packets/00155714 [23:01:40]NVStorageDeleteData [23:01:40]Write to MH i2c: 01 00 00 72 31 A3 [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: 01 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: 01 07 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: 01 07 00 72 31 00 00 00 00 00 D8 0C 8E [23:01:40]RasterBufferAndPrint [23:01:40]line [23:01:40]line [23:01:40]line [23:01:40]line [23:01:40]line [23:01:40]written 0, free lines is 3296 [23:01:40]process_action close_receipt done [23:01:40]requested_data is exist [23:01:40]produce_requested_data [23:01:40]requested_item fm.sn is exist - process it [23:01:40]wFMCommunicate request_size=4 [23:01:40]MH_SAM_APDU [23:01:40]CAPDU: 80 11 00 00 [23:01:40]Write to MH i2c: E2 08 00 79 31 80 11 00 00 00 00 00 00 24 [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:40]Read from MH i2c: E2 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 17 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 17 00 79 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 79 [23:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:01:40]wFMCommunicate OK [23:01:40]requested_item fd.num is exist - process it [23:01:40]SAM_PROTO_GetFieldsCounters [23:01:40]wFMCommunicate request_size=4 [23:01:40]MH_SAM_APDU [23:01:40]CAPDU: 80 13 00 00 [23:01:40]Write to MH i2c: E2 08 00 7A 31 80 13 00 00 00 00 00 00 27 [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:01:40]Read from MH i2c: E2 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 62 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 62 00 7A 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 42 60 02 00 0E 04 04 00 16 02 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 05 [23:01: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 42 60 02 00 0E 04 04 00 16 02 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 [23:01:40]wFMCommunicate OK [23:01:40]SAM_PROTO_GetFieldsCounters done [23:01:40]requested_item shift.num is exist - process it [23:01:40]requested_item shift.opened is exist - process it [23:01:40]req_shift_opened [23:01:40]FM_GetShiftState [23:01:40]SAM_PROTO_GetShiftState [23:01:40]wFMCommunicate request_size=4 [23:01:40]MH_SAM_APDU [23:01:40]CAPDU: 80 13 01 00 [23:01:40]Write to MH i2c: E2 08 00 7B 31 80 13 01 00 00 00 00 00 29 [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:40]Read from MH i2c: E2 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 0E 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 0E 00 7B 31 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 76 [23:01:40]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [23:01:40]wFMCommunicate OK [23:01:40]SAM_PROTO_GetShiftState done [23:01:40]FM_GetShiftState done [23:01:40]req_shift_opened done [23:01:40]requested_item shift.open_date is exist - process it [23:01:40]req_shift_open_date [23:01:40]req_shift_open_date done [23:01:40]produce_requested_data done [23:01:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155714,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [23:01:40]process_action_free close_receipt [23:01:40]json_value_free [23:01:40]json_value_free done [23:01:40]process_json_proto returns [23:01:40]Send response to host [23:01:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155714,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [23:01:40]free response buf [23:01:40]execute_script done [23:01:40]execute_script returns [23:01:40]free content buf [23:01:40]Sock 9.Close socket [23:01:40]Sock 9.Thread stoped [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:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:07]accept exits with 8 [23:14:07]New connection [23:14:07]New thread 3066781028 created [23:14:07]Thread 3066637668 joined [23:14:07]Waiting for new connection... [23:14:07] Sock 8.Parse request [23:14:07]Sock 8.Check first char [23:14:07]Sock 8.First char is OK [23:14:07]request: POST /json_proto HTTP/1.0 [23:14:07]Method: POST [23:14:07]URL: /json_proto [23:14:07]Method is POST - this is cgi request [23:14:07]url: /json_proto [23:14:07]query_string will be loaded in cgi processing [23:14:07]execute_cgi json_proto POST (null) [23:14:07]execute_cgi path=json_proto method=POST [23:14:07]POST find Content-Length [23:14:07]Host: 172.17.63.3:8080 [23:14:07]Content-Length: 676 [23:14:07]Content-Type: application/json [23:14:07] [23:14:07]POST finish read [23:14:07]Found Content-Length = 676 [23:14:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:07]execute_script... [23:14:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:07]POST & json_proto [23:14:07]process_json_proto [23:14:07]json parsed OK: [23:14:07]protocol is kg_v1.0 [23:14:07]action value=close_receipt [23:14:07]process_action close_receipt [23:14:07]cmd_close_receipt [23:14:07]MH_GetDate [23:14:07]Write to MH i2c: F0 00 00 7C 31 9C [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: F0 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: F0 09 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: F0 09 00 7C 31 00 C1 D4 1A 67 50 D1 6C 64 AC [23:14:07]GetLastDocTimeStamp 1729810900 [23:14:07]current date 1729811649 [23:14:07]FM_GetShiftState [23:14:07]SAM_PROTO_GetShiftState [23:14:07]wFMCommunicate request_size=4 [23:14:07]MH_SAM_APDU [23:14:07]CAPDU: 80 13 01 00 [23:14:07]Write to MH i2c: E2 08 00 7D 31 80 13 01 00 00 00 00 00 2B [23:14:07]Write i2c OK [23:14:07]MH_I2C_Read... [23:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:07]Read from MH i2c: E2 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 0E 00 [23:14:07]MH_I2C_Read... [23:14:07]Read from MH i2c: E2 0E 00 7D 31 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 78 [23:14:07]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [23:14:07]wFMCommunicate OK [23:14:07]SAM_PROTO_GetShiftState done [23:14:07]FM_GetShiftState done [23:14:07]opened in 1729729836 [23:14:07]opened+sec_in_day 1729816236 [23:14:07]quantity*price = 50041 [23:14:07]sum+1 = 50042 [23:14:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 340 24.10.2024 23:14 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155715 ФПД: 155880533992784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T231409&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155715&fm=155880533992784&tin=02508201610067®Number=0000000000091693&sum=50000 [23:14:08]StoreToDocumentArchive [23:14:08]shift 534 fd 155715 [23:14:08]save to /storage/0534/doc_00155715 [23:14:08]save last doc name /storage/0534/doc_00155715 to /storage/kkm_last_doc_name [23:14:08]save OK [23:14:08]Clear old archive folders... [23:14:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:14:08]tlvbuf is 0204BFE0 [23:14:08]SAM_PROTO_ClearQueue [23:14:08]wFMCommunicate request_size=4 [23:14:08]MH_SAM_APDU [23:14:08]CAPDU: 80 09 00 00 [23:14:08]Write to MH i2c: E2 08 00 8A 31 80 09 00 00 00 00 00 00 2D [23:14:08]Write i2c OK [23:14:08]MH_I2C_Read... [23:14:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:08]Read from MH i2c: E2 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 03 00 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 03 00 8A 31 00 90 00 2F [23:14:08]RAPDU: 90 00 [23:14:08]wFMCommunicate OK [23:14:08]SAM_PROTO_ClearQueue done [23:14:08]KKMCreateOFDPacket [23:14:08]OFDProtocolAddRootSTLVToBuf [23:14:08]FM_MakeSignedData [23:14:08]FM_MakeSignedData [23:14:08]SAM_PROTO_SignData [23:14:08]wFMCommunicate request_size=4 [23:14:08]MH_SAM_APDU [23:14:08]CAPDU: 80 0D 01 02 [23:14:08]Write to MH i2c: E2 08 00 8B 31 80 0D 01 02 00 00 00 00 35 [23:14:08]Write i2c OK [23:14:08]MH_I2C_Read... [23:14:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:08]Read from MH i2c: E2 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 03 00 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 03 00 8B 31 00 90 00 30 [23:14:08]RAPDU: 90 00 [23:14:08]wFMCommunicate OK [23:14:08]wFMCommunicate request_size=255 [23:14:08]MH_SAM_APDU [23:14:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 C1 D4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 60 02 00 35 04 06 00 8D [23:14:08]Write to MH i2c: E2 02 01 8C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 C1 D4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 60 02 00 35 04 06 00 8D 00 00 7E [23:14:08]Write i2c OK [23:14:08]MH_I2C_Read... [23:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:08]Read from MH i2c: E2 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 03 00 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 03 00 8C 31 00 90 00 31 [23:14:08]RAPDU: 90 00 [23:14:08]wFMCommunicate OK [23:14:08]wFMCommunicate request_size=10 [23:14:08]MH_SAM_APDU [23:14:08]CAPDU: 80 0D 02 02 05 C5 C3 DB 25 50 [23:14:08]Write to MH i2c: E2 0D 00 8D 31 80 0D 02 02 05 00 C5 C3 DB 25 50 00 00 1A [23:14:08]Write i2c OK [23:14:08]MH_I2C_Read... [23:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:08]Read from MH i2c: E2 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 03 00 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 03 00 8D 31 00 90 00 32 [23:14:08]RAPDU: 90 00 [23:14:08]wFMCommunicate OK [23:14:08]wFMCommunicate request_size=4 [23:14:08]MH_SAM_APDU [23:14:08]CAPDU: 80 0D 03 02 [23:14:08]Write to MH i2c: E2 08 00 8E 31 80 0D 03 02 00 00 00 00 3A [23:14:08]Write i2c OK [23:14:08]MH_I2C_Read... [23:14:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:08]Read from MH i2c: E2 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 0B 00 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 0B 00 8E 31 00 36 E4 85 3C EA C4 EA 0F 90 00 BD [23:14:08]RAPDU: 36 E4 85 3C EA C4 EA 0F 90 00 [23:14:08]wFMCommunicate OK [23:14:08]SAM_PROTO_SignData done [23:14:08]FM_MakeSignedData done [23:14:08]CreateOFDProtocolMessage [23:14:08]wFMCommunicate request_size=4 [23:14:08]MH_SAM_APDU [23:14:08]CAPDU: 80 11 00 00 [23:14:08]Write to MH i2c: E2 08 00 8F 31 80 11 00 00 00 00 00 00 3A [23:14:08]Write i2c OK [23:14:08]MH_I2C_Read... [23:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:08]Read from MH i2c: E2 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 17 00 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: E2 17 00 8F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8F [23:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:14:08]wFMCommunicate OK [23:14:08]CreateOFDProtocolMessage done [23:14:08]OFDSenderStorePacket 155715 [23:14:08]StoreOFDPacket docnum=155715 [23:14:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CB 53 07 01 18 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 C1 D4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 60 02 00 35 04 06 00 8D C5 C3 DB 25 50 36 E4 85 3C EA C4 EA 0F [23:14:08]CheckFolder [23:14:08]dirname=/storage/ofd_packets [23:14:08]CheckFolder done [23:14:08]ProducePacketName [23:14:08]name=ofd_packets/00155715 [23:14:08]NVStorageSaveData ofd_packets/00155715 [23:14:08]File name is /storage/ofd_packets/00155715 [23:14:08]Write 301 bytes [23:14:08]NVStorageSaveData done [23:14:08]OFDSenderStorePacket done [23:14:08]KKMCreateOFDPacket done [23:14:08]NVStorageSaveData kkm_last_timestamp [23:14:08]File name is /storage/kkm_last_timestamp [23:14:08]Write 4 bytes [23:14:08]NVStorageSaveData done [23:14:08]ExternCall_PrintAddStr [23:14:08]wPrintStart [23:14:08]Write to MH i2c: 01 00 00 90 31 C1 [23:14:08]Write i2c OK [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: 01 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: 01 07 00 [23:14:08]MH_I2C_Read... [23:14:08]Read from MH i2c: 01 07 00 90 31 00 00 00 00 00 FF 0F D6 [23:14:08]RasterBufferAndPrint [23:14:08]line Счет N : (1)98523 [23:14:08]line ИНН: 02508201610067 [23:14:08]line Контрольно-Кассовый Чек [23:14:08]line ПРОДАЖА [23:14:08]line ТРК (МРК, ГНК) : 21 [23:14:08]line Товар: 2710124130 [23:14:08]line Аи-92-К-5 [23:14:08]line 7.480 * 66.90 [23:14:08]line = 500.41 [23:14:08]line НДС 12% НСП 1% [23:14:08]line > о реализуемом товаре [23:14:08]line ОКРУГЛЕНИЕ: -0.41 [23:14:08]line ИТОГО: 500.00 [23:14:08]line Внесено: 500.00 [23:14:08]line СДАЧА: 0.00 [23:14:08]line НСП 1% : 4.43 [23:14:08]line НДС 12% : 53.14 [23:14:08]line Наличными: 500.00 [23:14:08]line Безнал.: 0.00 [23:14:08]line Место: АЗС № 143 "Партнер Нефть" [23:14:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:14:08]line СНО: Общий режим [23:14:08]line Чек 340 24.10.2024 23:14 [23:14:08]line Смена: 534 ФФД: 1.0 [23:14:08]line ЗНМ: 0300000096 [23:14:08]line РНМ: 0000000000091693 [23:14:08]line Версия ККМ: 001 [23:14:08]line ФМ: 0000000000871792 [23:14:08]line ФД: 155715 [23:14:08]line ФПД: 155880533992784 [23:14:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T231409&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155715&fm=155880533992784&tin=02508201610067®Number=0000000000091693&sum=50000 [23:14:09]OFD Sender: Processing packet 155715 [packets to send 31, broken 30] [23:14:09]ProducePacketName [23:14:09]name=ofd_packets/00155715 [23:14:09]OFD Sender: To server: pG, [23:14:09]CommunicateWithHost lk.salyk.kg:30040 [23:14:09]ConnectInit lk.salyk.kg [23:14:09]written 0, free lines is 4095 [23:14:09]Connected sock=10 [23:14:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CB 53 07 01 18 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 C1 D4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 60 02 00 35 04 06 00 8D C5 C3 DB 25 50 36 E4 85 3C EA C4 EA 0F [23:14:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 78 80 47 00 76 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 39 32 10 04 04 00 43 60 02 00 F4 03 04 00 39 7A 1A 67 B6 04 01 00 00 1E 19 34 39 00 A1 3F 56 [23:14:09]CommunicateWithHost err = 0 [23:14:09]CheckOFDResponse [23:14:09]1017 (14) - 77093643461234 [23:14:09]1041 (16) - 0000000000871792 [23:14:09]1040 (4) - 155715 [23:14:09]1012 (4) - 24.10.2024 16:47 [23:14:09]1206 (1) - 0 [23:14:09]OFD Sender: Remove packet 155715 [23:14:09]ProducePacketName [23:14:09]name=ofd_packets/00155715 [23:14:09]NVStorageDeleteData [23:14:09]Write to MH i2c: 01 00 00 BB 31 EC [23:14:09]Write i2c OK [23:14:09]MH_I2C_Read... [23:14:09]Read from MH i2c: 01 [23:14:09]MH_I2C_Read... [23:14:09]Read from MH i2c: 01 07 00 [23:14:09]MH_I2C_Read... [23:14:09]Read from MH i2c: 01 07 00 BB 31 00 00 00 00 00 E2 0C E1 [23:14:09]RasterBufferAndPrint [23:14:09]line [23:14:09]line [23:14:09]line [23:14:09]line [23:14:09]line [23:14:09]written 0, free lines is 3306 [23:14:09]process_action close_receipt done [23:14:09]requested_data is exist [23:14:09]produce_requested_data [23:14:09]requested_item fm.sn is exist - process it [23:14:09]wFMCommunicate request_size=4 [23:14:09]MH_SAM_APDU [23:14:09]CAPDU: 80 11 00 00 [23:14:09]Write to MH i2c: E2 08 00 C2 31 80 11 00 00 00 00 00 00 6D [23:14:09]Write i2c OK [23:14:09]MH_I2C_Read... [23:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:09]Read from MH i2c: E2 [23:14:09]MH_I2C_Read... [23:14:09]Read from MH i2c: E2 17 00 [23:14:09]MH_I2C_Read... [23:14:09]Read from MH i2c: E2 17 00 C2 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C2 [23:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:14:09]wFMCommunicate OK [23:14:09]requested_item fd.num is exist - process it [23:14:09]SAM_PROTO_GetFieldsCounters [23:14:09]wFMCommunicate request_size=4 [23:14:09]MH_SAM_APDU [23:14:09]CAPDU: 80 13 00 00 [23:14:09]Write to MH i2c: E2 08 00 C3 31 80 13 00 00 00 00 00 00 70 [23:14:09]Write i2c OK [23:14:09]MH_I2C_Read... [23:14:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:09]Read from MH i2c: E2 [23:14:09]MH_I2C_Read... [23:14:09]Read from MH i2c: E2 62 00 [23:14:09]MH_I2C_Read... [23:14:09]Read from MH i2c: E2 62 00 C3 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 43 60 02 00 0E 04 04 00 16 02 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 52 [23: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 43 60 02 00 0E 04 04 00 16 02 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 [23:14:09]wFMCommunicate OK [23:14:09]SAM_PROTO_GetFieldsCounters done [23:14:09]requested_item shift.num is exist - process it [23:14:09]requested_item shift.opened is exist - process it [23:14:09]req_shift_opened [23:14:09]FM_GetShiftState [23:14:09]SAM_PROTO_GetShiftState [23:14:09]wFMCommunicate request_size=4 [23:14:09]MH_SAM_APDU [23:14:09]CAPDU: 80 13 01 00 [23:14:09]Write to MH i2c: E2 08 00 C4 31 80 13 01 00 00 00 00 00 72 [23:14:09]Write i2c OK [23:14:09]MH_I2C_Read... [23:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:09]Read from MH i2c: E2 [23:14:09]MH_I2C_Read... [23:14:09]Read from MH i2c: E2 0E 00 [23:14:09]MH_I2C_Read... [23:14:09]Read from MH i2c: E2 0E 00 C4 31 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 BF [23:14:09]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [23:14:09]wFMCommunicate OK [23:14:09]SAM_PROTO_GetShiftState done [23:14:09]FM_GetShiftState done [23:14:09]req_shift_opened done [23:14:09]requested_item shift.open_date is exist - process it [23:14:09]req_shift_open_date [23:14:09]req_shift_open_date done [23:14:09]produce_requested_data done [23:14:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155715,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [23:14:09]process_action_free close_receipt [23:14:09]json_value_free [23:14:09]json_value_free done [23:14:09]process_json_proto returns [23:14:09]Send response to host [23:14:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155715,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [23:14:09]free response buf [23:14:09]execute_script done [23:14:09]execute_script returns [23:14:09]free content buf [23:14:09]Sock 8.Close socket [23:14:09]Sock 8.Thread stoped [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:13]accept exits with 9 [23:30:13]New connection [23:30:13]New thread 3066637668 created [23:30:13]Thread 3066781028 joined [23:30:13]Waiting for new connection... [23:30:13] Sock 9.Parse request [23:30:13]Sock 9.Check first char [23:30:13]Sock 9.First char is OK [23:30:13]request: POST /json_proto HTTP/1.0 [23:30:13]Method: POST [23:30:13]URL: /json_proto [23:30:13]Method is POST - this is cgi request [23:30:13]url: /json_proto [23:30:13]query_string will be loaded in cgi processing [23:30:13]execute_cgi json_proto POST (null) [23:30:13]execute_cgi path=json_proto method=POST [23:30:13]POST find Content-Length [23:30:13]Host: 172.17.63.3:8080 [23:30:13]Content-Length: 765 [23:30:13]Content-Type: application/json [23:30:13] [23:30:13]POST finish read [23:30:13]Found Content-Length = 765 [23:30:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:13]execute_script... [23:30: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)98524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:13]POST & json_proto [23:30:13]process_json_proto [23:30:13]json parsed OK: [23:30:13]protocol is kg_v1.0 [23:30:13]action value=close_receipt [23:30:13]process_action close_receipt [23:30:13]cmd_close_receipt [23:30:13]MH_GetDate [23:30:13]Write to MH i2c: F0 00 00 C5 31 E5 [23:30:13]Write i2c OK [23:30:13]MH_I2C_Read... [23:30:13]Read from MH i2c: F0 [23:30:13]MH_I2C_Read... [23:30:13]Read from MH i2c: F0 09 00 [23:30:13]MH_I2C_Read... [23:30:13]Read from MH i2c: F0 09 00 C5 31 00 87 D8 1A 67 50 D1 6C 64 BF [23:30:13]GetLastDocTimeStamp 1729811649 [23:30:13]current date 1729812615 [23:30:13]FM_GetShiftState [23:30:13]SAM_PROTO_GetShiftState [23:30:13]wFMCommunicate request_size=4 [23:30:13]MH_SAM_APDU [23:30:13]CAPDU: 80 13 01 00 [23:30:13]Write to MH i2c: E2 08 00 C6 31 80 13 01 00 00 00 00 00 74 [23:30:13]Write i2c OK [23:30:13]MH_I2C_Read... [23:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:13]Read from MH i2c: E2 [23:30:13]MH_I2C_Read... [23:30:13]Read from MH i2c: E2 0E 00 [23:30:13]MH_I2C_Read... [23:30:13]Read from MH i2c: E2 0E 00 C6 31 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 C1 [23:30:13]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [23:30:13]wFMCommunicate OK [23:30:13]SAM_PROTO_GetShiftState done [23:30:13]FM_GetShiftState done [23:30:13]opened in 1729729836 [23:30:13]opened+sec_in_day 1729816236 [23:30:13]quantity*price = 60009 [23:30:13]sum+1 = 60010 [23:30:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 341 24.10.2024 23:30 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155716 ФПД: 273146186354826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T233015&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155716&fm=273146186354826&tin=02508201610067®Number=0000000000091693&sum=60009 [23:30:14]StoreToDocumentArchive [23:30:14]shift 534 fd 155716 [23:30:14]save to /storage/0534/doc_00155716 [23:30:14]save last doc name /storage/0534/doc_00155716 to /storage/kkm_last_doc_name [23:30:14]save OK [23:30:14]Clear old archive folders... [23:30:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:30:14]tlvbuf is B6F2B810 [23:30:14]SAM_PROTO_ClearQueue [23:30:14]wFMCommunicate request_size=4 [23:30:14]MH_SAM_APDU [23:30:14]CAPDU: 80 09 00 00 [23:30:14]Write to MH i2c: E2 08 00 D3 31 80 09 00 00 00 00 00 00 76 [23:30:14]Write i2c OK [23:30:14]MH_I2C_Read... [23:30:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:30:14]Read from MH i2c: E2 [23:30:14]MH_I2C_Read... [23:30:14]Read from MH i2c: E2 03 00 [23:30:14]MH_I2C_Read... [23:30:14]Read from MH i2c: E2 03 00 D3 31 00 90 00 78 [23:30:14]RAPDU: 90 00 [23:30:14]wFMCommunicate OK [23:30:14]SAM_PROTO_ClearQueue done [23:30:14]KKMCreateOFDPacket [23:30:14]OFDProtocolAddRootSTLVToBuf [23:30:14]FM_MakeSignedData [23:30:14]FM_MakeSignedData [23:30:14]SAM_PROTO_SignData [23:30:14]wFMCommunicate request_size=4 [23:30:14]MH_SAM_APDU [23:30:14]CAPDU: 80 0D 01 02 [23:30:14]Write to MH i2c: E2 08 00 D4 31 80 0D 01 02 00 00 00 00 7E [23:30:14]Write i2c OK [23:30:14]MH_I2C_Read... [23:30:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:30:14]Read from MH i2c: E2 [23:30:14]MH_I2C_Read... [23:30:14]Read from MH i2c: E2 03 00 [23:30:14]MH_I2C_Read... [23:30:14]Read from MH i2c: E2 03 00 D4 31 00 90 00 79 [23:30:14]RAPDU: 90 00 [23:30:14]wFMCommunicate OK [23:30:14]wFMCommunicate request_size=255 [23:30:14]MH_SAM_APDU [23:30: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 87 D8 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 60 02 00 35 04 06 00 F8 [23:30:14]Write to MH i2c: E2 02 01 D5 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 87 D8 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 60 02 00 35 04 06 00 F8 00 00 ED [23:30:14]Write i2c OK [23:30:14]MH_I2C_Read... [23:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:14]Read from MH i2c: E2 [23:30:14]MH_I2C_Read... [23:30:14]Read from MH i2c: E2 03 00 [23:30:14]MH_I2C_Read... [23:30:14]Read from MH i2c: E2 03 00 D5 31 00 90 00 7A [23:30:14]RAPDU: 90 00 [23:30:14]wFMCommunicate OK [23:30:14]wFMCommunicate request_size=10 [23:30:14]MH_SAM_APDU [23:30:14]CAPDU: 80 0D 02 02 05 6C CD 68 D0 8A [23:30:14]Write to MH i2c: E2 0D 00 D6 31 80 0D 02 02 05 00 6C CD 68 D0 8A 00 00 86 [23:30:14]Write i2c OK [23:30:14]MH_I2C_Read... [23:30:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:15]Read from MH i2c: E2 [23:30:15]MH_I2C_Read... [23:30:15]Read from MH i2c: E2 03 00 [23:30:15]MH_I2C_Read... [23:30:15]Read from MH i2c: E2 03 00 D6 31 00 90 00 7B [23:30:15]RAPDU: 90 00 [23:30:15]wFMCommunicate OK [23:30:15]wFMCommunicate request_size=4 [23:30:15]MH_SAM_APDU [23:30:15]CAPDU: 80 0D 03 02 [23:30:15]Write to MH i2c: E2 08 00 D7 31 80 0D 03 02 00 00 00 00 83 [23:30:15]Write i2c OK [23:30:15]MH_I2C_Read... [23:30:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:30:15]Read from MH i2c: E2 [23:30:15]MH_I2C_Read... [23:30:15]Read from MH i2c: E2 0B 00 [23:30:15]MH_I2C_Read... [23:30:15]Read from MH i2c: E2 0B 00 D7 31 00 E8 FC AF CA 84 4D 2E 48 90 00 28 [23:30:15]RAPDU: E8 FC AF CA 84 4D 2E 48 90 00 [23:30:15]wFMCommunicate OK [23:30:15]SAM_PROTO_SignData done [23:30:15]FM_MakeSignedData done [23:30:15]CreateOFDProtocolMessage [23:30:15]wFMCommunicate request_size=4 [23:30:15]MH_SAM_APDU [23:30:15]CAPDU: 80 11 00 00 [23:30:15]Write to MH i2c: E2 08 00 D8 31 80 11 00 00 00 00 00 00 83 [23:30:15]Write i2c OK [23:30:15]MH_I2C_Read... [23:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:15]Read from MH i2c: E2 [23:30:15]MH_I2C_Read... [23:30:15]Read from MH i2c: E2 17 00 [23:30:15]MH_I2C_Read... [23:30:15]Read from MH i2c: E2 17 00 D8 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D8 [23:30:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:30:15]wFMCommunicate OK [23:30:15]CreateOFDProtocolMessage done [23:30:15]OFDSenderStorePacket 155716 [23:30:15]StoreOFDPacket docnum=155716 [23:30:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AD 0C 07 01 BE 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 87 D8 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 60 02 00 35 04 06 00 F8 6C CD 68 D0 8A E8 FC AF CA 84 4D 2E 48 [23:30:15]CheckFolder [23:30:15]dirname=/storage/ofd_packets [23:30:15]CheckFolder done [23:30:15]ProducePacketName [23:30:15]name=ofd_packets/00155716 [23:30:15]NVStorageSaveData ofd_packets/00155716 [23:30:15]File name is /storage/ofd_packets/00155716 [23:30:15]Write 301 bytes [23:30:15]NVStorageSaveData done [23:30:15]OFDSenderStorePacket done [23:30:15]KKMCreateOFDPacket done [23:30:15]NVStorageSaveData kkm_last_timestamp [23:30:15]File name is /storage/kkm_last_timestamp [23:30:15]Write 4 bytes [23:30:15]NVStorageSaveData done [23:30:15]ExternCall_PrintAddStr [23:30:15]wPrintStart [23:30:15]Write to MH i2c: 01 00 00 D9 31 0A [23:30:15]Write i2c OK [23:30:15]MH_I2C_Read... [23:30:15]Read from MH i2c: 01 [23:30:15]MH_I2C_Read... [23:30:15]Read from MH i2c: 01 07 00 [23:30:15]MH_I2C_Read... [23:30:15]Read from MH i2c: 01 07 00 D9 31 00 00 00 00 00 FF 0F 1F [23:30:15]RasterBufferAndPrint [23:30:15]line Счет N : (1)98524 [23:30:15]line ИНН: 02508201610067 [23:30:15]line Контрольно-Кассовый Чек [23:30:15]line ПРОДАЖА [23:30:15]line ТРК (МРК, ГНК) : 21 [23:30:15]line Товар: 2710124130 [23:30:15]line Аи-92-К-5 [23:30:15]line 8.970 * 66.90 [23:30:15]line = 600.09 [23:30:15]line НДС 12% НСП 1% [23:30:15]line > о реализуемом товаре [23:30:15]line ИТОГО: 600.09 [23:30:15]line НСП 1% : 5.31 [23:30:15]line НДС 12% : 63.73 [23:30:15]line Наличными: 0.00 [23:30:15]line Безнал.: 600.09 [23:30:15]line Место: АЗС № 143 "Партнер Нефть" [23:30:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:30:15]line СНО: Общий режим [23:30:15]line Чек 341 24.10.2024 23:30 [23:30:15]line Смена: 534 ФФД: 1.0 [23:30:15]line ЗНМ: 0300000096 [23:30:15]line РНМ: 0000000000091693 [23:30:15]line Версия ККМ: 001 [23:30:15]line Платежная система: Mbank [23:30:15]line ФМ: 0000000000871792 [23:30:15]line ФД: 155716 [23:30:15]line ФПД: 273146186354826 [23:30:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T233015&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155716&fm=273146186354826&tin=02508201610067®Number=0000000000091693&sum=60009 [23:30:15]OFD Sender: Processing packet 155716 [packets to send 31, broken 30] [23:30:15]ProducePacketName [23:30:15]name=ofd_packets/00155716 [23:30:15]OFD Sender: To server: pG, [23:30:15]CommunicateWithHost lk.salyk.kg:30040 [23:30:15]ConnectInit lk.salyk.kg [23:30:15]written 0, free lines is 4095 [23:30:15]Connected sock=10 [23:30: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 39 32 0F 01 00 00 AD 0C 07 01 BE 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 87 D8 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 60 02 00 35 04 06 00 F8 6C CD 68 D0 8A E8 FC AF CA 84 4D 2E 48 [23:30:15]Write to MH i2c: 01 00 00 02 32 34 [23:30:15]Write i2c OK [23:30:15]MH_I2C_Read... [23:30:15]Read from MH i2c: 01 [23:30:15]MH_I2C_Read... [23:30:15]Read from MH i2c: 01 07 00 [23:30:15]MH_I2C_Read... [23:30:15]Read from MH i2c: 01 07 00 02 32 00 00 00 00 00 FD 0C 44 [23:30:15]RasterBufferAndPrint [23:30:15]line [23:30:15]line [23:30:15]line [23:30:15]line [23:30:15]line [23:30:15]written 0, free lines is 3331 [23:30:15]process_action close_receipt done [23:30:15]requested_data is exist [23:30:15]produce_requested_data [23:30:15]requested_item fm.sn is exist - process it [23:30:15]wFMCommunicate request_size=4 [23:30:15]MH_SAM_APDU [23:30:15]CAPDU: 80 11 00 00 [23:30:15]Write to MH i2c: E2 08 00 09 32 80 11 00 00 00 00 00 00 B5 [23:30:15]Write i2c OK [23:30:15]MH_I2C_Read... [23:30:15]Read from MH i2c: E2 [23:30:15]MH_I2C_Read... [23:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 67 DB 47 00 C5 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 39 32 10 04 04 00 44 60 02 00 F4 03 04 00 FF 7D 1A 67 B6 04 01 00 00 A0 5B 58 E9 E9 DE 4D 52 [23:30:16]CommunicateWithHost err = 0 [23:30:16]CheckOFDResponse [23:30:16]1017 (14) - 77093643461234 [23:30:16]1041 (16) - 0000000000871792 [23:30:16]1040 (4) - 155716 [23:30:16]1012 (4) - 24.10.2024 17:03 [23:30:16]1206 (1) - 0 [23:30:16]OFD Sender: Remove packet 155716 [23:30:16]ProducePacketName [23:30:16]name=ofd_packets/00155716 [23:30:16]NVStorageDeleteData [23:30:16]Read from MH i2c: E2 17 00 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 17 00 09 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0A [23:30:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:30:16]wFMCommunicate OK [23:30:16]requested_item fd.num is exist - process it [23:30:16]SAM_PROTO_GetFieldsCounters [23:30:16]wFMCommunicate request_size=4 [23:30:16]MH_SAM_APDU [23:30:16]CAPDU: 80 13 00 00 [23:30:16]Write to MH i2c: E2 08 00 0A 32 80 13 00 00 00 00 00 00 B8 [23:30:16]Write i2c OK [23:30:16]MH_I2C_Read... [23:30:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:16]Read from MH i2c: E2 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 62 00 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 62 00 0A 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 44 60 02 00 0E 04 04 00 16 02 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 9E [23:30: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 44 60 02 00 0E 04 04 00 16 02 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 [23:30:16]wFMCommunicate OK [23:30:16]SAM_PROTO_GetFieldsCounters done [23:30:16]requested_item shift.num is exist - process it [23:30:16]requested_item shift.opened is exist - process it [23:30:16]req_shift_opened [23:30:16]FM_GetShiftState [23:30:16]SAM_PROTO_GetShiftState [23:30:16]wFMCommunicate request_size=4 [23:30:16]MH_SAM_APDU [23:30:16]CAPDU: 80 13 01 00 [23:30:16]Write to MH i2c: E2 08 00 0B 32 80 13 01 00 00 00 00 00 BA [23:30:16]Write i2c OK [23:30:16]MH_I2C_Read... [23:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:16]Read from MH i2c: E2 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 0E 00 [23:30:16]MH_I2C_Read... [23:30:16]Read from MH i2c: E2 0E 00 0B 32 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 07 [23:30:16]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [23:30:16]wFMCommunicate OK [23:30:16]SAM_PROTO_GetShiftState done [23:30:16]FM_GetShiftState done [23:30:16]req_shift_opened done [23:30:16]requested_item shift.open_date is exist - process it [23:30:16]req_shift_open_date [23:30:16]req_shift_open_date done [23:30:16]produce_requested_data done [23:30:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155716,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [23:30:16]process_action_free close_receipt [23:30:16]json_value_free [23:30:16]json_value_free done [23:30:16]process_json_proto returns [23:30:16]Send response to host [23:30:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155716,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [23:30:16]free response buf [23:30:16]execute_script done [23:30:16]execute_script returns [23:30:16]free content buf [23:30:16]Sock 9.Close socket [23:30:16]Sock 9.Thread stoped [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]accept exits with 8 [23:36:16]New connection [23:36:16]New thread 3066781028 created [23:36:16]Thread 3066637668 joined [23:36:16]Waiting for new connection... [23:36:16] Sock 8.Parse request [23:36:16]Sock 8.Check first char [23:36:16]Sock 8.First char is OK [23:36:16]request: POST /json_proto HTTP/1.0 [23:36:16]Method: POST [23:36:16]URL: /json_proto [23:36:16]Method is POST - this is cgi request [23:36:16]url: /json_proto [23:36:16]query_string will be loaded in cgi processing [23:36:16]execute_cgi json_proto POST (null) [23:36:16]execute_cgi path=json_proto method=POST [23:36:16]POST find Content-Length [23:36:16]Host: 172.17.63.3:8080 [23:36:16]Content-Length: 676 [23:36:16]Content-Type: application/json [23:36:16] [23:36:16]POST finish read [23:36:16]Found Content-Length = 676 [23:36:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:16]execute_script... [23:36:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:16]POST & json_proto [23:36:16]process_json_proto [23:36:16]json parsed OK: [23:36:16]protocol is kg_v1.0 [23:36:16]action value=close_receipt [23:36:16]process_action close_receipt [23:36:16]cmd_close_receipt [23:36:16]MH_GetDate [23:36:16]Write to MH i2c: F0 00 00 0C 32 2D [23:36:16]Write i2c OK [23:36:16]MH_I2C_Read... [23:36:16]Read from MH i2c: F0 [23:36:16]MH_I2C_Read... [23:36:16]Read from MH i2c: F0 09 00 [23:36:16]MH_I2C_Read... [23:36:16]Read from MH i2c: F0 09 00 0C 32 00 F2 D9 1A 67 50 D1 6C 64 73 [23:36:16]GetLastDocTimeStamp 1729812615 [23:36:16]current date 1729812978 [23:36:16]FM_GetShiftState [23:36:16]SAM_PROTO_GetShiftState [23:36:16]wFMCommunicate request_size=4 [23:36:16]MH_SAM_APDU [23:36:16]CAPDU: 80 13 01 00 [23:36:16]Write to MH i2c: E2 08 00 0D 32 80 13 01 00 00 00 00 00 BC [23:36:16]Write i2c OK [23:36:16]MH_I2C_Read... [23:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:16]Read from MH i2c: E2 [23:36:16]MH_I2C_Read... [23:36:16]Read from MH i2c: E2 0E 00 [23:36:16]MH_I2C_Read... [23:36:16]Read from MH i2c: E2 0E 00 0D 32 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 09 [23:36:16]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [23:36:16]wFMCommunicate OK [23:36:16]SAM_PROTO_GetShiftState done [23:36:16]FM_GetShiftState done [23:36:16]opened in 1729729836 [23:36:16]opened+sec_in_day 1729816236 [23:36:16]quantity*price = 30038 [23:36:16]sum+1 = 30039 [23:36:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 342 24.10.2024 23:36 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155717 ФПД: 271926878902745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T233618&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155717&fm=271926878902745&tin=02508201610067®Number=0000000000091693&sum=30000 [23:36:17]StoreToDocumentArchive [23:36:17]shift 534 fd 155717 [23:36:17]save to /storage/0534/doc_00155717 [23:36:17]save last doc name /storage/0534/doc_00155717 to /storage/kkm_last_doc_name [23:36:17]save OK [23:36:17]Clear old archive folders... [23:36:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:36:17]tlvbuf is 01F53600 [23:36:17]SAM_PROTO_ClearQueue [23:36:17]wFMCommunicate request_size=4 [23:36:17]MH_SAM_APDU [23:36:17]CAPDU: 80 09 00 00 [23:36:17]Write to MH i2c: E2 08 00 1A 32 80 09 00 00 00 00 00 00 BE [23:36:17]Write i2c OK [23:36:17]MH_I2C_Read... [23:36:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:36:17]Read from MH i2c: E2 [23:36:17]MH_I2C_Read... [23:36:17]Read from MH i2c: E2 03 00 [23:36:17]MH_I2C_Read... [23:36:17]Read from MH i2c: E2 03 00 1A 32 00 90 00 C0 [23:36:17]RAPDU: 90 00 [23:36:17]wFMCommunicate OK [23:36:17]SAM_PROTO_ClearQueue done [23:36:17]KKMCreateOFDPacket [23:36:17]OFDProtocolAddRootSTLVToBuf [23:36:17]FM_MakeSignedData [23:36:17]FM_MakeSignedData [23:36:17]SAM_PROTO_SignData [23:36:17]wFMCommunicate request_size=4 [23:36:17]MH_SAM_APDU [23:36:17]CAPDU: 80 0D 01 02 [23:36:17]Write to MH i2c: E2 08 00 1B 32 80 0D 01 02 00 00 00 00 C6 [23:36:17]Write i2c OK [23:36:17]MH_I2C_Read... [23:36:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:36:17]Read from MH i2c: E2 [23:36:17]MH_I2C_Read... [23:36:17]Read from MH i2c: E2 03 00 [23:36:17]MH_I2C_Read... [23:36:17]Read from MH i2c: E2 03 00 1B 32 00 90 00 C1 [23:36:17]RAPDU: 90 00 [23:36:17]wFMCommunicate OK [23:36:17]wFMCommunicate request_size=255 [23:36:17]MH_SAM_APDU [23:36: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 F2 D9 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 60 02 00 35 04 06 00 F7 [23:36:17]Write to MH i2c: E2 02 01 1C 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 F2 D9 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 60 02 00 35 04 06 00 F7 00 00 A7 [23:36:17]Write i2c OK [23:36:17]MH_I2C_Read... [23:36:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:17]Read from MH i2c: E2 [23:36:17]MH_I2C_Read... [23:36:17]Read from MH i2c: E2 03 00 [23:36:17]MH_I2C_Read... [23:36:17]Read from MH i2c: E2 03 00 1C 32 00 90 00 C2 [23:36:17]RAPDU: 90 00 [23:36:17]wFMCommunicate OK [23:36:17]wFMCommunicate request_size=10 [23:36:17]MH_SAM_APDU [23:36:17]CAPDU: 80 0D 02 02 05 50 E9 05 99 D9 [23:36:17]Write to MH i2c: E2 0D 00 1D 32 80 0D 02 02 05 00 50 E9 05 99 D9 00 00 83 [23:36:17]Write i2c OK [23:36:17]MH_I2C_Read... [23:36:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:17]Read from MH i2c: E2 [23:36:17]MH_I2C_Read... [23:36:17]Read from MH i2c: E2 03 00 [23:36:17]MH_I2C_Read... [23:36:17]Read from MH i2c: E2 03 00 1D 32 00 90 00 C3 [23:36:17]RAPDU: 90 00 [23:36:17]wFMCommunicate OK [23:36:17]wFMCommunicate request_size=4 [23:36:17]MH_SAM_APDU [23:36:17]CAPDU: 80 0D 03 02 [23:36:17]Write to MH i2c: E2 08 00 1E 32 80 0D 03 02 00 00 00 00 CB [23:36:17]Write i2c OK [23:36:17]MH_I2C_Read... [23:36:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:36:17]Read from MH i2c: E2 [23:36:17]MH_I2C_Read... [23:36:17]Read from MH i2c: E2 0B 00 [23:36:17]MH_I2C_Read... [23:36:17]Read from MH i2c: E2 0B 00 1E 32 00 AA 94 68 03 E6 F1 92 E0 90 00 BE [23:36:17]RAPDU: AA 94 68 03 E6 F1 92 E0 90 00 [23:36:17]wFMCommunicate OK [23:36:17]SAM_PROTO_SignData done [23:36:17]FM_MakeSignedData done [23:36:17]CreateOFDProtocolMessage [23:36:17]wFMCommunicate request_size=4 [23:36:17]MH_SAM_APDU [23:36:17]CAPDU: 80 11 00 00 [23:36:17]Write to MH i2c: E2 08 00 1F 32 80 11 00 00 00 00 00 00 CB [23:36:17]Write i2c OK [23:36:17]MH_I2C_Read... [23:36:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:17]Read from MH i2c: E2 [23:36:17]MH_I2C_Read... [23:36:17]Read from MH i2c: E2 17 00 [23:36:17]MH_I2C_Read... [23:36:17]Read from MH i2c: E2 17 00 1F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 20 [23:36:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:36:17]wFMCommunicate OK [23:36:17]CreateOFDProtocolMessage done [23:36:17]OFDSenderStorePacket 155717 [23:36:17]StoreOFDPacket docnum=155717 [23:36:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C7 DE 07 01 64 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 F2 D9 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 60 02 00 35 04 06 00 F7 50 E9 05 99 D9 AA 94 68 03 E6 F1 92 E0 [23:36:17]CheckFolder [23:36:17]dirname=/storage/ofd_packets [23:36:17]CheckFolder done [23:36:17]ProducePacketName [23:36:17]name=ofd_packets/00155717 [23:36:17]NVStorageSaveData ofd_packets/00155717 [23:36:17]File name is /storage/ofd_packets/00155717 [23:36:17]Write 301 bytes [23:36:17]NVStorageSaveData done [23:36:17]OFDSenderStorePacket done [23:36:17]KKMCreateOFDPacket done [23:36:17]NVStorageSaveData kkm_last_timestamp [23:36:17]File name is /storage/kkm_last_timestamp [23:36:17]Write 4 bytes [23:36:17]NVStorageSaveData done [23:36:17]ExternCall_PrintAddStr [23:36:17]wPrintStart [23:36:17]Write to MH i2c: 01 00 00 20 32 52 [23:36:17]Write i2c OK [23:36:17]MH_I2C_Read... [23:36:17]Read from MH i2c: 01 [23:36:17]MH_I2C_Read... [23:36:17]Read from MH i2c: 01 07 00 [23:36:17]MH_I2C_Read... [23:36:18]Read from MH i2c: 01 07 00 20 32 00 00 00 00 00 FF 0F 67 [23:36:18]RasterBufferAndPrint [23:36:18]line Счет N : (1)98525 [23:36:18]line ИНН: 02508201610067 [23:36:18]line Контрольно-Кассовый Чек [23:36:18]line ПРОДАЖА [23:36:18]line ТРК (МРК, ГНК) : 11 [23:36:18]line Товар: 2710124130 [23:36:18]line Аи-92-К-5 [23:36:18]line 4.490 * 66.90 [23:36:18]line = 300.38 [23:36:18]line НДС 12% НСП 1% [23:36:18]line > о реализуемом товаре [23:36:18]line ОКРУГЛЕНИЕ: -0.38 [23:36:18]line ИТОГО: 300.00 [23:36:18]line Внесено: 300.00 [23:36:18]line СДАЧА: 0.00 [23:36:18]line НСП 1% : 2.66 [23:36:18]line НДС 12% : 31.90 [23:36:18]line Наличными: 300.00 [23:36:18]line Безнал.: 0.00 [23:36:18]line Место: АЗС № 143 "Партнер Нефть" [23:36:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:36:18]line СНО: Общий режим [23:36:18]line Чек 342 24.10.2024 23:36 [23:36:18]line Смена: 534 ФФД: 1.0 [23:36:18]line ЗНМ: 0300000096 [23:36:18]line РНМ: 0000000000091693 [23:36:18]line Версия ККМ: 001 [23:36:18]line ФМ: 0000000000871792 [23:36:18]line ФД: 155717 [23:36:18]line ФПД: 271926878902745 [23:36:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T233618&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155717&fm=271926878902745&tin=02508201610067®Number=0000000000091693&sum=30000 [23:36:18]OFD Sender: Processing packet 155717 [packets to send 31, broken 30] [23:36:18]ProducePacketName [23:36:18]name=ofd_packets/00155717 [23:36:18]OFD Sender: To server: pG, [23:36:18]CommunicateWithHost lk.salyk.kg:30040 [23:36:18]ConnectInit lk.salyk.kg [23:36:18]written 0, free lines is 4095 [23:36:18]Connected sock=10 [23:36: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 39 32 0F 01 00 00 C7 DE 07 01 64 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 F2 D9 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 60 02 00 35 04 06 00 F7 50 E9 05 99 D9 AA 94 68 03 E6 F1 92 E0 [23:36: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 39 32 4F 00 00 00 45 DE 47 00 D2 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 39 32 10 04 04 00 45 60 02 00 F4 03 04 00 6A 7F 1A 67 B6 04 01 00 00 5C C0 96 F8 BA 7B B3 D9 [23:36:18]CommunicateWithHost err = 0 [23:36:18]CheckOFDResponse [23:36:18]1017 (14) - 77093643461234 [23:36:18]1041 (16) - 0000000000871792 [23:36:18]1040 (4) - 155717 [23:36:18]1012 (4) - 24.10.2024 17:10 [23:36:18]1206 (1) - 0 [23:36:18]OFD Sender: Remove packet 155717 [23:36:18]ProducePacketName [23:36:18]name=ofd_packets/00155717 [23:36:18]NVStorageDeleteData [23:36:18]Write to MH i2c: 01 00 00 4B 32 7D [23:36:18]Write i2c OK [23:36:18]MH_I2C_Read... [23:36:18]Read from MH i2c: 01 [23:36:18]MH_I2C_Read... [23:36:18]Read from MH i2c: 01 07 00 [23:36:18]MH_I2C_Read... [23:36:18]Read from MH i2c: 01 07 00 4B 32 00 00 00 00 00 DC 0C 6C [23:36:18]RasterBufferAndPrint [23:36:18]line [23:36:18]line [23:36:18]line [23:36:18]line [23:36:18]line [23:36:18]written 0, free lines is 3298 [23:36:18]process_action close_receipt done [23:36:18]requested_data is exist [23:36:18]produce_requested_data [23:36:18]requested_item fm.sn is exist - process it [23:36:18]wFMCommunicate request_size=4 [23:36:18]MH_SAM_APDU [23:36:18]CAPDU: 80 11 00 00 [23:36:18]Write to MH i2c: E2 08 00 52 32 80 11 00 00 00 00 00 00 FE [23:36:18]Write i2c OK [23:36:18]MH_I2C_Read... [23:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:18]Read from MH i2c: E2 [23:36:18]MH_I2C_Read... [23:36:18]Read from MH i2c: E2 17 00 [23:36:18]MH_I2C_Read... [23:36:18]Read from MH i2c: E2 17 00 52 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 53 [23:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:36:18]wFMCommunicate OK [23:36:18]requested_item fd.num is exist - process it [23:36:18]SAM_PROTO_GetFieldsCounters [23:36:18]wFMCommunicate request_size=4 [23:36:18]MH_SAM_APDU [23:36:18]CAPDU: 80 13 00 00 [23:36:18]Write to MH i2c: E2 08 00 53 32 80 13 00 00 00 00 00 00 01 [23:36:18]Write i2c OK [23:36:18]MH_I2C_Read... [23:36:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:36:18]Read from MH i2c: E2 [23:36:18]MH_I2C_Read... [23:36:18]Read from MH i2c: E2 62 00 [23:36:18]MH_I2C_Read... [23:36:18]Read from MH i2c: E2 62 00 53 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 45 60 02 00 0E 04 04 00 16 02 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 EB [23:36: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 45 60 02 00 0E 04 04 00 16 02 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 [23:36:19]wFMCommunicate OK [23:36:19]SAM_PROTO_GetFieldsCounters done [23:36:19]requested_item shift.num is exist - process it [23:36:19]requested_item shift.opened is exist - process it [23:36:19]req_shift_opened [23:36:19]FM_GetShiftState [23:36:19]SAM_PROTO_GetShiftState [23:36:19]wFMCommunicate request_size=4 [23:36:19]MH_SAM_APDU [23:36:19]CAPDU: 80 13 01 00 [23:36:19]Write to MH i2c: E2 08 00 54 32 80 13 01 00 00 00 00 00 03 [23:36:19]Write i2c OK [23:36:19]MH_I2C_Read... [23:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:19]Read from MH i2c: E2 [23:36:19]MH_I2C_Read... [23:36:19]Read from MH i2c: E2 0E 00 [23:36:19]MH_I2C_Read... [23:36:19]Read from MH i2c: E2 0E 00 54 32 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 50 [23:36:19]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [23:36:19]wFMCommunicate OK [23:36:19]SAM_PROTO_GetShiftState done [23:36:19]FM_GetShiftState done [23:36:19]req_shift_opened done [23:36:19]requested_item shift.open_date is exist - process it [23:36:19]req_shift_open_date [23:36:19]req_shift_open_date done [23:36:19]produce_requested_data done [23:36:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155717,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [23:36:19]process_action_free close_receipt [23:36:19]json_value_free [23:36:19]json_value_free done [23:36:19]process_json_proto returns [23:36:19]Send response to host [23:36:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155717,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [23:36:19]free response buf [23:36:19]execute_script done [23:36:19]execute_script returns [23:36:19]free content buf [23:36:19]Sock 8.Close socket [23:36:19]Sock 8.Thread stoped [23:36:19]OFD Sender: No OFD packet to send [23:36:24]OFD Sender: No OFD packet to send [23:36:29]OFD Sender: No OFD packet to send [23:36:34]OFD Sender: No OFD packet to send [23:36:39]OFD Sender: No OFD packet to send [23:36:44]OFD Sender: No OFD packet to send [23:36:49]OFD Sender: No OFD packet to send [23:36:54]OFD Sender: No OFD packet to send [23:36:59]OFD Sender: No OFD packet to send [23:37:04]OFD Sender: No OFD packet to send [23:37:09]OFD Sender: No OFD packet to send [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]OFD Sender: No OFD packet to send [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:49]OFD Sender: No OFD packet to send [23:41:54]OFD Sender: No OFD packet to send [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:09]OFD Sender: No OFD packet to send [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:49]OFD Sender: No OFD packet to send [23:42:54]OFD Sender: No OFD packet to send [23:42:59]OFD Sender: No OFD packet to send [23:43:04]OFD Sender: No OFD packet to send [23:43:09]OFD Sender: No OFD packet to send [23:43:14]OFD Sender: No OFD packet to send [23:43:19]OFD Sender: No OFD packet to send [23:43:24]OFD Sender: No OFD packet to send [23:43:29]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:39]OFD Sender: No OFD packet to send [23:43:44]OFD Sender: No OFD packet to send [23:43:49]OFD Sender: No OFD packet to send [23:43:54]OFD Sender: No OFD packet to send [23:43:59]OFD Sender: No OFD packet to send [23:44:04]OFD Sender: No OFD packet to send [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:44]OFD Sender: No OFD packet to send [23:44:49]OFD Sender: No OFD packet to send [23:44:54]OFD Sender: No OFD packet to send [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:19]accept exits with 9 [23:45:19]New connection [23:45:19]New thread 3066637668 created [23:45:19]Thread 3066781028 joined [23:45:19]Waiting for new connection... [23:45:19] Sock 9.Parse request [23:45:19]Sock 9.Check first char [23:45:19]Sock 9.First char is OK [23:45:19]request: POST /json_proto HTTP/1.0 [23:45:19]Method: POST [23:45:19]URL: /json_proto [23:45:19]Method is POST - this is cgi request [23:45:19]url: /json_proto [23:45:19]query_string will be loaded in cgi processing [23:45:19]execute_cgi json_proto POST (null) [23:45:19]execute_cgi path=json_proto method=POST [23:45:19]POST find Content-Length [23:45:19]Host: 172.17.63.3:8080 [23:45:19]Content-Length: 762 [23:45:19]Content-Type: application/json [23:45:19] [23:45:19]POST finish read [23:45:19]Found Content-Length = 762 [23:45:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:19]execute_script... [23:45: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)98526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:45:19]POST & json_proto [23:45:19]process_json_proto [23:45:19]json parsed OK: [23:45:19]protocol is kg_v1.0 [23:45:19]action value=close_receipt [23:45:19]process_action close_receipt [23:45:19]cmd_close_receipt [23:45:19]MH_GetDate [23:45:19]Write to MH i2c: F0 00 00 55 32 76 [23:45:19]Write i2c OK [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: F0 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: F0 09 00 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: F0 09 00 55 32 00 12 DC 1A 67 50 D1 6C 64 DF [23:45:19]GetLastDocTimeStamp 1729812978 [23:45:19]current date 1729813522 [23:45:19]FM_GetShiftState [23:45:19]SAM_PROTO_GetShiftState [23:45:19]wFMCommunicate request_size=4 [23:45:19]MH_SAM_APDU [23:45:19]CAPDU: 80 13 01 00 [23:45:19]Write to MH i2c: E2 08 00 56 32 80 13 01 00 00 00 00 00 05 [23:45:19]Write i2c OK [23:45:19]MH_I2C_Read... [23:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:19]Read from MH i2c: E2 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: E2 0E 00 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: E2 0E 00 56 32 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 52 [23:45:19]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [23:45:19]wFMCommunicate OK [23:45:19]SAM_PROTO_GetShiftState done [23:45:19]FM_GetShiftState done [23:45:19]opened in 1729729836 [23:45:19]opened+sec_in_day 1729816236 [23:45:19]quantity*price = 50063 [23:45:19]sum+1 = 50064 [23:45:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 343 24.10.2024 23:45 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155718 ФПД: 54302057199612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T234522&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155718&fm=54302057199612&tin=02508201610067®Number=0000000000091693&sum=50063 [23:45:20]StoreToDocumentArchive [23:45:20]shift 534 fd 155718 [23:45:20]save to /storage/0534/doc_00155718 [23:45:20]save last doc name /storage/0534/doc_00155718 to /storage/kkm_last_doc_name [23:45:20]save OK [23:45:20]Clear old archive folders... [23:45:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:45:20]tlvbuf is 01FAD760 [23:45:20]SAM_PROTO_ClearQueue [23:45:20]wFMCommunicate request_size=4 [23:45:20]MH_SAM_APDU [23:45:20]CAPDU: 80 09 00 00 [23:45:20]Write to MH i2c: E2 08 00 63 32 80 09 00 00 00 00 00 00 07 [23:45:20]Write i2c OK [23:45:20]MH_I2C_Read... [23:45:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:45:20]Read from MH i2c: E2 [23:45:20]MH_I2C_Read... [23:45:20]Read from MH i2c: E2 03 00 [23:45:20]MH_I2C_Read... [23:45:20]Read from MH i2c: E2 03 00 63 32 00 90 00 09 [23:45:20]RAPDU: 90 00 [23:45:20]wFMCommunicate OK [23:45:20]SAM_PROTO_ClearQueue done [23:45:20]KKMCreateOFDPacket [23:45:20]OFDProtocolAddRootSTLVToBuf [23:45:20]FM_MakeSignedData [23:45:20]FM_MakeSignedData [23:45:20]SAM_PROTO_SignData [23:45:20]wFMCommunicate request_size=4 [23:45:20]MH_SAM_APDU [23:45:20]CAPDU: 80 0D 01 02 [23:45:20]Write to MH i2c: E2 08 00 64 32 80 0D 01 02 00 00 00 00 0F [23:45:20]Write i2c OK [23:45:20]MH_I2C_Read... [23:45:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:45:20]Read from MH i2c: E2 [23:45:20]MH_I2C_Read... [23:45:20]Read from MH i2c: E2 03 00 [23:45:20]MH_I2C_Read... [23:45:20]Read from MH i2c: E2 03 00 64 32 00 90 00 0A [23:45:20]RAPDU: 90 00 [23:45:20]wFMCommunicate OK [23:45:20]wFMCommunicate request_size=255 [23:45:20]MH_SAM_APDU [23:45:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 12 DC 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 46 60 02 00 35 04 06 00 31 63 2E D4 [23:45:20]Write to MH i2c: E2 02 01 65 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 12 DC 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 46 60 02 00 35 04 06 00 31 63 2E D4 00 00 BC [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:21]Read from MH i2c: E2 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 03 00 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 03 00 65 32 00 90 00 0B [23:45:21]RAPDU: 90 00 [23:45:21]wFMCommunicate OK [23:45:21]wFMCommunicate request_size=7 [23:45:21]MH_SAM_APDU [23:45:21]CAPDU: 80 0D 02 02 02 77 FC [23:45:21]Write to MH i2c: E2 0A 00 66 32 80 0D 02 02 02 00 77 FC 00 00 89 [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:21]Read from MH i2c: E2 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 03 00 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 03 00 66 32 00 90 00 0C [23:45:21]RAPDU: 90 00 [23:45:21]wFMCommunicate OK [23:45:21]wFMCommunicate request_size=4 [23:45:21]MH_SAM_APDU [23:45:21]CAPDU: 80 0D 03 02 [23:45:21]Write to MH i2c: E2 08 00 67 32 80 0D 03 02 00 00 00 00 14 [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:45:21]Read from MH i2c: E2 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 0B 00 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 0B 00 67 32 00 45 DA D5 65 91 65 41 5E 90 00 03 [23:45:21]RAPDU: 45 DA D5 65 91 65 41 5E 90 00 [23:45:21]wFMCommunicate OK [23:45:21]SAM_PROTO_SignData done [23:45:21]FM_MakeSignedData done [23:45:21]CreateOFDProtocolMessage [23:45:21]wFMCommunicate request_size=4 [23:45:21]MH_SAM_APDU [23:45:21]CAPDU: 80 11 00 00 [23:45:21]Write to MH i2c: E2 08 00 68 32 80 11 00 00 00 00 00 00 14 [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:21]Read from MH i2c: E2 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 17 00 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 17 00 68 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 69 [23:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:45:21]wFMCommunicate OK [23:45:21]CreateOFDProtocolMessage done [23:45:21]OFDSenderStorePacket 155718 [23:45:21]StoreOFDPacket docnum=155718 [23:45:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 67 4D 04 01 80 AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 12 DC 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 46 60 02 00 35 04 06 00 31 63 2E D4 77 FC 45 DA D5 65 91 65 41 5E [23:45:21]CheckFolder [23:45:21]dirname=/storage/ofd_packets [23:45:21]CheckFolder done [23:45:21]ProducePacketName [23:45:21]name=ofd_packets/00155718 [23:45:21]NVStorageSaveData ofd_packets/00155718 [23:45:21]File name is /storage/ofd_packets/00155718 [23:45:21]Write 298 bytes [23:45:21]NVStorageSaveData done [23:45:21]OFDSenderStorePacket done [23:45:21]KKMCreateOFDPacket done [23:45:21]NVStorageSaveData kkm_last_timestamp [23:45:21]File name is /storage/kkm_last_timestamp [23:45:21]Write 4 bytes [23:45:21]NVStorageSaveData done [23:45:21]ExternCall_PrintAddStr [23:45:21]wPrintStart [23:45:21]Write to MH i2c: 01 00 00 69 32 9B [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: 01 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: 01 07 00 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: 01 07 00 69 32 00 00 00 00 00 FF 0F B0 [23:45:21]RasterBufferAndPrint [23:45:21]line Счет N : (1)98526 [23:45:21]line ИНН: 02508201610067 [23:45:21]line Контрольно-Кассовый Чек [23:45:21]line ПРОДАЖА [23:45:21]line ТРК (МРК, ГНК) : 32 [23:45:21]line Товар: 2710194210 [23:45:21]line ДТ-К-5 [23:45:21]line 6.570 * 76.20 [23:45:21]line = 500.63 [23:45:21]line НДС 12% НСП 1% [23:45:21]line > о реализуемом товаре [23:45:21]line ИТОГО: 500.63 [23:45:21]line НСП 1% : 4.43 [23:45:21]line НДС 12% : 53.16 [23:45:21]line Наличными: 0.00 [23:45:21]line Безнал.: 500.63 [23:45:21]line Место: АЗС № 143 "Партнер Нефть" [23:45:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:45:21]line СНО: Общий режим [23:45:21]line Чек 343 24.10.2024 23:45 [23:45:21]line Смена: 534 ФФД: 1.0 [23:45:21]line ЗНМ: 0300000096 [23:45:21]line РНМ: 0000000000091693 [23:45:21]line Версия ККМ: 001 [23:45:21]line Платежная система: Mbank [23:45:21]line ФМ: 0000000000871792 [23:45:21]line ФД: 155718 [23:45:21]line ФПД: 54302057199612 [23:45:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241024T234522&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155718&fm=54302057199612&tin=02508201610067®Number=0000000000091693&sum=50063 [23:45:21]OFD Sender: Processing packet 155718 [packets to send 31, broken 30] [23:45:21]ProducePacketName [23:45:21]name=ofd_packets/00155718 [23:45:21]OFD Sender: To server: pG, [23:45:21]CommunicateWithHost lk.salyk.kg:30040 [23:45:21]ConnectInit lk.salyk.kg [23:45:21]written 0, free lines is 4095 [23:45:21]Connected sock=10 [23:45: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 39 32 0C 01 00 00 67 4D 04 01 80 AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 12 DC 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 46 60 02 00 35 04 06 00 31 63 2E D4 77 FC 45 DA D5 65 91 65 41 5E [23:45: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 39 32 4F 00 00 00 61 C9 47 00 48 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 39 32 10 04 04 00 46 60 02 00 F4 03 04 00 89 81 1A 67 B6 04 01 00 00 01 6F 7F F2 73 9B 3A 56 [23:45:22]CommunicateWithHost err = 0 [23:45:22]CheckOFDResponse [23:45:22]1017 (14) - 77093643461234 [23:45:22]1041 (16) - 0000000000871792 [23:45:22]1040 (4) - 155718 [23:45:22]1012 (4) - 24.10.2024 17:19 [23:45:22]1206 (1) - 0 [23:45:22]OFD Sender: Remove packet 155718 [23:45:22]ProducePacketName [23:45:22]name=ofd_packets/00155718 [23:45:22]NVStorageDeleteData [23:45:22]Write to MH i2c: 01 00 00 92 32 C4 [23:45:22]Write i2c OK [23:45:22]MH_I2C_Read... [23:45:22]Read from MH i2c: 01 [23:45:22]MH_I2C_Read... [23:45:22]Read from MH i2c: 01 07 00 [23:45:22]MH_I2C_Read... [23:45:22]Read from MH i2c: 01 07 00 92 32 00 00 00 00 00 F7 0C CE [23:45:22]RasterBufferAndPrint [23:45:22]line [23:45:22]line [23:45:22]line [23:45:22]line [23:45:22]line [23:45:22]written 0, free lines is 3325 [23:45:22]process_action close_receipt done [23:45:22]requested_data is exist [23:45:22]produce_requested_data [23:45:22]requested_item fm.sn is exist - process it [23:45:22]wFMCommunicate request_size=4 [23:45:22]MH_SAM_APDU [23:45:22]CAPDU: 80 11 00 00 [23:45:22]Write to MH i2c: E2 08 00 99 32 80 11 00 00 00 00 00 00 45 [23:45:22]Write i2c OK [23:45:22]MH_I2C_Read... [23:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:22]Read from MH i2c: E2 [23:45:22]MH_I2C_Read... [23:45:22]Read from MH i2c: E2 17 00 [23:45:22]MH_I2C_Read... [23:45:22]Read from MH i2c: E2 17 00 99 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9A [23:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:45:22]wFMCommunicate OK [23:45:22]requested_item fd.num is exist - process it [23:45:22]SAM_PROTO_GetFieldsCounters [23:45:22]wFMCommunicate request_size=4 [23:45:22]MH_SAM_APDU [23:45:22]CAPDU: 80 13 00 00 [23:45:22]Write to MH i2c: E2 08 00 9A 32 80 13 00 00 00 00 00 00 48 [23:45:22]Write i2c OK [23:45:22]MH_I2C_Read... [23:45:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:45:22]Read from MH i2c: E2 [23:45:22]MH_I2C_Read... [23:45:22]Read from MH i2c: E2 62 00 [23:45:22]MH_I2C_Read... [23:45:22]Read from MH i2c: E2 62 00 9A 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 46 60 02 00 0E 04 04 00 16 02 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 36 [23:45: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 46 60 02 00 0E 04 04 00 16 02 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 [23:45:22]wFMCommunicate OK [23:45:22]SAM_PROTO_GetFieldsCounters done [23:45:22]requested_item shift.num is exist - process it [23:45:22]requested_item shift.opened is exist - process it [23:45:22]req_shift_opened [23:45:22]FM_GetShiftState [23:45:22]SAM_PROTO_GetShiftState [23:45:22]wFMCommunicate request_size=4 [23:45:22]MH_SAM_APDU [23:45:22]CAPDU: 80 13 01 00 [23:45:22]Write to MH i2c: E2 08 00 9B 32 80 13 01 00 00 00 00 00 4A [23:45:22]Write i2c OK [23:45:22]MH_I2C_Read... [23:45:22]Read from MH i2c: E2 [23:45:22]MH_I2C_Read... [23:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:22]Read from MH i2c: E2 0E 00 [23:45:22]MH_I2C_Read... [23:45:22]Read from MH i2c: E2 0E 00 9B 32 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 97 [23:45:22]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [23:45:22]wFMCommunicate OK [23:45:22]SAM_PROTO_GetShiftState done [23:45:22]FM_GetShiftState done [23:45:22]req_shift_opened done [23:45:22]requested_item shift.open_date is exist - process it [23:45:22]req_shift_open_date [23:45:22]req_shift_open_date done [23:45:22]produce_requested_data done [23:45:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155718,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [23:45:22]process_action_free close_receipt [23:45:22]json_value_free [23:45:22]json_value_free done [23:45:22]process_json_proto returns [23:45:22]Send response to host [23:45:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155718,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [23:45:22]free response buf [23:45:22]execute_script done [23:45:22]execute_script returns [23:45:22]free content buf [23:45:22]Sock 9.Close socket [23:45:22]Sock 9.Thread stoped [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:03]OFD Sender: No OFD packet to send [23:54:08]OFD Sender: No OFD packet to send [23:54:13]OFD Sender: No OFD packet to send [23:54:18]OFD Sender: No OFD packet to send [23:54:23]OFD Sender: No OFD packet to send [23:54:28]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:38]OFD Sender: No OFD packet to send [23:54:43]OFD Sender: No OFD packet to send [23:54:48]OFD Sender: No OFD packet to send [23:54:53]OFD Sender: No OFD packet to send [23:54:58]OFD Sender: No OFD packet to send [23:55:03]OFD Sender: No OFD packet to send [23:55:08]OFD Sender: No OFD packet to send [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:38]OFD Sender: No OFD packet to send [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:58]OFD Sender: No OFD packet to send [23:56:03]OFD Sender: No OFD packet to send [23:56:08]OFD Sender: No OFD packet to send [23:56:13]OFD Sender: No OFD packet to send [23:56:18]OFD Sender: No OFD packet to send [23:56:23]OFD Sender: No OFD packet to send [23:56:28]OFD Sender: No OFD packet to send [23:56:33]OFD Sender: No OFD packet to send [23:56:38]OFD Sender: No OFD packet to send [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:52]int [23:58:52]Write to MH i2c: 01 00 00 9C 32 CE [23:58:52]*** FLAG_PRN_PAP1 set [23:58:52]Write i2c OK [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: 01 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: 01 07 00 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: 01 07 00 9C 32 00 01 00 00 00 FF 0F E4 [23:58:52]state=0 [23:58:52]No paper [23:58:53]int [23:58:53]Write to MH i2c: 01 00 00 9D 32 CF [23:58:53]*** FLAG_PRN_PAP2 set [23:58:53]Write i2c OK [23:58:53]MH_I2C_Read... [23:58:53]Read from MH i2c: 01 [23:58:53]MH_I2C_Read... [23:58:53]Read from MH i2c: 01 07 00 [23:58:53]MH_I2C_Read... [23:58:53]Read from MH i2c: 01 07 00 9D 32 00 03 00 00 00 FF 0F E7 [23:58:53]state=0 [23:58:53]No paper [23:58:53]Cover opened [23:58:53]OFD Sender: No OFD packet to send [23:58:54]int [23:58:54]Write to MH i2c: 01 00 00 9E 32 D0 [23:58:54]*** FLAG_PRN_PAP2 reset [23:58:54]Write i2c OK [23:58:54]MH_I2C_Read... [23:58:54]Read from MH i2c: 01 [23:58:54]MH_I2C_Read... [23:58:54]Read from MH i2c: 01 07 00 [23:58:54]MH_I2C_Read... [23:58:54]Read from MH i2c: 01 07 00 9E 32 00 01 00 00 00 FF 0F E6 [23:58:54]state=3 [23:58:54]No paper [23:58:54]Cover closed [23:58:54]int [23:58:54]Write to MH i2c: 01 00 00 9F 32 D1 [23:58:54]*** FLAG_PRN_PAP1 reset [23:58:54]Write i2c OK [23:58:54]MH_I2C_Read... [23:58:54]Read from MH i2c: 01 [23:58:54]MH_I2C_Read... [23:58:54]Read from MH i2c: 01 07 00 [23:58:54]MH_I2C_Read... [23:58:54]Read from MH i2c: 01 07 00 9F 32 00 00 00 00 00 FF 0F E6 [23:58:54]state=0 [23:58:57]int [23:58:57]Write to MH i2c: 01 00 00 A0 32 D2 [23:58:57]*** FLAG_PRN_KEY set [23:58:57]Write i2c OK [23:58:57]MH_I2C_Read... [23:58:57]Read from MH i2c: 01 [23:58:57]MH_I2C_Read... [23:58:57]Read from MH i2c: 01 07 00 [23:58:57]MH_I2C_Read... [23:58:57]Read from MH i2c: 01 07 00 A0 32 00 08 00 00 00 FF 0F EF [23:58:57]state=0 [23:58:57]Key pressed [23:58:57]Feed [23:58:57]Write to MH i2c: D8 00 00 A1 32 AA [23:58:57]Write i2c OK [23:58:57]MH_I2C_Read... [23:58:57]Read from MH i2c: D8 [23:58:57]MH_I2C_Read... [23:58:57]Read from MH i2c: D8 01 00 [23:58:57]MH_I2C_Read... [23:58:57]Read from MH i2c: D8 01 00 A1 32 00 AB [23:58:57]int [23:58:57]Write to MH i2c: 01 00 00 A2 32 D4 [23:58:57]Write i2c OK [23:58:57]MH_I2C_Read... [23:58:57]Read from MH i2c: 01 [23:58:57]MH_I2C_Read... [23:58:57]Read from MH i2c: 01 07 00 [23:58:57]MH_I2C_Read... [23:58:57]Read from MH i2c: 01 07 00 A2 32 00 48 00 00 00 3D 00 60 [23:58:57]state=2 [23:58:57]Key pressed [23:58:57]int [23:58:57]Write to MH i2c: 01 00 00 A3 32 D5 [23:58:57]*** FLAG_PRN_KEY reset [23:58:57]Write i2c OK [23:58:57]MH_I2C_Read... [23:58:57]Read from MH i2c: 01 [23:58:57]MH_I2C_Read... [23:58:57]Read from MH i2c: 01 07 00 [23:58:57]MH_I2C_Read... [23:58:57]Read from MH i2c: 01 07 00 A3 32 00 00 00 00 00 F6 0F E1 [23:58:57]state=2 [23:58:57]Stop feed [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:07]accept exits with 8 [00:00:07]New connection [00:00:07]New thread 3066781028 created [00:00:07]Thread 3066637668 joined [00:00:07]Waiting for new connection... [00:00:07] Sock 8.Parse request [00:00:07]Sock 8.Check first char [00:00:07]Sock 8.First char is OK [00:00:07]request: POST /json_proto HTTP/1.0 [00:00:07]Method: POST [00:00:07]URL: /json_proto [00:00:07]Method is POST - this is cgi request [00:00:07]url: /json_proto [00:00:07]query_string will be loaded in cgi processing [00:00:07]execute_cgi json_proto POST (null) [00:00:07]execute_cgi path=json_proto method=POST [00:00:07]POST find Content-Length [00:00:07]Host: 172.17.63.3:8080 [00:00:07]Content-Length: 766 [00:00:07]Content-Type: application/json [00:00:07] [00:00:07]POST finish read [00:00:07]Found Content-Length = 766 [00:00:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:07]execute_script... [00:00:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:07]POST & json_proto [00:00:07]process_json_proto [00:00:07]json parsed OK: [00:00:07]protocol is kg_v1.0 [00:00:07]action value=close_receipt [00:00:07]process_action close_receipt [00:00:07]cmd_close_receipt [00:00:07]MH_GetDate [00:00:07]Write to MH i2c: F0 00 00 A4 32 C5 [00:00:07]Write i2c OK [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: F0 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: F0 09 00 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: F0 09 00 A4 32 00 8A DF 1A 67 50 D1 6C 64 A9 [00:00:07]GetLastDocTimeStamp 1729813522 [00:00:07]current date 1729814410 [00:00:07]FM_GetShiftState [00:00:07]SAM_PROTO_GetShiftState [00:00:07]wFMCommunicate request_size=4 [00:00:07]MH_SAM_APDU [00:00:07]CAPDU: 80 13 01 00 [00:00:07]Write to MH i2c: E2 08 00 A5 32 80 13 01 00 00 00 00 00 54 [00:00:07]Write i2c OK [00:00:07]MH_I2C_Read... [00:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:07]Read from MH i2c: E2 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 0E 00 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 0E 00 A5 32 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 A1 [00:00:07]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [00:00:07]wFMCommunicate OK [00:00:07]SAM_PROTO_GetShiftState done [00:00:07]FM_GetShiftState done [00:00:07]opened in 1729729836 [00:00:07]opened+sec_in_day 1729816236 [00:00:07]quantity*price = 70044 [00:00:07]sum+1 = 70045 [00:00:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 344 25.10.2024 00:00 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155719 ФПД: 115963635626333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T000010&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155719&fm=115963635626333&tin=02508201610067®Number=0000000000091693&sum=70044 [00:00:08]StoreToDocumentArchive [00:00:08]shift 534 fd 155719 [00:00:08]save to /storage/0534/doc_00155719 [00:00:08]save last doc name /storage/0534/doc_00155719 to /storage/kkm_last_doc_name [00:00:08]save OK [00:00:08]Clear old archive folders... [00:00:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:00:08]tlvbuf is 01FAD3E0 [00:00:08]SAM_PROTO_ClearQueue [00:00:08]wFMCommunicate request_size=4 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 09 00 00 [00:00:08]Write to MH i2c: E2 08 00 B2 32 80 09 00 00 00 00 00 00 56 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 B2 32 00 90 00 58 [00:00:08]RAPDU: 90 00 [00:00:08]wFMCommunicate OK [00:00:08]SAM_PROTO_ClearQueue done [00:00:08]KKMCreateOFDPacket [00:00:08]OFDProtocolAddRootSTLVToBuf [00:00:08]FM_MakeSignedData [00:00:08]FM_MakeSignedData [00:00:08]SAM_PROTO_SignData [00:00:08]wFMCommunicate request_size=4 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 0D 01 02 [00:00:08]Write to MH i2c: E2 08 00 B3 32 80 0D 01 02 00 00 00 00 5E [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 B3 32 00 90 00 59 [00:00:08]RAPDU: 90 00 [00:00:08]wFMCommunicate OK [00:00:08]wFMCommunicate request_size=255 [00:00:08]MH_SAM_APDU [00:00: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 8A DF 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 60 02 00 35 04 06 00 69 [00:00:08]Write to MH i2c: E2 02 01 B4 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 8A DF 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 60 02 00 35 04 06 00 69 00 00 C7 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 03 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 03 00 B4 32 00 90 00 5A [00:00:09]RAPDU: 90 00 [00:00:09]wFMCommunicate OK [00:00:09]wFMCommunicate request_size=10 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 0D 02 02 05 77 E3 4E F1 5D [00:00:09]Write to MH i2c: E2 0D 00 B5 32 80 0D 02 02 05 00 77 E3 4E F1 5D 00 00 61 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 03 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 03 00 B5 32 00 90 00 5B [00:00:09]RAPDU: 90 00 [00:00:09]wFMCommunicate OK [00:00:09]wFMCommunicate request_size=4 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 0D 03 02 [00:00:09]Write to MH i2c: E2 08 00 B6 32 80 0D 03 02 00 00 00 00 63 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 0B 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 0B 00 B6 32 00 8A A7 BC A4 FC 9D 4A 3D 90 00 15 [00:00:09]RAPDU: 8A A7 BC A4 FC 9D 4A 3D 90 00 [00:00:09]wFMCommunicate OK [00:00:09]SAM_PROTO_SignData done [00:00:09]FM_MakeSignedData done [00:00:09]CreateOFDProtocolMessage [00:00:09]wFMCommunicate request_size=4 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 11 00 00 [00:00:09]Write to MH i2c: E2 08 00 B7 32 80 11 00 00 00 00 00 00 63 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 17 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 17 00 B7 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B8 [00:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:00:09]wFMCommunicate OK [00:00:09]CreateOFDProtocolMessage done [00:00:09]OFDSenderStorePacket 155719 [00:00:09]StoreOFDPacket docnum=155719 [00:00:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 97 42 07 01 50 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 8A DF 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 60 02 00 35 04 06 00 69 77 E3 4E F1 5D 8A A7 BC A4 FC 9D 4A 3D [00:00:09]CheckFolder [00:00:09]dirname=/storage/ofd_packets [00:00:09]CheckFolder done [00:00:09]ProducePacketName [00:00:09]name=ofd_packets/00155719 [00:00:09]NVStorageSaveData ofd_packets/00155719 [00:00:09]File name is /storage/ofd_packets/00155719 [00:00:09]Write 301 bytes [00:00:09]NVStorageSaveData done [00:00:09]OFDSenderStorePacket done [00:00:09]KKMCreateOFDPacket done [00:00:09]NVStorageSaveData kkm_last_timestamp [00:00:09]File name is /storage/kkm_last_timestamp [00:00:09]Write 4 bytes [00:00:09]NVStorageSaveData done [00:00:09]ExternCall_PrintAddStr [00:00:09]wPrintStart [00:00:09]Write to MH i2c: 01 00 00 B8 32 EA [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 B8 32 00 00 00 00 00 FF 0F FF [00:00:09]RasterBufferAndPrint [00:00:09]line Счет N : (1)98527 [00:00:09]line ИНН: 02508201610067 [00:00:09]line Контрольно-Кассовый Чек [00:00:09]line ПРОДАЖА [00:00:09]line ТРК (МРК, ГНК) : 21 [00:00:09]line Товар: 2710124130 [00:00:09]line Аи-92-К-5 [00:00:09]line 10.470 * 66.90 [00:00:09]line = 700.44 [00:00:09]line НДС 12% НСП 1% [00:00:09]line > о реализуемом товаре [00:00:09]line ИТОГО: 700.44 [00:00:09]line НСП 1% : 6.20 [00:00:09]line НДС 12% : 74.38 [00:00:09]line Наличными: 0.00 [00:00:09]line Безнал.: 700.44 [00:00:09]line Место: АЗС № 143 "Партнер Нефть" [00:00:09]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [00:00:09]line СНО: Общий режим [00:00:09]line Чек 344 25.10.2024 00:00 [00:00:09]line Смена: 534 ФФД: 1.0 [00:00:09]line ЗНМ: 0300000096 [00:00:09]line РНМ: 0000000000091693 [00:00:09]line Версия ККМ: 001 [00:00:09]line Платежная система: Mbank [00:00:09]line ФМ: 0000000000871792 [00:00:09]line ФД: 155719 [00:00:09]line ФПД: 115963635626333 [00:00:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T000010&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155719&fm=115963635626333&tin=02508201610067®Number=0000000000091693&sum=70044 [00:00:09]written 0, free lines is 4095 [00:00:09]OFD Sender: Processing packet 155719 [packets to send 31, broken 30] [00:00:09]ProducePacketName [00:00:09]name=ofd_packets/00155719 [00:00:09]OFD Sender: To server: pG, [00:00:09]CommunicateWithHost lk.salyk.kg:30040 [00:00:09]ConnectInit lk.salyk.kg [00:00:09]Write to MH i2c: 01 00 00 E1 32 13 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 01 07 00 E1 32 00 00 00 00 00 F6 0C 1C [00:00:09]RasterBufferAndPrint [00:00:09]line [00:00:09]line [00:00:09]line [00:00:09]line [00:00:09]line [00:00:09]written 0, free lines is 3326 [00:00:09]Connected sock=10 [00:00:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 97 42 07 01 50 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 8A DF 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 60 02 00 35 04 06 00 69 77 E3 4E F1 5D 8A A7 BC A4 FC 9D 4A 3D [00:00:09]process_action close_receipt done [00:00:09]requested_data is exist [00:00:09]produce_requested_data [00:00:09]requested_item fm.sn is exist - process it [00:00:09]wFMCommunicate request_size=4 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 11 00 00 [00:00:09]Write to MH i2c: E2 08 00 E8 32 80 11 00 00 00 00 00 00 94 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 17 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 17 00 E8 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E9 [00:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:00:09]wFMCommunicate OK [00:00:09]requested_item fd.num is exist - process it [00:00:09]SAM_PROTO_GetFieldsCounters [00:00:09]wFMCommunicate request_size=4 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 13 00 00 [00:00:09]Write to MH i2c: E2 08 00 E9 32 80 13 00 00 00 00 00 00 97 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 62 00 [00:00:09]MH_I2C_Read... [00:00: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 39 32 4F 00 00 00 28 45 47 00 7F 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 60 02 00 F4 03 04 00 01 85 1A 67 B6 04 01 00 00 83 CC 28 70 C1 2B 39 21 [00:00:09]CommunicateWithHost err = 0 [00:00:09]CheckOFDResponse [00:00:09]1017 (14) - 77093643461234 [00:00:09]1041 (16) - 0000000000871792 [00:00:09]1040 (4) - 155719 [00:00:09]1012 (4) - 24.10.2024 17:33 [00:00:09]1206 (1) - 0 [00:00:09]OFD Sender: Remove packet 155719 [00:00:09]ProducePacketName [00:00:09]name=ofd_packets/00155719 [00:00:09]NVStorageDeleteData [00:00:09]Read from MH i2c: E2 62 00 E9 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 47 60 02 00 0E 04 04 00 16 02 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 89 [00:00:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 47 60 02 00 0E 04 04 00 16 02 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 [00:00:09]wFMCommunicate OK [00:00:09]SAM_PROTO_GetFieldsCounters done [00:00:09]requested_item shift.num is exist - process it [00:00:09]requested_item shift.opened is exist - process it [00:00:09]req_shift_opened [00:00:09]FM_GetShiftState [00:00:09]SAM_PROTO_GetShiftState [00:00:09]wFMCommunicate request_size=4 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 13 01 00 [00:00:09]Write to MH i2c: E2 08 00 EA 32 80 13 01 00 00 00 00 00 99 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 0E 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 0E 00 EA 32 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 E6 [00:00:10]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [00:00:10]wFMCommunicate OK [00:00:10]SAM_PROTO_GetShiftState done [00:00:10]FM_GetShiftState done [00:00:10]req_shift_opened done [00:00:10]requested_item shift.open_date is exist - process it [00:00:10]req_shift_open_date [00:00:10]req_shift_open_date done [00:00:10]produce_requested_data done [00:00:10]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155719,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [00:00:10]process_action_free close_receipt [00:00:10]json_value_free [00:00:10]json_value_free done [00:00:10]process_json_proto returns [00:00:10]Send response to host [00:00:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155719,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [00:00:10]free response buf [00:00:10]execute_script done [00:00:10]execute_script returns [00:00:10]free content buf [00:00:10]Sock 8.Close socket [00:00:10]Sock 8.Thread stoped [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:33]accept exits with 9 [00:01:33]New connection [00:01:33]New thread 3066637668 created [00:01:33]Thread 3066781028 joined [00:01:33]Waiting for new connection... [00:01:33] Sock 9.Parse request [00:01:33]Sock 9.Check first char [00:01:33]Sock 9.First char is OK [00:01:33]request: POST /json_proto HTTP/1.0 [00:01:33]Method: POST [00:01:33]URL: /json_proto [00:01:33]Method is POST - this is cgi request [00:01:33]url: /json_proto [00:01:33]query_string will be loaded in cgi processing [00:01:33]execute_cgi json_proto POST (null) [00:01:33]execute_cgi path=json_proto method=POST [00:01:33]POST find Content-Length [00:01:33]Host: 172.17.63.3:8080 [00:01:33]Content-Length: 676 [00:01:33]Content-Type: application/json [00:01:33] [00:01:33]POST finish read [00:01:33]Found Content-Length = 676 [00:01:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:33]execute_script... [00:01: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)98528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:33]POST & json_proto [00:01:33]process_json_proto [00:01:33]json parsed OK: [00:01:33]protocol is kg_v1.0 [00:01:33]action value=close_receipt [00:01:33]process_action close_receipt [00:01:33]cmd_close_receipt [00:01:33]MH_GetDate [00:01:33]Write to MH i2c: F0 00 00 EB 32 0C [00:01:33]Write i2c OK [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: F0 [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: F0 09 00 [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: F0 09 00 EB 32 00 DF DF 1A 67 50 D1 6C 64 45 [00:01:33]GetLastDocTimeStamp 1729814410 [00:01:33]current date 1729814495 [00:01:33]FM_GetShiftState [00:01:33]SAM_PROTO_GetShiftState [00:01:33]wFMCommunicate request_size=4 [00:01:33]MH_SAM_APDU [00:01:33]CAPDU: 80 13 01 00 [00:01:33]Write to MH i2c: E2 08 00 EC 32 80 13 01 00 00 00 00 00 9B [00:01:33]Write i2c OK [00:01:33]MH_I2C_Read... [00:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:33]Read from MH i2c: E2 [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: E2 0E 00 [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: E2 0E 00 EC 32 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 E8 [00:01:33]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [00:01:33]wFMCommunicate OK [00:01:33]SAM_PROTO_GetShiftState done [00:01:33]FM_GetShiftState done [00:01:33]opened in 1729729836 [00:01:33]opened+sec_in_day 1729816236 [00:01:33]quantity*price = 30038 [00:01:33]sum+1 = 30039 [00:01:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 345 25.10.2024 00:01 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155720 ФПД: 12384124578652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T000135&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155720&fm=12384124578652&tin=02508201610067®Number=0000000000091693&sum=30000 [00:01:34]StoreToDocumentArchive [00:01:34]shift 534 fd 155720 [00:01:34]save to /storage/0534/doc_00155720 [00:01:34]save last doc name /storage/0534/doc_00155720 to /storage/kkm_last_doc_name [00:01:34]save OK [00:01:34]Clear old archive folders... [00:01:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:01:34]tlvbuf is B6F2EA10 [00:01:34]SAM_PROTO_ClearQueue [00:01:34]wFMCommunicate request_size=4 [00:01:34]MH_SAM_APDU [00:01:34]CAPDU: 80 09 00 00 [00:01:34]Write to MH i2c: E2 08 00 F9 32 80 09 00 00 00 00 00 00 9D [00:01:34]Write i2c OK [00:01:34]MH_I2C_Read... [00:01:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:34]Read from MH i2c: E2 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 03 00 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 03 00 F9 32 00 90 00 9F [00:01:34]RAPDU: 90 00 [00:01:34]wFMCommunicate OK [00:01:34]SAM_PROTO_ClearQueue done [00:01:34]KKMCreateOFDPacket [00:01:34]OFDProtocolAddRootSTLVToBuf [00:01:34]FM_MakeSignedData [00:01:34]FM_MakeSignedData [00:01:34]SAM_PROTO_SignData [00:01:34]wFMCommunicate request_size=4 [00:01:34]MH_SAM_APDU [00:01:34]CAPDU: 80 0D 01 02 [00:01:34]Write to MH i2c: E2 08 00 FA 32 80 0D 01 02 00 00 00 00 A5 [00:01:34]Write i2c OK [00:01:34]MH_I2C_Read... [00:01:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:34]Read from MH i2c: E2 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 03 00 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 03 00 FA 32 00 90 00 A0 [00:01:34]RAPDU: 90 00 [00:01:34]wFMCommunicate OK [00:01:34]wFMCommunicate request_size=255 [00:01:34]MH_SAM_APDU [00:01: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 DF DF 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 60 02 00 35 04 06 00 0B [00:01:34]Write to MH i2c: E2 02 01 FB 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 DF DF 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 60 02 00 35 04 06 00 0B 00 00 93 [00:01:34]Write i2c OK [00:01:34]MH_I2C_Read... [00:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:34]Read from MH i2c: E2 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 03 00 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 03 00 FB 32 00 90 00 A1 [00:01:34]RAPDU: 90 00 [00:01:34]wFMCommunicate OK [00:01:34]wFMCommunicate request_size=10 [00:01:34]MH_SAM_APDU [00:01:34]CAPDU: 80 0D 02 02 05 43 67 58 AB 5C [00:01:34]Write to MH i2c: E2 0D 00 FC 32 80 0D 02 02 05 00 43 67 58 AB 5C 00 00 BB [00:01:34]Write i2c OK [00:01:34]MH_I2C_Read... [00:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:34]Read from MH i2c: E2 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 03 00 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 03 00 FC 32 00 90 00 A2 [00:01:34]RAPDU: 90 00 [00:01:34]wFMCommunicate OK [00:01:34]wFMCommunicate request_size=4 [00:01:34]MH_SAM_APDU [00:01:34]CAPDU: 80 0D 03 02 [00:01:34]Write to MH i2c: E2 08 00 FD 32 80 0D 03 02 00 00 00 00 AA [00:01:34]Write i2c OK [00:01:34]MH_I2C_Read... [00:01:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:34]Read from MH i2c: E2 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 0B 00 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 0B 00 FD 32 00 55 3C D8 1E 6B 7F 7C 2E 90 00 C6 [00:01:34]RAPDU: 55 3C D8 1E 6B 7F 7C 2E 90 00 [00:01:34]wFMCommunicate OK [00:01:34]SAM_PROTO_SignData done [00:01:34]FM_MakeSignedData done [00:01:34]CreateOFDProtocolMessage [00:01:34]wFMCommunicate request_size=4 [00:01:34]MH_SAM_APDU [00:01:34]CAPDU: 80 11 00 00 [00:01:34]Write to MH i2c: E2 08 00 FE 32 80 11 00 00 00 00 00 00 AA [00:01:34]Write i2c OK [00:01:34]MH_I2C_Read... [00:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:34]Read from MH i2c: E2 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 17 00 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: E2 17 00 FE 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FF [00:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:01:34]wFMCommunicate OK [00:01:34]CreateOFDProtocolMessage done [00:01:34]OFDSenderStorePacket 155720 [00:01:34]StoreOFDPacket docnum=155720 [00:01:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 97 82 07 01 E2 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 DF DF 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 60 02 00 35 04 06 00 0B 43 67 58 AB 5C 55 3C D8 1E 6B 7F 7C 2E [00:01:34]CheckFolder [00:01:34]dirname=/storage/ofd_packets [00:01:34]CheckFolder done [00:01:34]ProducePacketName [00:01:34]name=ofd_packets/00155720 [00:01:34]NVStorageSaveData ofd_packets/00155720 [00:01:34]File name is /storage/ofd_packets/00155720 [00:01:34]Write 301 bytes [00:01:34]NVStorageSaveData done [00:01:34]OFDSenderStorePacket done [00:01:34]KKMCreateOFDPacket done [00:01:34]NVStorageSaveData kkm_last_timestamp [00:01:34]File name is /storage/kkm_last_timestamp [00:01:34]Write 4 bytes [00:01:34]NVStorageSaveData done [00:01:34]ExternCall_PrintAddStr [00:01:34]wPrintStart [00:01:34]Write to MH i2c: 01 00 00 FF 32 31 [00:01:34]Write i2c OK [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: 01 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: 01 07 00 [00:01:34]MH_I2C_Read... [00:01:34]Read from MH i2c: 01 07 00 FF 32 00 00 00 00 00 FF 0F 46 [00:01:34]RasterBufferAndPrint [00:01:34]line Счет N : (1)98528 [00:01:34]line ИНН: 02508201610067 [00:01:34]line Контрольно-Кассовый Чек [00:01:34]line ПРОДАЖА [00:01:34]line ТРК (МРК, ГНК) : 31 [00:01:34]line Товар: 2710124130 [00:01:34]line Аи-92-К-5 [00:01:34]line 4.490 * 66.90 [00:01:34]line = 300.38 [00:01:34]line НДС 12% НСП 1% [00:01:34]line > о реализуемом товаре [00:01:34]line ОКРУГЛЕНИЕ: -0.38 [00:01:34]line ИТОГО: 300.00 [00:01:34]line Внесено: 300.00 [00:01:34]line СДАЧА: 0.00 [00:01:34]line НСП 1% : 2.66 [00:01:34]line НДС 12% : 31.90 [00:01:34]line Наличными: 300.00 [00:01:34]line Безнал.: 0.00 [00:01:34]line Место: АЗС № 143 "Партнер Нефть" [00:01:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [00:01:34]line СНО: Общий режим [00:01:34]line Чек 345 25.10.2024 00:01 [00:01:34]line Смена: 534 ФФД: 1.0 [00:01:34]line ЗНМ: 0300000096 [00:01:34]line РНМ: 0000000000091693 [00:01:34]line Версия ККМ: 001 [00:01:34]line ФМ: 0000000000871792 [00:01:34]line ФД: 155720 [00:01:34]line ФПД: 12384124578652 [00:01:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T000135&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155720&fm=12384124578652&tin=02508201610067®Number=0000000000091693&sum=30000 [00:01:35]OFD Sender: Processing packet 155720 [packets to send 31, broken 30] [00:01:35]ProducePacketName [00:01:35]name=ofd_packets/00155720 [00:01:35]OFD Sender: To server: pG, [00:01:35]CommunicateWithHost lk.salyk.kg:30040 [00:01:35]ConnectInit lk.salyk.kg [00:01:35]written 0, free lines is 4095 [00:01:35]Connected sock=10 [00:01: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 39 32 0F 01 00 00 97 82 07 01 E2 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 DF DF 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 60 02 00 35 04 06 00 0B 43 67 58 AB 5C 55 3C D8 1E 6B 7F 7C 2E [00:01: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 39 32 4F 00 00 00 5C 25 47 00 07 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 60 02 00 F4 03 04 00 57 85 1A 67 B6 04 01 00 00 20 81 79 AC 9D 79 AF DD [00:01:35]CommunicateWithHost err = 0 [00:01:35]CheckOFDResponse [00:01:35]1017 (14) - 77093643461234 [00:01:35]1041 (16) - 0000000000871792 [00:01:35]1040 (4) - 155720 [00:01:35]1012 (4) - 24.10.2024 17:35 [00:01:35]1206 (1) - 0 [00:01:35]OFD Sender: Remove packet 155720 [00:01:35]ProducePacketName [00:01:35]name=ofd_packets/00155720 [00:01:35]NVStorageDeleteData [00:01:35]Write to MH i2c: 01 00 00 2A 33 5D [00:01:35]Write i2c OK [00:01:35]MH_I2C_Read... [00:01:35]Read from MH i2c: 01 [00:01:35]MH_I2C_Read... [00:01:35]Read from MH i2c: 01 07 00 [00:01:35]MH_I2C_Read... [00:01:35]Read from MH i2c: 01 07 00 2A 33 00 00 00 00 00 EB 0C 5B [00:01:35]RasterBufferAndPrint [00:01:35]line [00:01:35]line [00:01:35]line [00:01:35]line [00:01:35]line [00:01:35]written 0, free lines is 3313 [00:01:35]process_action close_receipt done [00:01:35]requested_data is exist [00:01:35]produce_requested_data [00:01:35]requested_item fm.sn is exist - process it [00:01:35]wFMCommunicate request_size=4 [00:01:35]MH_SAM_APDU [00:01:35]CAPDU: 80 11 00 00 [00:01:35]Write to MH i2c: E2 08 00 31 33 80 11 00 00 00 00 00 00 DE [00:01:35]Write i2c OK [00:01:35]MH_I2C_Read... [00:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:35]Read from MH i2c: E2 [00:01:35]MH_I2C_Read... [00:01:35]Read from MH i2c: E2 17 00 [00:01:35]MH_I2C_Read... [00:01:35]Read from MH i2c: E2 17 00 31 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 33 [00:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:01:35]wFMCommunicate OK [00:01:35]requested_item fd.num is exist - process it [00:01:35]SAM_PROTO_GetFieldsCounters [00:01:35]wFMCommunicate request_size=4 [00:01:35]MH_SAM_APDU [00:01:35]CAPDU: 80 13 00 00 [00:01:35]Write to MH i2c: E2 08 00 32 33 80 13 00 00 00 00 00 00 E1 [00:01:35]Write i2c OK [00:01:35]MH_I2C_Read... [00:01:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:35]Read from MH i2c: E2 [00:01:35]MH_I2C_Read... [00:01:35]Read from MH i2c: E2 62 00 [00:01:35]MH_I2C_Read... [00:01:35]Read from MH i2c: E2 62 00 32 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 48 60 02 00 0E 04 04 00 16 02 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 D7 [00:01: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 48 60 02 00 0E 04 04 00 16 02 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 [00:01:35]wFMCommunicate OK [00:01:35]SAM_PROTO_GetFieldsCounters done [00:01:35]requested_item shift.num is exist - process it [00:01:35]requested_item shift.opened is exist - process it [00:01:35]req_shift_opened [00:01:35]FM_GetShiftState [00:01:35]SAM_PROTO_GetShiftState [00:01:35]wFMCommunicate request_size=4 [00:01:35]MH_SAM_APDU [00:01:35]CAPDU: 80 13 01 00 [00:01:35]Write to MH i2c: E2 08 00 33 33 80 13 01 00 00 00 00 00 E3 [00:01:35]Write i2c OK [00:01:35]MH_I2C_Read... [00:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:35]Read from MH i2c: E2 [00:01:35]MH_I2C_Read... [00:01:35]Read from MH i2c: E2 0E 00 [00:01:35]MH_I2C_Read... [00:01:35]Read from MH i2c: E2 0E 00 33 33 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 30 [00:01:35]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [00:01:35]wFMCommunicate OK [00:01:35]SAM_PROTO_GetShiftState done [00:01:35]FM_GetShiftState done [00:01:35]req_shift_opened done [00:01:35]requested_item shift.open_date is exist - process it [00:01:35]req_shift_open_date [00:01:35]req_shift_open_date done [00:01:35]produce_requested_data done [00:01:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155720,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [00:01:35]process_action_free close_receipt [00:01:35]json_value_free [00:01:35]json_value_free done [00:01:35]process_json_proto returns [00:01:35]Send response to host [00:01:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155720,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [00:01:35]free response buf [00:01:35]execute_script done [00:01:35]execute_script returns [00:01:35]free content buf [00:01:35]Sock 9.Close socket [00:01:35]Sock 9.Thread stoped [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02: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]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:41]OFD Sender: No OFD packet to send [00:09:46]OFD Sender: No OFD packet to send [00:09:51]OFD Sender: No OFD packet to send [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:10]accept exits with 8 [00:10:10]New connection [00:10:10]New thread 3066781028 created [00:10:10]Thread 3066637668 joined [00:10:10]Waiting for new connection... [00:10:10] Sock 8.Parse request [00:10:10]Sock 8.Check first char [00:10:10]Sock 8.First char is OK [00:10:10]request: POST /json_proto HTTP/1.0 [00:10:10]Method: POST [00:10:10]URL: /json_proto [00:10:10]Method is POST - this is cgi request [00:10:10]url: /json_proto [00:10:10]query_string will be loaded in cgi processing [00:10:10]execute_cgi json_proto POST (null) [00:10:10]execute_cgi path=json_proto method=POST [00:10:10]POST find Content-Length [00:10:10]Host: 172.17.63.3:8080 [00:10:10]Content-Length: 676 [00:10:10]Content-Type: application/json [00:10:10] [00:10:10]POST finish read [00:10:10]Found Content-Length = 676 [00:10:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:10]execute_script... [00:10:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:10]POST & json_proto [00:10:10]process_json_proto [00:10:10]json parsed OK: [00:10:10]protocol is kg_v1.0 [00:10:10]action value=close_receipt [00:10:10]process_action close_receipt [00:10:10]cmd_close_receipt [00:10:10]MH_GetDate [00:10:10]Write to MH i2c: F0 00 00 34 33 56 [00:10:10]Write i2c OK [00:10:10]MH_I2C_Read... [00:10:10]Read from MH i2c: F0 [00:10:10]MH_I2C_Read... [00:10:10]Read from MH i2c: F0 09 00 [00:10:10]MH_I2C_Read... [00:10:10]Read from MH i2c: F0 09 00 34 33 00 E5 E1 1A 67 50 D1 6C 64 97 [00:10:10]GetLastDocTimeStamp 1729814495 [00:10:10]current date 1729815013 [00:10:10]FM_GetShiftState [00:10:10]SAM_PROTO_GetShiftState [00:10:10]wFMCommunicate request_size=4 [00:10:10]MH_SAM_APDU [00:10:10]CAPDU: 80 13 01 00 [00:10:10]Write to MH i2c: E2 08 00 35 33 80 13 01 00 00 00 00 00 E5 [00:10:10]Write i2c OK [00:10:10]MH_I2C_Read... [00:10:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:10]Read from MH i2c: E2 [00:10:10]MH_I2C_Read... [00:10:10]Read from MH i2c: E2 0E 00 [00:10:10]MH_I2C_Read... [00:10:10]Read from MH i2c: E2 0E 00 35 33 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 32 [00:10:10]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [00:10:10]wFMCommunicate OK [00:10:10]SAM_PROTO_GetShiftState done [00:10:10]FM_GetShiftState done [00:10:10]opened in 1729729836 [00:10:10]opened+sec_in_day 1729816236 [00:10:10]quantity*price = 50041 [00:10:10]sum+1 = 50042 [00:10:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 346 25.10.2024 00:10 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155721 ФПД: 230511260201237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T001013&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155721&fm=230511260201237&tin=02508201610067®Number=0000000000091693&sum=50000 [00:10:11]StoreToDocumentArchive [00:10:11]shift 534 fd 155721 [00:10:11]save to /storage/0534/doc_00155721 [00:10:11]save last doc name /storage/0534/doc_00155721 to /storage/kkm_last_doc_name [00:10:11]save OK [00:10:11]Clear old archive folders... [00:10:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:10:11]tlvbuf is 01F296F0 [00:10:11]SAM_PROTO_ClearQueue [00:10:11]wFMCommunicate request_size=4 [00:10:11]MH_SAM_APDU [00:10:11]CAPDU: 80 09 00 00 [00:10:11]Write to MH i2c: E2 08 00 42 33 80 09 00 00 00 00 00 00 E7 [00:10:11]Write i2c OK [00:10:11]MH_I2C_Read... [00:10:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:10:11]Read from MH i2c: E2 [00:10:11]MH_I2C_Read... [00:10:11]Read from MH i2c: E2 03 00 [00:10:11]MH_I2C_Read... [00:10:11]Read from MH i2c: E2 03 00 42 33 00 90 00 E9 [00:10:11]RAPDU: 90 00 [00:10:11]wFMCommunicate OK [00:10:11]SAM_PROTO_ClearQueue done [00:10:11]KKMCreateOFDPacket [00:10:11]OFDProtocolAddRootSTLVToBuf [00:10:11]FM_MakeSignedData [00:10:11]FM_MakeSignedData [00:10:11]SAM_PROTO_SignData [00:10:11]wFMCommunicate request_size=4 [00:10:11]MH_SAM_APDU [00:10:11]CAPDU: 80 0D 01 02 [00:10:11]Write to MH i2c: E2 08 00 43 33 80 0D 01 02 00 00 00 00 EF [00:10:11]Write i2c OK [00:10:11]MH_I2C_Read... [00:10:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:10:11]Read from MH i2c: E2 [00:10:11]MH_I2C_Read... [00:10:11]Read from MH i2c: E2 03 00 [00:10:11]MH_I2C_Read... [00:10:11]Read from MH i2c: E2 03 00 43 33 00 90 00 EA [00:10:11]RAPDU: 90 00 [00:10:11]wFMCommunicate OK [00:10:11]wFMCommunicate request_size=255 [00:10:11]MH_SAM_APDU [00:10:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 E5 E1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 60 02 00 35 04 06 00 D1 [00:10:11]Write to MH i2c: E2 02 01 44 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 E5 E1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 60 02 00 35 04 06 00 D1 00 00 B9 [00:10:11]Write i2c OK [00:10:11]MH_I2C_Read... [00:10:12]Read from MH i2c: E2 [00:10:12]MH_I2C_Read... [00:10:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:12]Read from MH i2c: E2 03 00 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: E2 03 00 44 33 00 90 00 EB [00:10:12]RAPDU: 90 00 [00:10:12]wFMCommunicate OK [00:10:12]wFMCommunicate request_size=10 [00:10:12]MH_SAM_APDU [00:10:12]CAPDU: 80 0D 02 02 05 A6 15 C7 F1 15 [00:10:12]Write to MH i2c: E2 0D 00 45 33 80 0D 02 02 05 00 A6 15 C7 F1 15 00 00 84 [00:10:12]Write i2c OK [00:10:12]MH_I2C_Read... [00:10:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:12]Read from MH i2c: E2 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: E2 03 00 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: E2 03 00 45 33 00 90 00 EC [00:10:12]RAPDU: 90 00 [00:10:12]wFMCommunicate OK [00:10:12]wFMCommunicate request_size=4 [00:10:12]MH_SAM_APDU [00:10:12]CAPDU: 80 0D 03 02 [00:10:12]Write to MH i2c: E2 08 00 46 33 80 0D 03 02 00 00 00 00 F4 [00:10:12]Write i2c OK [00:10:12]MH_I2C_Read... [00:10:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:10:12]Read from MH i2c: E2 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: E2 0B 00 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: E2 0B 00 46 33 00 69 DA 96 BF 16 C6 B2 F8 90 00 13 [00:10:12]RAPDU: 69 DA 96 BF 16 C6 B2 F8 90 00 [00:10:12]wFMCommunicate OK [00:10:12]SAM_PROTO_SignData done [00:10:12]FM_MakeSignedData done [00:10:12]CreateOFDProtocolMessage [00:10:12]wFMCommunicate request_size=4 [00:10:12]MH_SAM_APDU [00:10:12]CAPDU: 80 11 00 00 [00:10:12]Write to MH i2c: E2 08 00 47 33 80 11 00 00 00 00 00 00 F4 [00:10:12]Write i2c OK [00:10:12]MH_I2C_Read... [00:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:12]Read from MH i2c: E2 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: E2 17 00 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: E2 17 00 47 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 49 [00:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:10:12]wFMCommunicate OK [00:10:12]CreateOFDProtocolMessage done [00:10:12]OFDSenderStorePacket 155721 [00:10:12]StoreOFDPacket docnum=155721 [00:10:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 52 DB 07 01 7F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 E5 E1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 60 02 00 35 04 06 00 D1 A6 15 C7 F1 15 69 DA 96 BF 16 C6 B2 F8 [00:10:12]CheckFolder [00:10:12]dirname=/storage/ofd_packets [00:10:12]CheckFolder done [00:10:12]ProducePacketName [00:10:12]name=ofd_packets/00155721 [00:10:12]NVStorageSaveData ofd_packets/00155721 [00:10:12]File name is /storage/ofd_packets/00155721 [00:10:12]Write 301 bytes [00:10:12]NVStorageSaveData done [00:10:12]OFDSenderStorePacket done [00:10:12]KKMCreateOFDPacket done [00:10:12]NVStorageSaveData kkm_last_timestamp [00:10:12]File name is /storage/kkm_last_timestamp [00:10:12]Write 4 bytes [00:10:12]NVStorageSaveData done [00:10:12]ExternCall_PrintAddStr [00:10:12]wPrintStart [00:10:12]Write to MH i2c: 01 00 00 48 33 7B [00:10:12]Write i2c OK [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: 01 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: 01 07 00 [00:10:12]MH_I2C_Read... [00:10:12]Read from MH i2c: 01 07 00 48 33 00 00 00 00 00 FF 0F 90 [00:10:12]RasterBufferAndPrint [00:10:12]line Счет N : (1)98529 [00:10:12]line ИНН: 02508201610067 [00:10:12]line Контрольно-Кассовый Чек [00:10:12]line ПРОДАЖА [00:10:12]line ТРК (МРК, ГНК) : 21 [00:10:12]line Товар: 2710124130 [00:10:12]line Аи-92-К-5 [00:10:12]line 7.480 * 66.90 [00:10:12]line = 500.41 [00:10:12]line НДС 12% НСП 1% [00:10:12]line > о реализуемом товаре [00:10:12]line ОКРУГЛЕНИЕ: -0.41 [00:10:12]line ИТОГО: 500.00 [00:10:12]line Внесено: 500.00 [00:10:12]line СДАЧА: 0.00 [00:10:12]line НСП 1% : 4.43 [00:10:12]line НДС 12% : 53.14 [00:10:12]line Наличными: 500.00 [00:10:12]line Безнал.: 0.00 [00:10:12]line Место: АЗС № 143 "Партнер Нефть" [00:10:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [00:10:12]line СНО: Общий режим [00:10:12]line Чек 346 25.10.2024 00:10 [00:10:12]line Смена: 534 ФФД: 1.0 [00:10:12]line ЗНМ: 0300000096 [00:10:12]line РНМ: 0000000000091693 [00:10:12]line Версия ККМ: 001 [00:10:12]line ФМ: 0000000000871792 [00:10:12]line ФД: 155721 [00:10:12]line ФПД: 230511260201237 [00:10:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T001013&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155721&fm=230511260201237&tin=02508201610067®Number=0000000000091693&sum=50000 [00:10:12]OFD Sender: Processing packet 155721 [packets to send 31, broken 30] [00:10:12]ProducePacketName [00:10:12]name=ofd_packets/00155721 [00:10:12]OFD Sender: To server: pG, [00:10:12]CommunicateWithHost lk.salyk.kg:30040 [00:10:12]ConnectInit lk.salyk.kg [00:10:12]written 0, free lines is 4095 [00:10:12]Connected sock=10 [00:10:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 52 DB 07 01 7F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 E5 E1 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 60 02 00 35 04 06 00 D1 A6 15 C7 F1 15 69 DA 96 BF 16 C6 B2 F8 [00:10:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 99 CE 47 00 AD 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 39 32 10 04 04 00 49 60 02 00 F4 03 04 00 5C 87 1A 67 B6 04 01 00 00 78 8E 14 0B E7 F1 BF 1A [00:10:12]CommunicateWithHost err = 0 [00:10:12]CheckOFDResponse [00:10:12]1017 (14) - 77093643461234 [00:10:12]1041 (16) - 0000000000871792 [00:10:12]1040 (4) - 155721 [00:10:12]1012 (4) - 24.10.2024 17:43 [00:10:12]1206 (1) - 0 [00:10:12]OFD Sender: Remove packet 155721 [00:10:12]ProducePacketName [00:10:12]name=ofd_packets/00155721 [00:10:12]NVStorageDeleteData [00:10:13]Write to MH i2c: 01 00 00 73 33 A6 [00:10:13]Write i2c OK [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: 01 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: 01 07 00 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: 01 07 00 73 33 00 00 00 00 00 CD 0C 86 [00:10:13]RasterBufferAndPrint [00:10:13]line [00:10:13]line [00:10:13]line [00:10:13]line [00:10:13]line [00:10:13]written 0, free lines is 3283 [00:10:13]process_action close_receipt done [00:10:13]requested_data is exist [00:10:13]produce_requested_data [00:10:13]requested_item fm.sn is exist - process it [00:10:13]wFMCommunicate request_size=4 [00:10:13]MH_SAM_APDU [00:10:13]CAPDU: 80 11 00 00 [00:10:13]Write to MH i2c: E2 08 00 7A 33 80 11 00 00 00 00 00 00 27 [00:10:13]Write i2c OK [00:10:13]MH_I2C_Read... [00:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:13]Read from MH i2c: E2 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 17 00 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 17 00 7A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7C [00:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:10:13]wFMCommunicate OK [00:10:13]requested_item fd.num is exist - process it [00:10:13]SAM_PROTO_GetFieldsCounters [00:10:13]wFMCommunicate request_size=4 [00:10:13]MH_SAM_APDU [00:10:13]CAPDU: 80 13 00 00 [00:10:13]Write to MH i2c: E2 08 00 7B 33 80 13 00 00 00 00 00 00 2A [00:10:13]Write i2c OK [00:10:13]MH_I2C_Read... [00:10:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:13]Read from MH i2c: E2 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 62 00 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 62 00 7B 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 49 60 02 00 0E 04 04 00 16 02 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 24 [00:10: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 49 60 02 00 0E 04 04 00 16 02 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 [00:10:13]wFMCommunicate OK [00:10:13]SAM_PROTO_GetFieldsCounters done [00:10:13]requested_item shift.num is exist - process it [00:10:13]requested_item shift.opened is exist - process it [00:10:13]req_shift_opened [00:10:13]FM_GetShiftState [00:10:13]SAM_PROTO_GetShiftState [00:10:13]wFMCommunicate request_size=4 [00:10:13]MH_SAM_APDU [00:10:13]CAPDU: 80 13 01 00 [00:10:13]Write to MH i2c: E2 08 00 7C 33 80 13 01 00 00 00 00 00 2C [00:10:13]Write i2c OK [00:10:13]MH_I2C_Read... [00:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:13]Read from MH i2c: E2 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 0E 00 [00:10:13]MH_I2C_Read... [00:10:13]Read from MH i2c: E2 0E 00 7C 33 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 79 [00:10:13]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [00:10:13]wFMCommunicate OK [00:10:13]SAM_PROTO_GetShiftState done [00:10:13]FM_GetShiftState done [00:10:13]req_shift_opened done [00:10:13]requested_item shift.open_date is exist - process it [00:10:13]req_shift_open_date [00:10:13]req_shift_open_date done [00:10:13]produce_requested_data done [00:10:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155721,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [00:10:13]process_action_free close_receipt [00:10:13]json_value_free [00:10:13]json_value_free done [00:10:13]process_json_proto returns [00:10:13]Send response to host [00:10:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155721,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [00:10:13]free response buf [00:10:13]execute_script done [00:10:13]execute_script returns [00:10:13]free content buf [00:10:13]Sock 8.Close socket [00:10:13]Sock 8.Thread stoped [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:35]accept exits with 9 [00:11:35]New connection [00:11:35]New thread 3066637668 created [00:11:35]Thread 3066781028 joined [00:11:35]Waiting for new connection... [00:11:35] Sock 9.Parse request [00:11:35]Sock 9.Check first char [00:11:35]Sock 9.First char is OK [00:11:35]request: POST /json_proto HTTP/1.0 [00:11:35]Method: POST [00:11:35]URL: /json_proto [00:11:35]Method is POST - this is cgi request [00:11:35]url: /json_proto [00:11:35]query_string will be loaded in cgi processing [00:11:35]execute_cgi json_proto POST (null) [00:11:35]execute_cgi path=json_proto method=POST [00:11:35]POST find Content-Length [00:11:35]Host: 172.17.63.3:8080 [00:11:35]Content-Length: 676 [00:11:35]Content-Type: application/json [00:11:35] [00:11:35]POST finish read [00:11:35]Found Content-Length = 676 [00:11:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:35]execute_script... [00:11:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:35]POST & json_proto [00:11:35]process_json_proto [00:11:35]json parsed OK: [00:11:35]protocol is kg_v1.0 [00:11:35]action value=close_receipt [00:11:35]process_action close_receipt [00:11:35]cmd_close_receipt [00:11:35]MH_GetDate [00:11:35]Write to MH i2c: F0 00 00 7D 33 9F [00:11:35]Write i2c OK [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: F0 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: F0 09 00 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: F0 09 00 7D 33 00 39 E2 1A 67 50 D1 6C 64 35 [00:11:35]GetLastDocTimeStamp 1729815013 [00:11:35]current date 1729815097 [00:11:35]FM_GetShiftState [00:11:35]SAM_PROTO_GetShiftState [00:11:35]wFMCommunicate request_size=4 [00:11:35]MH_SAM_APDU [00:11:35]CAPDU: 80 13 01 00 [00:11:35]Write to MH i2c: E2 08 00 7E 33 80 13 01 00 00 00 00 00 2E [00:11:35]Write i2c OK [00:11:35]MH_I2C_Read... [00:11:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:35]Read from MH i2c: E2 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 0E 00 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 0E 00 7E 33 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 7B [00:11:35]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [00:11:35]wFMCommunicate OK [00:11:35]SAM_PROTO_GetShiftState done [00:11:35]FM_GetShiftState done [00:11:35]opened in 1729729836 [00:11:35]opened+sec_in_day 1729816236 [00:11:35]quantity*price = 65026 [00:11:35]sum+1 = 65028 [00:11:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 347 25.10.2024 00:11 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155722 ФПД: 19827375057304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T001137&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155722&fm=19827375057304&tin=02508201610067®Number=0000000000091693&sum=65000 [00:11:36]StoreToDocumentArchive [00:11:36]shift 534 fd 155722 [00:11:36]save to /storage/0534/doc_00155722 [00:11:36]save last doc name /storage/0534/doc_00155722 to /storage/kkm_last_doc_name [00:11:36]save OK [00:11:36]Clear old archive folders... [00:11:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:11:36]tlvbuf is 01FEBB40 [00:11:36]SAM_PROTO_ClearQueue [00:11:36]wFMCommunicate request_size=4 [00:11:36]MH_SAM_APDU [00:11:36]CAPDU: 80 09 00 00 [00:11:36]Write to MH i2c: E2 08 00 8B 33 80 09 00 00 00 00 00 00 30 [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:11:36]Read from MH i2c: E2 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 03 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 03 00 8B 33 00 90 00 32 [00:11:36]RAPDU: 90 00 [00:11:36]wFMCommunicate OK [00:11:36]SAM_PROTO_ClearQueue done [00:11:36]KKMCreateOFDPacket [00:11:36]OFDProtocolAddRootSTLVToBuf [00:11:36]FM_MakeSignedData [00:11:36]FM_MakeSignedData [00:11:36]SAM_PROTO_SignData [00:11:36]wFMCommunicate request_size=4 [00:11:36]MH_SAM_APDU [00:11:36]CAPDU: 80 0D 01 02 [00:11:36]Write to MH i2c: E2 08 00 8C 33 80 0D 01 02 00 00 00 00 38 [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:11:36]Read from MH i2c: E2 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 03 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 03 00 8C 33 00 90 00 33 [00:11:36]RAPDU: 90 00 [00:11:36]wFMCommunicate OK [00:11:36]wFMCommunicate request_size=255 [00:11:36]MH_SAM_APDU [00:11:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 39 E2 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 60 02 00 35 04 06 00 12 [00:11:36]Write to MH i2c: E2 02 01 8D 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 39 E2 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 60 02 00 35 04 06 00 12 00 00 8D [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:36]Read from MH i2c: E2 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 03 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 03 00 8D 33 00 90 00 34 [00:11:36]RAPDU: 90 00 [00:11:36]wFMCommunicate OK [00:11:36]wFMCommunicate request_size=10 [00:11:36]MH_SAM_APDU [00:11:36]CAPDU: 80 0D 02 02 05 08 6B A5 A9 98 [00:11:36]Write to MH i2c: E2 0D 00 8E 33 80 0D 02 02 05 00 08 6B A5 A9 98 00 00 9E [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:36]Read from MH i2c: E2 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 03 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 03 00 8E 33 00 90 00 35 [00:11:36]RAPDU: 90 00 [00:11:36]wFMCommunicate OK [00:11:36]wFMCommunicate request_size=4 [00:11:36]MH_SAM_APDU [00:11:36]CAPDU: 80 0D 03 02 [00:11:36]Write to MH i2c: E2 08 00 8F 33 80 0D 03 02 00 00 00 00 3D [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:11:36]Read from MH i2c: E2 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 0B 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 0B 00 8F 33 00 08 B3 4C A0 B7 6A C3 2C 90 00 F5 [00:11:36]RAPDU: 08 B3 4C A0 B7 6A C3 2C 90 00 [00:11:36]wFMCommunicate OK [00:11:36]SAM_PROTO_SignData done [00:11:36]FM_MakeSignedData done [00:11:36]CreateOFDProtocolMessage [00:11:36]wFMCommunicate request_size=4 [00:11:36]MH_SAM_APDU [00:11:36]CAPDU: 80 11 00 00 [00:11:36]Write to MH i2c: E2 08 00 90 33 80 11 00 00 00 00 00 00 3D [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:36]Read from MH i2c: E2 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 17 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 17 00 90 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 92 [00:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:11:36]wFMCommunicate OK [00:11:36]CreateOFDProtocolMessage done [00:11:36]OFDSenderStorePacket 155722 [00:11:36]StoreOFDPacket docnum=155722 [00:11:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F0 19 07 01 69 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 39 E2 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 60 02 00 35 04 06 00 12 08 6B A5 A9 98 08 B3 4C A0 B7 6A C3 2C [00:11:36]CheckFolder [00:11:36]dirname=/storage/ofd_packets [00:11:36]CheckFolder done [00:11:36]ProducePacketName [00:11:36]name=ofd_packets/00155722 [00:11:36]NVStorageSaveData ofd_packets/00155722 [00:11:36]File name is /storage/ofd_packets/00155722 [00:11:36]Write 301 bytes [00:11:36]NVStorageSaveData done [00:11:36]OFDSenderStorePacket done [00:11:36]KKMCreateOFDPacket done [00:11:36]NVStorageSaveData kkm_last_timestamp [00:11:36]File name is /storage/kkm_last_timestamp [00:11:36]Write 4 bytes [00:11:36]NVStorageSaveData done [00:11:36]ExternCall_PrintAddStr [00:11:36]wPrintStart [00:11:36]Write to MH i2c: 01 00 00 91 33 C4 [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: 01 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: 01 07 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: 01 07 00 91 33 00 00 00 00 00 FF 0F D9 [00:11:36]RasterBufferAndPrint [00:11:36]line Счет N : (1)98530 [00:11:36]line ИНН: 02508201610067 [00:11:36]line Контрольно-Кассовый Чек [00:11:36]line ПРОДАЖА [00:11:36]line ТРК (МРК, ГНК) : 11 [00:11:36]line Товар: 2710124130 [00:11:36]line Аи-92-К-5 [00:11:36]line 9.720 * 66.90 [00:11:36]line = 650.27 [00:11:36]line НДС 12% НСП 1% [00:11:36]line > о реализуемом товаре [00:11:36]line ОКРУГЛЕНИЕ: -0.27 [00:11:36]line ИТОГО: 650.00 [00:11:36]line Внесено: 650.00 [00:11:36]line СДАЧА: 0.00 [00:11:36]line НСП 1% : 5.75 [00:11:36]line НДС 12% : 69.05 [00:11:36]line Наличными: 650.00 [00:11:36]line Безнал.: 0.00 [00:11:36]line Место: АЗС № 143 "Партнер Нефть" [00:11:36]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [00:11:36]line СНО: Общий режим [00:11:36]line Чек 347 25.10.2024 00:11 [00:11:36]line Смена: 534 ФФД: 1.0 [00:11:36]line ЗНМ: 0300000096 [00:11:36]line РНМ: 0000000000091693 [00:11:36]line Версия ККМ: 001 [00:11:36]line ФМ: 0000000000871792 [00:11:36]line ФД: 155722 [00:11:36]line ФПД: 19827375057304 [00:11:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T001137&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155722&fm=19827375057304&tin=02508201610067®Number=0000000000091693&sum=65000 [00:11:37]OFD Sender: Processing packet 155722 [packets to send 31, broken 30] [00:11:37]ProducePacketName [00:11:37]name=ofd_packets/00155722 [00:11:37]OFD Sender: To server: pG, [00:11:37]CommunicateWithHost lk.salyk.kg:30040 [00:11:37]ConnectInit lk.salyk.kg [00:11:37]written 0, free lines is 4095 [00:11:37]Connected sock=10 [00:11:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F0 19 07 01 69 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 39 E2 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 60 02 00 35 04 06 00 12 08 6B A5 A9 98 08 B3 4C A0 B7 6A C3 2C [00:11:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 61 0F 47 00 56 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 60 02 00 F4 03 04 00 B1 87 1A 67 B6 04 01 00 00 34 D9 CE 57 BA 2C 1B DC [00:11:37]CommunicateWithHost err = 0 [00:11:37]CheckOFDResponse [00:11:37]1017 (14) - 77093643461234 [00:11:37]1041 (16) - 0000000000871792 [00:11:37]1040 (4) - 155722 [00:11:37]1012 (4) - 24.10.2024 17:45 [00:11:37]1206 (1) - 0 [00:11:37]OFD Sender: Remove packet 155722 [00:11:37]ProducePacketName [00:11:37]name=ofd_packets/00155722 [00:11:37]NVStorageDeleteData [00:11:37]Write to MH i2c: 01 00 00 BC 33 EF [00:11:37]Write i2c OK [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: 01 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: 01 07 00 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: 01 07 00 BC 33 00 00 00 00 00 D1 0C D3 [00:11:37]RasterBufferAndPrint [00:11:37]line [00:11:37]line [00:11:37]line [00:11:37]line [00:11:37]line [00:11:37]written 0, free lines is 3289 [00:11:37]process_action close_receipt done [00:11:37]requested_data is exist [00:11:37]produce_requested_data [00:11:37]requested_item fm.sn is exist - process it [00:11:37]wFMCommunicate request_size=4 [00:11:37]MH_SAM_APDU [00:11:37]CAPDU: 80 11 00 00 [00:11:37]Write to MH i2c: E2 08 00 C3 33 80 11 00 00 00 00 00 00 70 [00:11:37]Write i2c OK [00:11:37]MH_I2C_Read... [00:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:37]Read from MH i2c: E2 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 17 00 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 17 00 C3 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C5 [00:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:11:37]wFMCommunicate OK [00:11:37]requested_item fd.num is exist - process it [00:11:37]SAM_PROTO_GetFieldsCounters [00:11:37]wFMCommunicate request_size=4 [00:11:37]MH_SAM_APDU [00:11:37]CAPDU: 80 13 00 00 [00:11:37]Write to MH i2c: E2 08 00 C4 33 80 13 00 00 00 00 00 00 73 [00:11:37]Write i2c OK [00:11:37]MH_I2C_Read... [00:11:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:37]Read from MH i2c: E2 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 62 00 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 62 00 C4 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4A 60 02 00 0E 04 04 00 16 02 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 71 [00:11:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4A 60 02 00 0E 04 04 00 16 02 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 [00:11:37]wFMCommunicate OK [00:11:37]SAM_PROTO_GetFieldsCounters done [00:11:37]requested_item shift.num is exist - process it [00:11:37]requested_item shift.opened is exist - process it [00:11:37]req_shift_opened [00:11:37]FM_GetShiftState [00:11:37]SAM_PROTO_GetShiftState [00:11:37]wFMCommunicate request_size=4 [00:11:37]MH_SAM_APDU [00:11:37]CAPDU: 80 13 01 00 [00:11:37]Write to MH i2c: E2 08 00 C5 33 80 13 01 00 00 00 00 00 75 [00:11:37]Write i2c OK [00:11:37]MH_I2C_Read... [00:11:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:37]Read from MH i2c: E2 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 0E 00 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 0E 00 C5 33 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 C2 [00:11:37]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [00:11:37]wFMCommunicate OK [00:11:37]SAM_PROTO_GetShiftState done [00:11:37]FM_GetShiftState done [00:11:37]req_shift_opened done [00:11:37]requested_item shift.open_date is exist - process it [00:11:37]req_shift_open_date [00:11:37]req_shift_open_date done [00:11:37]produce_requested_data done [00:11:37]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155722,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [00:11:37]process_action_free close_receipt [00:11:37]json_value_free [00:11:37]json_value_free done [00:11:37]process_json_proto returns [00:11:37]Send response to host [00:11:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155722,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [00:11:37]free response buf [00:11:37]execute_script done [00:11:37]execute_script returns [00:11:37]free content buf [00:11:37]Sock 9.Close socket [00:11:37]Sock 9.Thread stoped [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:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:55]ConnectInit Can't connect to host [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:17]accept exits with 8 [00:15:17]New connection [00:15:17]New thread 3066781028 created [00:15:17]Thread 3066637668 joined [00:15:17]Waiting for new connection... [00:15:17] Sock 8.Parse request [00:15:17]Sock 8.Check first char [00:15:17]Sock 8.First char is OK [00:15:17]request: POST /json_proto HTTP/1.0 [00:15:17]Method: POST [00:15:17]URL: /json_proto [00:15:17]Method is POST - this is cgi request [00:15:17]url: /json_proto [00:15:17]query_string will be loaded in cgi processing [00:15:17]execute_cgi json_proto POST (null) [00:15:17]execute_cgi path=json_proto method=POST [00:15:17]POST find Content-Length [00:15:17]Host: 172.17.63.3:8080 [00:15:17]Content-Length: 215 [00:15:17]Content-Type: application/json [00:15:17] [00:15:17]POST finish read [00:15:17]Found Content-Length = 215 [00:15:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:17]execute_script... [00:15:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:17]POST & json_proto [00:15:17]process_json_proto [00:15:17]json parsed OK: [00:15:17]protocol is kg_v1.0 [00:15:17]action value=get_value [00:15:17]process_action get_value [00:15:17]cmd_get_value [00:15:17]process_action get_value done [00:15:17]requested_data is exist [00:15:17]produce_requested_data [00:15:17]requested_item kkm.sn is exist - process it [00:15:17]requested_item kkm.ver is exist - process it [00:15:17]requested_item fm.sn is exist - process it [00:15:17]wFMCommunicate request_size=4 [00:15:17]MH_SAM_APDU [00:15:17]CAPDU: 80 11 00 00 [00:15:17]Write to MH i2c: E2 08 00 C6 33 80 11 00 00 00 00 00 00 73 [00:15:17]Write i2c OK [00:15:17]MH_I2C_Read... [00:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:17]Read from MH i2c: E2 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 17 00 [00:15:17]MH_I2C_Read... [00:15:17]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 39 32 90 00 C8 [00:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:15:17]wFMCommunicate OK [00:15:17]requested_item fd.num is exist - process it [00:15:17]SAM_PROTO_GetFieldsCounters [00:15:17]wFMCommunicate request_size=4 [00:15:17]MH_SAM_APDU [00:15:17]CAPDU: 80 13 00 00 [00:15:17]Write to MH i2c: E2 08 00 C7 33 80 13 00 00 00 00 00 00 76 [00:15:17]Write i2c OK [00:15:17]MH_I2C_Read... [00:15:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:17]Read from MH i2c: E2 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 62 00 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 62 00 C7 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4A 60 02 00 0E 04 04 00 16 02 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 74 [00:15:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4A 60 02 00 0E 04 04 00 16 02 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 [00:15:17]wFMCommunicate OK [00:15:17]SAM_PROTO_GetFieldsCounters done [00:15:17]requested_item shift.num is exist - process it [00:15:17]requested_item shift.opened is exist - process it [00:15:17]req_shift_opened [00:15:17]FM_GetShiftState [00:15:17]SAM_PROTO_GetShiftState [00:15:17]wFMCommunicate request_size=4 [00:15:17]MH_SAM_APDU [00:15:17]CAPDU: 80 13 01 00 [00:15:17]Write to MH i2c: E2 08 00 C8 33 80 13 01 00 00 00 00 00 78 [00:15:17]Write i2c OK [00:15:17]MH_I2C_Read... [00:15:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:17]Read from MH i2c: E2 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 0E 00 [00:15:17]MH_I2C_Read... [00:15:17]Read from MH i2c: E2 0E 00 C8 33 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 C5 [00:15:17]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [00:15:17]wFMCommunicate OK [00:15:17]SAM_PROTO_GetShiftState done [00:15:17]FM_GetShiftState done [00:15:17]req_shift_opened done [00:15:17]requested_item shift.open_date is exist - process it [00:15:17]req_shift_open_date [00:15:17]req_shift_open_date done [00:15:17]produce_requested_data done [00:15:17]produce_requested_data return {"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":155722,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [00:15:17]process_action_free get_value [00:15:17]json_value_free [00:15:17]json_value_free done [00:15:17]process_json_proto returns [00:15:17]Send response to host [00:15:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":155722,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [00:15:17]free response buf [00:15:17]execute_script done [00:15:17]execute_script returns [00:15:17]free content buf [00:15:17]Sock 8.Close socket [00:15:17]Sock 8.Thread stoped [00:15:17]accept exits with 9 [00:15:17]New connection [00:15:17]New thread 3066637668 created [00:15:17]Thread 3066781028 joined [00:15:17]Waiting for new connection... [00:15:17] Sock 9.Parse request [00:15:17]Sock 9.Check first char [00:15:17]Sock 9.First char is OK [00:15:17]request: POST /json_proto HTTP/1.0 [00:15:17]Method: POST [00:15:17]URL: /json_proto [00:15:17]Method is POST - this is cgi request [00:15:17]url: /json_proto [00:15:17]query_string will be loaded in cgi processing [00:15:17]execute_cgi json_proto POST (null) [00:15:17]execute_cgi path=json_proto method=POST [00:15:17]POST find Content-Length [00:15:17]Host: 172.17.63.3:8080 [00:15:17]Content-Length: 331 [00:15:17]Content-Type: application/json [00:15:17] [00:15:17]POST finish read [00:15:17]Found Content-Length = 331 [00:15:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:15:17]execute_script... [00:15:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:15:17]POST & json_proto [00:15:17]process_json_proto [00:15:17]json parsed OK: [00:15:17]protocol is kg_v1.0 [00:15:17]action value=get_value [00:15:17]process_action get_value [00:15:17]cmd_get_value [00:15:17]process_action get_value done [00:15:17]requested_data is exist [00:15:17]produce_requested_data [00:15:17]requested_item fm.sale.total is exist - process it [00:15:17]SAM_PROTO_GetFMData [00:15:17]wFMCommunicate request_size=4 [00:15:17]MH_SAM_APDU [00:15:17]CAPDU: 80 13 03 00 [00:15:17]Write to MH i2c: E2 08 00 C9 33 80 13 03 00 00 00 00 00 7B [00:15:17]Write i2c OK [00:15:17]MH_I2C_Read... [00:15:18]OFD Sender: No OFD packet to send [00:15:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:18]Read from MH i2c: E2 [00:15:18]MH_I2C_Read... [00:15:18]Read from MH i2c: E2 FD 00 [00:15:18]MH_I2C_Read... [00:15:18]Read from MH i2c: E2 FD 00 C9 33 00 C2 04 85 04 BE 04 6E 04 04 00 1E 5C 02 00 69 04 A3 00 6F 04 04 00 0F 5C 02 00 B1 04 05 00 40 AA 95 6E 02 70 04 05 00 E0 D1 EB 2D 02 72 04 04 00 60 D8 A9 40 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 9F DB 24 42 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 29 F6 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 CD [00:15:18]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 1E 5C 02 00 69 04 A3 00 6F 04 04 00 0F 5C 02 00 B1 04 05 00 40 AA 95 6E 02 70 04 05 00 E0 D1 EB 2D 02 72 04 04 00 60 D8 A9 40 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 9F DB 24 42 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 29 F6 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:15:18]wFMCommunicate OK [00:15:18]wFMCommunicate request_size=4 [00:15:18]MH_SAM_APDU [00:15:18]CAPDU: 80 17 00 00 [00:15:18]Write to MH i2c: E2 08 00 CA 33 80 17 00 00 00 00 00 00 7D [00:15:18]Write i2c OK [00:15:18]MH_I2C_Read... [00:15:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:18]Read from MH i2c: E2 [00:15:18]MH_I2C_Read... [00:15:18]Read from MH i2c: E2 FD 00 [00:15:18]MH_I2C_Read... [00:15:18]Read from MH i2c: E2 FD 00 CA 33 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 EC [00:15:18]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 [00:15:18]wFMCommunicate OK [00:15:18]wFMCommunicate request_size=4 [00:15:18]MH_SAM_APDU [00:15:18]CAPDU: 80 17 00 00 [00:15:18]Write to MH i2c: E2 08 00 CB 33 80 17 00 00 00 00 00 00 7E [00:15:18]Write i2c OK [00:15:18]MH_I2C_Read... [00:15:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:18]Read from MH i2c: E2 [00:15:18]MH_I2C_Read... [00:15:18]Read from MH i2c: E2 FD 00 [00:15:18]MH_I2C_Read... [00:15:18]Read from MH i2c: E2 FD 00 CB 33 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 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 90 00 2C [00:15:18]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 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 90 00 [00:15:18]wFMCommunicate OK [00:15:18]wFMCommunicate request_size=4 [00:15:18]MH_SAM_APDU [00:15:18]CAPDU: 80 17 00 00 [00:15:18]Write to MH i2c: E2 08 00 CC 33 80 17 00 00 00 00 00 00 7F [00:15:18]Write i2c OK [00:15:18]MH_I2C_Read... [00:15:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:19]Read from MH i2c: E2 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 FD 00 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 FD 00 CC 33 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FA [00:15:19]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:19]wFMCommunicate OK [00:15:19]wFMCommunicate request_size=4 [00:15:19]MH_SAM_APDU [00:15:19]CAPDU: 80 17 00 00 [00:15:19]Write to MH i2c: E2 08 00 CD 33 80 17 00 00 00 00 00 00 80 [00:15:19]Write i2c OK [00:15:19]MH_I2C_Read... [00:15:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:15:19]Read from MH i2c: E2 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 DF 00 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 DF 00 CD 33 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 60 [00:15:19]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:15:19]wFMCommunicate OK [00:15:19]SAM_PROTO_GetFMData done [00:15:19]requested_item fm.sale_refund.total is exist - process it [00:15:19]requested_item fm.buy.total is exist - process it [00:15:19]requested_item shift.sale.total is exist - process it [00:15:19]SAM_PROTO_GetShiftData [00:15:19]wFMCommunicate request_size=4 [00:15:19]MH_SAM_APDU [00:15:19]CAPDU: 80 13 02 00 [00:15:19]Write to MH i2c: E2 08 00 CE 33 80 13 02 00 00 00 00 00 7F [00:15:19]Write i2c OK [00:15:19]MH_I2C_Read... [00:15:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:15:19]Read from MH i2c: E2 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 FD 00 [00:15:19]MH_I2C_Read... [00:15:19]Read from MH i2c: E2 FD 00 CE 33 00 B1 04 AA 04 AD 04 6E 04 04 00 5B 01 00 00 69 04 9E 00 6F 04 04 00 5B 01 00 00 B1 04 04 00 75 DF 6D 01 70 04 04 00 84 FA 39 01 72 04 03 00 F1 E4 33 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 EE DD 26 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 2B 3D 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 EC [00:15:19]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 5B 01 00 00 69 04 9E 00 6F 04 04 00 5B 01 00 00 B1 04 04 00 75 DF 6D 01 70 04 04 00 84 FA 39 01 72 04 03 00 F1 E4 33 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 EE DD 26 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 2B 3D 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:15:19]wFMCommunicate OK [00:15:19]wFMCommunicate request_size=4 [00:15:19]MH_SAM_APDU [00:15:19]CAPDU: 80 17 00 00 [00:15:19]Write to MH i2c: E2 08 00 CF 33 80 17 00 00 00 00 00 00 82 [00:15:19]Write i2c OK [00:15:19]MH_I2C_Read... [00:15:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:20]Read from MH i2c: E2 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 FD 00 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 FD 00 CF 33 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 9B [00:15:20]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:15:20]wFMCommunicate OK [00:15:20]wFMCommunicate request_size=4 [00:15:20]MH_SAM_APDU [00:15:20]CAPDU: 80 17 00 00 [00:15:20]Write to MH i2c: E2 08 00 D0 33 80 17 00 00 00 00 00 00 83 [00:15:20]Write i2c OK [00:15:20]MH_I2C_Read... [00:15:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:20]Read from MH i2c: E2 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 FD 00 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 FD 00 D0 33 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 3C [00:15:20]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:15:20]wFMCommunicate OK [00:15:20]wFMCommunicate request_size=4 [00:15:20]MH_SAM_APDU [00:15:20]CAPDU: 80 17 00 00 [00:15:20]Write to MH i2c: E2 08 00 D1 33 80 17 00 00 00 00 00 00 84 [00:15:20]Write i2c OK [00:15:20]MH_I2C_Read... [00:15:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:20]Read from MH i2c: E2 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 FD 00 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 FD 00 D1 33 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 FC [00:15:20]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:15:20]wFMCommunicate OK [00:15:20]wFMCommunicate request_size=4 [00:15:20]MH_SAM_APDU [00:15:20]CAPDU: 80 17 00 00 [00:15:20]Write to MH i2c: E2 08 00 D2 33 80 17 00 00 00 00 00 00 85 [00:15:20]Write i2c OK [00:15:20]MH_I2C_Read... [00:15:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:15:21]Read from MH i2c: E2 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: E2 CE 00 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: E2 CE 00 D2 33 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 6A [00:15:21]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:15:21]wFMCommunicate OK [00:15:21]SAM_PROTO_GetShiftData done [00:15:21]requested_item shift.sale.total_cash is exist - process it [00:15:21]requested_item shift.sale_refund.total is exist - process it [00:15:21]requested_item shift.sale_refund.total_cash is exist - process it [00:15:21]requested_item shift.buy.total is exist - process it [00:15:21]requested_item shift.buy.total_cash is exist - process it [00:15:21]produce_requested_data done [00:15:21]produce_requested_data return {"fm.sale.total":104452368.00,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":239778.45,"shift.sale.total_cash":205769.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:15:21]process_action_free get_value [00:15:21]json_value_free [00:15:21]json_value_free done [00:15:21]process_json_proto returns [00:15:21]Send response to host [00:15:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104452368.00,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":239778.45,"shift.sale.total_cash":205769.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:15:21]free response buf [00:15:21]execute_script done [00:15:21]execute_script returns [00:15:21]free content buf [00:15:21]Sock 9.Close socket [00:15:21]Sock 9.Thread stoped [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:35]int [00:18:35]Write to MH i2c: 01 00 00 D3 33 06 [00:18:35]*** FLAG_PRN_PAP1 set [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: 01 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: 01 07 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: 01 07 00 D3 33 00 01 00 00 00 FF 0F 1C [00:18:35]state=0 [00:18:35]No paper [00:18:35]int [00:18:35]Write to MH i2c: 01 00 00 D4 33 07 [00:18:35]*** FLAG_PRN_PAP2 set [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: 01 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: 01 07 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: 01 07 00 D4 33 00 03 00 00 00 FF 0F 1F [00:18:35]state=0 [00:18:35]No paper [00:18:35]Cover opened [00:18:38]OFD Sender: No OFD packet to send [00:18:40]Write to MH i2c: 01 00 00 D5 33 08 [00:18:40]Write i2c OK [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: 01 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: 01 07 00 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: 01 07 00 D5 33 00 03 00 00 00 FF 0F 20 [00:18:40]state=3 [00:18:40]No paper [00:18:40]Cover opened [00:18:43]OFD Sender: No OFD packet to send [00:18:45]Write to MH i2c: 01 00 00 D6 33 09 [00:18:45]Write i2c OK [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: 01 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: 01 07 00 [00:18:45]MH_I2C_Read... [00:18:45]Read from MH i2c: 01 07 00 D6 33 00 03 00 00 00 FF 0F 21 [00:18:45]state=3 [00:18:45]No paper [00:18:45]Cover opened [00:18:47]int [00:18:47]Write to MH i2c: 01 00 00 D7 33 0A [00:18:47]*** FLAG_PRN_PAP2 reset [00:18:47]Write i2c OK [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: 01 [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: 01 07 00 [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: 01 07 00 D7 33 00 01 00 00 00 FF 0F 20 [00:18:47]state=3 [00:18:47]No paper [00:18:47]Cover closed [00:18:47]int [00:18:47]Write to MH i2c: 01 00 00 D8 33 0B [00:18:47]*** FLAG_PRN_PAP1 reset [00:18:47]Write i2c OK [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: 01 [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: 01 07 00 [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: 01 07 00 D8 33 00 00 00 00 00 FF 0F 20 [00:18:47]state=0 [00:18:48]OFD Sender: No OFD packet to send [00:18:48]int [00:18:48]Write to MH i2c: 01 00 00 D9 33 0C [00:18:48]*** FLAG_PRN_KEY set [00:18:48]Write i2c OK [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: 01 [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: 01 07 00 [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: 01 07 00 D9 33 00 08 00 00 00 FF 0F 29 [00:18:48]state=0 [00:18:48]Key pressed [00:18:48]Feed [00:18:48]Write to MH i2c: D8 00 00 DA 33 E4 [00:18:48]Write i2c OK [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: D8 [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: D8 01 00 [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: D8 01 00 DA 33 00 E5 [00:18:48]int [00:18:48]Write to MH i2c: 01 00 00 DB 33 0E [00:18:48]Write i2c OK [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: 01 [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: 01 07 00 [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: 01 07 00 DB 33 00 48 00 00 00 3D 00 9A [00:18:48]state=2 [00:18:48]Key pressed [00:18:49]int [00:18:49]Write to MH i2c: 01 00 00 DC 33 0F [00:18:49]*** FLAG_PRN_KEY reset [00:18:49]Write i2c OK [00:18:49]MH_I2C_Read... [00:18:49]Read from MH i2c: 01 [00:18:49]MH_I2C_Read... [00:18:49]Read from MH i2c: 01 07 00 [00:18:49]MH_I2C_Read... [00:18:49]Read from MH i2c: 01 07 00 DC 33 00 00 00 00 00 FE 0F 23 [00:18:49]state=2 [00:18:49]Stop feed [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:24]accept exits with 8 [00:23:24]New connection [00:23:24]New thread 3066781028 created [00:23:24]Thread 3066637668 joined [00:23:24]Waiting for new connection... [00:23:24] Sock 8.Parse request [00:23:24]Sock 8.Check first char [00:23:24]Sock 8.First char is OK [00:23:24]request: POST /json_proto HTTP/1.0 [00:23:24]Method: POST [00:23:24]URL: /json_proto [00:23:24]Method is POST - this is cgi request [00:23:24]url: /json_proto [00:23:24]query_string will be loaded in cgi processing [00:23:24]execute_cgi json_proto POST (null) [00:23:24]execute_cgi path=json_proto method=POST [00:23:24]POST find Content-Length [00:23:24]Host: 172.17.63.3:8080 [00:23:24]Content-Length: 676 [00:23:24]Content-Type: application/json [00:23:24] [00:23:24]POST finish read [00:23:24]Found Content-Length = 676 [00:23:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.830, "sum" : 390.03, "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" ] } } [00:23:24]execute_script... [00: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)98531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.830, "sum" : 390.03, "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" ] } } [00:23:24]POST & json_proto [00:23:24]process_json_proto [00:23:24]json parsed OK: [00:23:24]protocol is kg_v1.0 [00:23:24]action value=close_receipt [00:23:24]process_action close_receipt [00:23:24]cmd_close_receipt [00:23:24]MH_GetDate [00:23:24]Write to MH i2c: F0 00 00 DD 33 FF [00:23:24]Write i2c OK [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: F0 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: F0 09 00 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: F0 09 00 DD 33 00 FE E4 1A 67 50 D1 6C 64 5C [00:23:24]GetLastDocTimeStamp 1729815097 [00:23:24]current date 1729815806 [00:23:24]FM_GetShiftState [00:23:24]SAM_PROTO_GetShiftState [00:23:24]wFMCommunicate request_size=4 [00:23:24]MH_SAM_APDU [00:23:24]CAPDU: 80 13 01 00 [00:23:24]Write to MH i2c: E2 08 00 DE 33 80 13 01 00 00 00 00 00 8E [00:23:24]Write i2c OK [00:23:24]MH_I2C_Read... [00:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:24]Read from MH i2c: E2 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 0E 00 [00:23:24]MH_I2C_Read... [00:23:24]Read from MH i2c: E2 0E 00 DE 33 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 DB [00:23:24]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [00:23:24]wFMCommunicate OK [00:23:24]SAM_PROTO_GetShiftState done [00:23:24]FM_GetShiftState done [00:23:24]opened in 1729729836 [00:23:24]opened+sec_in_day 1729816236 [00:23:24]quantity*price = 39002 [00:23:24]sum+1 = 39004 [00:23:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 390.00 Внесено: 390.00 СДАЧА: 0.00 НСП 1% : 3.45 НДС 12% : 41.42 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 348 25.10.2024 00:23 Смена: 534 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155723 ФПД: 126663657558453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T002327&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155723&fm=126663657558453&tin=02508201610067®Number=0000000000091693&sum=39000 [00:23:25]StoreToDocumentArchive [00:23:25]shift 534 fd 155723 [00:23:25]save to /storage/0534/doc_00155723 [00:23:25]save last doc name /storage/0534/doc_00155723 to /storage/kkm_last_doc_name [00:23:25]save OK [00:23:25]Clear old archive folders... [00:23:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:23:25]tlvbuf is 01F7CEF0 [00:23:25]SAM_PROTO_ClearQueue [00:23:25]wFMCommunicate request_size=4 [00:23:25]MH_SAM_APDU [00:23:25]CAPDU: 80 09 00 00 [00:23:25]Write to MH i2c: E2 08 00 EB 33 80 09 00 00 00 00 00 00 90 [00:23:25]Write i2c OK [00:23:25]MH_I2C_Read... [00:23:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:25]Read from MH i2c: E2 [00:23:25]MH_I2C_Read... [00:23:25]Read from MH i2c: E2 03 00 [00:23:25]MH_I2C_Read... [00:23:25]Read from MH i2c: E2 03 00 EB 33 00 90 00 92 [00:23:25]RAPDU: 90 00 [00:23:25]wFMCommunicate OK [00:23:25]SAM_PROTO_ClearQueue done [00:23:25]KKMCreateOFDPacket [00:23:25]OFDProtocolAddRootSTLVToBuf [00:23:25]FM_MakeSignedData [00:23:25]FM_MakeSignedData [00:23:25]SAM_PROTO_SignData [00:23:25]wFMCommunicate request_size=4 [00:23:25]MH_SAM_APDU [00:23:25]CAPDU: 80 0D 01 02 [00:23:25]Write to MH i2c: E2 08 00 EC 33 80 0D 01 02 00 00 00 00 98 [00:23:25]Write i2c OK [00:23:25]MH_I2C_Read... [00:23:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:25]Read from MH i2c: E2 [00:23:25]MH_I2C_Read... [00:23:25]Read from MH i2c: E2 03 00 [00:23:25]MH_I2C_Read... [00:23:25]Read from MH i2c: E2 03 00 EC 33 00 90 00 93 [00:23:25]RAPDU: 90 00 [00:23:25]wFMCommunicate OK [00:23:25]wFMCommunicate request_size=255 [00:23:25]MH_SAM_APDU [00: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 C6 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 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 2E 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 5C 01 00 00 F4 03 04 00 FF E4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 60 02 00 35 04 06 00 73 [00:23:25]Write to MH i2c: E2 02 01 ED 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 C6 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 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 2E 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 5C 01 00 00 F4 03 04 00 FF E4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 60 02 00 35 04 06 00 73 00 00 23 [00:23:25]Write i2c OK [00:23:25]MH_I2C_Read... [00:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:26]Read from MH i2c: E2 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 03 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 03 00 ED 33 00 90 00 94 [00:23:26]RAPDU: 90 00 [00:23:26]wFMCommunicate OK [00:23:26]wFMCommunicate request_size=10 [00:23:26]MH_SAM_APDU [00:23:26]CAPDU: 80 0D 02 02 05 33 2E 50 91 B5 [00:23:26]Write to MH i2c: E2 0D 00 EE 33 80 0D 02 02 05 00 33 2E 50 91 B5 00 00 9C [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:26]Read from MH i2c: E2 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 03 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 03 00 EE 33 00 90 00 95 [00:23:26]RAPDU: 90 00 [00:23:26]wFMCommunicate OK [00:23:26]wFMCommunicate request_size=4 [00:23:26]MH_SAM_APDU [00:23:26]CAPDU: 80 0D 03 02 [00:23:26]Write to MH i2c: E2 08 00 EF 33 80 0D 03 02 00 00 00 00 9D [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:26]Read from MH i2c: E2 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 0B 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 0B 00 EF 33 00 AF B6 30 F8 8D 35 D4 0A 90 00 CB [00:23:26]RAPDU: AF B6 30 F8 8D 35 D4 0A 90 00 [00:23:26]wFMCommunicate OK [00:23:26]SAM_PROTO_SignData done [00:23:26]FM_MakeSignedData done [00:23:26]CreateOFDProtocolMessage [00:23:26]wFMCommunicate request_size=4 [00:23:26]MH_SAM_APDU [00:23:26]CAPDU: 80 11 00 00 [00:23:26]Write to MH i2c: E2 08 00 F0 33 80 11 00 00 00 00 00 00 9D [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:26]Read from MH i2c: E2 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 17 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: E2 17 00 F0 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F2 [00:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:23:26]wFMCommunicate OK [00:23:26]CreateOFDProtocolMessage done [00:23:26]OFDSenderStorePacket 155723 [00:23:26]StoreOFDPacket docnum=155723 [00:23:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F6 EA 07 01 C8 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 C6 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 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 2E 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 5C 01 00 00 F4 03 04 00 FF E4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 60 02 00 35 04 06 00 73 33 2E 50 91 B5 AF B6 30 F8 8D 35 D4 0A [00:23:26]CheckFolder [00:23:26]dirname=/storage/ofd_packets [00:23:26]CheckFolder done [00:23:26]ProducePacketName [00:23:26]name=ofd_packets/00155723 [00:23:26]NVStorageSaveData ofd_packets/00155723 [00:23:26]File name is /storage/ofd_packets/00155723 [00:23:26]Write 301 bytes [00:23:26]NVStorageSaveData done [00:23:26]OFDSenderStorePacket done [00:23:26]KKMCreateOFDPacket done [00:23:26]NVStorageSaveData kkm_last_timestamp [00:23:26]File name is /storage/kkm_last_timestamp [00:23:26]Write 4 bytes [00:23:26]OFD Sender: Processing packet 155723 [packets to send 31, broken 30] [00:23:26]ProducePacketName [00:23:26]name=ofd_packets/00155723 [00:23:26]OFD Sender: To server: pG, [00:23:26]CommunicateWithHost lk.salyk.kg:30040 [00:23:26]ConnectInit lk.salyk.kg [00:23:26]NVStorageSaveData done [00:23:26]ExternCall_PrintAddStr [00:23:26]wPrintStart [00:23:26]Write to MH i2c: 01 00 00 F1 33 24 [00:23:26]Write i2c OK [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: 01 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: 01 07 00 [00:23:26]MH_I2C_Read... [00:23:26]Read from MH i2c: 01 07 00 F1 33 00 00 00 00 00 FF 0F 39 [00:23:26]RasterBufferAndPrint [00:23:26]line Счет N : (1)98531 [00:23:26]line ИНН: 02508201610067 [00:23:26]line Контрольно-Кассовый Чек [00:23:26]line ПРОДАЖА [00:23:26]line ТРК (МРК, ГНК) : 11 [00:23:26]line Товар: 2710124130 [00:23:26]line Аи-92-К-5 [00:23:26]line 5.830 * 66.90 [00:23:26]line = 390.03 [00:23:26]line НДС 12% НСП 1% [00:23:26]line > о реализуемом товаре [00:23:26]line ОКРУГЛЕНИЕ: -0.03 [00:23:26]line ИТОГО: 390.00 [00:23:26]line Внесено: 390.00 [00:23:26]line СДАЧА: 0.00 [00:23:26]line НСП 1% : 3.45 [00:23:26]line НДС 12% : 41.42 [00:23:26]line Наличными: 390.00 [00:23:26]line Безнал.: 0.00 [00:23:26]line Место: АЗС № 143 "Партнер Нефть" [00:23:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [00:23:26]line СНО: Общий режим [00:23:26]line Чек 348 25.10.2024 00:23 [00:23:26]line Смена: 534 ФФД: 1.0 [00:23:26]line ЗНМ: 0300000096 [00:23:26]line РНМ: 0000000000091693 [00:23:26]line Версия ККМ: 001 [00:23:26]line ФМ: 0000000000871792 [00:23:26]line ФД: 155723 [00:23:26]line ФПД: 126663657558453 [00:23:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T002327&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155723&fm=126663657558453&tin=02508201610067®Number=0000000000091693&sum=39000 [00:23:26]Connected sock=9 [00: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 39 32 0F 01 00 00 F6 EA 07 01 C8 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 C6 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5B 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 2E 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 5C 01 00 00 F4 03 04 00 FF E4 1A 67 0E 04 04 00 16 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 60 02 00 35 04 06 00 73 33 2E 50 91 B5 AF B6 30 F8 8D 35 D4 0A [00:23:26]written 0, free lines is 4095 [00: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 39 32 4F 00 00 00 A0 97 47 00 58 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 60 02 00 F4 03 04 00 76 8A 1A 67 B6 04 01 00 00 89 96 C7 2E AF E7 13 9A [00:23:26]CommunicateWithHost err = 0 [00:23:26]CheckOFDResponse [00:23:26]1017 (14) - 77093643461234 [00:23:26]1041 (16) - 0000000000871792 [00:23:26]1040 (4) - 155723 [00:23:26]1012 (4) - 24.10.2024 17:57 [00:23:26]1206 (1) - 0 [00:23:26]OFD Sender: Remove packet 155723 [00:23:26]ProducePacketName [00:23:26]name=ofd_packets/00155723 [00:23:26]NVStorageDeleteData [00:23:26]Write to MH i2c: 01 00 00 1C 34 50 [00:23:26]Write i2c OK [00:23:27]MH_I2C_Read... [00:23:27]Read from MH i2c: 01 [00:23:27]MH_I2C_Read... [00:23:27]Read from MH i2c: 01 07 00 [00:23:27]MH_I2C_Read... [00:23:27]Read from MH i2c: 01 07 00 1C 34 00 00 00 00 00 E3 0C 46 [00:23:27]RasterBufferAndPrint [00:23:27]line [00:23:27]line [00:23:27]line [00:23:27]line [00:23:27]line [00:23:27]written 0, free lines is 3308 [00:23:27]process_action close_receipt done [00:23:27]requested_data is exist [00:23:27]produce_requested_data [00:23:27]requested_item fm.sn is exist - process it [00:23:27]wFMCommunicate request_size=4 [00:23:27]MH_SAM_APDU [00:23:27]CAPDU: 80 11 00 00 [00:23:27]Write to MH i2c: E2 08 00 23 34 80 11 00 00 00 00 00 00 D1 [00:23:27]Write i2c OK [00:23:27]MH_I2C_Read... [00:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:27]Read from MH i2c: E2 [00:23:27]MH_I2C_Read... [00:23:27]Read from MH i2c: E2 17 00 [00:23:27]MH_I2C_Read... [00:23:27]Read from MH i2c: E2 17 00 23 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 26 [00:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:23:27]wFMCommunicate OK [00:23:27]requested_item fd.num is exist - process it [00:23:27]SAM_PROTO_GetFieldsCounters [00:23:27]wFMCommunicate request_size=4 [00:23:27]MH_SAM_APDU [00:23:27]CAPDU: 80 13 00 00 [00:23:27]Write to MH i2c: E2 08 00 24 34 80 13 00 00 00 00 00 00 D4 [00:23:27]Write i2c OK [00:23:27]MH_I2C_Read... [00:23:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:27]OFD Sender: No OFD packet to send [00:23:27]Read from MH i2c: E2 [00:23:27]MH_I2C_Read... [00:23:27]Read from MH i2c: E2 62 00 [00:23:27]MH_I2C_Read... [00:23:27]Read from MH i2c: E2 62 00 24 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4B 60 02 00 0E 04 04 00 16 02 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 D6 [00:23:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4B 60 02 00 0E 04 04 00 16 02 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 [00:23:27]wFMCommunicate OK [00:23:27]SAM_PROTO_GetFieldsCounters done [00:23:27]requested_item shift.num is exist - process it [00:23:27]requested_item shift.opened is exist - process it [00:23:27]req_shift_opened [00:23:27]FM_GetShiftState [00:23:27]SAM_PROTO_GetShiftState [00:23:27]wFMCommunicate request_size=4 [00:23:27]MH_SAM_APDU [00:23:27]CAPDU: 80 13 01 00 [00:23:27]Write to MH i2c: E2 08 00 25 34 80 13 01 00 00 00 00 00 D6 [00:23:27]Write i2c OK [00:23:27]MH_I2C_Read... [00:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:27]Read from MH i2c: E2 [00:23:27]MH_I2C_Read... [00:23:27]Read from MH i2c: E2 0E 00 [00:23:27]MH_I2C_Read... [00:23:27]Read from MH i2c: E2 0E 00 25 34 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 23 [00:23:27]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [00:23:27]wFMCommunicate OK [00:23:27]SAM_PROTO_GetShiftState done [00:23:27]FM_GetShiftState done [00:23:27]req_shift_opened done [00:23:27]requested_item shift.open_date is exist - process it [00:23:27]req_shift_open_date [00:23:27]req_shift_open_date done [00:23:27]produce_requested_data done [00:23:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155723,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [00:23:27]process_action_free close_receipt [00:23:27]json_value_free [00:23:27]json_value_free done [00:23:27]process_json_proto returns [00:23:27]Send response to host [00:23:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155723,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [00:23:27]free response buf [00:23:27]execute_script done [00:23:27]execute_script returns [00:23:27]free content buf [00:23:27]Sock 8.Close socket [00:23:27]Sock 8.Thread stoped [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:30]accept exits with 10 [00:24:30]New connection [00:24:30]New thread 3066637668 created [00:24:30]Thread 3066781028 joined [00:24:30]Waiting for new connection... [00:24:30] Sock 10.Parse request [00:24:30]Sock 10.Check first char [00:24:30]Sock 10.First char is OK [00:24:30]request: POST /json_proto HTTP/1.0 [00:24:30]Method: POST [00:24:30]URL: /json_proto [00:24:30]Method is POST - this is cgi request [00:24:30]url: /json_proto [00:24:30]query_string will be loaded in cgi processing [00:24:30]execute_cgi json_proto POST (null) [00:24:30]execute_cgi path=json_proto method=POST [00:24:30]POST find Content-Length [00:24:30]Host: 172.17.63.3:8080 [00:24:30]Content-Length: 215 [00:24:30]Content-Type: application/json [00:24:30] [00:24:30]POST finish read [00:24:30]Found Content-Length = 215 [00:24:30]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:24:30]execute_script... [00:24:30]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:24:30]POST & json_proto [00:24:30]process_json_proto [00:24:30]json parsed OK: [00:24:30]protocol is kg_v1.0 [00:24:30]action value=get_value [00:24:30]process_action get_value [00:24:30]cmd_get_value [00:24:30]process_action get_value done [00:24:30]requested_data is exist [00:24:30]produce_requested_data [00:24:30]requested_item kkm.sn is exist - process it [00:24:30]requested_item kkm.ver is exist - process it [00:24:30]requested_item fm.sn is exist - process it [00:24:30]wFMCommunicate request_size=4 [00:24:30]MH_SAM_APDU [00:24:30]CAPDU: 80 11 00 00 [00:24:30]Write to MH i2c: E2 08 00 26 34 80 11 00 00 00 00 00 00 D4 [00:24:30]Write i2c OK [00:24:30]MH_I2C_Read... [00:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:30]Read from MH i2c: E2 [00:24:30]MH_I2C_Read... [00:24:30]Read from MH i2c: E2 17 00 [00:24:30]MH_I2C_Read... [00:24:30]Read from MH i2c: E2 17 00 26 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 29 [00:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:24:30]wFMCommunicate OK [00:24:30]requested_item fd.num is exist - process it [00:24:30]SAM_PROTO_GetFieldsCounters [00:24:30]wFMCommunicate request_size=4 [00:24:30]MH_SAM_APDU [00:24:30]CAPDU: 80 13 00 00 [00:24:30]Write to MH i2c: E2 08 00 27 34 80 13 00 00 00 00 00 00 D7 [00:24:30]Write i2c OK [00:24:30]MH_I2C_Read... [00:24:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:30]Read from MH i2c: E2 [00:24:30]MH_I2C_Read... [00:24:30]Read from MH i2c: E2 62 00 [00:24:30]MH_I2C_Read... [00:24:30]Read from MH i2c: E2 62 00 27 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4B 60 02 00 0E 04 04 00 16 02 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 D9 [00:24: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4B 60 02 00 0E 04 04 00 16 02 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 [00:24:30]wFMCommunicate OK [00:24:30]SAM_PROTO_GetFieldsCounters done [00:24:30]requested_item shift.num is exist - process it [00:24:30]requested_item shift.opened is exist - process it [00:24:30]req_shift_opened [00:24:30]FM_GetShiftState [00:24:30]SAM_PROTO_GetShiftState [00:24:30]wFMCommunicate request_size=4 [00:24:30]MH_SAM_APDU [00:24:30]CAPDU: 80 13 01 00 [00:24:30]Write to MH i2c: E2 08 00 28 34 80 13 01 00 00 00 00 00 D9 [00:24:30]Write i2c OK [00:24:30]MH_I2C_Read... [00:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:30]Read from MH i2c: E2 [00:24:30]MH_I2C_Read... [00:24:30]Read from MH i2c: E2 0E 00 [00:24:30]MH_I2C_Read... [00:24:30]Read from MH i2c: E2 0E 00 28 34 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 26 [00:24:30]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [00:24:30]wFMCommunicate OK [00:24:30]SAM_PROTO_GetShiftState done [00:24:30]FM_GetShiftState done [00:24:30]req_shift_opened done [00:24:30]requested_item shift.open_date is exist - process it [00:24:30]req_shift_open_date [00:24:30]req_shift_open_date done [00:24:30]produce_requested_data done [00:24:30]produce_requested_data return {"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":155723,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [00:24:30]process_action_free get_value [00:24:30]json_value_free [00:24:30]json_value_free done [00:24:30]process_json_proto returns [00:24:30]Send response to host [00:24:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":155723,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [00:24:30]free response buf [00:24:30]execute_script done [00:24:30]execute_script returns [00:24:30]free content buf [00:24:30]Sock 10.Close socket [00:24:30]Sock 10.Thread stoped [00:24:30]accept exits with 8 [00:24:30]New connection [00:24:30]New thread 3066781028 created [00:24:30]Thread 3066637668 joined [00:24:30]Waiting for new connection... [00:24:30] Sock 8.Parse request [00:24:30]Sock 8.Check first char [00:24:30]Sock 8.First char is OK [00:24:30]request: POST /json_proto HTTP/1.0 [00:24:30]Method: POST [00:24:30]URL: /json_proto [00:24:30]Method is POST - this is cgi request [00:24:30]url: /json_proto [00:24:30]query_string will be loaded in cgi processing [00:24:30]execute_cgi json_proto POST (null) [00:24:30]execute_cgi path=json_proto method=POST [00:24:30]POST find Content-Length [00:24:30]Host: 172.17.63.3:8080 [00:24:30]Content-Length: 331 [00:24:30]Content-Type: application/json [00:24:30] [00:24:30]POST finish read [00:24:30]Found Content-Length = 331 [00:24:30]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:24:30]execute_script... [00:24: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:24:31]POST & json_proto [00:24:31]process_json_proto [00:24:31]json parsed OK: [00:24:31]protocol is kg_v1.0 [00:24:31]action value=get_value [00:24:31]process_action get_value [00:24:31]cmd_get_value [00:24:31]process_action get_value done [00:24:31]requested_data is exist [00:24:31]produce_requested_data [00:24:31]requested_item fm.sale.total is exist - process it [00:24:31]SAM_PROTO_GetFMData [00:24:31]wFMCommunicate request_size=4 [00:24:31]MH_SAM_APDU [00:24:31]CAPDU: 80 13 03 00 [00:24:31]Write to MH i2c: E2 08 00 29 34 80 13 03 00 00 00 00 00 DC [00:24:31]Write i2c OK [00:24:31]MH_I2C_Read... [00:24:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:24:31]Read from MH i2c: E2 [00:24:31]MH_I2C_Read... [00:24:31]Read from MH i2c: E2 FD 00 [00:24:31]MH_I2C_Read... [00:24:31]Read from MH i2c: E2 FD 00 29 34 00 C2 04 85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 AB [00:24:31]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:24:31]wFMCommunicate OK [00:24:31]wFMCommunicate request_size=4 [00:24:31]MH_SAM_APDU [00:24:31]CAPDU: 80 17 00 00 [00:24:31]Write to MH i2c: E2 08 00 2A 34 80 17 00 00 00 00 00 00 DE [00:24:31]Write i2c OK [00:24:31]MH_I2C_Read... [00:24:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:31]Read from MH i2c: E2 [00:24:31]MH_I2C_Read... [00:24:31]Read from MH i2c: E2 FD 00 [00:24:31]MH_I2C_Read... [00:24:31]Read from MH i2c: E2 FD 00 2A 34 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 4D [00:24:31]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 [00:24:31]wFMCommunicate OK [00:24:31]wFMCommunicate request_size=4 [00:24:31]MH_SAM_APDU [00:24:31]CAPDU: 80 17 00 00 [00:24:31]Write to MH i2c: E2 08 00 2B 34 80 17 00 00 00 00 00 00 DF [00:24:31]Write i2c OK [00:24:31]MH_I2C_Read... [00:24:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:32]Read from MH i2c: E2 [00:24:32]MH_I2C_Read... [00:24:32]Read from MH i2c: E2 FD 00 [00:24:32]MH_I2C_Read... [00:24:32]Read from MH i2c: E2 FD 00 2B 34 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 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 90 00 8D [00:24:32]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 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 90 00 [00:24:32]wFMCommunicate OK [00:24:32]wFMCommunicate request_size=4 [00:24:32]MH_SAM_APDU [00:24:32]CAPDU: 80 17 00 00 [00:24:32]Write to MH i2c: E2 08 00 2C 34 80 17 00 00 00 00 00 00 E0 [00:24:32]Write i2c OK [00:24:32]MH_I2C_Read... [00:24:32]OFD Sender: No OFD packet to send [00:24:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:32]Read from MH i2c: E2 [00:24:32]MH_I2C_Read... [00:24:32]Read from MH i2c: E2 FD 00 [00:24:32]MH_I2C_Read... [00:24:32]Read from MH i2c: E2 FD 00 2C 34 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5B [00:24:32]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:24:32]wFMCommunicate OK [00:24:32]wFMCommunicate request_size=4 [00:24:32]MH_SAM_APDU [00:24:32]CAPDU: 80 17 00 00 [00:24:32]Write to MH i2c: E2 08 00 2D 34 80 17 00 00 00 00 00 00 E1 [00:24:32]Write i2c OK [00:24:32]MH_I2C_Read... [00:24:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:24:32]Read from MH i2c: E2 [00:24:32]MH_I2C_Read... [00:24:32]Read from MH i2c: E2 DF 00 [00:24:32]MH_I2C_Read... [00:24:32]Read from MH i2c: E2 DF 00 2D 34 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C1 [00:24:32]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 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:24:32]wFMCommunicate OK [00:24:32]SAM_PROTO_GetFMData done [00:24:32]requested_item fm.sale_refund.total is exist - process it [00:24:32]requested_item fm.buy.total is exist - process it [00:24:32]requested_item shift.sale.total is exist - process it [00:24:32]SAM_PROTO_GetShiftData [00:24:32]wFMCommunicate request_size=4 [00:24:32]MH_SAM_APDU [00:24:32]CAPDU: 80 13 02 00 [00:24:32]Write to MH i2c: E2 08 00 2E 34 80 13 02 00 00 00 00 00 E0 [00:24:32]Write i2c OK [00:24:32]MH_I2C_Read... [00:24:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:24:33]Read from MH i2c: E2 [00:24:33]MH_I2C_Read... [00:24:33]Read from MH i2c: E2 FD 00 [00:24:33]MH_I2C_Read... [00:24:33]Read from MH i2c: E2 FD 00 2E 34 00 B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 84 3E 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 CA [00:24:33]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 84 3E 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:24:33]wFMCommunicate OK [00:24:33]wFMCommunicate request_size=4 [00:24:33]MH_SAM_APDU [00:24:33]CAPDU: 80 17 00 00 [00:24:33]Write to MH i2c: E2 08 00 2F 34 80 17 00 00 00 00 00 00 E3 [00:24:33]Write i2c OK [00:24:33]MH_I2C_Read... [00:24:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:33]Read from MH i2c: E2 [00:24:33]MH_I2C_Read... [00:24:33]Read from MH i2c: E2 FD 00 [00:24:33]MH_I2C_Read... [00:24:33]Read from MH i2c: E2 FD 00 2F 34 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 FC [00:24:33]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:24:33]wFMCommunicate OK [00:24:33]wFMCommunicate request_size=4 [00:24:33]MH_SAM_APDU [00:24:33]CAPDU: 80 17 00 00 [00:24:33]Write to MH i2c: E2 08 00 30 34 80 17 00 00 00 00 00 00 E4 [00:24:33]Write i2c OK [00:24:33]MH_I2C_Read... [00:24:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:33]Read from MH i2c: E2 [00:24:33]MH_I2C_Read... [00:24:33]Read from MH i2c: E2 FD 00 [00:24:33]MH_I2C_Read... [00:24:33]Read from MH i2c: E2 FD 00 30 34 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 9D [00:24:33]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:24:33]wFMCommunicate OK [00:24:33]wFMCommunicate request_size=4 [00:24:33]MH_SAM_APDU [00:24:33]CAPDU: 80 17 00 00 [00:24:33]Write to MH i2c: E2 08 00 31 34 80 17 00 00 00 00 00 00 E5 [00:24:33]Write i2c OK [00:24:33]MH_I2C_Read... [00:24:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:33]Read from MH i2c: E2 [00:24:33]MH_I2C_Read... [00:24:33]Read from MH i2c: E2 FD 00 [00:24:33]MH_I2C_Read... [00:24:33]Read from MH i2c: E2 FD 00 31 34 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 5D [00:24:34]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:24:34]wFMCommunicate OK [00:24:34]wFMCommunicate request_size=4 [00:24:34]MH_SAM_APDU [00:24:34]CAPDU: 80 17 00 00 [00:24:34]Write to MH i2c: E2 08 00 32 34 80 17 00 00 00 00 00 00 E6 [00:24:34]Write i2c OK [00:24:34]MH_I2C_Read... [00:24:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:24:34]Read from MH i2c: E2 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 CE 00 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 CE 00 32 34 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 CB [00:24:34]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:24:34]wFMCommunicate OK [00:24:34]SAM_PROTO_GetShiftData done [00:24:34]requested_item shift.sale.total_cash is exist - process it [00:24:34]requested_item shift.sale_refund.total is exist - process it [00:24:34]requested_item shift.sale_refund.total_cash is exist - process it [00:24:34]requested_item shift.buy.total is exist - process it [00:24:34]requested_item shift.buy.total_cash is exist - process it [00:24:34]produce_requested_data done [00:24:34]produce_requested_data return {"fm.sale.total":104452758.00,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":240168.45,"shift.sale.total_cash":206159.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:24:34]process_action_free get_value [00:24:34]json_value_free [00:24:34]json_value_free done [00:24:34]process_json_proto returns [00:24:34]Send response to host [00:24:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104452758.00,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":240168.45,"shift.sale.total_cash":206159.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:24:34]free response buf [00:24:34]execute_script done [00:24:34]execute_script returns [00:24:34]free content buf [00:24:34]Sock 8.Close socket [00:24:34]Sock 8.Thread stoped [00:24:34]accept exits with 9 [00:24:34]New connection [00:24:34]New thread 3066637668 created [00:24:34]Thread 3066781028 joined [00:24:34]Waiting for new connection... [00:24:34] Sock 9.Parse request [00:24:34]Sock 9.Check first char [00:24:34]Sock 9.First char is OK [00:24:34]request: POST /json_proto HTTP/1.0 [00:24:34]Method: POST [00:24:34]URL: /json_proto [00:24:34]Method is POST - this is cgi request [00:24:34]url: /json_proto [00:24:34]query_string will be loaded in cgi processing [00:24:34]execute_cgi json_proto POST (null) [00:24:34]execute_cgi path=json_proto method=POST [00:24:34]POST find Content-Length [00:24:34]Host: 172.17.63.3:8080 [00:24:34]Content-Length: 331 [00:24:34]Content-Type: application/json [00:24:34] [00:24:34]POST finish read [00:24:34]Found Content-Length = 331 [00:24:34]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:24:34]execute_script... [00:24:34]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:24:34]POST & json_proto [00:24:34]process_json_proto [00:24:34]json parsed OK: [00:24:34]protocol is kg_v1.0 [00:24:34]action value=get_value [00:24:34]process_action get_value [00:24:34]cmd_get_value [00:24:34]process_action get_value done [00:24:34]requested_data is exist [00:24:34]produce_requested_data [00:24:34]requested_item fm.sale.total is exist - process it [00:24:34]SAM_PROTO_GetFMData [00:24:34]wFMCommunicate request_size=4 [00:24:34]MH_SAM_APDU [00:24:34]CAPDU: 80 13 03 00 [00:24:34]Write to MH i2c: E2 08 00 33 34 80 13 03 00 00 00 00 00 E6 [00:24:34]Write i2c OK [00:24:34]MH_I2C_Read... [00:24:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:24:34]Read from MH i2c: E2 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 FD 00 [00:24:34]MH_I2C_Read... [00:24:34]Read from MH i2c: E2 FD 00 33 34 00 C2 04 85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 B5 [00:24:34]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:24:34]wFMCommunicate OK [00:24:34]wFMCommunicate request_size=4 [00:24:34]MH_SAM_APDU [00:24:34]CAPDU: 80 17 00 00 [00:24:34]Write to MH i2c: E2 08 00 34 34 80 17 00 00 00 00 00 00 E8 [00:24:34]Write i2c OK [00:24:34]MH_I2C_Read... [00:24:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:35]Read from MH i2c: E2 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 34 34 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 57 [00:24:35]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 [00:24:35]wFMCommunicate OK [00:24:35]wFMCommunicate request_size=4 [00:24:35]MH_SAM_APDU [00:24:35]CAPDU: 80 17 00 00 [00:24:35]Write to MH i2c: E2 08 00 35 34 80 17 00 00 00 00 00 00 E9 [00:24:35]Write i2c OK [00:24:35]MH_I2C_Read... [00:24:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:35]Read from MH i2c: E2 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 35 34 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 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 90 00 97 [00:24:35]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 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 90 00 [00:24:35]wFMCommunicate OK [00:24:35]wFMCommunicate request_size=4 [00:24:35]MH_SAM_APDU [00:24:35]CAPDU: 80 17 00 00 [00:24:35]Write to MH i2c: E2 08 00 36 34 80 17 00 00 00 00 00 00 EA [00:24:35]Write i2c OK [00:24:35]MH_I2C_Read... [00:24:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:35]Read from MH i2c: E2 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 [00:24:35]MH_I2C_Read... [00:24:35]Read from MH i2c: E2 FD 00 36 34 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [00:24:35]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:24:35]wFMCommunicate OK [00:24:35]wFMCommunicate request_size=4 [00:24:35]MH_SAM_APDU [00:24:35]CAPDU: 80 17 00 00 [00:24:35]Write to MH i2c: E2 08 00 37 34 80 17 00 00 00 00 00 00 EB [00:24:35]Write i2c OK [00:24:35]MH_I2C_Read... [00:24:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:24:36]Read from MH i2c: E2 [00:24:36]MH_I2C_Read... [00:24:36]Read from MH i2c: E2 DF 00 [00:24:36]MH_I2C_Read... [00:24:36]Read from MH i2c: E2 DF 00 37 34 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CB [00:24:36]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 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:24:36]wFMCommunicate OK [00:24:36]SAM_PROTO_GetFMData done [00:24:36]requested_item fm.sale_refund.total is exist - process it [00:24:36]requested_item fm.buy.total is exist - process it [00:24:36]requested_item shift.sale.total is exist - process it [00:24:36]SAM_PROTO_GetShiftData [00:24:36]wFMCommunicate request_size=4 [00:24:36]MH_SAM_APDU [00:24:36]CAPDU: 80 13 02 00 [00:24:36]Write to MH i2c: E2 08 00 38 34 80 13 02 00 00 00 00 00 EA [00:24:36]Write i2c OK [00:24:36]MH_I2C_Read... [00:24:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:24:36]Read from MH i2c: E2 [00:24:36]MH_I2C_Read... [00:24:36]Read from MH i2c: E2 FD 00 [00:24:36]MH_I2C_Read... [00:24:36]Read from MH i2c: E2 FD 00 38 34 00 B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 84 3E 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 D4 [00:24:36]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 84 3E 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:24:36]wFMCommunicate OK [00:24:36]wFMCommunicate request_size=4 [00:24:36]MH_SAM_APDU [00:24:36]CAPDU: 80 17 00 00 [00:24:36]Write to MH i2c: E2 08 00 39 34 80 17 00 00 00 00 00 00 ED [00:24:36]Write i2c OK [00:24:36]MH_I2C_Read... [00:24:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:37]Read from MH i2c: E2 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 FD 00 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 FD 00 39 34 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 06 [00:24:37]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:24:37]wFMCommunicate OK [00:24:37]wFMCommunicate request_size=4 [00:24:37]MH_SAM_APDU [00:24:37]CAPDU: 80 17 00 00 [00:24:37]Write to MH i2c: E2 08 00 3A 34 80 17 00 00 00 00 00 00 EE [00:24:37]Write i2c OK [00:24:37]MH_I2C_Read... [00:24:37]OFD Sender: No OFD packet to send [00:24:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:37]Read from MH i2c: E2 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 FD 00 [00:24:37]MH_I2C_Read... [00:24:37]Read from MH i2c: E2 FD 00 3A 34 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 A7 [00:24:37]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:24:37]wFMCommunicate OK [00:24:37]wFMCommunicate request_size=4 [00:24:37]MH_SAM_APDU [00:24:37]CAPDU: 80 17 00 00 [00:24:37]Write to MH i2c: E2 08 00 3B 34 80 17 00 00 00 00 00 00 EF [00:24:37]Write i2c OK [00:24:37]MH_I2C_Read... [00:24:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:38]Read from MH i2c: E2 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 FD 00 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 FD 00 3B 34 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 67 [00:24:38]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:24:38]wFMCommunicate OK [00:24:38]wFMCommunicate request_size=4 [00:24:38]MH_SAM_APDU [00:24:38]CAPDU: 80 17 00 00 [00:24:38]Write to MH i2c: E2 08 00 3C 34 80 17 00 00 00 00 00 00 F0 [00:24:38]Write i2c OK [00:24:38]MH_I2C_Read... [00:24:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:24:38]Read from MH i2c: E2 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 CE 00 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 CE 00 3C 34 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 D5 [00:24:38]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:24:38]wFMCommunicate OK [00:24:38]SAM_PROTO_GetShiftData done [00:24:38]requested_item shift.sale.total_cash is exist - process it [00:24:38]requested_item shift.sale_refund.total is exist - process it [00:24:38]requested_item shift.sale_refund.total_cash is exist - process it [00:24:38]requested_item shift.buy.total is exist - process it [00:24:38]requested_item shift.buy.total_cash is exist - process it [00:24:38]produce_requested_data done [00:24:38]produce_requested_data return {"fm.sale.total":104452758.00,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":240168.45,"shift.sale.total_cash":206159.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:24:38]process_action_free get_value [00:24:38]json_value_free [00:24:38]json_value_free done [00:24:38]process_json_proto returns [00:24:38]Send response to host [00:24:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104452758.00,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":240168.45,"shift.sale.total_cash":206159.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:24:38]free response buf [00:24:38]execute_script done [00:24:38]execute_script returns [00:24:38]free content buf [00:24:38]Sock 9.Close socket [00:24:38]Sock 9.Thread stoped [00:24:38]accept exits with 8 [00:24:38]New connection [00:24:38]New thread 3066781028 created [00:24:38]Thread 3066637668 joined [00:24:38]Waiting for new connection... [00:24:38] Sock 8.Parse request [00:24:38]Sock 8.Check first char [00:24:38]Sock 8.First char is OK [00:24:38]request: POST /json_proto HTTP/1.0 [00:24:38]Method: POST [00:24:38]URL: /json_proto [00:24:38]Method is POST - this is cgi request [00:24:38]url: /json_proto [00:24:38]query_string will be loaded in cgi processing [00:24:38]execute_cgi json_proto POST (null) [00:24:38]execute_cgi path=json_proto method=POST [00:24:38]POST find Content-Length [00:24:38]Host: 172.17.63.3:8080 [00:24:38]Content-Length: 269 [00:24:38]Content-Type: application/json [00:24:38] [00:24:38]POST finish read [00:24:38]Found Content-Length = 269 [00:24:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0443\u0440\u0430\u043D\u0431\u0430\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:38]execute_script... [00:24:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0443\u0440\u0430\u043D\u0431\u0430\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:38]POST & json_proto [00:24:38]process_json_proto [00:24:38]json parsed OK: [00:24:38]protocol is kg_v1.0 [00:24:38]action value=x_report [00:24:38]process_action x_report [00:24:38]cmd_x_report [00:24:38]MH_GetDate [00:24:38]Write to MH i2c: F0 00 00 3D 34 60 [00:24:38]Write i2c OK [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: F0 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: F0 09 00 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: F0 09 00 3D 34 00 49 E5 1A 67 50 D1 6C 64 09 [00:24:38]GetLastDocTimeStamp 1729815807 [00:24:38]current date 1729815881 [00:24:38]FM_GetShiftState [00:24:38]SAM_PROTO_GetShiftState [00:24:38]wFMCommunicate request_size=4 [00:24:38]MH_SAM_APDU [00:24:38]CAPDU: 80 13 01 00 [00:24:38]Write to MH i2c: E2 08 00 3E 34 80 13 01 00 00 00 00 00 EF [00:24:38]Write i2c OK [00:24:38]MH_I2C_Read... [00:24:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:38]Read from MH i2c: E2 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 0E 00 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 0E 00 3E 34 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 3C [00:24:38]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [00:24:38]wFMCommunicate OK [00:24:38]SAM_PROTO_GetShiftState done [00:24:38]FM_GetShiftState done [00:24:38]KKMCreateXReportDocument [00:24:38]Load OK [00:24:38]Malloc new data [00:24:38]MH_GetDate [00:24:38]Write to MH i2c: F0 00 00 3F 34 62 [00:24:38]Write i2c OK [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: F0 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: F0 09 00 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: F0 09 00 3F 34 00 49 E5 1A 67 50 D1 6C 64 0B [00:24:38]Malloc new data [00:24:38]Malloc new data [00:24:38]wFMCommunicate request_size=4 [00:24:38]MH_SAM_APDU [00:24:38]CAPDU: 80 11 00 00 [00:24:38]Write to MH i2c: E2 08 00 40 34 80 11 00 00 00 00 00 00 EE [00:24:38]Write i2c OK [00:24:38]MH_I2C_Read... [00:24:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:38]Read from MH i2c: E2 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 17 00 [00:24:38]MH_I2C_Read... [00:24:38]Read from MH i2c: E2 17 00 40 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 43 [00:24:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:24:38]wFMCommunicate OK [00:24:38]SAM_PROTO_GetFieldsCounters [00:24:38]wFMCommunicate request_size=4 [00:24:38]MH_SAM_APDU [00:24:38]CAPDU: 80 13 00 00 [00:24:38]Write to MH i2c: E2 08 00 41 34 80 13 00 00 00 00 00 00 F1 [00:24:38]Write i2c OK [00:24:38]MH_I2C_Read... [00:24:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:39]Read from MH i2c: E2 [00:24:39]MH_I2C_Read... [00:24:39]Read from MH i2c: E2 62 00 [00:24:39]MH_I2C_Read... [00:24:39]Read from MH i2c: E2 62 00 41 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4B 60 02 00 0E 04 04 00 16 02 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 F3 [00: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4B 60 02 00 0E 04 04 00 16 02 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 [00:24:39]wFMCommunicate OK [00:24:39]SAM_PROTO_GetFieldsCounters done [00:24:39]Malloc new data [00:24:39]Malloc new data [00:24:39]Malloc new data [00:24:39]KKMCreateXReportDocument OK [00:24:39]KKMSetXReportData OK [00:24:39]KKMPrepareXReportFMData [00:24:39]SAM_PROTO_GetShiftData [00:24:39]wFMCommunicate request_size=4 [00:24:39]MH_SAM_APDU [00:24:39]CAPDU: 80 13 02 00 [00:24:39]Write to MH i2c: E2 08 00 42 34 80 13 02 00 00 00 00 00 F4 [00:24:39]Write i2c OK [00:24:39]MH_I2C_Read... [00:24:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:24:39]Read from MH i2c: E2 [00:24:39]MH_I2C_Read... [00:24:39]Read from MH i2c: E2 FD 00 [00:24:39]MH_I2C_Read... [00:24:39]Read from MH i2c: E2 FD 00 42 34 00 B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 84 3E 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 DE [00:24:39]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 84 3E 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:24:39]wFMCommunicate OK [00:24:39]wFMCommunicate request_size=4 [00:24:39]MH_SAM_APDU [00:24:39]CAPDU: 80 17 00 00 [00:24:39]Write to MH i2c: E2 08 00 43 34 80 17 00 00 00 00 00 00 F7 [00:24:39]Write i2c OK [00:24:39]MH_I2C_Read... [00:24:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:40]Read from MH i2c: E2 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 FD 00 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 FD 00 43 34 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 10 [00:24:40]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:24:40]wFMCommunicate OK [00:24:40]wFMCommunicate request_size=4 [00:24:40]MH_SAM_APDU [00:24:40]CAPDU: 80 17 00 00 [00:24:40]Write to MH i2c: E2 08 00 44 34 80 17 00 00 00 00 00 00 F8 [00:24:40]Write i2c OK [00:24:40]MH_I2C_Read... [00:24:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:40]Read from MH i2c: E2 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 FD 00 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 FD 00 44 34 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 B1 [00:24:40]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:24:40]wFMCommunicate OK [00:24:40]wFMCommunicate request_size=4 [00:24:40]MH_SAM_APDU [00:24:40]CAPDU: 80 17 00 00 [00:24:40]Write to MH i2c: E2 08 00 45 34 80 17 00 00 00 00 00 00 F9 [00:24:40]Write i2c OK [00:24:40]MH_I2C_Read... [00:24:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:40]Read from MH i2c: E2 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 FD 00 [00:24:40]MH_I2C_Read... [00:24:40]Read from MH i2c: E2 FD 00 45 34 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 71 [00:24:41]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:24:41]wFMCommunicate OK [00:24:41]wFMCommunicate request_size=4 [00:24:41]MH_SAM_APDU [00:24:41]CAPDU: 80 17 00 00 [00:24:41]Write to MH i2c: E2 08 00 46 34 80 17 00 00 00 00 00 00 FA [00:24:41]Write i2c OK [00:24:41]MH_I2C_Read... [00:24:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:24:41]Read from MH i2c: E2 [00:24:41]MH_I2C_Read... [00:24:41]Read from MH i2c: E2 CE 00 [00:24:41]MH_I2C_Read... [00:24:41]Read from MH i2c: E2 CE 00 46 34 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 DF [00:24:41]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:24:41]wFMCommunicate OK [00:24:41]SAM_PROTO_GetShiftData done [00:24:41]1194 (1197) - счетчики итогов смены [00:24:41] 1134 (4) - 348 - количество чеков со всеми признаками расчетов [00:24:41] 1129 (158) - счетчики операций «приход» [00:24:41] 1135 (4) - 348 - количество чеков по признаку расчетов [00:24:41] 1201 (4) - 240168.45 - общая итоговая сумма в чеках [00:24:41] 1136 (4) - 206159.00 - итоговая сумма в чеках наличными [00:24:41] 1138 (3) - 34009.45 - итоговая сумма в чеках безналичными [00:24:41] 1024 (123) - суммы налогов [00:24:41] 1006 (9) - суммы НДС [00:24:41] 1010 (1) - 0% - код ставки НДС [00:24:41] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:41] 1006 (12) - суммы НДС [00:24:41] 1010 (1) - 12% - код ставки НДС [00:24:41] 1011 (3) - 25513.24 - сумма НДС по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 0% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (12) - суммы НСП [00:24:41] 1014 (1) - 1% - код ставки НСП [00:24:41] 1015 (3) - 2126.12 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 2% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 3% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 5% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 0,50% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 1,50% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1130 (141) - счетчики операций «возврат прихода» [00:24:41] 1135 (4) - 0 - количество чеков по признаку расчетов [00:24:41] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:24:41] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:24:41] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:24:41] 1024 (117) - суммы налогов [00:24:41] 1006 (9) - суммы НДС [00:24:41] 1010 (1) - 0% - код ставки НДС [00:24:41] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:41] 1006 (9) - суммы НДС [00:24:41] 1010 (1) - 12% - код ставки НДС [00:24:41] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 0% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 1% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 2% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 3% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 5% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 0,50% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 1,50% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1131 (141) - счетчики операций «расход» [00:24:41] 1135 (4) - 0 - количество чеков по признаку расчетов [00:24:41] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:24:41] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:24:41] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:24:41] 1024 (117) - суммы налогов [00:24:41] 1006 (9) - суммы НДС [00:24:41] 1010 (1) - 0% - код ставки НДС [00:24:41] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:41] 1006 (9) - суммы НДС [00:24:41] 1010 (1) - 12% - код ставки НДС [00:24:41] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 0% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 1% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 2% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 3% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 5% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 0,50% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 1,50% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1132 (141) - счетчики операций «возврат расхода» [00:24:41] 1135 (4) - 0 - количество чеков по признаку расчетов [00:24:41] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:24:41] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:24:41] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:24:41] 1024 (117) - суммы налогов [00:24:41] 1006 (9) - суммы НДС [00:24:41] 1010 (1) - 0% - код ставки НДС [00:24:41] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:41] 1006 (9) - суммы НДС [00:24:41] 1010 (1) - 12% - код ставки НДС [00:24:41] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 0% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 1% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 2% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 3% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 5% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 0,50% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1007 (9) - суммы НСП [00:24:41] 1014 (1) - 1,50% - код ставки НСП [00:24:41] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:41] 1133 (588) - - счетчики коррекции - не используются [00:24:41]SetTLVBufToDocument [00:24:41]Processing tag 1194 (04AA) [00:24:41]Load OK [00:24:41]SetTLVBufToDocument [00:24:41]Processing tag 1134 (046E) [00:24:41]Malloc new data [00:24:41]Processing tag 1129 (0469) [00:24:41]Load OK [00:24:41]SetTLVBufToDocument [00:24:41]Processing tag 1135 (046F) [00:24:41]Malloc new data [00:24:41]Processing tag 1201 (04B1) [00:24:41]Malloc new data [00:24:41]Processing tag 1136 (0470) [00:24:41]Malloc new data [00:24:41]Processing tag 1138 (0472) [00:24:41]Malloc new data [00:24:41]Processing tag 1024 (0400) [00:24:41]Load OK [00:24:41]SetTLVBufToDocument [00:24:41]Processing tag 1006 (03EE) [00:24:41]Load OK [00:24:41]SetTLVBufToDocument [00:24:41]Processing tag 1010 (03F2) [00:24:41]Malloc new data [00:24:41]Processing tag 1011 (03F3) [00:24:41]Malloc new data [00:24:41]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1006 (03EE) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1010 (03F2) [00:24:42]Malloc new data [00:24:42]Processing tag 1011 (03F3) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]SetTLVBufToDocument err=0 [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1130 (046A) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1135 (046F) [00:24:42]Malloc new data [00:24:42]Processing tag 1201 (04B1) [00:24:42]Malloc new data [00:24:42]Processing tag 1136 (0470) [00:24:42]Malloc new data [00:24:42]Processing tag 1138 (0472) [00:24:42]Malloc new data [00:24:42]Processing tag 1024 (0400) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1006 (03EE) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1010 (03F2) [00:24:42]Malloc new data [00:24:42]Processing tag 1011 (03F3) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1006 (03EE) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1010 (03F2) [00:24:42]Malloc new data [00:24:42]Processing tag 1011 (03F3) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]SetTLVBufToDocument err=0 [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1131 (046B) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1135 (046F) [00:24:42]Malloc new data [00:24:42]Processing tag 1201 (04B1) [00:24:42]Malloc new data [00:24:42]Processing tag 1136 (0470) [00:24:42]Malloc new data [00:24:42]Processing tag 1138 (0472) [00:24:42]Malloc new data [00:24:42]Processing tag 1024 (0400) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1006 (03EE) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1010 (03F2) [00:24:42]Malloc new data [00:24:42]Processing tag 1011 (03F3) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1006 (03EE) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1010 (03F2) [00:24:42]Malloc new data [00:24:42]Processing tag 1011 (03F3) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]SetTLVBufToDocument err=0 [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1132 (046C) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1135 (046F) [00:24:42]Malloc new data [00:24:42]Processing tag 1201 (04B1) [00:24:42]Malloc new data [00:24:42]Processing tag 1136 (0470) [00:24:42]Malloc new data [00:24:42]Processing tag 1138 (0472) [00:24:42]Malloc new data [00:24:42]Processing tag 1024 (0400) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1006 (03EE) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1010 (03F2) [00:24:42]Malloc new data [00:24:42]Processing tag 1011 (03F3) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1006 (03EE) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1010 (03F2) [00:24:42]Malloc new data [00:24:42]Processing tag 1011 (03F3) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]OFD Sender: No OFD packet to send [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1007 (03EF) [00:24:42]Load OK [00:24:42]SetTLVBufToDocument [00:24:42]Processing tag 1014 (03F6) [00:24:42]Malloc new data [00:24:42]Processing tag 1015 (03F7) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]SetTLVBufToDocument err=0 [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Processing tag 1133 (046D) [00:24:42]Malloc new data [00:24:42]SetTLVBufToDocument err=0 [00:24:42]SetTLVBufToDocument err=0 [00:24:42]Malloc new data [00:24:42]SAM_PROTO_GetFMData [00:24:42]wFMCommunicate request_size=4 [00:24:42]MH_SAM_APDU [00:24:42]CAPDU: 80 13 03 00 [00:24:42]Write to MH i2c: E2 08 00 47 34 80 13 03 00 00 00 00 00 FA [00:24:42]Write i2c OK [00:24:42]MH_I2C_Read... [00:24:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:24:43]Read from MH i2c: E2 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: E2 FD 00 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: E2 FD 00 47 34 00 C2 04 85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 C9 [00:24:43]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:24:43]wFMCommunicate OK [00:24:43]wFMCommunicate request_size=4 [00:24:43]MH_SAM_APDU [00:24:43]CAPDU: 80 17 00 00 [00:24:43]Write to MH i2c: E2 08 00 48 34 80 17 00 00 00 00 00 00 FC [00:24:43]Write i2c OK [00:24:43]MH_I2C_Read... [00:24:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:43]Read from MH i2c: E2 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: E2 FD 00 [00:24:43]MH_I2C_Read... [00:24:43]Read from MH i2c: E2 FD 00 48 34 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 6B [00:24:43]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 [00:24:44]wFMCommunicate OK [00:24:44]wFMCommunicate request_size=4 [00:24:44]MH_SAM_APDU [00:24:44]CAPDU: 80 17 00 00 [00:24:44]Write to MH i2c: E2 08 00 49 34 80 17 00 00 00 00 00 00 FD [00:24:44]Write i2c OK [00:24:44]MH_I2C_Read... [00:24:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:44]Read from MH i2c: E2 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 49 34 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 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 90 00 AB [00:24:44]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 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 90 00 [00:24:44]wFMCommunicate OK [00:24:44]wFMCommunicate request_size=4 [00:24:44]MH_SAM_APDU [00:24:44]CAPDU: 80 17 00 00 [00:24:44]Write to MH i2c: E2 08 00 4A 34 80 17 00 00 00 00 00 00 FE [00:24:44]Write i2c OK [00:24:44]MH_I2C_Read... [00:24:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:44]Read from MH i2c: E2 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 [00:24:44]MH_I2C_Read... [00:24:44]Read from MH i2c: E2 FD 00 4A 34 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 79 [00:24:44]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:24:45]wFMCommunicate OK [00:24:45]wFMCommunicate request_size=4 [00:24:45]MH_SAM_APDU [00:24:45]CAPDU: 80 17 00 00 [00:24:45]Write to MH i2c: E2 08 00 4B 34 80 17 00 00 00 00 00 00 FF [00:24:45]Write i2c OK [00:24:45]MH_I2C_Read... [00:24:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:24:45]Read from MH i2c: E2 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 DF 00 [00:24:45]MH_I2C_Read... [00:24:45]Read from MH i2c: E2 DF 00 4B 34 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DF [00:24:45]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 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:24:45]wFMCommunicate OK [00:24:45]SAM_PROTO_GetFMData done [00:24:45]FM_GetFMData:85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 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 A3 9E 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 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:24:46]oper:6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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:24:46]total:98 42 96 6E 02 [00:24:46]Malloc new data [00:24:46]oper:6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 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 A3 9E 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 [00:24:46]total:20 05 B7 [00:24:46]Malloc new data [00:24:46]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:24:46]total: [00:24:46]Malloc new data [00:24:46]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:24:46]total: [00:24:46]Malloc new data [00:24:46]KKMPrepareXReportFMData err=0 [00:24:46]Х отчет ИНН: 02508201610067 Кассир: Куранбаева Н. 25.10.2024 00:24 Смена: 522 РНМ: 0000000000091693 ЗНМ: 0300000096 СНО: Общий режим Всего чеков: 348 ИТОГИ ПРИХОД Чеков: 348 Общий итог: 240168.45 Итого наличными: 206159.00 Итого безнал.: 34009.45 НДС 0% : 0.00 НДС 12% : 25513.24 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2126.12 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 206159.00 НС Приход: 104452758.00 НС Возвр.Прихода: 119944.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871792 [00:24:46]StoreToDocumentArchive [00:24:46]MH_GetDate [00:24:46]Write to MH i2c: F0 00 00 4C 34 6F [00:24:46]Write i2c OK [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: F0 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: F0 09 00 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: F0 09 00 4C 34 00 51 E5 1A 67 50 D1 6C 64 20 [00:24:46]shift 522 fd 1729815889 [00:24:46]Create dir for shift 0522 [00:24:46]save to /storage/0522/doc_1729815889 [00:24:46]save last doc name /storage/0522/doc_1729815889 to /storage/kkm_last_doc_name [00:24:46]save OK [00:24:46]Clear old archive folders... [00:24:46]NVStorageSaveData kkm_last_timestamp [00:24:46]File name is /storage/kkm_last_timestamp [00:24:46]Write 4 bytes [00:24:46]NVStorageSaveData done [00:24:46]ExternCall_PrintAddStr [00:24:46]wPrintStart [00:24:46]Write to MH i2c: 01 00 00 4D 34 81 [00:24:46]Write i2c OK [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: 01 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: 01 07 00 [00:24:46]MH_I2C_Read... [00:24:46]Read from MH i2c: 01 07 00 4D 34 00 00 00 00 00 FF 0F 96 [00:24:46]RasterBufferAndPrint [00:24:46]line Х отчет [00:24:46]line ИНН: 02508201610067 [00:24:46]line Кассир: Куранбаева Н. [00:24:46]line 25.10.2024 00:24 [00:24:46]line Смена: 522 [00:24:46]line РНМ: 0000000000091693 [00:24:46]line ЗНМ: 0300000096 [00:24:46]line СНО: Общий режим [00:24:46]line Всего чеков: 348 [00:24:46]line ИТОГИ ПРИХОД [00:24:46]line Чеков: 348 [00:24:46]line Общий итог: 240168.45 [00:24:46]line Итого наличными: 206159.00 [00:24:46]line Итого безнал.: 34009.45 [00:24:46]line НДС 0% : 0.00 [00:24:46]line НДС 12% : 25513.24 [00:24:46]line НСП 0% : 0.00 [00:24:46]line НСП 1,50% : 0.00 [00:24:46]line НСП 0,50% : 0.00 [00:24:46]line НСП 5% : 0.00 [00:24:46]line НСП 3% : 0.00 [00:24:46]line НСП 2% : 0.00 [00:24:46]line НСП 1% : 2126.12 [00:24:46]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:24:46]line Чеков: 0 [00:24:46]line Общий итог: 0.00 [00:24:46]line Итого наличными: 0.00 [00:24:46]line Итого безнал.: 0.00 [00:24:46]line НДС 0% : 0.00 [00:24:46]line НДС 12% : 0.00 [00:24:46]line НСП 0% : 0.00 [00:24:46]line НСП 1,50% : 0.00 [00:24:46]line НСП 0,50% : 0.00 [00:24:46]line НСП 5% : 0.00 [00:24:46]line НСП 3% : 0.00 [00:24:46]line НСП 2% : 0.00 [00:24:46]line НСП 1% : 0.00 [00:24:46]line ИТОГИ РАСХОД [00:24:46]line Чеков: 0 [00:24:46]line Общий итог: 0.00 [00:24:46]line Итого наличными: 0.00 [00:24:46]line Итого безнал.: 0.00 [00:24:46]line НДС 0% : 0.00 [00:24:46]line НДС 12% : 0.00 [00:24:46]line НСП 0% : 0.00 [00:24:46]line НСП 1,50% : 0.00 [00:24:46]line НСП 0,50% : 0.00 [00:24:46]line НСП 5% : 0.00 [00:24:46]line НСП 3% : 0.00 [00:24:46]line НСП 2% : 0.00 [00:24:46]line НСП 1% : 0.00 [00:24:46]line ИТОГИ ВОЗВРАТ РАСХОДА [00:24:46]line Чеков: 0 [00:24:46]line Общий итог: 0.00 [00:24:46]line Итого наличными: 0.00 [00:24:46]line Итого безнал.: 0.00 [00:24:46]line НДС 0% : 0.00 [00:24:46]line НДС 12% : 0.00 [00:24:46]line НСП 0% : 0.00 [00:24:46]line НСП 1,50% : 0.00 [00:24:46]line НСП 0,50% : 0.00 [00:24:46]line НСП 5% : 0.00 [00:24:46]line НСП 3% : 0.00 [00:24:46]line НСП 2% : 0.00 [00:24:46]line НСП 1% : 0.00 [00:24:46]line Сумма внесений: 0.00 [00:24:46]line Сумма выплат: 0.00 [00:24:46]line Нал. в кассе: 206159.00 [00:24:46]line НС Приход: 104452758.00 [00:24:46]line НС Возвр.Прихода: 119944.00 [00:24:46]line НС Расход: 0.00 [00:24:46]line НС Возвр.Расхода: 0.00 [00:24:46]line ФМ: 0000000000871792 [00:24:46]written 0, free lines is 4095 [00:24:47]Write to MH i2c: 01 00 00 98 34 CC [00:24:47]Write i2c OK [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: 01 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: 01 07 00 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: 01 07 00 98 34 00 00 00 00 00 A6 0A 83 [00:24:47]RasterBufferAndPrint [00:24:47]line [00:24:47]line [00:24:47]line [00:24:47]line [00:24:47]line [00:24:47]written 0, free lines is 2760 [00:24:47]process_action x_report done [00:24:47]requested_data is exist [00:24:47]produce_requested_data [00:24:47]requested_item fd.num is exist - process it [00:24:47]SAM_PROTO_GetFieldsCounters [00:24:47]wFMCommunicate request_size=4 [00:24:47]MH_SAM_APDU [00:24:47]CAPDU: 80 13 00 00 [00:24:47]Write to MH i2c: E2 08 00 9F 34 80 13 00 00 00 00 00 00 4F [00:24:47]Write i2c OK [00:24:47]MH_I2C_Read... [00:24:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:47]Read from MH i2c: E2 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 62 00 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 62 00 9F 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4B 60 02 00 0E 04 04 00 16 02 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 51 [00: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4B 60 02 00 0E 04 04 00 16 02 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 [00:24:47]wFMCommunicate OK [00:24:47]SAM_PROTO_GetFieldsCounters done [00:24:47]requested_item shift.num is exist - process it [00:24:47]requested_item shift.opened is exist - process it [00:24:47]req_shift_opened [00:24:47]FM_GetShiftState [00:24:47]SAM_PROTO_GetShiftState [00:24:47]wFMCommunicate request_size=4 [00:24:47]MH_SAM_APDU [00:24:47]CAPDU: 80 13 01 00 [00:24:47]Write to MH i2c: E2 08 00 A0 34 80 13 01 00 00 00 00 00 51 [00:24:47]Write i2c OK [00:24:47]MH_I2C_Read... [00:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:47]Read from MH i2c: E2 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 0E 00 [00:24:47]MH_I2C_Read... [00:24:47]Read from MH i2c: E2 0E 00 A0 34 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 9E [00:24:47]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [00:24:47]wFMCommunicate OK [00:24:47]SAM_PROTO_GetShiftState done [00:24:47]FM_GetShiftState done [00:24:47]req_shift_opened done [00:24:47]requested_item shift.open_date is exist - process it [00:24:47]req_shift_open_date [00:24:47]req_shift_open_date done [00:24:47]produce_requested_data done [00:24:47]produce_requested_data return {"fd.num":155723,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [00:24:47]process_action_free x_report [00:24:47]json_value_free [00:24:47]json_value_free done [00:24:47]process_json_proto returns [00:24:47]Send response to host [00:24:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":155723,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [00:24:47]free response buf [00:24:47]execute_script done [00:24:47]execute_script returns [00:24:47]free content buf [00:24:47]Sock 8.Close socket [00:24:47]Sock 8.Thread stoped [00:24:47]OFD Sender: No OFD packet to send [00:24:51]accept exits with 10 [00:24:51]New connection [00:24:51]New thread 3066637668 created [00:24:51]Thread 3066781028 joined [00:24:51]Waiting for new connection... [00:24:51] Sock 10.Parse request [00:24:51]Sock 10.Check first char [00:24:51]Sock 10.First char is OK [00:24:51]request: POST /json_proto HTTP/1.0 [00:24:51]Method: POST [00:24:51]URL: /json_proto [00:24:51]Method is POST - this is cgi request [00:24:51]url: /json_proto [00:24:51]query_string will be loaded in cgi processing [00:24:51]execute_cgi json_proto POST (null) [00:24:51]execute_cgi path=json_proto method=POST [00:24:51]POST find Content-Length [00:24:51]Host: 172.17.63.3:8080 [00:24:51]Content-Length: 215 [00:24:51]Content-Type: application/json [00:24:51] [00:24:51]POST finish read [00:24:51]Found Content-Length = 215 [00:24:51]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:24:51]execute_script... [00:24:51]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:24:51]POST & json_proto [00:24:51]process_json_proto [00:24:51]json parsed OK: [00:24:51]protocol is kg_v1.0 [00:24:51]action value=get_value [00:24:51]process_action get_value [00:24:51]cmd_get_value [00:24:51]process_action get_value done [00:24:51]requested_data is exist [00:24:51]produce_requested_data [00:24:51]requested_item kkm.sn is exist - process it [00:24:51]requested_item kkm.ver is exist - process it [00:24:51]requested_item fm.sn is exist - process it [00:24:51]wFMCommunicate request_size=4 [00:24:51]MH_SAM_APDU [00:24:51]CAPDU: 80 11 00 00 [00:24:51]Write to MH i2c: E2 08 00 A1 34 80 11 00 00 00 00 00 00 4F [00:24:51]Write i2c OK [00:24:51]MH_I2C_Read... [00:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:51]Read from MH i2c: E2 [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: E2 17 00 [00:24:51]MH_I2C_Read... [00:24:51]Read from MH i2c: E2 17 00 A1 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A4 [00:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:24:52]wFMCommunicate OK [00:24:52]requested_item fd.num is exist - process it [00:24:52]SAM_PROTO_GetFieldsCounters [00:24:52]wFMCommunicate request_size=4 [00:24:52]MH_SAM_APDU [00:24:52]CAPDU: 80 13 00 00 [00:24:52]Write to MH i2c: E2 08 00 A2 34 80 13 00 00 00 00 00 00 52 [00:24:52]Write i2c OK [00:24:52]MH_I2C_Read... [00:24:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:52]Read from MH i2c: E2 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: E2 62 00 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: E2 62 00 A2 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4B 60 02 00 0E 04 04 00 16 02 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 54 [00:24: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4B 60 02 00 0E 04 04 00 16 02 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 [00:24:52]wFMCommunicate OK [00:24:52]SAM_PROTO_GetFieldsCounters done [00:24:52]requested_item shift.num is exist - process it [00:24:52]requested_item shift.opened is exist - process it [00:24:52]req_shift_opened [00:24:52]FM_GetShiftState [00:24:52]SAM_PROTO_GetShiftState [00:24:52]wFMCommunicate request_size=4 [00:24:52]MH_SAM_APDU [00:24:52]CAPDU: 80 13 01 00 [00:24:52]Write to MH i2c: E2 08 00 A3 34 80 13 01 00 00 00 00 00 54 [00:24:52]Write i2c OK [00:24:52]MH_I2C_Read... [00:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:52]Read from MH i2c: E2 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: E2 0E 00 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: E2 0E 00 A3 34 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 A1 [00:24:52]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [00:24:52]wFMCommunicate OK [00:24:52]SAM_PROTO_GetShiftState done [00:24:52]FM_GetShiftState done [00:24:52]req_shift_opened done [00:24:52]requested_item shift.open_date is exist - process it [00:24:52]req_shift_open_date [00:24:52]req_shift_open_date done [00:24:52]produce_requested_data done [00:24:52]produce_requested_data return {"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":155723,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836} [00:24:52]process_action_free get_value [00:24:52]json_value_free [00:24:52]json_value_free done [00:24:52]process_json_proto returns [00:24:52]Send response to host [00:24:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":155723,"shift.num":534,"shift.opened":1,"shift.open_date":1729729836}}} [00:24:52]free response buf [00:24:52]execute_script done [00:24:52]execute_script returns [00:24:52]free content buf [00:24:52]Sock 10.Close socket [00:24:52]Sock 10.Thread stoped [00:24:52]accept exits with 8 [00:24:52]New connection [00:24:52]New thread 3066781028 created [00:24:52]Thread 3066637668 joined [00:24:52]Waiting for new connection... [00:24:52] Sock 8.Parse request [00:24:52]Sock 8.Check first char [00:24:52]Sock 8.First char is OK [00:24:52]request: POST /json_proto HTTP/1.0 [00:24:52]Method: POST [00:24:52]URL: /json_proto [00:24:52]Method is POST - this is cgi request [00:24:52]url: /json_proto [00:24:52]query_string will be loaded in cgi processing [00:24:52]execute_cgi json_proto POST (null) [00:24:52]execute_cgi path=json_proto method=POST [00:24:52]POST find Content-Length [00:24:52]Host: 172.17.63.3:8080 [00:24:52]Content-Length: 331 [00:24:52]Content-Type: application/json [00:24:52] [00:24:52]POST finish read [00:24:52]Found Content-Length = 331 [00:24:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:24:52]execute_script... [00:24:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:24:52]POST & json_proto [00:24:52]process_json_proto [00:24:52]json parsed OK: [00:24:52]protocol is kg_v1.0 [00:24:52]action value=get_value [00:24:52]process_action get_value [00:24:52]cmd_get_value [00:24:52]process_action get_value done [00:24:52]requested_data is exist [00:24:52]produce_requested_data [00:24:52]requested_item fm.sale.total is exist - process it [00:24:52]SAM_PROTO_GetFMData [00:24:52]wFMCommunicate request_size=4 [00:24:52]MH_SAM_APDU [00:24:52]CAPDU: 80 13 03 00 [00:24:52]Write to MH i2c: E2 08 00 A4 34 80 13 03 00 00 00 00 00 57 [00:24:52]Write i2c OK [00:24:52]MH_I2C_Read... [00:24:52]OFD Sender: No OFD packet to send [00:24:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:24:52]Read from MH i2c: E2 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: E2 FD 00 [00:24:52]MH_I2C_Read... [00:24:52]Read from MH i2c: E2 FD 00 A4 34 00 C2 04 85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 26 [00:24:53]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:24:53]wFMCommunicate OK [00:24:53]wFMCommunicate request_size=4 [00:24:53]MH_SAM_APDU [00:24:53]CAPDU: 80 17 00 00 [00:24:53]Write to MH i2c: E2 08 00 A5 34 80 17 00 00 00 00 00 00 59 [00:24:53]Write i2c OK [00:24:53]MH_I2C_Read... [00:24:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:53]Read from MH i2c: E2 [00:24:53]MH_I2C_Read... [00:24:53]Read from MH i2c: E2 FD 00 [00:24:53]MH_I2C_Read... [00:24:53]Read from MH i2c: E2 FD 00 A5 34 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 C8 [00:24:53]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 [00:24:53]wFMCommunicate OK [00:24:53]wFMCommunicate request_size=4 [00:24:53]MH_SAM_APDU [00:24:53]CAPDU: 80 17 00 00 [00:24:53]Write to MH i2c: E2 08 00 A6 34 80 17 00 00 00 00 00 00 5A [00:24:53]Write i2c OK [00:24:53]MH_I2C_Read... [00:24:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:54]Read from MH i2c: E2 [00:24:54]MH_I2C_Read... [00:24:54]Read from MH i2c: E2 FD 00 [00:24:54]MH_I2C_Read... [00:24:54]Read from MH i2c: E2 FD 00 A6 34 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 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 90 00 08 [00:24:54]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 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 90 00 [00:24:54]wFMCommunicate OK [00:24:54]wFMCommunicate request_size=4 [00:24:54]MH_SAM_APDU [00:24:54]CAPDU: 80 17 00 00 [00:24:54]Write to MH i2c: E2 08 00 A7 34 80 17 00 00 00 00 00 00 5B [00:24:54]Write i2c OK [00:24:54]MH_I2C_Read... [00:24:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:54]Read from MH i2c: E2 [00:24:54]MH_I2C_Read... [00:24:54]Read from MH i2c: E2 FD 00 [00:24:54]MH_I2C_Read... [00:24:54]Read from MH i2c: E2 FD 00 A7 34 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D6 [00:24:54]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:24:55]wFMCommunicate OK [00:24:55]wFMCommunicate request_size=4 [00:24:55]MH_SAM_APDU [00:24:55]CAPDU: 80 17 00 00 [00:24:55]Write to MH i2c: E2 08 00 A8 34 80 17 00 00 00 00 00 00 5C [00:24:55]Write i2c OK [00:24:55]MH_I2C_Read... [00:24:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:24:55]Read from MH i2c: E2 [00:24:55]MH_I2C_Read... [00:24:55]Read from MH i2c: E2 DF 00 [00:24:55]MH_I2C_Read... [00:24:55]Read from MH i2c: E2 DF 00 A8 34 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3C [00:24:55]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 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:24:55]wFMCommunicate OK [00:24:55]SAM_PROTO_GetFMData done [00:24:55]requested_item fm.sale_refund.total is exist - process it [00:24:55]requested_item fm.buy.total is exist - process it [00:24:55]requested_item shift.sale.total is exist - process it [00:24:55]SAM_PROTO_GetShiftData [00:24:55]wFMCommunicate request_size=4 [00:24:55]MH_SAM_APDU [00:24:55]CAPDU: 80 13 02 00 [00:24:55]Write to MH i2c: E2 08 00 A9 34 80 13 02 00 00 00 00 00 5B [00:24:55]Write i2c OK [00:24:55]MH_I2C_Read... [00:24:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:24:56]Read from MH i2c: E2 [00:24:56]MH_I2C_Read... [00:24:56]Read from MH i2c: E2 FD 00 [00:24:56]MH_I2C_Read... [00:24:56]Read from MH i2c: E2 FD 00 A9 34 00 B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 84 3E 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 45 [00:24:56]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 84 3E 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:24:56]wFMCommunicate OK [00:24:56]wFMCommunicate request_size=4 [00:24:56]MH_SAM_APDU [00:24:56]CAPDU: 80 17 00 00 [00:24:56]Write to MH i2c: E2 08 00 AA 34 80 17 00 00 00 00 00 00 5E [00:24:56]Write i2c OK [00:24:56]MH_I2C_Read... [00:24:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:56]Read from MH i2c: E2 [00:24:56]MH_I2C_Read... [00:24:56]Read from MH i2c: E2 FD 00 [00:24:56]MH_I2C_Read... [00:24:56]Read from MH i2c: E2 FD 00 AA 34 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 77 [00:24:56]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:24:56]wFMCommunicate OK [00:24:56]wFMCommunicate request_size=4 [00:24:56]MH_SAM_APDU [00:24:56]CAPDU: 80 17 00 00 [00:24:56]Write to MH i2c: E2 08 00 AB 34 80 17 00 00 00 00 00 00 5F [00:24:56]Write i2c OK [00:24:56]MH_I2C_Read... [00:24:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:57]Read from MH i2c: E2 [00:24:57]MH_I2C_Read... [00:24:57]Read from MH i2c: E2 FD 00 [00:24:57]MH_I2C_Read... [00:24:57]Read from MH i2c: E2 FD 00 AB 34 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 18 [00:24:57]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:24:57]wFMCommunicate OK [00:24:57]wFMCommunicate request_size=4 [00:24:57]MH_SAM_APDU [00:24:57]CAPDU: 80 17 00 00 [00:24:57]Write to MH i2c: E2 08 00 AC 34 80 17 00 00 00 00 00 00 60 [00:24:57]Write i2c OK [00:24:57]MH_I2C_Read... [00:24:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:57]Read from MH i2c: E2 [00:24:57]MH_I2C_Read... [00:24:57]Read from MH i2c: E2 FD 00 [00:24:57]MH_I2C_Read... [00:24:57]Read from MH i2c: E2 FD 00 AC 34 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 D8 [00:24:58]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 OFD Sender: No OFD packet to send [00:24:58]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:24:58]wFMCommunicate OK [00:24:58]wFMCommunicate request_size=4 [00:24:58]MH_SAM_APDU [00:24:58]CAPDU: 80 17 00 00 [00:24:58]Write to MH i2c: E2 08 00 AD 34 80 17 00 00 00 00 00 00 61 [00:24:58]Write i2c OK [00:24:58]MH_I2C_Read... [00:24:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:24:58]Read from MH i2c: E2 [00:24:58]MH_I2C_Read... [00:24:58]Read from MH i2c: E2 CE 00 [00:24:58]MH_I2C_Read... [00:24:58]Read from MH i2c: E2 CE 00 AD 34 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 46 [00:24:58]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:24:58]wFMCommunicate OK [00:24:58]SAM_PROTO_GetShiftData done [00:24:58]requested_item shift.sale.total_cash is exist - process it [00:24:58]requested_item shift.sale_refund.total is exist - process it [00:24:58]requested_item shift.sale_refund.total_cash is exist - process it [00:24:58]requested_item shift.buy.total is exist - process it [00:24:58]requested_item shift.buy.total_cash is exist - process it [00:24:58]produce_requested_data done [00:24:58]produce_requested_data return {"fm.sale.total":104452758.00,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":240168.45,"shift.sale.total_cash":206159.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:24:58]process_action_free get_value [00:24:58]json_value_free [00:24:58]json_value_free done [00:24:58]process_json_proto returns [00:24:58]Send response to host [00:24:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104452758.00,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":240168.45,"shift.sale.total_cash":206159.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:24:58]free response buf [00:24:58]execute_script done [00:24:58]execute_script returns [00:24:58]free content buf [00:24:58]Sock 8.Close socket [00:24:58]Sock 8.Thread stoped [00:24:58]accept exits with 9 [00:24:58]New connection [00:24:58]New thread 3066637668 created [00:24:58]Thread 3066781028 joined [00:24:58]Waiting for new connection... [00:24:58] Sock 9.Parse request [00:24:58]Sock 9.Check first char [00:24:58]Sock 9.First char is OK [00:24:58]request: POST /json_proto HTTP/1.0 [00:24:58]Method: POST [00:24:58]URL: /json_proto [00:24:58]Method is POST - this is cgi request [00:24:58]url: /json_proto [00:24:58]query_string will be loaded in cgi processing [00:24:58]execute_cgi json_proto POST (null) [00:24:58]execute_cgi path=json_proto method=POST [00:24:58]POST find Content-Length [00:24:58]Host: 172.17.63.3:8080 [00:24:58]Content-Length: 331 [00:24:58]Content-Type: application/json [00:24:58] [00:24:58]POST finish read [00:24:58]Found Content-Length = 331 [00:24:58]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:24:58]execute_script... [00:24:58]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:24:58]POST & json_proto [00:24:58]process_json_proto [00:24:58]json parsed OK: [00:24:58]protocol is kg_v1.0 [00:24:58]action value=get_value [00:24:58]process_action get_value [00:24:58]cmd_get_value [00:24:58]process_action get_value done [00:24:58]requested_data is exist [00:24:58]produce_requested_data [00:24:58]requested_item fm.sale.total is exist - process it [00:24:58]SAM_PROTO_GetFMData [00:24:58]wFMCommunicate request_size=4 [00:24:58]MH_SAM_APDU [00:24:58]CAPDU: 80 13 03 00 [00:24:58]Write to MH i2c: E2 08 00 AE 34 80 13 03 00 00 00 00 00 61 [00:24:58]Write i2c OK [00:24:58]MH_I2C_Read... [00:24:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:24:59]Read from MH i2c: E2 [00:24:59]MH_I2C_Read... [00:24:59]Read from MH i2c: E2 FD 00 [00:24:59]MH_I2C_Read... [00:24:59]Read from MH i2c: E2 FD 00 AE 34 00 C2 04 85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 30 [00:24:59]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:24:59]wFMCommunicate OK [00:24:59]wFMCommunicate request_size=4 [00:24:59]MH_SAM_APDU [00:24:59]CAPDU: 80 17 00 00 [00:24:59]Write to MH i2c: E2 08 00 AF 34 80 17 00 00 00 00 00 00 63 [00:24:59]Write i2c OK [00:24:59]MH_I2C_Read... [00:25:00]Read from MH i2c: E2 [00:25:00]MH_I2C_Read... [00:25:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:00]Read from MH i2c: E2 FD 00 [00:25:00]MH_I2C_Read... [00:25:00]Read from MH i2c: E2 FD 00 AF 34 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 D2 [00:25:00]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 [00:25:00]wFMCommunicate OK [00:25:00]wFMCommunicate request_size=4 [00:25:00]MH_SAM_APDU [00:25:00]CAPDU: 80 17 00 00 [00:25:00]Write to MH i2c: E2 08 00 B0 34 80 17 00 00 00 00 00 00 64 [00:25:00]Write i2c OK [00:25:00]MH_I2C_Read... [00:25:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:00]Read from MH i2c: E2 [00:25:00]MH_I2C_Read... [00:25:00]Read from MH i2c: E2 FD 00 [00:25:00]MH_I2C_Read... [00:25:00]Read from MH i2c: E2 FD 00 B0 34 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 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 90 00 12 [00:25:00]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:25:01]wFMCommunicate OK [00:25:01]wFMCommunicate request_size=4 [00:25:01]MH_SAM_APDU [00:25:01]CAPDU: 80 17 00 00 [00:25:01]Write to MH i2c: E2 08 00 B1 34 80 17 00 00 00 00 00 00 65 [00:25:01]Write i2c OK [00:25:01]MH_I2C_Read... [00:25:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:01]Read from MH i2c: E2 [00:25:01]MH_I2C_Read... [00:25:01]Read from MH i2c: E2 FD 00 [00:25:01]MH_I2C_Read... [00:25:01]Read from MH i2c: E2 FD 00 B1 34 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E0 [00:25:01]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:01]wFMCommunicate OK [00:25:01]wFMCommunicate request_size=4 [00:25:01]MH_SAM_APDU [00:25:01]CAPDU: 80 17 00 00 [00:25:01]Write to MH i2c: E2 08 00 B2 34 80 17 00 00 00 00 00 00 66 [00:25:01]Write i2c OK [00:25:01]MH_I2C_Read... [00:25:01]Read from MH i2c: E2 [00:25:01]MH_I2C_Read... [00:25:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:25:01]Read from MH i2c: E2 DF 00 [00:25:01]MH_I2C_Read... [00:25:01]Read from MH i2c: E2 DF 00 B2 34 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 46 [00:25:02]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 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:25:02]wFMCommunicate OK [00:25:02]SAM_PROTO_GetFMData done [00:25:02]requested_item fm.sale_refund.total is exist - process it [00:25:02]requested_item fm.buy.total is exist - process it [00:25:02]requested_item shift.sale.total is exist - process it [00:25:02]SAM_PROTO_GetShiftData [00:25:02]wFMCommunicate request_size=4 [00:25:02]MH_SAM_APDU [00:25:02]CAPDU: 80 13 02 00 [00:25:02]Write to MH i2c: E2 08 00 B3 34 80 13 02 00 00 00 00 00 65 [00:25:02]Write i2c OK [00:25:02]MH_I2C_Read... [00:25:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:02]Read from MH i2c: E2 [00:25:02]MH_I2C_Read... [00:25:02]Read from MH i2c: E2 FD 00 [00:25:02]MH_I2C_Read... [00:25:02]Read from MH i2c: E2 FD 00 B3 34 00 B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 84 3E 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 4F [00:25:02]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 84 3E 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:25:03]wFMCommunicate OK [00:25:03]wFMCommunicate request_size=4 [00:25:03]OFD Sender: No OFD packet to send [00:25:03]MH_SAM_APDU [00:25:03]CAPDU: 80 17 00 00 [00:25:03]Write to MH i2c: E2 08 00 B4 34 80 17 00 00 00 00 00 00 68 [00:25:03]Write i2c OK [00:25:03]MH_I2C_Read... [00:25:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:03]Read from MH i2c: E2 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: E2 FD 00 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: E2 FD 00 B4 34 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 81 [00:25: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:25:03]wFMCommunicate OK [00:25:03]wFMCommunicate request_size=4 [00:25:03]MH_SAM_APDU [00:25:03]CAPDU: 80 17 00 00 [00:25:03]Write to MH i2c: E2 08 00 B5 34 80 17 00 00 00 00 00 00 69 [00:25:03]Write i2c OK [00:25:03]MH_I2C_Read... [00:25:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:04]Read from MH i2c: E2 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 FD 00 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 FD 00 B5 34 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 22 [00:25: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:25:04]wFMCommunicate OK [00:25:04]wFMCommunicate request_size=4 [00:25:04]MH_SAM_APDU [00:25:04]CAPDU: 80 17 00 00 [00:25:04]Write to MH i2c: E2 08 00 B6 34 80 17 00 00 00 00 00 00 6A [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:04]Read from MH i2c: E2 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 FD 00 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: E2 FD 00 B6 34 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 E2 [00:25: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:25:05]wFMCommunicate OK [00:25:05]wFMCommunicate request_size=4 [00:25:05]MH_SAM_APDU [00:25:05]CAPDU: 80 17 00 00 [00:25:05]Write to MH i2c: E2 08 00 B7 34 80 17 00 00 00 00 00 00 6B [00:25:05]Write i2c OK [00:25:05]MH_I2C_Read... [00:25:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:25:05]Read from MH i2c: E2 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 CE 00 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: E2 CE 00 B7 34 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 50 [00:25:05]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:05]wFMCommunicate OK [00:25:05]SAM_PROTO_GetShiftData done [00:25:05]requested_item shift.sale.total_cash is exist - process it [00:25:05]requested_item shift.sale_refund.total is exist - process it [00:25:05]requested_item shift.sale_refund.total_cash is exist - process it [00:25:05]requested_item shift.buy.total is exist - process it [00:25:05]requested_item shift.buy.total_cash is exist - process it [00:25:05]produce_requested_data done [00:25:05]produce_requested_data return {"fm.sale.total":104452758.00,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":240168.45,"shift.sale.total_cash":206159.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:25:05]process_action_free get_value [00:25:05]json_value_free [00:25:05]json_value_free done [00:25:05]process_json_proto returns [00:25:05]Send response to host [00:25:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104452758.00,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":240168.45,"shift.sale.total_cash":206159.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:25:05]free response buf [00:25:05]execute_script done [00:25:05]execute_script returns [00:25:05]free content buf [00:25:05]Sock 9.Close socket [00:25:05]Sock 9.Thread stoped [00:25:05]accept exits with 8 [00:25:05]New connection [00:25:05]New thread 3066781028 created [00:25:05] Sock 8.Parse request [00:25:05]Thread 3066637668 joined [00:25:05]Sock 8.Check first char [00:25:05]Waiting for new connection... [00:25:05]Sock 8.First char is OK [00:25:05]request: POST /json_proto HTTP/1.0 [00:25:05]Method: POST [00:25:05]URL: /json_proto [00:25:05]Method is POST - this is cgi request [00:25:05]url: /json_proto [00:25:05]query_string will be loaded in cgi processing [00:25:05]execute_cgi json_proto POST (null) [00:25:05]execute_cgi path=json_proto method=POST [00:25:05]POST find Content-Length [00:25:05]Host: 172.17.63.3:8080 [00:25:05]Content-Length: 272 [00:25:05]Content-Type: application/json [00:25:05] [00:25:05]POST finish read [00:25:05]Found Content-Length = 272 [00:25:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0443\u0440\u0430\u043D\u0431\u0430\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:05]execute_script... [00:25:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0443\u0440\u0430\u043D\u0431\u0430\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:05]POST & json_proto [00:25:05]process_json_proto [00:25:05]json parsed OK: [00:25:05]protocol is kg_v1.0 [00:25:05]action value=close_shift [00:25:05]process_action close_shift [00:25:05]cmd_close_shift [00:25:05]MH_GetDate [00:25:05]Write to MH i2c: F0 00 00 B8 34 DB [00:25:05]Write i2c OK [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: F0 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: F0 09 00 [00:25:05]MH_I2C_Read... [00:25:05]Read from MH i2c: F0 09 00 B8 34 00 64 E5 1A 67 50 D1 6C 64 9F [00:25:05]GetLastDocTimeStamp 1729815881 [00:25:05]current date 1729815908 [00:25:05]FM_GetShiftState [00:25:05]SAM_PROTO_GetShiftState [00:25:05]wFMCommunicate request_size=4 [00:25:05]MH_SAM_APDU [00:25:05]CAPDU: 80 13 01 00 [00:25:05]Write to MH i2c: E2 08 00 B9 34 80 13 01 00 00 00 00 00 6A [00:25:05]Write i2c OK [00:25:05]MH_I2C_Read... [00:25:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:06]Read from MH i2c: E2 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 0E 00 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 0E 00 B9 34 00 09 00 01 2C 95 19 67 00 00 00 00 90 00 B7 [00:25:06]RAPDU: 09 00 01 2C 95 19 67 00 00 00 00 90 00 [00:25:06]wFMCommunicate OK [00:25:06]SAM_PROTO_GetShiftState done [00:25:06]FM_GetShiftState done [00:25:06]KKMCreateCloseShiftDocument [00:25:06]Load OK [00:25:06]Malloc new data [00:25:06]MH_GetDate [00:25:06]Write to MH i2c: F0 00 00 BA 34 DD [00:25:06]Write i2c OK [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: F0 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: F0 09 00 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: F0 09 00 BA 34 00 64 E5 1A 67 50 D1 6C 64 A1 [00:25:06]Malloc new data [00:25:06]Malloc new data [00:25:06]Malloc new data [00:25:06]Malloc new data [00:25:06]KKMCreateCloseShiftDocument OK [00:25:06]KKMSetCloseShiftData OK [00:25:06]ProcessDocumentItem done err = 0, tmpTLVsize=75 [00:25:06]tlvbuf is B6E7E760 [00:25:06]KKMLoadAndSignCloseShiftData [00:25:06]SAM_PROTO_ProcessDocument [00:25:06]wFMCommunicate request_size=9 [00:25:06]MH_SAM_APDU [00:25:06]CAPDU: 80 15 01 00 04 05 00 4B 00 [00:25:06]Write to MH i2c: E2 0C 00 BB 34 80 15 01 00 04 00 05 00 4B 00 00 00 C6 [00:25:06]Write i2c OK [00:25:06]MH_I2C_Read... [00:25:06]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:25:06]Read from MH i2c: E2 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 03 00 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 03 00 BB 34 00 90 00 63 [00:25:06]RAPDU: 90 00 [00:25:06]wFMCommunicate OK [00:25:06]wFMCommunicate request_size=23 [00:25:06]MH_SAM_APDU [00:25:06]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:25:06]Write to MH i2c: E2 1A 00 BC 34 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 65 [00:25:06]Write i2c OK [00:25:06]MH_I2C_Read... [00:25:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:06]Read from MH i2c: E2 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 03 00 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 03 00 BC 34 00 90 00 64 [00:25:06]RAPDU: 90 00 [00:25:06]wFMCommunicate OK [00:25:06]wFMCommunicate request_size=34 [00:25:06]MH_SAM_APDU [00:25:06]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 [00:25:06]Write to MH i2c: E2 25 00 BD 34 80 15 02 00 1D 00 FD 03 19 00 D0 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 00 00 43 [00:25:06]Write i2c OK [00:25:06]MH_I2C_Read... [00:25:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:06]Read from MH i2c: E2 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 03 00 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 03 00 BD 34 00 90 00 65 [00:25:06]RAPDU: 90 00 [00:25:06]wFMCommunicate OK [00:25:06]wFMCommunicate request_size=13 [00:25:06]MH_SAM_APDU [00:25:06]CAPDU: 80 15 02 00 08 F4 03 04 00 64 E5 1A 67 [00:25:06]Write to MH i2c: E2 10 00 BE 34 80 15 02 00 08 00 F4 03 04 00 64 E5 1A 67 00 00 47 [00:25:06]Write i2c OK [00:25:06]MH_I2C_Read... [00:25:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:06]Read from MH i2c: E2 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 03 00 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 03 00 BE 34 00 90 00 66 [00:25:06]RAPDU: 90 00 [00:25:06]wFMCommunicate OK [00:25:06]wFMCommunicate request_size=25 [00:25:06]MH_SAM_APDU [00:25:06]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 [00:25:06]Write to MH i2c: E2 1C 00 BF 34 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 00 00 D8 [00:25:06]Write i2c OK [00:25:06]MH_I2C_Read... [00:25:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:25:06]Read from MH i2c: E2 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 03 00 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: E2 03 00 BF 34 00 90 00 67 [00:25:06]RAPDU: 90 00 [00:25:06]wFMCommunicate OK [00:25:06]wFMCommunicate request_size=4 [00:25:06]MH_SAM_APDU [00:25:06]CAPDU: 80 15 03 00 [00:25:06]Write to MH i2c: E2 08 00 C0 34 80 15 03 00 00 00 00 00 75 [00:25:06]Write i2c OK [00:25:06]MH_I2C_Read... [00:25:07]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:25:07]Read from MH i2c: E2 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 FD 00 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 FD 00 C0 34 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 39 32 10 04 04 00 4C 60 02 00 0E 04 04 00 16 02 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5E 01 00 00 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 84 3E 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 76 [00:25:07]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 39 32 10 04 04 00 4C 60 02 00 0E 04 04 00 16 02 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5E 01 00 00 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 84 3E 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:25:07]wFMCommunicate OK [00:25:07]SAM_PROTO_ProcessDocument answer len = 1268 [00:25:07]SAM_PROTO_ProcessDocument remain to read = 1020 [00:25:07]wFMCommunicate request_size=4 [00:25:07]MH_SAM_APDU [00:25:07]CAPDU: 80 17 00 00 [00:25:07]Write to MH i2c: E2 08 00 C1 34 80 17 00 00 00 00 00 00 75 [00:25:07]Write i2c OK [00:25:07]MH_I2C_Read... [00:25:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:07]Read from MH i2c: E2 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 FD 00 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 FD 00 C1 34 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 C9 [00:25:08]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 OFD Sender: No OFD packet to send [00:25:08]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:25:08]wFMCommunicate OK [00:25:08]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:25:08]SAM_PROTO_ProcessDocument remain to read = 770 [00:25:08]wFMCommunicate request_size=4 [00:25:08]MH_SAM_APDU [00:25:08]CAPDU: 80 17 00 00 [00:25:08]Write to MH i2c: E2 08 00 C2 34 80 17 00 00 00 00 00 00 76 [00:25:08]Write i2c OK [00:25:08]MH_I2C_Read... [00:25:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:08]Read from MH i2c: E2 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 FD 00 [00:25:08]MH_I2C_Read... [00:25:08]Read from MH i2c: E2 FD 00 C2 34 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 D8 [00:25:08]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:25:09]wFMCommunicate OK [00:25:09]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:25:09]SAM_PROTO_ProcessDocument remain to read = 520 [00:25:09]wFMCommunicate request_size=4 [00:25:09]MH_SAM_APDU [00:25:09]CAPDU: 80 17 00 00 [00:25:09]Write to MH i2c: E2 08 00 C3 34 80 17 00 00 00 00 00 00 77 [00:25:09]Write i2c OK [00:25:09]MH_I2C_Read... [00:25:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:09]Read from MH i2c: E2 [00:25:09]MH_I2C_Read... [00:25:09]Read from MH i2c: E2 FD 00 [00:25:09]MH_I2C_Read... [00:25:09]Read from MH i2c: E2 FD 00 C3 34 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 FF [00:25:09]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:25:09]wFMCommunicate OK [00:25:09]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:25:09]SAM_PROTO_ProcessDocument remain to read = 270 [00:25:09]wFMCommunicate request_size=4 [00:25:09]MH_SAM_APDU [00:25:09]CAPDU: 80 17 00 00 [00:25:09]Write to MH i2c: E2 08 00 C4 34 80 17 00 00 00 00 00 00 78 [00:25:09]Write i2c OK [00:25:09]MH_I2C_Read... [00:25:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:10]Read from MH i2c: E2 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 FD 00 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 FD 00 C4 34 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 42 [00:25:10]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:25:10]wFMCommunicate OK [00:25:10]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:25:10]SAM_PROTO_ProcessDocument remain to read = 20 [00:25:10]wFMCommunicate request_size=4 [00:25:10]MH_SAM_APDU [00:25:10]CAPDU: 80 17 00 00 [00:25:10]Write to MH i2c: E2 08 00 C5 34 80 17 00 00 00 00 00 00 79 [00:25:10]Write i2c OK [00:25:10]MH_I2C_Read... [00:25:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:25:10]Read from MH i2c: E2 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 17 00 [00:25:10]MH_I2C_Read... [00:25:10]Read from MH i2c: E2 17 00 C5 34 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 20 80 DA 76 2E 0E 90 00 E6 [00:25:10]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 20 80 DA 76 2E 0E 90 00 [00:25:10]wFMCommunicate OK [00:25:10]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:25:10]SAM_PROTO_ProcessDocument done [00:25:10]1209 (1) - 1.0 - номер версии ФФД [00:25:10]1041 (16) - 0000000000871792 - номер ФМ [00:25:10]1040 (4) - 155724 - номер ФД [00:25:10]1038 (4) - 534 - номер смены [00:25:10]1118 (4) - 348 - количество кассовых чеков за смену [00:25:10]1111 (4) - 350 - общее количество ФД за смену [00:25:10]1194 (1197) - счетчики итогов смены [00:25:10] 1134 (4) - 348 - количество чеков со всеми признаками расчетов [00:25:10] 1129 (158) - счетчики операций «приход» [00:25:10] 1135 (4) - 348 - количество чеков по признаку расчетов [00:25:10] 1201 (4) - 240168.45 - общая итоговая сумма в чеках [00:25:10] 1136 (4) - 206159.00 - итоговая сумма в чеках наличными [00:25:10] 1138 (3) - 34009.45 - итоговая сумма в чеках безналичными [00:25:10] 1024 (123) - суммы налогов [00:25:10] 1006 (9) - суммы НДС [00:25:10] 1010 (1) - 0% - код ставки НДС [00:25:10] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:10] 1006 (12) - суммы НДС [00:25:10] 1010 (1) - 12% - код ставки НДС [00:25:10] 1011 (3) - 25513.24 - сумма НДС по ставке [00:25:10] 1007 (9) - суммы НСП [00:25:10] 1014 (1) - 0% - код ставки НСП [00:25:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:10] 1007 (12) - суммы НСП [00:25:10] 1014 (1) - 1% - код ставки НСП [00:25:10] 1015 (3) - 2126.12 - сумма НСП по ставке [00:25:10] 1007 (9) - суммы НСП [00:25:10] 1014 (1) - 2% - код ставки НСП [00:25:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:10] 1007 (9) - суммы НСП [00:25:10] 1014 (1) - 3% - код ставки НСП [00:25:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:10] 1007 (9) - суммы НСП [00:25:10] 1014 (1) - 5% - код ставки НСП [00:25:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:10] 1007 (9) - суммы НСП [00:25:10] 1014 (1) - 0,50% - код ставки НСП [00:25:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:10] 1007 (9) - суммы НСП [00:25:10] 1014 (1) - 1,50% - код ставки НСП [00:25:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:10] 1130 (141) - счетчики операций «возврат прихода» [00:25:10] 1135 (4) - 0 - количество чеков по признаку расчетов [00:25:10] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:25:10] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:25:10] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:25:10] 1024 (117) - суммы налогов [00:25:10] 1006 (9) - суммы НДС [00:25:10] 1010 (1) - 0% - код ставки НДС [00:25:10] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:10] 1006 (9) - суммы НДС [00:25:10] 1010 (1) - 12% - код ставки НДС [00:25:10] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:10] 1007 (9) - суммы НСП [00:25:10] 1014 (1) - 0% - код ставки НСП [00:25:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:10] 1007 (9) - суммы НСП [00:25:10] 1014 (1) - 1% - код ставки НСП [00:25:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:10] 1007 (9) - суммы НСП [00:25:10] 1014 (1) - 2% - код ставки НСП [00:25:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:10] 1007 (9) - суммы НСП [00:25:10] 1014 (1) - 3% - код ставки НСП [00:25:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:10] 1007 (9) - суммы НСП [00:25:10] 1014 (1) - 5% - код ставки НСП [00:25:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:10] 1007 (9) - суммы НСП [00:25:10] 1014 (1) - 0,50% - код ставки НСП [00:25:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:10] 1007 (9) - суммы НСП [00:25:10] 1014 (1) - 1,50% - код ставки НСП [00:25:10] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:11] 1131 (141) - счетчики операций «расход» [00:25:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:25:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:25:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:25:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:25:11] 1024 (117) - суммы налогов [00:25:11] 1006 (9) - суммы НДС [00:25:11] 1010 (1) - 0% - код ставки НДС [00:25:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:11] 1006 (9) - суммы НДС [00:25:11] 1010 (1) - 12% - код ставки НДС [00:25:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:11] 1007 (9) - суммы НСП [00:25:11] 1014 (1) - 0% - код ставки НСП [00:25:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:11] 1007 (9) - суммы НСП [00:25:11] 1014 (1) - 1% - код ставки НСП [00:25:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:11] 1007 (9) - суммы НСП [00:25:11] 1014 (1) - 2% - код ставки НСП [00:25:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:11] 1007 (9) - суммы НСП [00:25:11] 1014 (1) - 3% - код ставки НСП [00:25:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:11] 1007 (9) - суммы НСП [00:25:11] 1014 (1) - 5% - код ставки НСП [00:25:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:11] 1007 (9) - суммы НСП [00:25:11] 1014 (1) - 0,50% - код ставки НСП [00:25:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:11] 1007 (9) - суммы НСП [00:25:11] 1014 (1) - 1,50% - код ставки НСП [00:25:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:11] 1132 (141) - счетчики операций «возврат расхода» [00:25:11] 1135 (4) - 0 - количество чеков по признаку расчетов [00:25:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:25:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:25:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:25:11] 1024 (117) - суммы налогов [00:25:11] 1006 (9) - суммы НДС [00:25:11] 1010 (1) - 0% - код ставки НДС [00:25:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:11] 1006 (9) - суммы НДС [00:25:11] 1010 (1) - 12% - код ставки НДС [00:25:11] 1011 (0) - 0.00 - сумма НДС по ставке [00:25:11] 1007 (9) - суммы НСП [00:25:11] 1014 (1) - 0% - код ставки НСП [00:25:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:11] 1007 (9) - суммы НСП [00:25:11] 1014 (1) - 1% - код ставки НСП [00:25:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:11] 1007 (9) - суммы НСП [00:25:11] 1014 (1) - 2% - код ставки НСП [00:25:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:11] 1007 (9) - суммы НСП [00:25:11] 1014 (1) - 3% - код ставки НСП [00:25:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:11] 1007 (9) - суммы НСП [00:25:11] 1014 (1) - 5% - код ставки НСП [00:25:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:11] 1007 (9) - суммы НСП [00:25:11] 1014 (1) - 0,50% - код ставки НСП [00:25:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:11] 1007 (9) - суммы НСП [00:25:11] 1014 (1) - 1,50% - код ставки НСП [00:25:11] 1015 (0) - 0.00 - сумма НСП по ставке [00:25:11] 1133 (588) - - счетчики коррекции - не используются [00:25:11]1077 (6) - 35737793080846 - ФПД [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1209 (04B9) [00:25:11]Malloc new data [00:25:11]Processing tag 1041 (0411) [00:25:11]Processing tag 1040 (0410) [00:25:11]Malloc new data [00:25:11]Processing tag 1038 (040E) [00:25:11]Malloc new data [00:25:11]Processing tag 1118 (045E) [00:25:11]Malloc new data [00:25:11]Processing tag 1111 (0457) [00:25:11]Malloc new data [00:25:11]Processing tag 1194 (04AA) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1134 (046E) [00:25:11]Malloc new data [00:25:11]Processing tag 1129 (0469) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1135 (046F) [00:25:11]Malloc new data [00:25:11]Processing tag 1201 (04B1) [00:25:11]Malloc new data [00:25:11]Processing tag 1136 (0470) [00:25:11]Malloc new data [00:25:11]Processing tag 1138 (0472) [00:25:11]Malloc new data [00:25:11]Processing tag 1024 (0400) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1006 (03EE) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1010 (03F2) [00:25:11]Malloc new data [00:25:11]Processing tag 1011 (03F3) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1006 (03EE) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1010 (03F2) [00:25:11]Malloc new data [00:25:11]Processing tag 1011 (03F3) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]SetTLVBufToDocument err=0 [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1130 (046A) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1135 (046F) [00:25:11]Malloc new data [00:25:11]Processing tag 1201 (04B1) [00:25:11]Malloc new data [00:25:11]Processing tag 1136 (0470) [00:25:11]Malloc new data [00:25:11]Processing tag 1138 (0472) [00:25:11]Malloc new data [00:25:11]Processing tag 1024 (0400) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1006 (03EE) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1010 (03F2) [00:25:11]Malloc new data [00:25:11]Processing tag 1011 (03F3) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1006 (03EE) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1010 (03F2) [00:25:11]Malloc new data [00:25:11]Processing tag 1011 (03F3) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]SetTLVBufToDocument err=0 [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1131 (046B) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1135 (046F) [00:25:11]Malloc new data [00:25:11]Processing tag 1201 (04B1) [00:25:11]Malloc new data [00:25:11]Processing tag 1136 (0470) [00:25:11]Malloc new data [00:25:11]Processing tag 1138 (0472) [00:25:11]Malloc new data [00:25:11]Processing tag 1024 (0400) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1006 (03EE) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1010 (03F2) [00:25:11]Malloc new data [00:25:11]Processing tag 1011 (03F3) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1006 (03EE) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1010 (03F2) [00:25:11]Malloc new data [00:25:11]Processing tag 1011 (03F3) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]SetTLVBufToDocument err=0 [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1132 (046C) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1135 (046F) [00:25:11]Malloc new data [00:25:11]Processing tag 1201 (04B1) [00:25:11]Malloc new data [00:25:11]Processing tag 1136 (0470) [00:25:11]Malloc new data [00:25:11]Processing tag 1138 (0472) [00:25:11]Malloc new data [00:25:11]Processing tag 1024 (0400) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1006 (03EE) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1010 (03F2) [00:25:11]Malloc new data [00:25:11]Processing tag 1011 (03F3) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1006 (03EE) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1010 (03F2) [00:25:11]Malloc new data [00:25:11]Processing tag 1011 (03F3) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1007 (03EF) [00:25:11]Load OK [00:25:11]SetTLVBufToDocument [00:25:11]Processing tag 1014 (03F6) [00:25:11]Malloc new data [00:25:11]Processing tag 1015 (03F7) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]SetTLVBufToDocument err=0 [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1133 (046D) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Processing tag 1077 (0435) [00:25:11]Malloc new data [00:25:11]SetTLVBufToDocument err=0 [00:25:11]Malloc new data [00:25:11]SAM_PROTO_GetFMData [00:25:11]wFMCommunicate request_size=4 [00:25:11]MH_SAM_APDU [00:25:11]CAPDU: 80 13 03 00 [00:25:11]Write to MH i2c: E2 08 00 C6 34 80 13 03 00 00 00 00 00 79 [00:25:11]Write i2c OK [00:25:11]MH_I2C_Read... [00:25:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:12]Read from MH i2c: E2 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 FD 00 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 FD 00 C6 34 00 C2 04 85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 48 [00:25:12]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:25:12]wFMCommunicate OK [00:25:12]wFMCommunicate request_size=4 [00:25:12]MH_SAM_APDU [00:25:12]CAPDU: 80 17 00 00 [00:25:12]Write to MH i2c: E2 08 00 C7 34 80 17 00 00 00 00 00 00 7B [00:25:12]Write i2c OK [00:25:12]MH_I2C_Read... [00:25:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:12]Read from MH i2c: E2 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 FD 00 [00:25:12]MH_I2C_Read... [00:25:12]Read from MH i2c: E2 FD 00 C7 34 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 EA [00:25:13]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 OFD Sender: No OFD packet to send [00:25:13]00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:13]wFMCommunicate OK [00:25:13]wFMCommunicate request_size=4 [00:25:13]MH_SAM_APDU [00:25:13]CAPDU: 80 17 00 00 [00:25:13]Write to MH i2c: E2 08 00 C8 34 80 17 00 00 00 00 00 00 7C [00:25:13]Write i2c OK [00:25:13]MH_I2C_Read... [00:25:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:13]Read from MH i2c: E2 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: E2 FD 00 [00:25:13]MH_I2C_Read... [00:25:13]Read from MH i2c: E2 FD 00 C8 34 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 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 90 00 2A [00:25:14]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 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 90 00 [00:25:14]wFMCommunicate OK [00:25:14]wFMCommunicate request_size=4 [00:25:14]MH_SAM_APDU [00:25:14]CAPDU: 80 17 00 00 [00:25:14]Write to MH i2c: E2 08 00 C9 34 80 17 00 00 00 00 00 00 7D [00:25:14]Write i2c OK [00:25:14]MH_I2C_Read... [00:25:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:14]Read from MH i2c: E2 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 FD 00 [00:25:14]MH_I2C_Read... [00:25:14]Read from MH i2c: E2 FD 00 C9 34 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F8 [00:25:14]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:15]wFMCommunicate OK [00:25:15]wFMCommunicate request_size=4 [00:25:15]MH_SAM_APDU [00:25:15]CAPDU: 80 17 00 00 [00:25:15]Write to MH i2c: E2 08 00 CA 34 80 17 00 00 00 00 00 00 7E [00:25:15]Write i2c OK [00:25:15]MH_I2C_Read... [00:25:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:25:15]Read from MH i2c: E2 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 DF 00 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 DF 00 CA 34 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5E [00:25:15]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 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:25:15]wFMCommunicate OK [00:25:15]SAM_PROTO_GetFMData done [00:25:15]Malloc new data [00:25:15]Malloc new data [00:25:15]Malloc new data [00:25:15]Malloc new data [00:25:15]KKMLoadAndSignCloseShiftData err=0 [00:25:15]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Куранбаева Н. 25.10.2024 00:25 Смена: 534 РНМ: 0000000000091693 ЗНМ: 0300000096 СНО: Общий режим Чеков за смену: 348 ФД за смену: 350 Всего чеков: 348 ИТОГИ ПРИХОД Чеков: 348 Общий итог: 240168.45 Итого наличными: 206159.00 Итого безнал.: 34009.45 НДС 0% : 0.00 НДС 12% : 25513.24 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2126.12 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 206159.00 НС Приход: 104452758.00 НС Возвр.Прихода: 119944.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 155724 ФМ: 0000000000871792 ФПД: 35737793080846 [00:25:15]StoreToDocumentArchive [00:25:15]shift 534 fd 155724 [00:25:15]save to /storage/0534/doc_00155724 [00:25:15]save last doc name /storage/0534/doc_00155724 to /storage/kkm_last_doc_name [00:25:15]save OK [00:25:15]Clear old archive folders... [00:25:15]Remove dir /storage/0522 [00:25:15]opendir ok [00:25:15]file . [00:25:15]file .. [00:25:15]file doc_1729815889 [00:25:15]remove file /storage/0522/doc_1729815889 [00:25:15]remove dir /storage/0522 [00:25:15]NVStorageSaveData kkm_registers [00:25:15]File name is /storage/kkm_registers [00:25:15]Write 24 bytes [00:25:15]NVStorageSaveData done [00:25:15]NVStorageSaveData kkm_registers [00:25:15]File name is /storage/kkm_registers [00:25:15]Write 24 bytes [00:25:15]NVStorageSaveData done [00:25:15]ProcessDocumentItem done err = 0, tmpTLVsize=1386 [00:25:15]tlvbuf is 02091800 [00:25:15]SAM_PROTO_ClearQueue [00:25:15]wFMCommunicate request_size=4 [00:25:15]MH_SAM_APDU [00:25:15]CAPDU: 80 09 00 00 [00:25:15]Write to MH i2c: E2 08 00 CB 34 80 09 00 00 00 00 00 00 71 [00:25:15]Write i2c OK [00:25:15]MH_I2C_Read... [00:25:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:15]Read from MH i2c: E2 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 03 00 [00:25:15]MH_I2C_Read... [00:25:15]Read from MH i2c: E2 03 00 CB 34 00 90 00 73 [00:25:15]RAPDU: 90 00 [00:25:15]wFMCommunicate OK [00:25:15]SAM_PROTO_ClearQueue done [00:25:15]KKMCreateOFDPacket [00:25:15]OFDProtocolAddRootSTLVToBuf [00:25:15]FM_MakeSignedData [00:25:15]FM_MakeSignedData [00:25:15]SAM_PROTO_SignData [00:25:15]wFMCommunicate request_size=4 [00:25:15]MH_SAM_APDU [00:25:15]CAPDU: 80 0D 01 02 [00:25:15]Write to MH i2c: E2 08 00 CC 34 80 0D 01 02 00 00 00 00 79 [00:25:15]Write i2c OK [00:25:15]MH_I2C_Read... [00:25:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:16]Read from MH i2c: E2 [00:25:16]MH_I2C_Read... [00:25:16]Read from MH i2c: E2 03 00 [00:25:16]MH_I2C_Read... [00:25:16]Read from MH i2c: E2 03 00 CC 34 00 90 00 74 [00:25:16]RAPDU: 90 00 [00:25:16]wFMCommunicate OK [00:25:16]wFMCommunicate request_size=255 [00:25:16]MH_SAM_APDU [00:25:16]CAPDU: 80 0D 02 02 FA 05 00 6A 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 19 00 D0 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 64 E5 1A 67 0E 04 04 00 16 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 5E 04 04 00 5C 01 00 00 57 04 04 00 5E 01 00 00 AA 04 D8 04 6E 04 04 00 5C 01 00 00 69 04 A5 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 [00:25:16]Write to MH i2c: E2 02 01 CD 34 80 0D 02 02 FA 00 05 00 6A 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 19 00 D0 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 64 E5 1A 67 0E 04 04 00 16 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 5E 04 04 00 5C 01 00 00 57 04 04 00 5E 01 00 00 AA 04 D8 04 6E 04 04 00 5C 01 00 00 69 04 A5 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 00 00 5E [00:25:16]Write i2c OK [00:25:16]MH_I2C_Read... [00:25:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:16]Read from MH i2c: E2 [00:25:16]MH_I2C_Read... [00:25:16]Read from MH i2c: E2 03 00 [00:25:16]MH_I2C_Read... [00:25:16]Read from MH i2c: E2 03 00 CD 34 00 90 00 75 [00:25:16]RAPDU: 90 00 [00:25:16]wFMCommunicate OK [00:25:16]wFMCommunicate request_size=255 [00:25:16]MH_SAM_APDU [00:25:16]CAPDU: 80 0D 02 02 FA 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 84 3E 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 [00:25:17]Write to MH i2c: E2 02 01 CE 34 80 0D 02 02 FA 00 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 84 3E 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 00 00 BD [00:25:17]Write i2c OK [00:25:17]MH_I2C_Read... [00:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:17]Read from MH i2c: E2 [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: E2 03 00 [00:25:17]MH_I2C_Read... [00:25:17]Read from MH i2c: E2 03 00 CE 34 00 90 00 76 [00:25:17]RAPDU: 90 00 [00:25:17]wFMCommunicate OK [00:25:17]wFMCommunicate request_size=255 [00:25:17]MH_SAM_APDU [00:25:17]CAPDU: 80 0D 02 02 FA 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 [00:25:17]Write to MH i2c: E2 02 01 CF 34 80 0D 02 02 FA 00 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 00 00 40 [00:25:18]Write i2c OK [00:25:18]MH_I2C_Read... [00:25:18]OFD Sender: No OFD packet to send [00:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:18]Read from MH i2c: E2 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 03 00 [00:25:18]MH_I2C_Read... [00:25:18]Read from MH i2c: E2 03 00 CF 34 00 90 00 77 [00:25:18]RAPDU: 90 00 [00:25:18]wFMCommunicate OK [00:25:18]wFMCommunicate request_size=255 [00:25:18]MH_SAM_APDU [00:25:18]CAPDU: 80 0D 02 02 FA 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:25:18]Write to MH i2c: E2 02 01 D0 34 80 0D 02 02 FA 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 00 43 [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:19]Read from MH i2c: E2 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 03 00 [00:25:19]MH_I2C_Read... [00:25:19]Read from MH i2c: E2 03 00 D0 34 00 90 00 78 [00:25:19]RAPDU: 90 00 [00:25:19]wFMCommunicate OK [00:25:19]wFMCommunicate request_size=255 [00:25:19]MH_SAM_APDU [00:25:19]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:25:19]Write to MH i2c: E2 02 01 D1 34 80 0D 02 02 FA 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 05 [00:25:19]Write i2c OK [00:25:19]MH_I2C_Read... [00:25:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:20]Read from MH i2c: E2 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 03 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 03 00 D1 34 00 90 00 79 [00:25:20]RAPDU: 90 00 [00:25:20]wFMCommunicate OK [00:25:20]wFMCommunicate request_size=145 [00:25:20]MH_SAM_APDU [00:25:20]CAPDU: 80 0D 02 02 8C 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4C 60 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 20 80 DA 76 2E 0E [00:25:20]Write to MH i2c: E2 94 00 D2 34 80 0D 02 02 8C 00 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4C 60 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 20 80 DA 76 2E 0E 00 00 A4 [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:20]Read from MH i2c: E2 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 03 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 03 00 D2 34 00 90 00 7A [00:25:20]RAPDU: 90 00 [00:25:20]wFMCommunicate OK [00:25:20]wFMCommunicate request_size=4 [00:25:20]MH_SAM_APDU [00:25:20]CAPDU: 80 0D 03 02 [00:25:20]Write to MH i2c: E2 08 00 D3 34 80 0D 03 02 00 00 00 00 82 [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:20]Read from MH i2c: E2 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 0B 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 0B 00 D3 34 00 DC 0A 37 47 13 5E 72 2C 90 00 F6 [00:25:20]RAPDU: DC 0A 37 47 13 5E 72 2C 90 00 [00:25:20]wFMCommunicate OK [00:25:20]SAM_PROTO_SignData done [00:25:20]FM_MakeSignedData done [00:25:20]CreateOFDProtocolMessage [00:25:20]wFMCommunicate request_size=4 [00:25:20]MH_SAM_APDU [00:25:20]CAPDU: 80 11 00 00 [00:25:20]Write to MH i2c: E2 08 00 D4 34 80 11 00 00 00 00 00 00 82 [00:25:20]Write i2c OK [00:25:20]MH_I2C_Read... [00:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:20]Read from MH i2c: E2 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 17 00 [00:25:20]MH_I2C_Read... [00:25:20]Read from MH i2c: E2 17 00 D4 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D7 [00:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:25:21]wFMCommunicate OK [00:25:21]CreateOFDProtocolMessage done [00:25:21]OFDSenderStorePacket 155724 [00:25:21]StoreOFDPacket docnum=155724 [00:25:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 7E 05 00 00 B6 13 76 05 4D 35 5A 05 01 00 05 00 6A 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 19 00 D0 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 64 E5 1A 67 0E 04 04 00 16 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 5E 04 04 00 5C 01 00 00 57 04 04 00 5E 01 00 00 AA 04 D8 04 6E 04 04 00 5C 01 00 00 69 04 A5 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 84 3E 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 4C 60 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 20 80 DA 76 2E 0E DC 0A 37 47 13 5E 72 2C [00:25:21]CheckFolder [00:25:21]dirname=/storage/ofd_packets [00:25:21]CheckFolder done [00:25:21]ProducePacketName [00:25:21]name=ofd_packets/00155724 [00:25:21]NVStorageSaveData ofd_packets/00155724 [00:25:21]File name is /storage/ofd_packets/00155724 [00:25:21]Write 1436 bytes [00:25:21]NVStorageSaveData done [00:25:21]OFDSenderStorePacket done [00:25:21]KKMCreateOFDPacket done [00:25:21]NVStorageSaveData kkm_last_timestamp [00:25:21]File name is /storage/kkm_last_timestamp [00:25:21]Write 4 bytes [00:25:21]NVStorageSaveData done [00:25:21]ExternCall_PrintAddStr [00:25:21]wPrintStart [00:25:21]Write to MH i2c: 01 00 00 D5 34 09 [00:25:21]Write i2c OK [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: 01 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: 01 07 00 [00:25:21]MH_I2C_Read... [00:25:21]Read from MH i2c: 01 07 00 D5 34 00 00 00 00 00 FF 0F 1E [00:25:21]RasterBufferAndPrint [00:25:21]line Отчет о закрытии смены [00:25:21]line ФФД: 1.0 [00:25:21]line ИНН: 02508201610067 [00:25:21]line Кассир: Куранбаева Н. [00:25:21]line 25.10.2024 00:25 [00:25:21]line Смена: 534 [00:25:21]line РНМ: 0000000000091693 [00:25:21]line ЗНМ: 0300000096 [00:25:21]line СНО: Общий режим [00:25:21]line Чеков за смену: 348 [00:25:21]line ФД за смену: 350 [00:25:21]line Всего чеков: 348 [00:25:21]line ИТОГИ ПРИХОД [00:25:21]line Чеков: 348 [00:25:21]line Общий итог: 240168.45 [00:25:21]line Итого наличными: 206159.00 [00:25:21]line Итого безнал.: 34009.45 [00:25:21]line НДС 0% : 0.00 [00:25:21]line НДС 12% : 25513.24 [00:25:21]line НСП 0% : 0.00 [00:25:21]line НСП 1,50% : 0.00 [00:25:21]line НСП 0,50% : 0.00 [00:25:21]line НСП 5% : 0.00 [00:25:21]line НСП 3% : 0.00 [00:25:21]line НСП 2% : 0.00 [00:25:21]line НСП 1% : 2126.12 [00:25:21]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:25:21]line Чеков: 0 [00:25:21]line Общий итог: 0.00 [00:25:21]line Итого наличными: 0.00 [00:25:21]line Итого безнал.: 0.00 [00:25:21]OFD Sender: Processing packet 155724 [packets to send 31, broken 30] [00:25:21]line НДС 0% : 0.00 [00:25:21]ProducePacketName [00:25:21]line НДС 12% : 0.00 [00:25:21]name=ofd_packets/00155724 [00:25:21]line НСП 0% : 0.00 [00:25:21]OFD Sender: To server: pG, [00:25:21]line НСП 1,50% : 0.00 [00:25:21]line НСП 0,50% : 0.00 [00:25:21]line НСП 5% : 0.00 [00:25:21]line НСП 3% : 0.00 [00:25:21]line НСП 2% : 0.00 [00:25:21]line НСП 1% : 0.00 [00:25:21]line ИТОГИ РАСХОД [00:25:21]line Чеков: 0 [00:25:21]line Общий итог: 0.00 [00:25:21]CommunicateWithHost lk.salyk.kg:30040 [00:25:21]line Итого наличными: 0.00 [00:25:21]ConnectInit lk.salyk.kg [00:25:21]line Итого безнал.: 0.00 [00:25:21]line НДС 0% : 0.00 [00:25:21]line НДС 12% : 0.00 [00:25:21]line НСП 0% : 0.00 [00:25:21]line НСП 1,50% : 0.00 [00:25:21]line НСП 0,50% : 0.00 [00:25:21]line НСП 5% : 0.00 [00:25:21]line НСП 3% : 0.00 [00:25:21]line НСП 2% : 0.00 [00:25:21]line НСП 1% : 0.00 [00:25:21]line ИТОГИ ВОЗВРАТ РАСХОДА [00:25:21]line Чеков: 0 [00:25:21]line Общий итог: 0.00 [00:25:21]line Итого наличными: 0.00 [00:25:21]line Итого безнал.: 0.00 [00:25:21]line НДС 0% : 0.00 [00:25:21]line НДС 12% : 0.00 [00:25:21]line НСП 0% : 0.00 [00:25:21]line НСП 1,50% : 0.00 [00:25:21]line НСП 0,50% : 0.00 [00:25:21]line НСП 5% : 0.00 [00:25:21]line НСП 3% : 0.00 [00:25:21]line НСП 2% : 0.00 [00:25:21]line НСП 1% : 0.00 [00:25:21]line Сумма внесений: 0.00 [00:25:21]line Сумма выплат: 0.00 [00:25:21]line Нал. в кассе: 206159.00 [00:25:21]line НС Приход: 104452758.00 [00:25:21]line НС Возвр.Прихода: 119944.00 [00:25:21]line НС Расход: 0.00 [00:25:21]line НС Возвр.Расхода: 0.00 [00:25:21]line ФД: 155724 [00:25:21]line ФМ: 0000000000871792 [00:25:21]line ФПД: 35737793080846 [00:25:21]written 0, free lines is 4095 [00:25:21]Connected sock=9 [00:25: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 39 32 7E 05 00 00 B6 13 76 05 4D 35 5A 05 01 00 05 00 6A 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 19 00 D0 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 64 E5 1A 67 0E 04 04 00 16 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 5E 04 04 00 5C 01 00 00 57 04 04 00 5E 01 00 00 AA 04 D8 04 6E 04 04 00 5C 01 00 00 69 04 A5 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 84 3E 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 Write to MH i2c: 00 01 00 EF 03 0A 00 00 F6 00 03 25 35 5A [00:25:22]01 00 02 F7 03 01 Write i2c OK [00:25:22]00 MH_I2C_Read... [00:25:22]00 Read from MH i2c: EF 01 03 [00:25:22]MH_I2C_Read... [00:25:22]Read from MH i2c: 01 07 0A 00 00 [00:25:22]F6 MH_I2C_Read... [00:25:22]Read from MH i2c: 01 07 03 00 01 25 00 35 00 00 00 00 01 00 F7 E6 03 0A 51 [00:25:22]01 RasterBufferAndPrint [00:25:22]00 line [00:25:22]00 line [00:25:22]6B line [00:25:22]04 line [00:25:22]99 line [00:25:22]00 6F written 0, free lines is 2992 [00:25:22]04 04 00 00 00 process_action close_shift done [00:25:22]00 requested_data is exist [00:25:22]00 produce_requested_data [00:25:22]B1 requested_item fd.num is exist - process it [00:25:22]04 SAM_PROTO_GetFieldsCounters [00:25:22]wFMCommunicate request_size=4 [00:25:22]MH_SAM_APDU [00:25:22]CAPDU: 80 13 00 00 [00:25:22]Write to MH i2c: E2 01 08 00 00 00 2C 70 35 04 80 01 13 00 00 00 00 72 04 00 00 00 00 DD [00:25:22]Write i2c OK [00:25:22]MH_I2C_Read... [00:25:22]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 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:22]EF 03 0A 00 F6 03 01 00 02 F7 Read from MH i2c: 03 E2 01 [00:25:22]00 MH_I2C_Read... [00:25:22]00 EF 03 0A 00 F6 03 01 00 01 F7 03 Read from MH i2c: 01 E2 00 62 00 00 6C [00:25:22]04 MH_I2C_Read... [00:25:22]99 00 6F Read from MH i2c: 04 E2 04 62 00 00 00 00 00 00 B1 04 01 00 2C 00 35 70 00 04 5D 01 00 00 00 72 04 01 00 00 00 04 7E 00 B9 EE 04 03 01 0A 00 00 01 F2 03 01 00 00 F3 03 01 00 00 EE 11 03 04 0A 10 00 00 F2 30 03 01 00 01 F3 03 01 00 00 EF 03 0A 30 00 30 F6 30 03 30 01 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4C 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 00 5C 00 01 F7 00 03 00 01 5E 00 04 00 04 EF 00 03 5C 0A 01 00 00 57 04 04 00 5E 01 00 00 F6 00 03 19 01 04 00 04 00 00 06 00 F7 00 03 00 01 90 00 00 00 E1 EF [00:25:23]03 RAPDU: 0A 5D 00 00 F6 B9 03 04 01 01 00 05 F7 03 01 00 00 EF 03 0A 00 00 F6 01 03 11 01 04 00 10 04 F7 03 01 00 00 EF 03 0A 00 00 F6 30 30 03 30 01 30 00 30 03 30 F7 30 03 30 01 30 00 30 00 38 EF 37 03 31 0A 37 00 39 F6 32 03 0D 01 04 00 10 02 F7 03 01 00 00 EF 03 0A 00 F6 00 03 30 01 30 00 30 01 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4C 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5E F7 01 03 00 01 00 00 19 00 6D 04 4C 02 78 04 04 00 00 00 04 00 04 00 00 79 00 04 00 8D 00 00 00 6F 90 04 00 04 [00:25:23]wFMCommunicate OK [00:25:23]SAM_PROTO_GetFieldsCounters done [00:25:23]requested_item shift.num is exist - process it [00:25:23]requested_item shift.opened is exist - process it [00:25:23]req_shift_opened [00:25:23]FM_GetShiftState [00:25:23]SAM_PROTO_GetShiftState [00:25:23]wFMCommunicate request_size=4 [00:25:23]MH_SAM_APDU [00:25:23]CAPDU: 80 13 01 00 [00:25:23]Write to MH i2c: E2 08 00 2D 35 80 13 01 00 00 00 00 00 DF [00:25:23]00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE Write i2c OK [00:25:23]03 MH_I2C_Read... [00:25:23]09 Read from MH i2c: 00 E2 F2 [00:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:23]MH_I2C_Read... [00:25:23]03 01 00 01 F3 03 00 Read from MH i2c: 00 E2 EF 0E 03 00 09 [00:25:23]00 F6 03 01 00 00 F7 03 00 00 MH_I2C_Read... [00:25:23]EF Read from MH i2c: 03 E2 09 0E 00 00 F6 2D 03 35 01 00 00 09 01 00 F7 00 03 00 00 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 00 00 00 EF 00 03 00 09 90 00 00 F6 EA 03 [00:25:23]01 00 03 F7 03 00 00 EF 03 09 00 RAPDU: F6 09 03 00 01 00 00 00 00 00 00 00 00 00 00 90 00 [00:25:23]wFMCommunicate OK [00:25:23]SAM_PROTO_GetShiftState done [00:25:23]FM_GetShiftState done [00:25:23]req_shift_opened done [00:25:23]requested_item shift.open_date is exist - process it [00:25:23]req_shift_open_date [00:25:23]FM_GetShiftState [00:25:23]SAM_PROTO_GetShiftState [00:25:23]wFMCommunicate request_size=4 [00:25:23]MH_SAM_APDU [00:25:23]CAPDU: 80 13 01 00 [00:25:23]Write to MH i2c: E2 08 00 2E 35 80 13 01 00 00 00 00 00 E0 [00:25:23]04 F7 03 Write i2c OK [00:25:23]00 MH_I2C_Read... [00:25:23]00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:23]D0 04 8D Read from MH i2c: 00 E2 6F [00:25:23]04 MH_I2C_Read... [00:25:23]04 00 00 00 00 00 B1 04 00 00 70 04 Read from MH i2c: 00 E2 00 0E 72 00 04 [00:25:23]MH_I2C_Read... [00:25:23]00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 Read from MH i2c: 00 E2 02 0E F7 00 03 2E 00 35 00 00 EF 09 03 00 09 00 00 00 F6 00 03 00 01 00 00 00 00 00 00 90 00 EB [00:25:24]RAPDU: 09 03 00 F7 00 03 00 00 00 00 00 EF 00 03 00 09 00 00 00 F6 00 90 00 [00:25:24]wFMCommunicate OK [00:25:24]SAM_PROTO_GetShiftState done [00:25:24]FM_GetShiftState done [00:25:24]req_shift_open_date done [00:25:24]produce_requested_data done [00:25:24]03 produce_requested_data return {"fd.num":155724,"shift.num":534,"shift.opened":0,"shift.open_date":0} [00:25:24]01 process_action_free close_shift [00:25:24]00 json_value_free [00:25:24]04 json_value_free done [00:25:24]F7 process_json_proto returns [00:25:24]03 Send response to host [00:25:24]00 {"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":155724,"shift.num":534,"shift.opened":0,"shift.open_date":0}}} [00:25:24]00 free response buf [00:25:24]execute_script done [00:25:24]execute_script returns [00:25:24]free content buf [00:25:24]Sock 8.Close socket [00:25:24]Sock 8.Thread stoped [00:25:24]EF 03 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 4C 60 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 20 80 DA 76 2E 0E DC 0A 37 47 13 5E 72 2C [00:25: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 39 32 4F 00 00 00 F8 95 47 00 02 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4C 60 02 00 F4 03 04 00 EC 8A 1A 67 B6 04 01 00 00 25 B7 D5 AC 09 A2 ED 1A [00:25:24]CommunicateWithHost err = 0 [00:25:24]CheckOFDResponse [00:25:24]1017 (14) - 77093643461234 [00:25:24]1041 (16) - 0000000000871792 [00:25:24]1040 (4) - 155724 [00:25:24]1012 (4) - 24.10.2024 17:59 [00:25:24]1206 (1) - 0 [00:25:24]OFD Sender: Remove packet 155724 [00:25:24]ProducePacketName [00:25:24]name=ofd_packets/00155724 [00:25:24]NVStorageDeleteData [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:08]int [00:28:08]Write to MH i2c: 01 00 00 2F 35 64 [00:28:08]*** FLAG_PRN_KEY set [00:28:08]Write i2c OK [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: 01 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: 01 07 00 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: 01 07 00 2F 35 00 08 00 00 00 FF 0F 81 [00:28:08]state=0 [00:28:08]Key pressed [00:28:08]Feed [00:28:08]Write to MH i2c: D8 00 00 30 35 3C [00:28:08]Write i2c OK [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: D8 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: D8 01 00 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: D8 01 00 30 35 00 3D [00:28:08]int [00:28:08]Write to MH i2c: 01 00 00 31 35 66 [00:28:08]Write i2c OK [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: 01 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: 01 07 00 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: 01 07 00 31 35 00 48 00 00 00 3D 00 F2 [00:28:08]state=2 [00:28:08]Key pressed [00:28:09]int [00:28:09]Write to MH i2c: 01 00 00 32 35 67 [00:28:09]*** FLAG_PRN_KEY reset [00:28:09]Write i2c OK [00:28:09]MH_I2C_Read... [00:28:09]Read from MH i2c: 01 [00:28:09]MH_I2C_Read... [00:28:09]Read from MH i2c: 01 07 00 [00:28:09]MH_I2C_Read... [00:28:09]Read from MH i2c: 01 07 00 32 35 00 00 00 00 00 F6 0F 73 [00:28:09]state=2 [00:28:09]Stop feed [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:40]OFD Sender: No OFD packet to send [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:43]accept exits with 10 [00:31:43]New connection [00:31:43]New thread 3066637668 created [00:31:43]Thread 3066781028 joined [00:31:43]Waiting for new connection... [00:31:43] Sock 10.Parse request [00:31:43]Sock 10.Check first char [00:31:43]Sock 10.First char is OK [00:31:43]request: POST /json_proto HTTP/1.0 [00:31:43]Method: POST [00:31:43]URL: /json_proto [00:31:43]Method is POST - this is cgi request [00:31:43]url: /json_proto [00:31:43]query_string will be loaded in cgi processing [00:31:43]execute_cgi json_proto POST (null) [00:31:43]execute_cgi path=json_proto method=POST [00:31:43]POST find Content-Length [00:31:43]Host: 172.17.63.3:8080 [00:31:43]Content-Length: 215 [00:31:43]Content-Type: application/json [00:31:43] [00:31:43]POST finish read [00:31:43]Found Content-Length = 215 [00:31:43]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:31:43]execute_script... [00:31:43]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:31:43]POST & json_proto [00:31:43]process_json_proto [00:31:43]json parsed OK: [00:31:43]protocol is kg_v1.0 [00:31:43]action value=get_value [00:31:43]process_action get_value [00:31:43]cmd_get_value [00:31:43]process_action get_value done [00:31:43]requested_data is exist [00:31:43]produce_requested_data [00:31:43]requested_item kkm.sn is exist - process it [00:31:43]requested_item kkm.ver is exist - process it [00:31:43]requested_item fm.sn is exist - process it [00:31:43]wFMCommunicate request_size=4 [00:31:43]MH_SAM_APDU [00:31:43]CAPDU: 80 11 00 00 [00:31:43]Write to MH i2c: E2 08 00 33 35 80 11 00 00 00 00 00 00 E2 [00:31:43]Write i2c OK [00:31:43]MH_I2C_Read... [00:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:43]Read from MH i2c: E2 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: E2 17 00 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: E2 17 00 33 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 37 [00:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:31:43]wFMCommunicate OK [00:31:43]requested_item fd.num is exist - process it [00:31:43]SAM_PROTO_GetFieldsCounters [00:31:43]wFMCommunicate request_size=4 [00:31:43]MH_SAM_APDU [00:31:43]CAPDU: 80 13 00 00 [00:31:43]Write to MH i2c: E2 08 00 34 35 80 13 00 00 00 00 00 00 E5 [00:31:43]Write i2c OK [00:31:43]MH_I2C_Read... [00:31:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:43]Read from MH i2c: E2 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: E2 62 00 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: E2 62 00 34 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4C 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [00:31: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4C 60 02 00 0E 04 04 00 16 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:43]wFMCommunicate OK [00:31:43]SAM_PROTO_GetFieldsCounters done [00:31:43]requested_item shift.num is exist - process it [00:31:43]requested_item shift.opened is exist - process it [00:31:43]req_shift_opened [00:31:43]FM_GetShiftState [00:31:43]SAM_PROTO_GetShiftState [00:31:43]wFMCommunicate request_size=4 [00:31:43]MH_SAM_APDU [00:31:43]CAPDU: 80 13 01 00 [00:31:43]Write to MH i2c: E2 08 00 35 35 80 13 01 00 00 00 00 00 E7 [00:31:43]Write i2c OK [00:31:43]MH_I2C_Read... [00:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:43]Read from MH i2c: E2 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: E2 0E 00 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: E2 0E 00 35 35 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F2 [00:31:43]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:31:43]wFMCommunicate OK [00:31:43]SAM_PROTO_GetShiftState done [00:31:43]FM_GetShiftState done [00:31:43]req_shift_opened done [00:31:43]requested_item shift.open_date is exist - process it [00:31:43]req_shift_open_date [00:31:43]FM_GetShiftState [00:31:43]SAM_PROTO_GetShiftState [00:31:43]wFMCommunicate request_size=4 [00:31:43]MH_SAM_APDU [00:31:43]CAPDU: 80 13 01 00 [00:31:43]Write to MH i2c: E2 08 00 36 35 80 13 01 00 00 00 00 00 E8 [00:31:43]Write i2c OK [00:31:43]MH_I2C_Read... [00:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:43]Read from MH i2c: E2 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: E2 0E 00 [00:31:43]MH_I2C_Read... [00:31:43]Read from MH i2c: E2 0E 00 36 35 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F3 [00:31:43]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:31:43]wFMCommunicate OK [00:31:43]SAM_PROTO_GetShiftState done [00:31:43]FM_GetShiftState done [00:31:43]req_shift_open_date done [00:31:43]produce_requested_data done [00:31:43]produce_requested_data return {"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":155724,"shift.num":534,"shift.opened":0,"shift.open_date":0} [00:31:43]process_action_free get_value [00:31:43]json_value_free [00:31:43]json_value_free done [00:31:43]process_json_proto returns [00:31:43]Send response to host [00:31:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":155724,"shift.num":534,"shift.opened":0,"shift.open_date":0}}} [00:31:43]free response buf [00:31:43]execute_script done [00:31:43]execute_script returns [00:31:43]free content buf [00:31:43]Sock 10.Close socket [00:31:43]Sock 10.Thread stoped [00:31:43]accept exits with 8 [00:31:43]New connection [00:31:43]New thread 3066781028 created [00:31:43]Thread 3066637668 joined [00:31:43]Waiting for new connection... [00:31:43] Sock 8.Parse request [00:31:43]Sock 8.Check first char [00:31:43]Sock 8.First char is OK [00:31:43]request: POST /json_proto HTTP/1.0 [00:31:43]Method: POST [00:31:43]URL: /json_proto [00:31:43]Method is POST - this is cgi request [00:31:43]url: /json_proto [00:31:43]query_string will be loaded in cgi processing [00:31:43]execute_cgi json_proto POST (null) [00:31:43]execute_cgi path=json_proto method=POST [00:31:43]POST find Content-Length [00:31:43]Host: 172.17.63.3:8080 [00:31:43]Content-Length: 331 [00:31:43]Content-Type: application/json [00:31:43] [00:31:43]POST finish read [00:31:43]Found Content-Length = 331 [00:31:43]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:31:43]execute_script... [00:31:44]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:31:44]POST & json_proto [00:31:44]process_json_proto [00:31:44]json parsed OK: [00:31:44]protocol is kg_v1.0 [00:31:44]action value=get_value [00:31:44]process_action get_value [00:31:44]cmd_get_value [00:31:44]process_action get_value done [00:31:44]requested_data is exist [00:31:44]produce_requested_data [00:31:44]requested_item fm.sale.total is exist - process it [00:31:44]SAM_PROTO_GetFMData [00:31:44]wFMCommunicate request_size=4 [00:31:44]MH_SAM_APDU [00:31:44]CAPDU: 80 13 03 00 [00:31:44]Write to MH i2c: E2 08 00 37 35 80 13 03 00 00 00 00 00 EB [00:31:44]Write i2c OK [00:31:44]MH_I2C_Read... [00:31:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:31:44]Read from MH i2c: E2 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: E2 FD 00 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: E2 FD 00 37 35 00 C2 04 85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 BA [00:31:44]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:31:44]wFMCommunicate OK [00:31:44]wFMCommunicate request_size=4 [00:31:44]MH_SAM_APDU [00:31:44]CAPDU: 80 17 00 00 [00:31:44]Write to MH i2c: E2 08 00 38 35 80 17 00 00 00 00 00 00 ED [00:31:44]Write i2c OK [00:31:44]MH_I2C_Read... [00:31:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:44]Read from MH i2c: E2 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: E2 FD 00 [00:31:44]MH_I2C_Read... [00:31:44]Read from MH i2c: E2 FD 00 38 35 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 5C [00:31:44]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 [00:31:44]wFMCommunicate OK [00:31:44]wFMCommunicate request_size=4 [00:31:44]MH_SAM_APDU [00:31:44]CAPDU: 80 17 00 00 [00:31:44]Write to MH i2c: E2 08 00 39 35 80 17 00 00 00 00 00 00 EE [00:31:44]Write i2c OK [00:31:44]MH_I2C_Read... [00:31:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:45]Read from MH i2c: E2 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 FD 00 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 FD 00 39 35 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 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 90 00 9C [00:31:45]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 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 90 00 [00:31:45]wFMCommunicate OK [00:31:45]wFMCommunicate request_size=4 [00:31:45]MH_SAM_APDU [00:31:45]CAPDU: 80 17 00 00 [00:31:45]Write to MH i2c: E2 08 00 3A 35 80 17 00 00 00 00 00 00 EF [00:31:45]Write i2c OK [00:31:45]MH_I2C_Read... [00:31:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:45]Read from MH i2c: E2 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 FD 00 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 FD 00 3A 35 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6A [00:31:45]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:45]wFMCommunicate OK [00:31:45]wFMCommunicate request_size=4 [00:31:45]MH_SAM_APDU [00:31:45]CAPDU: 80 17 00 00 [00:31:45]Write to MH i2c: E2 08 00 3B 35 80 17 00 00 00 00 00 00 F0 [00:31:45]Write i2c OK [00:31:45]MH_I2C_Read... [00:31:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:31:45]Read from MH i2c: E2 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 DF 00 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 DF 00 3B 35 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D0 [00:31:45]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 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:31:45]wFMCommunicate OK [00:31:45]SAM_PROTO_GetFMData done [00:31:45]requested_item fm.sale_refund.total is exist - process it [00:31:45]requested_item fm.buy.total is exist - process it [00:31:45]requested_item shift.sale.total is exist - process it [00:31:45]SAM_PROTO_GetShiftData [00:31:45]wFMCommunicate request_size=4 [00:31:45]MH_SAM_APDU [00:31:45]CAPDU: 80 13 02 00 [00:31:45]Write to MH i2c: E2 08 00 3C 35 80 13 02 00 00 00 00 00 EF [00:31:45]OFD Sender: No OFD packet to send [00:31:45]Write i2c OK [00:31:45]MH_I2C_Read... [00:31:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:31:46]Read from MH i2c: E2 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 FD 00 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 FD 00 3C 35 00 B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 84 3E 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 D9 [00:31:46]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 5C 01 00 00 69 04 9E 00 6F 04 04 00 5C 01 00 00 B1 04 04 00 CD 77 6E 01 70 04 04 00 DC 92 3A 01 72 04 03 00 F1 E4 33 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 1C EE 26 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 84 3E 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:31:46]wFMCommunicate OK [00:31:46]wFMCommunicate request_size=4 [00:31:46]MH_SAM_APDU [00:31:46]CAPDU: 80 17 00 00 [00:31:46]Write to MH i2c: E2 08 00 3D 35 80 17 00 00 00 00 00 00 F2 [00:31:46]Write i2c OK [00:31:46]MH_I2C_Read... [00:31:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:46]Read from MH i2c: E2 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 FD 00 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 FD 00 3D 35 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 0B [00:31:46]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:31:46]wFMCommunicate OK [00:31:46]wFMCommunicate request_size=4 [00:31:46]MH_SAM_APDU [00:31:46]CAPDU: 80 17 00 00 [00:31:46]Write to MH i2c: E2 08 00 3E 35 80 17 00 00 00 00 00 00 F3 [00:31:46]Write i2c OK [00:31:46]MH_I2C_Read... [00:31:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:46]Read from MH i2c: E2 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 FD 00 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 FD 00 3E 35 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 AC [00:31:46]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:31:46]wFMCommunicate OK [00:31:46]wFMCommunicate request_size=4 [00:31:46]MH_SAM_APDU [00:31:46]CAPDU: 80 17 00 00 [00:31:46]Write to MH i2c: E2 08 00 3F 35 80 17 00 00 00 00 00 00 F4 [00:31:46]Write i2c OK [00:31:46]MH_I2C_Read... [00:31:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:47]Read from MH i2c: E2 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 FD 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 FD 00 3F 35 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 6C [00:31:47]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:31:47]wFMCommunicate OK [00:31:47]wFMCommunicate request_size=4 [00:31:47]MH_SAM_APDU [00:31:47]CAPDU: 80 17 00 00 [00:31:47]Write to MH i2c: E2 08 00 40 35 80 17 00 00 00 00 00 00 F5 [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:31:47]Read from MH i2c: E2 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 CE 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 CE 00 40 35 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 DA [00:31:47]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:31:47]wFMCommunicate OK [00:31:47]SAM_PROTO_GetShiftData done [00:31:47]requested_item shift.sale.total_cash is exist - process it [00:31:47]requested_item shift.sale_refund.total is exist - process it [00:31:47]requested_item shift.sale_refund.total_cash is exist - process it [00:31:47]requested_item shift.buy.total is exist - process it [00:31:47]requested_item shift.buy.total_cash is exist - process it [00:31:47]produce_requested_data done [00:31:47]produce_requested_data return {"fm.sale.total":104452758.00,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":240168.45,"shift.sale.total_cash":206159.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:31:47]process_action_free get_value [00:31:47]json_value_free [00:31:47]json_value_free done [00:31:47]process_json_proto returns [00:31:47]Send response to host [00:31:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104452758.00,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":240168.45,"shift.sale.total_cash":206159.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:31:47]free response buf [00:31:47]execute_script done [00:31:47]execute_script returns [00:31:47]free content buf [00:31:47]Sock 8.Close socket [00:31:47]Sock 8.Thread stoped [00:31:47]accept exits with 9 [00:31:47]New connection [00:31:47]New thread 3066637668 created [00:31:47]Thread 3066781028 joined [00:31:47]Waiting for new connection... [00:31:47] Sock 9.Parse request [00:31:47]Sock 9.Check first char [00:31:47]Sock 9.First char is OK [00:31:47]request: POST /json_proto HTTP/1.0 [00:31:47]Method: POST [00:31:47]URL: /json_proto [00:31:47]Method is POST - this is cgi request [00:31:47]url: /json_proto [00:31:47]query_string will be loaded in cgi processing [00:31:47]execute_cgi json_proto POST (null) [00:31:47]execute_cgi path=json_proto method=POST [00:31:47]POST find Content-Length [00:31:47]Host: 172.17.63.3:8080 [00:31:47]Content-Length: 271 [00:31:47]Content-Type: application/json [00:31:47] [00:31:47]POST finish read [00:31:47]Found Content-Length = 271 [00:31:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0430\u0434\u044B\u0440\u0431\u0435\u043A\u043E\u0432 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:47]execute_script... [00:31:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0430\u0434\u044B\u0440\u0431\u0435\u043A\u043E\u0432 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:47]POST & json_proto [00:31:47]process_json_proto [00:31:47]json parsed OK: [00:31:47]protocol is kg_v1.0 [00:31:47]action value=open_shift [00:31:47]process_action open_shift [00:31:47]cmd_open_shift [00:31:47]MH_GetDate [00:31:47]Write to MH i2c: F0 00 00 41 35 65 [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: F0 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: F0 09 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: F0 09 00 41 35 00 F6 E6 1A 67 50 D1 6C 64 BC [00:31:47]GetLastDocTimeStamp 1729815908 [00:31:47]current date 1729816310 [00:31:47]FM_GetShiftState [00:31:47]SAM_PROTO_GetShiftState [00:31:47]wFMCommunicate request_size=4 [00:31:47]MH_SAM_APDU [00:31:47]CAPDU: 80 13 01 00 [00:31:47]Write to MH i2c: E2 08 00 42 35 80 13 01 00 00 00 00 00 F4 [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:47]Read from MH i2c: E2 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 0E 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 0E 00 42 35 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FF [00:31:47]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:31:47]wFMCommunicate OK [00:31:47]SAM_PROTO_GetShiftState done [00:31:47]FM_GetShiftState done [00:31:47]KKMCreateOpenShiftDocument [00:31:47]Load OK [00:31:47]Malloc new data [00:31:47]MH_GetDate [00:31:47]Write to MH i2c: F0 00 00 43 35 67 [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: F0 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: F0 09 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: F0 09 00 43 35 00 F6 E6 1A 67 50 D1 6C 64 BE [00:31:47]Malloc new data [00:31:47]KKMCreateOpenShiftDocument OK [00:31:47]KKMSetOpenShiftData OK [00:31:47]ProcessDocumentItem done err = 0, tmpTLVsize=208 [00:31:47]tlvbuf is 02077530 [00:31:47]KKMLoadAndSignOpenShiftData [00:31:47]SAM_PROTO_ProcessDocument [00:31:47]wFMCommunicate request_size=9 [00:31:47]MH_SAM_APDU [00:31:47]CAPDU: 80 15 01 00 04 02 00 D0 00 [00:31:47]Write to MH i2c: E2 0C 00 44 35 80 15 01 00 04 00 02 00 D0 00 00 00 D2 [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:31:47]Read from MH i2c: E2 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 03 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 03 00 44 35 00 90 00 ED [00:31:47]RAPDU: 90 00 [00:31:47]wFMCommunicate OK [00:31:47]wFMCommunicate request_size=23 [00:31:47]MH_SAM_APDU [00:31:47]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:31:47]Write to MH i2c: E2 1A 00 45 35 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 EF [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:47]Read from MH i2c: E2 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 03 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 03 00 45 35 00 90 00 EE [00:31:47]RAPDU: 90 00 [00:31:47]wFMCommunicate OK [00:31:47]wFMCommunicate request_size=34 [00:31:47]MH_SAM_APDU [00:31:47]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 [00:31:47]Write to MH i2c: E2 25 00 46 35 80 15 02 00 1D 00 FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 00 00 D8 [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:47]Read from MH i2c: E2 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 03 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 03 00 46 35 00 90 00 EF [00:31:47]RAPDU: 90 00 [00:31:47]wFMCommunicate OK [00:31:47]wFMCommunicate request_size=92 [00:31:47]MH_SAM_APDU [00:31:47]CAPDU: 80 15 02 00 57 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 [00:31:47]Write to MH i2c: E2 5F 00 47 35 80 15 02 00 57 00 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 00 00 FC [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:48]Read from MH i2c: E2 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 03 00 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 03 00 47 35 00 90 00 F0 [00:31:48]RAPDU: 90 00 [00:31:48]wFMCommunicate OK [00:31:48]wFMCommunicate request_size=51 [00:31:48]MH_SAM_APDU [00:31:48]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 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:31:48]Write to MH i2c: E2 36 00 48 35 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 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 A7 [00:31:48]Write i2c OK [00:31:48]MH_I2C_Read... [00:31:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:48]Read from MH i2c: E2 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 03 00 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 03 00 48 35 00 90 00 F1 [00:31:48]RAPDU: 90 00 [00:31:48]wFMCommunicate OK [00:31:48]wFMCommunicate request_size=13 [00:31:48]MH_SAM_APDU [00:31:48]CAPDU: 80 15 02 00 08 F4 03 04 00 F6 E6 1A 67 [00:31:48]Write to MH i2c: E2 10 00 49 35 80 15 02 00 08 00 F4 03 04 00 F6 E6 1A 67 00 00 66 [00:31:48]Write i2c OK [00:31:48]MH_I2C_Read... [00:31:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:48]Read from MH i2c: E2 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 03 00 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 03 00 49 35 00 90 00 F2 [00:31:48]RAPDU: 90 00 [00:31:48]wFMCommunicate OK [00:31:48]wFMCommunicate request_size=25 [00:31:48]MH_SAM_APDU [00:31:48]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 [00:31:48]Write to MH i2c: E2 1C 00 4A 35 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 00 00 64 [00:31:48]Write i2c OK [00:31:48]MH_I2C_Read... [00:31:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:31:48]Read from MH i2c: E2 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 03 00 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 03 00 4A 35 00 90 00 F3 [00:31:48]RAPDU: 90 00 [00:31:48]wFMCommunicate OK [00:31:48]wFMCommunicate request_size=4 [00:31:48]MH_SAM_APDU [00:31:48]CAPDU: 80 15 03 00 [00:31:48]Write to MH i2c: E2 08 00 4B 35 80 15 03 00 00 00 00 00 01 [00:31:48]Write i2c OK [00:31:48]MH_I2C_Read... [00:31:48]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:31:48]Read from MH i2c: E2 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 38 00 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: E2 38 00 4B 35 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 39 32 10 04 04 00 4D 60 02 00 0E 04 04 00 17 02 00 00 35 04 06 00 B7 1E 05 B1 87 49 90 00 F2 [00:31:48]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 39 32 10 04 04 00 4D 60 02 00 0E 04 04 00 17 02 00 00 35 04 06 00 B7 1E 05 B1 87 49 90 00 [00:31:48]wFMCommunicate OK [00:31:48]SAM_PROTO_ProcessDocument answer len = 51 [00:31:48]SAM_PROTO_ProcessDocument done [00:31:48]SetTLVBufToDocument [00:31:48]Processing tag 1209 (04B9) [00:31:48]Malloc new data [00:31:48]Processing tag 1041 (0411) [00:31:48]Processing tag 1040 (0410) [00:31:48]Malloc new data [00:31:48]Processing tag 1038 (040E) [00:31:48]Malloc new data [00:31:48]Processing tag 1077 (0435) [00:31:48]Malloc new data [00:31:48]SetTLVBufToDocument err=0 [00:31:48]KKMLoadAndSignOpenShiftData store KKM data [00:31:48]KKMLoadAndSignOpenShiftData err=0 [00:31:48]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Кадырбеков Б. Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 Место: АЗС № 143 "Партнер Нефть" 25.10.2024 00:31 Смена: 535 РНМ: 0000000000091693 ЗНМ: 0300000096 ФД: 155725 ФМ: 0000000000871792 ФПД: 201339572422473 [00:31:48]StoreToDocumentArchive [00:31:48]shift 535 fd 155725 [00:31:48]Create dir for shift 0535 [00:31:48]save to /storage/0535/doc_00155725 [00:31:48]save last doc name /storage/0535/doc_00155725 to /storage/kkm_last_doc_name [00:31:48]save OK [00:31:48]Clear old archive folders... [00:31:48]Remove dir /storage/0534 [00:31:48]opendir ok [00:31:48]file . [00:31:48]file .. [00:31:48]file doc_00155375 [00:31:48]remove file /storage/0534/doc_00155375 [00:31:48]file doc_00155376 [00:31:48]remove file /storage/0534/doc_00155376 [00:31:48]file doc_00155377 [00:31:48]remove file /storage/0534/doc_00155377 [00:31:48]file doc_00155378 [00:31:48]remove file /storage/0534/doc_00155378 [00:31:48]file doc_00155379 [00:31:48]remove file /storage/0534/doc_00155379 [00:31:48]file doc_00155380 [00:31:48]remove file /storage/0534/doc_00155380 [00:31:48]file doc_00155381 [00:31:48]remove file /storage/0534/doc_00155381 [00:31:48]file doc_00155382 [00:31:48]remove file /storage/0534/doc_00155382 [00:31:48]file doc_00155383 [00:31:48]remove file /storage/0534/doc_00155383 [00:31:48]file doc_00155384 [00:31:48]remove file /storage/0534/doc_00155384 [00:31:48]file doc_00155385 [00:31:48]remove file /storage/0534/doc_00155385 [00:31:48]file doc_00155386 [00:31:48]remove file /storage/0534/doc_00155386 [00:31:48]file doc_00155387 [00:31:48]remove file /storage/0534/doc_00155387 [00:31:48]file doc_00155388 [00:31:48]remove file /storage/0534/doc_00155388 [00:31:48]file doc_00155389 [00:31:48]remove file /storage/0534/doc_00155389 [00:31:48]file doc_00155390 [00:31:48]remove file /storage/0534/doc_00155390 [00:31:48]file doc_00155391 [00:31:48]remove file /storage/0534/doc_00155391 [00:31:48]file doc_00155392 [00:31:48]remove file /storage/0534/doc_00155392 [00:31:48]file doc_00155393 [00:31:48]remove file /storage/0534/doc_00155393 [00:31:48]file doc_00155394 [00:31:48]remove file /storage/0534/doc_00155394 [00:31:48]file doc_00155395 [00:31:48]remove file /storage/0534/doc_00155395 [00:31:48]file doc_00155396 [00:31:48]remove file /storage/0534/doc_00155396 [00:31:48]file doc_00155397 [00:31:48]remove file /storage/0534/doc_00155397 [00:31:48]file doc_00155398 [00:31:48]remove file /storage/0534/doc_00155398 [00:31:48]file doc_00155399 [00:31:48]remove file /storage/0534/doc_00155399 [00:31:48]file doc_00155400 [00:31:48]remove file /storage/0534/doc_00155400 [00:31:48]file doc_00155401 [00:31:48]remove file /storage/0534/doc_00155401 [00:31:48]file doc_00155402 [00:31:48]remove file /storage/0534/doc_00155402 [00:31:48]file doc_00155403 [00:31:48]remove file /storage/0534/doc_00155403 [00:31:48]file doc_00155404 [00:31:48]remove file /storage/0534/doc_00155404 [00:31:48]file doc_00155405 [00:31:48]remove file /storage/0534/doc_00155405 [00:31:48]file doc_00155406 [00:31:48]remove file /storage/0534/doc_00155406 [00:31:48]file doc_00155407 [00:31:48]remove file /storage/0534/doc_00155407 [00:31:48]file doc_00155408 [00:31:48]remove file /storage/0534/doc_00155408 [00:31:48]file doc_00155409 [00:31:48]remove file /storage/0534/doc_00155409 [00:31:48]file doc_00155410 [00:31:48]remove file /storage/0534/doc_00155410 [00:31:48]file doc_00155411 [00:31:48]remove file /storage/0534/doc_00155411 [00:31:48]file doc_00155412 [00:31:48]remove file /storage/0534/doc_00155412 [00:31:48]file doc_00155413 [00:31:48]remove file /storage/0534/doc_00155413 [00:31:48]file doc_00155414 [00:31:48]remove file /storage/0534/doc_00155414 [00:31:48]file doc_00155415 [00:31:48]remove file /storage/0534/doc_00155415 [00:31:48]file doc_00155416 [00:31:48]remove file /storage/0534/doc_00155416 [00:31:48]file doc_00155417 [00:31:48]remove file /storage/0534/doc_00155417 [00:31:48]file doc_00155418 [00:31:48]remove file /storage/0534/doc_00155418 [00:31:48]file doc_00155419 [00:31:48]remove file /storage/0534/doc_00155419 [00:31:48]file doc_00155420 [00:31:48]remove file /storage/0534/doc_00155420 [00:31:48]file doc_00155421 [00:31:48]remove file /storage/0534/doc_00155421 [00:31:48]file doc_00155422 [00:31:48]remove file /storage/0534/doc_00155422 [00:31:48]file doc_00155423 [00:31:48]remove file /storage/0534/doc_00155423 [00:31:48]file doc_00155424 [00:31:48]remove file /storage/0534/doc_00155424 [00:31:48]file doc_00155425 [00:31:48]remove file /storage/0534/doc_00155425 [00:31:48]file doc_00155426 [00:31:48]remove file /storage/0534/doc_00155426 [00:31:48]file doc_00155427 [00:31:48]remove file /storage/0534/doc_00155427 [00:31:48]file doc_00155428 [00:31:48]remove file /storage/0534/doc_00155428 [00:31:48]file doc_00155429 [00:31:48]remove file /storage/0534/doc_00155429 [00:31:48]file doc_00155430 [00:31:48]remove file /storage/0534/doc_00155430 [00:31:48]file doc_00155431 [00:31:48]remove file /storage/0534/doc_00155431 [00:31:48]file doc_00155432 [00:31:48]remove file /storage/0534/doc_00155432 [00:31:48]file doc_00155433 [00:31:48]remove file /storage/0534/doc_00155433 [00:31:48]file doc_00155434 [00:31:48]remove file /storage/0534/doc_00155434 [00:31:48]file doc_00155435 [00:31:48]remove file /storage/0534/doc_00155435 [00:31:48]file doc_00155436 [00:31:48]remove file /storage/0534/doc_00155436 [00:31:48]file doc_00155437 [00:31:48]remove file /storage/0534/doc_00155437 [00:31:48]file doc_00155438 [00:31:48]remove file /storage/0534/doc_00155438 [00:31:48]file doc_00155439 [00:31:48]remove file /storage/0534/doc_00155439 [00:31:48]file doc_00155440 [00:31:48]remove file /storage/0534/doc_00155440 [00:31:48]file doc_00155441 [00:31:48]remove file /storage/0534/doc_00155441 [00:31:48]file doc_00155442 [00:31:48]remove file /storage/0534/doc_00155442 [00:31:48]file doc_00155443 [00:31:48]remove file /storage/0534/doc_00155443 [00:31:48]file doc_00155444 [00:31:48]remove file /storage/0534/doc_00155444 [00:31:48]file doc_00155445 [00:31:48]remove file /storage/0534/doc_00155445 [00:31:48]file doc_00155446 [00:31:48]remove file /storage/0534/doc_00155446 [00:31:48]file doc_00155447 [00:31:48]remove file /storage/0534/doc_00155447 [00:31:48]file doc_00155448 [00:31:48]remove file /storage/0534/doc_00155448 [00:31:48]file doc_00155449 [00:31:48]remove file /storage/0534/doc_00155449 [00:31:48]file doc_00155450 [00:31:48]remove file /storage/0534/doc_00155450 [00:31:48]file doc_00155451 [00:31:48]remove file /storage/0534/doc_00155451 [00:31:48]file doc_00155452 [00:31:48]remove file /storage/0534/doc_00155452 [00:31:48]file doc_00155453 [00:31:48]remove file /storage/0534/doc_00155453 [00:31:48]file doc_00155454 [00:31:48]remove file /storage/0534/doc_00155454 [00:31:48]file doc_00155455 [00:31:48]remove file /storage/0534/doc_00155455 [00:31:48]file doc_00155456 [00:31:48]remove file /storage/0534/doc_00155456 [00:31:48]file doc_00155457 [00:31:48]remove file /storage/0534/doc_00155457 [00:31:48]file doc_00155458 [00:31:48]remove file /storage/0534/doc_00155458 [00:31:48]file doc_00155459 [00:31:48]remove file /storage/0534/doc_00155459 [00:31:48]file doc_00155460 [00:31:48]remove file /storage/0534/doc_00155460 [00:31:48]file doc_00155461 [00:31:48]remove file /storage/0534/doc_00155461 [00:31:48]file doc_00155462 [00:31:48]remove file /storage/0534/doc_00155462 [00:31:48]file doc_00155463 [00:31:48]remove file /storage/0534/doc_00155463 [00:31:48]file doc_00155464 [00:31:48]remove file /storage/0534/doc_00155464 [00:31:48]file doc_00155465 [00:31:48]remove file /storage/0534/doc_00155465 [00:31:48]file doc_00155466 [00:31:48]remove file /storage/0534/doc_00155466 [00:31:49]file doc_00155467 [00:31:49]remove file /storage/0534/doc_00155467 [00:31:49]file doc_00155468 [00:31:49]remove file /storage/0534/doc_00155468 [00:31:49]file doc_00155469 [00:31:49]remove file /storage/0534/doc_00155469 [00:31:49]file doc_00155470 [00:31:49]remove file /storage/0534/doc_00155470 [00:31:49]file doc_00155471 [00:31:49]remove file /storage/0534/doc_00155471 [00:31:49]file doc_00155472 [00:31:49]remove file /storage/0534/doc_00155472 [00:31:49]file doc_00155473 [00:31:49]remove file /storage/0534/doc_00155473 [00:31:49]file doc_00155474 [00:31:49]remove file /storage/0534/doc_00155474 [00:31:49]file doc_00155475 [00:31:49]remove file /storage/0534/doc_00155475 [00:31:49]file doc_00155476 [00:31:49]remove file /storage/0534/doc_00155476 [00:31:49]file doc_00155477 [00:31:49]remove file /storage/0534/doc_00155477 [00:31:49]file doc_00155478 [00:31:49]remove file /storage/0534/doc_00155478 [00:31:49]file doc_00155479 [00:31:49]remove file /storage/0534/doc_00155479 [00:31:49]file doc_00155480 [00:31:49]remove file /storage/0534/doc_00155480 [00:31:49]file doc_00155481 [00:31:49]remove file /storage/0534/doc_00155481 [00:31:49]file doc_00155482 [00:31:49]remove file /storage/0534/doc_00155482 [00:31:49]file doc_00155483 [00:31:49]remove file /storage/0534/doc_00155483 [00:31:49]file doc_00155484 [00:31:49]remove file /storage/0534/doc_00155484 [00:31:49]file doc_00155485 [00:31:49]remove file /storage/0534/doc_00155485 [00:31:49]file doc_00155486 [00:31:49]remove file /storage/0534/doc_00155486 [00:31:49]file doc_00155487 [00:31:49]remove file /storage/0534/doc_00155487 [00:31:49]file doc_00155488 [00:31:49]remove file /storage/0534/doc_00155488 [00:31:49]file doc_00155489 [00:31:49]remove file /storage/0534/doc_00155489 [00:31:49]file doc_00155490 [00:31:49]remove file /storage/0534/doc_00155490 [00:31:49]file doc_00155491 [00:31:49]remove file /storage/0534/doc_00155491 [00:31:49]file doc_00155492 [00:31:49]remove file /storage/0534/doc_00155492 [00:31:49]file doc_00155493 [00:31:49]remove file /storage/0534/doc_00155493 [00:31:49]file doc_00155494 [00:31:49]remove file /storage/0534/doc_00155494 [00:31:49]file doc_00155495 [00:31:49]remove file /storage/0534/doc_00155495 [00:31:49]file doc_00155496 [00:31:49]remove file /storage/0534/doc_00155496 [00:31:49]file doc_00155497 [00:31:49]remove file /storage/0534/doc_00155497 [00:31:49]file doc_00155498 [00:31:49]remove file /storage/0534/doc_00155498 [00:31:49]file doc_00155499 [00:31:49]remove file /storage/0534/doc_00155499 [00:31:49]file doc_00155500 [00:31:49]remove file /storage/0534/doc_00155500 [00:31:49]file doc_00155501 [00:31:49]remove file /storage/0534/doc_00155501 [00:31:49]file doc_00155502 [00:31:49]remove file /storage/0534/doc_00155502 [00:31:49]file doc_00155503 [00:31:49]remove file /storage/0534/doc_00155503 [00:31:49]file doc_00155504 [00:31:49]remove file /storage/0534/doc_00155504 [00:31:49]file doc_00155505 [00:31:49]remove file /storage/0534/doc_00155505 [00:31:49]file doc_00155506 [00:31:49]remove file /storage/0534/doc_00155506 [00:31:49]file doc_00155507 [00:31:49]remove file /storage/0534/doc_00155507 [00:31:49]file doc_00155508 [00:31:49]remove file /storage/0534/doc_00155508 [00:31:49]file doc_00155509 [00:31:49]remove file /storage/0534/doc_00155509 [00:31:49]file doc_00155510 [00:31:49]remove file /storage/0534/doc_00155510 [00:31:49]file doc_00155511 [00:31:49]remove file /storage/0534/doc_00155511 [00:31:49]file doc_00155512 [00:31:49]remove file /storage/0534/doc_00155512 [00:31:49]file doc_00155513 [00:31:49]remove file /storage/0534/doc_00155513 [00:31:49]file doc_00155514 [00:31:49]remove file /storage/0534/doc_00155514 [00:31:49]file doc_00155515 [00:31:49]remove file /storage/0534/doc_00155515 [00:31:49]file doc_00155516 [00:31:49]remove file /storage/0534/doc_00155516 [00:31:49]file doc_00155517 [00:31:49]remove file /storage/0534/doc_00155517 [00:31:49]file doc_00155518 [00:31:49]remove file /storage/0534/doc_00155518 [00:31:49]file doc_00155519 [00:31:49]remove file /storage/0534/doc_00155519 [00:31:49]file doc_00155520 [00:31:49]remove file /storage/0534/doc_00155520 [00:31:49]file doc_00155521 [00:31:49]remove file /storage/0534/doc_00155521 [00:31:49]file doc_00155522 [00:31:49]remove file /storage/0534/doc_00155522 [00:31:49]file doc_00155523 [00:31:49]remove file /storage/0534/doc_00155523 [00:31:49]file doc_00155524 [00:31:49]remove file /storage/0534/doc_00155524 [00:31:49]file doc_00155525 [00:31:49]remove file /storage/0534/doc_00155525 [00:31:49]file doc_00155526 [00:31:49]remove file /storage/0534/doc_00155526 [00:31:49]file doc_00155527 [00:31:49]remove file /storage/0534/doc_00155527 [00:31:49]file doc_00155528 [00:31:49]remove file /storage/0534/doc_00155528 [00:31:49]file doc_00155529 [00:31:49]remove file /storage/0534/doc_00155529 [00:31:49]file doc_00155530 [00:31:49]remove file /storage/0534/doc_00155530 [00:31:49]file doc_00155531 [00:31:49]remove file /storage/0534/doc_00155531 [00:31:49]file doc_00155532 [00:31:49]remove file /storage/0534/doc_00155532 [00:31:49]file doc_00155533 [00:31:49]remove file /storage/0534/doc_00155533 [00:31:49]file doc_00155534 [00:31:49]remove file /storage/0534/doc_00155534 [00:31:49]file doc_00155535 [00:31:49]remove file /storage/0534/doc_00155535 [00:31:49]file doc_00155536 [00:31:49]remove file /storage/0534/doc_00155536 [00:31:49]file doc_00155537 [00:31:49]remove file /storage/0534/doc_00155537 [00:31:49]file doc_00155538 [00:31:49]remove file /storage/0534/doc_00155538 [00:31:49]file doc_00155539 [00:31:49]remove file /storage/0534/doc_00155539 [00:31:49]file doc_00155540 [00:31:49]remove file /storage/0534/doc_00155540 [00:31:49]file doc_00155541 [00:31:49]remove file /storage/0534/doc_00155541 [00:31:49]file doc_00155542 [00:31:49]remove file /storage/0534/doc_00155542 [00:31:49]file doc_00155543 [00:31:49]remove file /storage/0534/doc_00155543 [00:31:49]file doc_00155544 [00:31:49]remove file /storage/0534/doc_00155544 [00:31:49]file doc_00155545 [00:31:49]remove file /storage/0534/doc_00155545 [00:31:49]file doc_00155546 [00:31:49]remove file /storage/0534/doc_00155546 [00:31:49]file doc_00155547 [00:31:49]remove file /storage/0534/doc_00155547 [00:31:49]file doc_00155548 [00:31:49]remove file /storage/0534/doc_00155548 [00:31:49]file doc_00155549 [00:31:49]remove file /storage/0534/doc_00155549 [00:31:49]file doc_00155550 [00:31:49]remove file /storage/0534/doc_00155550 [00:31:49]file doc_00155551 [00:31:49]remove file /storage/0534/doc_00155551 [00:31:49]file doc_00155552 [00:31:49]remove file /storage/0534/doc_00155552 [00:31:49]file doc_00155553 [00:31:49]remove file /storage/0534/doc_00155553 [00:31:49]file doc_00155554 [00:31:49]remove file /storage/0534/doc_00155554 [00:31:49]file doc_00155555 [00:31:49]remove file /storage/0534/doc_00155555 [00:31:49]file doc_00155556 [00:31:49]remove file /storage/0534/doc_00155556 [00:31:49]file doc_00155557 [00:31:49]remove file /storage/0534/doc_00155557 [00:31:49]file doc_00155558 [00:31:49]remove file /storage/0534/doc_00155558 [00:31:49]file doc_00155559 [00:31:49]remove file /storage/0534/doc_00155559 [00:31:49]file doc_00155560 [00:31:49]remove file /storage/0534/doc_00155560 [00:31:49]file doc_00155561 [00:31:49]remove file /storage/0534/doc_00155561 [00:31:49]file doc_00155562 [00:31:49]remove file /storage/0534/doc_00155562 [00:31:49]file doc_00155563 [00:31:49]remove file /storage/0534/doc_00155563 [00:31:49]file doc_00155564 [00:31:49]remove file /storage/0534/doc_00155564 [00:31:49]file doc_00155565 [00:31:49]remove file /storage/0534/doc_00155565 [00:31:49]file doc_00155566 [00:31:49]remove file /storage/0534/doc_00155566 [00:31:49]file doc_00155567 [00:31:49]remove file /storage/0534/doc_00155567 [00:31:49]file doc_00155568 [00:31:49]remove file /storage/0534/doc_00155568 [00:31:49]file doc_00155569 [00:31:49]remove file /storage/0534/doc_00155569 [00:31:49]file doc_00155570 [00:31:49]remove file /storage/0534/doc_00155570 [00:31:49]file doc_00155571 [00:31:49]remove file /storage/0534/doc_00155571 [00:31:49]file doc_00155572 [00:31:49]remove file /storage/0534/doc_00155572 [00:31:49]file doc_00155573 [00:31:49]remove file /storage/0534/doc_00155573 [00:31:49]file doc_00155574 [00:31:49]remove file /storage/0534/doc_00155574 [00:31:49]file doc_00155575 [00:31:49]remove file /storage/0534/doc_00155575 [00:31:49]file doc_00155576 [00:31:49]remove file /storage/0534/doc_00155576 [00:31:49]file doc_00155577 [00:31:49]remove file /storage/0534/doc_00155577 [00:31:49]file doc_00155578 [00:31:49]remove file /storage/0534/doc_00155578 [00:31:49]file doc_00155579 [00:31:49]remove file /storage/0534/doc_00155579 [00:31:49]file doc_00155580 [00:31:49]remove file /storage/0534/doc_00155580 [00:31:49]file doc_00155581 [00:31:49]remove file /storage/0534/doc_00155581 [00:31:49]file doc_00155582 [00:31:49]remove file /storage/0534/doc_00155582 [00:31:49]file doc_00155583 [00:31:49]remove file /storage/0534/doc_00155583 [00:31:49]file doc_00155584 [00:31:49]remove file /storage/0534/doc_00155584 [00:31:49]file doc_00155585 [00:31:49]remove file /storage/0534/doc_00155585 [00:31:49]file doc_00155586 [00:31:49]remove file /storage/0534/doc_00155586 [00:31:49]file doc_00155587 [00:31:49]remove file /storage/0534/doc_00155587 [00:31:49]file doc_00155588 [00:31:49]remove file /storage/0534/doc_00155588 [00:31:49]file doc_00155589 [00:31:49]remove file /storage/0534/doc_00155589 [00:31:49]file doc_00155590 [00:31:49]remove file /storage/0534/doc_00155590 [00:31:49]file doc_00155591 [00:31:49]remove file /storage/0534/doc_00155591 [00:31:49]file doc_00155592 [00:31:49]remove file /storage/0534/doc_00155592 [00:31:49]file doc_00155593 [00:31:49]remove file /storage/0534/doc_00155593 [00:31:49]file doc_00155594 [00:31:49]remove file /storage/0534/doc_00155594 [00:31:49]file doc_00155595 [00:31:49]remove file /storage/0534/doc_00155595 [00:31:49]file doc_00155596 [00:31:49]remove file /storage/0534/doc_00155596 [00:31:49]file doc_00155597 [00:31:49]remove file /storage/0534/doc_00155597 [00:31:49]file doc_00155598 [00:31:49]remove file /storage/0534/doc_00155598 [00:31:49]file doc_00155599 [00:31:49]remove file /storage/0534/doc_00155599 [00:31:49]file doc_00155600 [00:31:49]remove file /storage/0534/doc_00155600 [00:31:49]file doc_00155601 [00:31:49]remove file /storage/0534/doc_00155601 [00:31:49]file doc_00155602 [00:31:49]remove file /storage/0534/doc_00155602 [00:31:49]file doc_00155603 [00:31:49]remove file /storage/0534/doc_00155603 [00:31:49]file doc_00155604 [00:31:49]remove file /storage/0534/doc_00155604 [00:31:49]file doc_00155605 [00:31:49]remove file /storage/0534/doc_00155605 [00:31:49]file doc_00155606 [00:31:49]remove file /storage/0534/doc_00155606 [00:31:49]file doc_00155607 [00:31:49]remove file /storage/0534/doc_00155607 [00:31:49]file doc_00155608 [00:31:49]remove file /storage/0534/doc_00155608 [00:31:49]file doc_00155609 [00:31:49]remove file /storage/0534/doc_00155609 [00:31:49]file doc_00155610 [00:31:49]remove file /storage/0534/doc_00155610 [00:31:49]file doc_00155611 [00:31:49]remove file /storage/0534/doc_00155611 [00:31:49]file doc_00155612 [00:31:49]remove file /storage/0534/doc_00155612 [00:31:49]file doc_00155613 [00:31:49]remove file /storage/0534/doc_00155613 [00:31:49]file doc_00155614 [00:31:49]remove file /storage/0534/doc_00155614 [00:31:49]file doc_00155615 [00:31:49]remove file /storage/0534/doc_00155615 [00:31:49]file doc_00155616 [00:31:49]remove file /storage/0534/doc_00155616 [00:31:49]file doc_00155617 [00:31:49]remove file /storage/0534/doc_00155617 [00:31:49]file doc_00155618 [00:31:49]remove file /storage/0534/doc_00155618 [00:31:49]file doc_00155619 [00:31:50]remove file /storage/0534/doc_00155619 [00:31:50]file doc_00155620 [00:31:50]remove file /storage/0534/doc_00155620 [00:31:50]file doc_00155621 [00:31:50]remove file /storage/0534/doc_00155621 [00:31:50]file doc_00155622 [00:31:50]remove file /storage/0534/doc_00155622 [00:31:50]file doc_00155623 [00:31:50]remove file /storage/0534/doc_00155623 [00:31:50]file doc_00155624 [00:31:50]remove file /storage/0534/doc_00155624 [00:31:50]file doc_00155625 [00:31:50]remove file /storage/0534/doc_00155625 [00:31:50]file doc_00155626 [00:31:50]remove file /storage/0534/doc_00155626 [00:31:50]file doc_00155627 [00:31:50]remove file /storage/0534/doc_00155627 [00:31:50]file doc_00155628 [00:31:50]remove file /storage/0534/doc_00155628 [00:31:50]file doc_00155629 [00:31:50]remove file /storage/0534/doc_00155629 [00:31:50]file doc_00155630 [00:31:50]remove file /storage/0534/doc_00155630 [00:31:50]file doc_00155631 [00:31:50]remove file /storage/0534/doc_00155631 [00:31:50]file doc_00155632 [00:31:50]remove file /storage/0534/doc_00155632 [00:31:50]file doc_00155633 [00:31:50]remove file /storage/0534/doc_00155633 [00:31:50]file doc_00155634 [00:31:50]remove file /storage/0534/doc_00155634 [00:31:50]file doc_00155635 [00:31:50]remove file /storage/0534/doc_00155635 [00:31:50]file doc_00155636 [00:31:50]remove file /storage/0534/doc_00155636 [00:31:50]file doc_00155637 [00:31:50]remove file /storage/0534/doc_00155637 [00:31:50]file doc_00155638 [00:31:50]remove file /storage/0534/doc_00155638 [00:31:50]file doc_00155639 [00:31:50]remove file /storage/0534/doc_00155639 [00:31:50]file doc_00155640 [00:31:50]remove file /storage/0534/doc_00155640 [00:31:50]file doc_00155641 [00:31:50]remove file /storage/0534/doc_00155641 [00:31:50]file doc_00155642 [00:31:50]remove file /storage/0534/doc_00155642 [00:31:50]file doc_00155643 [00:31:50]remove file /storage/0534/doc_00155643 [00:31:50]file doc_00155644 [00:31:50]remove file /storage/0534/doc_00155644 [00:31:50]file doc_00155645 [00:31:50]remove file /storage/0534/doc_00155645 [00:31:50]file doc_00155646 [00:31:50]remove file /storage/0534/doc_00155646 [00:31:50]file doc_00155647 [00:31:50]remove file /storage/0534/doc_00155647 [00:31:50]file doc_00155648 [00:31:50]remove file /storage/0534/doc_00155648 [00:31:50]file doc_00155649 [00:31:50]remove file /storage/0534/doc_00155649 [00:31:50]file doc_00155650 [00:31:50]remove file /storage/0534/doc_00155650 [00:31:50]file doc_00155651 [00:31:50]remove file /storage/0534/doc_00155651 [00:31:50]file doc_00155652 [00:31:50]remove file /storage/0534/doc_00155652 [00:31:50]file doc_00155653 [00:31:50]remove file /storage/0534/doc_00155653 [00:31:50]file doc_00155654 [00:31:50]remove file /storage/0534/doc_00155654 [00:31:50]file doc_00155655 [00:31:50]remove file /storage/0534/doc_00155655 [00:31:50]file doc_00155656 [00:31:50]remove file /storage/0534/doc_00155656 [00:31:50]file doc_00155657 [00:31:50]remove file /storage/0534/doc_00155657 [00:31:50]file doc_00155658 [00:31:50]remove file /storage/0534/doc_00155658 [00:31:50]file doc_00155659 [00:31:50]remove file /storage/0534/doc_00155659 [00:31:50]file doc_00155660 [00:31:50]remove file /storage/0534/doc_00155660 [00:31:50]file doc_00155661 [00:31:50]remove file /storage/0534/doc_00155661 [00:31:50]file doc_00155662 [00:31:50]remove file /storage/0534/doc_00155662 [00:31:50]file doc_00155663 [00:31:50]remove file /storage/0534/doc_00155663 [00:31:50]file doc_00155664 [00:31:50]remove file /storage/0534/doc_00155664 [00:31:50]file doc_00155665 [00:31:50]remove file /storage/0534/doc_00155665 [00:31:50]file doc_00155666 [00:31:50]remove file /storage/0534/doc_00155666 [00:31:50]file doc_00155667 [00:31:50]remove file /storage/0534/doc_00155667 [00:31:50]file doc_00155668 [00:31:50]remove file /storage/0534/doc_00155668 [00:31:50]file doc_00155669 [00:31:50]remove file /storage/0534/doc_00155669 [00:31:50]file doc_00155670 [00:31:50]remove file /storage/0534/doc_00155670 [00:31:50]file doc_00155671 [00:31:50]remove file /storage/0534/doc_00155671 [00:31:50]file doc_00155672 [00:31:50]remove file /storage/0534/doc_00155672 [00:31:50]file doc_00155673 [00:31:50]remove file /storage/0534/doc_00155673 [00:31:50]file doc_00155674 [00:31:50]remove file /storage/0534/doc_00155674 [00:31:50]file doc_00155675 [00:31:50]remove file /storage/0534/doc_00155675 [00:31:50]file doc_00155676 [00:31:50]remove file /storage/0534/doc_00155676 [00:31:50]file doc_00155677 [00:31:50]remove file /storage/0534/doc_00155677 [00:31:50]file doc_00155678 [00:31:50]remove file /storage/0534/doc_00155678 [00:31:50]file doc_00155679 [00:31:50]remove file /storage/0534/doc_00155679 [00:31:50]file doc_00155680 [00:31:50]remove file /storage/0534/doc_00155680 [00:31:50]file doc_00155681 [00:31:50]remove file /storage/0534/doc_00155681 [00:31:50]file doc_00155682 [00:31:50]remove file /storage/0534/doc_00155682 [00:31:50]file doc_00155683 [00:31:50]remove file /storage/0534/doc_00155683 [00:31:50]file doc_00155684 [00:31:50]remove file /storage/0534/doc_00155684 [00:31:50]file doc_00155685 [00:31:50]remove file /storage/0534/doc_00155685 [00:31:50]file doc_00155686 [00:31:50]remove file /storage/0534/doc_00155686 [00:31:50]file doc_00155687 [00:31:50]remove file /storage/0534/doc_00155687 [00:31:50]file doc_00155688 [00:31:50]remove file /storage/0534/doc_00155688 [00:31:50]file doc_00155689 [00:31:50]remove file /storage/0534/doc_00155689 [00:31:50]file doc_00155690 [00:31:50]remove file /storage/0534/doc_00155690 [00:31:50]file doc_00155691 [00:31:50]remove file /storage/0534/doc_00155691 [00:31:50]file doc_00155692 [00:31:50]remove file /storage/0534/doc_00155692 [00:31:50]file doc_00155693 [00:31:50]remove file /storage/0534/doc_00155693 [00:31:50]file doc_00155694 [00:31:50]remove file /storage/0534/doc_00155694 [00:31:50]file doc_00155695 [00:31:50]remove file /storage/0534/doc_00155695 [00:31:50]file doc_00155696 [00:31:50]remove file /storage/0534/doc_00155696 [00:31:50]file doc_00155697 [00:31:50]remove file /storage/0534/doc_00155697 [00:31:50]file doc_00155698 [00:31:50]remove file /storage/0534/doc_00155698 [00:31:50]file doc_00155699 [00:31:50]remove file /storage/0534/doc_00155699 [00:31:50]file doc_00155700 [00:31:50]remove file /storage/0534/doc_00155700 [00:31:50]file doc_00155701 [00:31:50]remove file /storage/0534/doc_00155701 [00:31:50]file doc_00155702 [00:31:50]remove file /storage/0534/doc_00155702 [00:31:50]file doc_00155703 [00:31:50]remove file /storage/0534/doc_00155703 [00:31:50]file doc_00155704 [00:31:50]remove file /storage/0534/doc_00155704 [00:31:50]file doc_00155705 [00:31:50]remove file /storage/0534/doc_00155705 [00:31:50]file doc_00155706 [00:31:50]remove file /storage/0534/doc_00155706 [00:31:50]file doc_00155707 [00:31:50]remove file /storage/0534/doc_00155707 [00:31:50]file doc_00155708 [00:31:50]remove file /storage/0534/doc_00155708 [00:31:50]file doc_00155709 [00:31:50]remove file /storage/0534/doc_00155709 [00:31:50]file doc_00155710 [00:31:50]remove file /storage/0534/doc_00155710 [00:31:50]file doc_00155711 [00:31:50]remove file /storage/0534/doc_00155711 [00:31:50]file doc_00155712 [00:31:50]remove file /storage/0534/doc_00155712 [00:31:50]file doc_00155713 [00:31:50]remove file /storage/0534/doc_00155713 [00:31:50]file doc_00155714 [00:31:50]remove file /storage/0534/doc_00155714 [00:31:50]file doc_00155715 [00:31:50]remove file /storage/0534/doc_00155715 [00:31:50]file doc_00155716 [00:31:50]remove file /storage/0534/doc_00155716 [00:31:50]file doc_00155717 [00:31:50]remove file /storage/0534/doc_00155717 [00:31:50]file doc_00155718 [00:31:50]remove file /storage/0534/doc_00155718 [00:31:50]file doc_00155719 [00:31:50]remove file /storage/0534/doc_00155719 [00:31:50]file doc_00155720 [00:31:50]remove file /storage/0534/doc_00155720 [00:31:50]file doc_00155721 [00:31:50]remove file /storage/0534/doc_00155721 [00:31:50]file doc_00155722 [00:31:50]remove file /storage/0534/doc_00155722 [00:31:50]file doc_00155723 [00:31:50]remove file /storage/0534/doc_00155723 [00:31:50]file doc_00155724 [00:31:50]remove file /storage/0534/doc_00155724 [00:31:50]remove dir /storage/0534 [00:31:50]ProcessDocumentItem done err = 0, tmpTLVsize=259 [00:31:50]tlvbuf is 01F36940 [00:31:50]SAM_PROTO_ClearQueue [00:31:50]wFMCommunicate request_size=4 [00:31:50]MH_SAM_APDU [00:31:50]CAPDU: 80 09 00 00 [00:31:50]Write to MH i2c: E2 08 00 4C 35 80 09 00 00 00 00 00 00 F3 [00:31:50]Write i2c OK [00:31:50]MH_I2C_Read... [00:31:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:31:50]Read from MH i2c: E2 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 03 00 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 03 00 4C 35 00 90 00 F5 [00:31:50]RAPDU: 90 00 [00:31:50]wFMCommunicate OK [00:31:50]SAM_PROTO_ClearQueue done [00:31:50]KKMCreateOFDPacket [00:31:50]OFDProtocolAddRootSTLVToBuf [00:31:50]FM_MakeSignedData [00:31:50]FM_MakeSignedData [00:31:50]SAM_PROTO_SignData [00:31:50]wFMCommunicate request_size=4 [00:31:50]MH_SAM_APDU [00:31:50]CAPDU: 80 0D 01 02 [00:31:50]Write to MH i2c: E2 08 00 4D 35 80 0D 01 02 00 00 00 00 FB [00:31:50]Write i2c OK [00:31:50]MH_I2C_Read... [00:31:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:31:50]Read from MH i2c: E2 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 03 00 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 03 00 4D 35 00 90 00 F6 [00:31:50]RAPDU: 90 00 [00:31:50]wFMCommunicate OK [00:31:50]wFMCommunicate request_size=255 [00:31:50]MH_SAM_APDU [00:31:50]CAPDU: 80 0D 02 02 FA 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 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 F6 E6 1A 67 0E 04 04 00 17 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4D 60 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 [00:31:50]Write to MH i2c: E2 02 01 4E 35 80 0D 02 02 FA 00 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 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 F6 E6 1A 67 0E 04 04 00 17 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4D 60 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 00 00 FB [00:31:50]Write i2c OK [00:31:50]MH_I2C_Read... [00:31:50]OFD Sender: No OFD packet to send [00:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:50]Read from MH i2c: E2 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 03 00 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 03 00 4E 35 00 90 00 F7 [00:31:50]RAPDU: 90 00 [00:31:50]wFMCommunicate OK [00:31:50]wFMCommunicate request_size=18 [00:31:50]MH_SAM_APDU [00:31:50]CAPDU: 80 0D 02 02 0D 37 39 32 35 04 06 00 B7 1E 05 B1 87 49 [00:31:50]Write to MH i2c: E2 15 00 4F 35 80 0D 02 02 0D 00 37 39 32 35 04 06 00 B7 1E 05 B1 87 49 00 00 54 [00:31:50]Write i2c OK [00:31:50]MH_I2C_Read... [00:31:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:50]Read from MH i2c: E2 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 03 00 [00:31:50]MH_I2C_Read... [00:31:50]Read from MH i2c: E2 03 00 4F 35 00 90 00 F8 [00:31:51]RAPDU: 90 00 [00:31:51]wFMCommunicate OK [00:31:51]wFMCommunicate request_size=4 [00:31:51]MH_SAM_APDU [00:31:51]CAPDU: 80 0D 03 02 [00:31:51]Write to MH i2c: E2 08 00 50 35 80 0D 03 02 00 00 00 00 00 [00:31:51]Write i2c OK [00:31:51]MH_I2C_Read... [00:31:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:51]Read from MH i2c: E2 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 0B 00 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 0B 00 50 35 00 3B CC 0F 12 F3 60 05 68 90 00 E9 [00:31:51]RAPDU: 3B CC 0F 12 F3 60 05 68 90 00 [00:31:51]wFMCommunicate OK [00:31:51]SAM_PROTO_SignData done [00:31:51]FM_MakeSignedData done [00:31:51]CreateOFDProtocolMessage [00:31:51]wFMCommunicate request_size=4 [00:31:51]MH_SAM_APDU [00:31:51]CAPDU: 80 11 00 00 [00:31:51]Write to MH i2c: E2 08 00 51 35 80 11 00 00 00 00 00 00 00 [00:31:51]Write i2c OK [00:31:51]MH_I2C_Read... [00:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:51]Read from MH i2c: E2 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 17 00 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 17 00 51 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 55 [00:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:31:51]wFMCommunicate OK [00:31:51]CreateOFDProtocolMessage done [00:31:51]OFDSenderStorePacket 155725 [00:31:51]StoreOFDPacket docnum=155725 [00:31:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 17 01 00 00 5E 27 0F 01 7F 2A 5A 02 01 00 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 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 F6 E6 1A 67 0E 04 04 00 17 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4D 60 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 B7 1E 05 B1 87 49 3B CC 0F 12 F3 60 05 68 [00:31:51]CheckFolder [00:31:51]dirname=/storage/ofd_packets [00:31:51]CheckFolder done [00:31:51]ProducePacketName [00:31:51]name=ofd_packets/00155725 [00:31:51]NVStorageSaveData ofd_packets/00155725 [00:31:51]File name is /storage/ofd_packets/00155725 [00:31:51]Write 309 bytes [00:31:51]NVStorageSaveData done [00:31:51]OFDSenderStorePacket done [00:31:51]KKMCreateOFDPacket done [00:31:51]NVStorageSaveData kkm_last_timestamp [00:31:51]File name is /storage/kkm_last_timestamp [00:31:51]Write 4 bytes [00:31:51]NVStorageSaveData done [00:31:51]ExternCall_PrintAddStr [00:31:51]wPrintStart [00:31:51]Write to MH i2c: 01 00 00 52 35 87 [00:31:51]OFD Sender: Processing packet 155725 [packets to send 31, broken 30] [00:31:51]ProducePacketName [00:31:51]name=ofd_packets/00155725 [00:31:51]OFD Sender: To server: pG, [00:31:51]CommunicateWithHost lk.salyk.kg:30040 [00:31:51]ConnectInit lk.salyk.kg [00:31:51]Write i2c OK [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: 01 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: 01 07 00 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: 01 07 00 52 35 00 00 00 00 00 FF 0F 9C [00:31:51]RasterBufferAndPrint [00:31:51]line Отчет об открытии смены [00:31:51]line ФФД: 1.0 [00:31:51]line ИНН: 02508201610067 [00:31:51]line Кассир: Кадырбеков Б. [00:31:51]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [00:31:51]line Место: АЗС № 143 "Партнер Нефть" [00:31:51]line 25.10.2024 00:31 [00:31:51]line Смена: 535 [00:31:51]line РНМ: 0000000000091693 [00:31:51]line ЗНМ: 0300000096 [00:31:51]line ФД: 155725 [00:31:51]line ФМ: 0000000000871792 [00:31:51]line ФПД: 201339572422473 [00:31:51]written 0, free lines is 4095 [00:31:51]Connected sock=10 [00:31: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 39 32 17 01 00 00 5E 27 0F 01 7F 2A 5A 02 01 00 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 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 F6 E6 1A 67 0E 04 04 00 17 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4D 60 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 B7 1E 05 B1 87 49 3B CC 0F 12 F3 60 05 68 [00:31:51]Write to MH i2c: 01 00 00 64 35 99 [00:31:51]Write i2c OK [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: 01 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: 01 07 00 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: 01 07 00 64 35 00 00 00 00 00 58 0E 06 [00:31:51]RasterBufferAndPrint [00:31:51]line [00:31:51]line [00:31:51]line [00:31:51]line [00:31:51]line [00:31:51]written 0, free lines is 3683 [00:31:51]process_action open_shift done [00:31:51]requested_data is exist [00:31:51]produce_requested_data [00:31:51]requested_item fd.num is exist - process it [00:31:51]SAM_PROTO_GetFieldsCounters [00:31:51]wFMCommunicate request_size=4 [00:31:51]MH_SAM_APDU [00:31:51]CAPDU: 80 13 00 00 [00:31:51]Write to MH i2c: E2 08 00 6B 35 80 13 00 00 00 00 00 00 1C [00:31:51]Write i2c OK [00:31:51]MH_I2C_Read... [00:31: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 39 32 4F 00 00 00 D6 9A 47 00 54 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 39 32 10 04 04 00 4D 60 02 00 F4 03 04 00 6F 8C 1A 67 B6 04 01 00 00 AB 58 C1 8E 40 42 A5 5E [00:31:51]CommunicateWithHost err = 0 [00:31:51]CheckOFDResponse [00:31:51]1017 (14) - 77093643461234 [00:31:51]1041 (16) - 0000000000871792 [00:31:51]1040 (4) - 155725 [00:31:51]1012 (4) - 24.10.2024 18:05 [00:31:51]1206 (1) - 0 [00:31:51]OFD Sender: Remove packet 155725 [00:31:51]ProducePacketName [00:31:51]name=ofd_packets/00155725 [00:31:51]NVStorageDeleteData [00:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:51]Read from MH i2c: E2 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 62 00 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 62 00 6B 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4D 60 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [00:31: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4D 60 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:51]wFMCommunicate OK [00:31:51]SAM_PROTO_GetFieldsCounters done [00:31:51]requested_item shift.num is exist - process it [00:31:51]requested_item shift.opened is exist - process it [00:31:51]req_shift_opened [00:31:51]FM_GetShiftState [00:31:51]SAM_PROTO_GetShiftState [00:31:51]wFMCommunicate request_size=4 [00:31:51]MH_SAM_APDU [00:31:51]CAPDU: 80 13 01 00 [00:31:51]Write to MH i2c: E2 08 00 6C 35 80 13 01 00 00 00 00 00 1E [00:31:51]Write i2c OK [00:31:51]MH_I2C_Read... [00:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:51]Read from MH i2c: E2 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 0E 00 [00:31:51]MH_I2C_Read... [00:31:51]Read from MH i2c: E2 0E 00 6C 35 00 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 87 [00:31:51]RAPDU: 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 [00:31:51]wFMCommunicate OK [00:31:51]SAM_PROTO_GetShiftState done [00:31:51]FM_GetShiftState done [00:31:51]req_shift_opened done [00:31:51]requested_item shift.open_date is exist - process it [00:31:51]req_shift_open_date [00:31:51]req_shift_open_date done [00:31:51]produce_requested_data done [00:31:51]produce_requested_data return {"fd.num":155725,"shift.num":535,"shift.opened":1,"shift.open_date":1729816310} [00:31:51]process_action_free open_shift [00:31:51]json_value_free [00:31:51]json_value_free done [00:31:51]process_json_proto returns [00:31:51]Send response to host [00:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":155725,"shift.num":535,"shift.opened":1,"shift.open_date":1729816310}}} [00:31:51]free response buf [00:31:51]execute_script done [00:31:51]execute_script returns [00:31:51]free content buf [00:31:51]Sock 9.Close socket [00:31:51]Sock 9.Thread stoped [00:31:51]accept exits with 8 [00:31:51]New connection [00:31:51]New thread 3066781028 created [00:31:51]Thread 3066637668 joined [00:31:51]Waiting for new connection... [00:31:51] Sock 8.Parse request [00:31:51]Sock 8.Check first char [00:31:51]Sock 8.First char is OK [00:31:51]request: POST /json_proto HTTP/1.0 [00:31:51]Method: POST [00:31:51]URL: /json_proto [00:31:51]Method is POST - this is cgi request [00:31:51]url: /json_proto [00:31:51]query_string will be loaded in cgi processing [00:31:51]execute_cgi json_proto POST (null) [00:31:51]execute_cgi path=json_proto method=POST [00:31:51]POST find Content-Length [00:31:51]Host: 172.17.63.3:8080 [00:31:51]Content-Length: 331 [00:31:51]Content-Type: application/json [00:31:51] [00:31:51]POST finish read [00:31:51]Found Content-Length = 331 [00:31:51]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:31:51]execute_script... [00:31:51]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:31:51]POST & json_proto [00:31:51]process_json_proto [00:31:51]json parsed OK: [00:31:51]protocol is kg_v1.0 [00:31:51]action value=get_value [00:31:51]process_action get_value [00:31:51]cmd_get_value [00:31:51]process_action get_value done [00:31:51]requested_data is exist [00:31:51]produce_requested_data [00:31:51]requested_item fm.sale.total is exist - process it [00:31:51]SAM_PROTO_GetFMData [00:31:51]wFMCommunicate request_size=4 [00:31:51]MH_SAM_APDU [00:31:51]CAPDU: 80 13 03 00 [00:31:51]Write to MH i2c: E2 08 00 6D 35 80 13 03 00 00 00 00 00 21 [00:31:51]Write i2c OK [00:31:51]MH_I2C_Read... [00:31:52]OFD Sender: No OFD packet to send [00:31:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:31:52]Read from MH i2c: E2 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 FD 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 FD 00 6D 35 00 C2 04 85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 F0 [00:31:52]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 1F 5C 02 00 69 04 A3 00 6F 04 04 00 10 5C 02 00 B1 04 05 00 98 42 96 6E 02 70 04 05 00 38 6A EC 2D 02 72 04 04 00 60 D8 A9 40 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 CD EB 24 42 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 82 F7 82 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:31:52]wFMCommunicate OK [00:31:52]wFMCommunicate request_size=4 [00:31:52]MH_SAM_APDU [00:31:52]CAPDU: 80 17 00 00 [00:31:52]Write to MH i2c: E2 08 00 6E 35 80 17 00 00 00 00 00 00 23 [00:31:52]Write i2c OK [00:31:52]MH_I2C_Read... [00:31:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:52]Read from MH i2c: E2 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 FD 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 FD 00 6E 35 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 92 [00:31:52]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 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 90 00 [00:31:52]wFMCommunicate OK [00:31:52]wFMCommunicate request_size=4 [00:31:52]MH_SAM_APDU [00:31:52]CAPDU: 80 17 00 00 [00:31:52]Write to MH i2c: E2 08 00 6F 35 80 17 00 00 00 00 00 00 24 [00:31:52]Write i2c OK [00:31:52]MH_I2C_Read... [00:31:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:52]Read from MH i2c: E2 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 FD 00 [00:31:52]MH_I2C_Read... [00:31:52]Read from MH i2c: E2 FD 00 6F 35 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 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 90 00 D2 [00:31:53]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 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 90 00 [00:31:53]wFMCommunicate OK [00:31:53]wFMCommunicate request_size=4 [00:31:53]MH_SAM_APDU [00:31:53]CAPDU: 80 17 00 00 [00:31:53]Write to MH i2c: E2 08 00 70 35 80 17 00 00 00 00 00 00 25 [00:31:53]Write i2c OK [00:31:53]MH_I2C_Read... [00:31:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:53]Read from MH i2c: E2 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 FD 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 FD 00 70 35 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A0 [00:31:53]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:31:53]wFMCommunicate OK [00:31:53]wFMCommunicate request_size=4 [00:31:53]MH_SAM_APDU [00:31:53]CAPDU: 80 17 00 00 [00:31:53]Write to MH i2c: E2 08 00 71 35 80 17 00 00 00 00 00 00 26 [00:31:53]Write i2c OK [00:31:53]MH_I2C_Read... [00:31:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:31:53]Read from MH i2c: E2 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 DF 00 [00:31:53]MH_I2C_Read... [00:31:53]Read from MH i2c: E2 DF 00 71 35 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 06 [00:31:53]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 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:31:53]wFMCommunicate OK [00:31:53]SAM_PROTO_GetFMData done [00:31:53]requested_item fm.sale_refund.total is exist - process it [00:31:53]requested_item fm.buy.total is exist - process it [00:31:53]requested_item shift.sale.total is exist - process it [00:31:53]SAM_PROTO_GetShiftData [00:31:53]wFMCommunicate request_size=4 [00:31:53]MH_SAM_APDU [00:31:53]CAPDU: 80 13 02 00 [00:31:54]Write to MH i2c: E2 08 00 72 35 80 13 02 00 00 00 00 00 25 [00:31:54]Write i2c OK [00:31:54]MH_I2C_Read... [00:31:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:31:54]Read from MH i2c: E2 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: E2 FD 00 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: E2 FD 00 72 35 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 98 [00:31:54]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:31:54]wFMCommunicate OK [00:31:54]wFMCommunicate request_size=4 [00:31:54]MH_SAM_APDU [00:31:54]CAPDU: 80 17 00 00 [00:31:54]Write to MH i2c: E2 08 00 73 35 80 17 00 00 00 00 00 00 28 [00:31:54]Write i2c OK [00:31:54]MH_I2C_Read... [00:31:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:54]Read from MH i2c: E2 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: E2 FD 00 [00:31:54]MH_I2C_Read... [00:31:54]Read from MH i2c: E2 FD 00 73 35 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 30 [00:31:55]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:31:55]wFMCommunicate OK [00:31:55]wFMCommunicate request_size=4 [00:31:55]MH_SAM_APDU [00:31:55]CAPDU: 80 17 00 00 [00:31:55]Write to MH i2c: E2 08 00 74 35 80 17 00 00 00 00 00 00 29 [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:55]Read from MH i2c: E2 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 FD 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 FD 00 74 35 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 FB [00:31:55]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:31:55]wFMCommunicate OK [00:31:55]wFMCommunicate request_size=4 [00:31:55]MH_SAM_APDU [00:31:55]CAPDU: 80 17 00 00 [00:31:55]Write to MH i2c: E2 08 00 75 35 80 17 00 00 00 00 00 00 2A [00:31:55]Write i2c OK [00:31:55]MH_I2C_Read... [00:31:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:31:55]Read from MH i2c: E2 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 FD 00 [00:31:55]MH_I2C_Read... [00:31:55]Read from MH i2c: E2 FD 00 75 35 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 9C [00:31:56]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:31:56]wFMCommunicate OK [00:31:56]wFMCommunicate request_size=4 [00:31:56]MH_SAM_APDU [00:31:56]CAPDU: 80 17 00 00 [00:31:56]Write to MH i2c: E2 08 00 76 35 80 17 00 00 00 00 00 00 2B [00:31:56]Write i2c OK [00:31:56]MH_I2C_Read... [00:31:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:31:56]Read from MH i2c: E2 [00:31:56]MH_I2C_Read... [00:31:56]Read from MH i2c: E2 BD 00 [00:31:56]MH_I2C_Read... [00:31:56]Read from MH i2c: E2 BD 00 76 35 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 11 [00:31:56]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:31:56]wFMCommunicate OK [00:31:56]SAM_PROTO_GetShiftData done [00:31:56]requested_item shift.sale.total_cash is exist - process it [00:31:56]requested_item shift.sale_refund.total is exist - process it [00:31:56]requested_item shift.sale_refund.total_cash is exist - process it [00:31:56]requested_item shift.buy.total is exist - process it [00:31:56]requested_item shift.buy.total_cash is exist - process it [00:31:56]produce_requested_data done [00:31:56]produce_requested_data return {"fm.sale.total":104452758.00,"fm.sale_refund.total":119944.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:31:56]process_action_free get_value [00:31:56]json_value_free [00:31:56]json_value_free done [00:31:56]process_json_proto returns [00:31:56]Send response to host [00:31:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":104452758.00,"fm.sale_refund.total":119944.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:31:56]free response buf [00:31:56]execute_script done [00:31:56]execute_script returns [00:31:56]free content buf [00:31:56]Sock 8.Close socket [00:31:56]Sock 8.Thread stoped [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:02]accept exits with 9 [00:35:02]New connection [00:35:02]New thread 3066637668 created [00:35:02]Thread 3066781028 joined [00:35:02]Waiting for new connection... [00:35:02] Sock 9.Parse request [00:35:02]Sock 9.Check first char [00:35:02]Sock 9.First char is OK [00:35:02]request: POST /json_proto HTTP/1.0 [00:35:02]Method: POST [00:35:02]URL: /json_proto [00:35:02]Method is POST - this is cgi request [00:35:02]url: /json_proto [00:35:02]query_string will be loaded in cgi processing [00:35:02]execute_cgi json_proto POST (null) [00:35:02]execute_cgi path=json_proto method=POST [00:35:02]POST find Content-Length [00:35:02]Host: 172.17.63.3:8080 [00:35:02]Content-Length: 765 [00:35:02]Content-Type: application/json [00:35:02] [00:35:02]POST finish read [00:35:02]Found Content-Length = 765 [00:35:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:02]execute_script... [00:35:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:02]POST & json_proto [00:35:02]process_json_proto [00:35:02]json parsed OK: [00:35:02]protocol is kg_v1.0 [00:35:02]action value=close_receipt [00:35:02]process_action close_receipt [00:35:02]cmd_close_receipt [00:35:02]MH_GetDate [00:35:02]Write to MH i2c: F0 00 00 77 35 9B [00:35:02]Write i2c OK [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: F0 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: F0 09 00 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: F0 09 00 77 35 00 B9 E7 1A 67 50 D1 6C 64 B6 [00:35:02]GetLastDocTimeStamp 1729816310 [00:35:02]current date 1729816505 [00:35:02]FM_GetShiftState [00:35:02]SAM_PROTO_GetShiftState [00:35:02]wFMCommunicate request_size=4 [00:35:02]MH_SAM_APDU [00:35:02]CAPDU: 80 13 01 00 [00:35:02]Write to MH i2c: E2 08 00 78 35 80 13 01 00 00 00 00 00 2A [00:35:02]Write i2c OK [00:35:02]MH_I2C_Read... [00:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:02]Read from MH i2c: E2 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: E2 0E 00 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: E2 0E 00 78 35 00 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 93 [00:35:02]RAPDU: 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 [00:35:02]wFMCommunicate OK [00:35:02]SAM_PROTO_GetShiftState done [00:35:02]FM_GetShiftState done [00:35:02]opened in 1729816310 [00:35:02]opened+sec_in_day 1729902710 [00:35:02]quantity*price = 20003 [00:35:02]sum+1 = 20004 [00:35:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 1 25.10.2024 00:35 Смена: 535 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 155726 ФПД: 31727494303925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T003505&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155726&fm=31727494303925&tin=02508201610067®Number=0000000000091693&sum=20003 [00:35:03]StoreToDocumentArchive [00:35:03]shift 535 fd 155726 [00:35:03]save to /storage/0535/doc_00155726 [00:35:03]save last doc name /storage/0535/doc_00155726 to /storage/kkm_last_doc_name [00:35:03]save OK [00:35:03]Clear old archive folders... [00:35:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:35:03]tlvbuf is 01FA7780 [00:35:03]SAM_PROTO_ClearQueue [00:35:03]wFMCommunicate request_size=4 [00:35:03]MH_SAM_APDU [00:35:03]CAPDU: 80 09 00 00 [00:35:03]Write to MH i2c: E2 08 00 85 35 80 09 00 00 00 00 00 00 2C [00:35:03]Write i2c OK [00:35:03]MH_I2C_Read... [00:35:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:35:04]Read from MH i2c: E2 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 03 00 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 03 00 85 35 00 90 00 2E [00:35:04]RAPDU: 90 00 [00:35:04]wFMCommunicate OK [00:35:04]SAM_PROTO_ClearQueue done [00:35:04]KKMCreateOFDPacket [00:35:04]OFDProtocolAddRootSTLVToBuf [00:35:04]FM_MakeSignedData [00:35:04]FM_MakeSignedData [00:35:04]SAM_PROTO_SignData [00:35:04]wFMCommunicate request_size=4 [00:35:04]MH_SAM_APDU [00:35:04]CAPDU: 80 0D 01 02 [00:35:04]Write to MH i2c: E2 08 00 86 35 80 0D 01 02 00 00 00 00 34 [00:35:04]Write i2c OK [00:35:04]MH_I2C_Read... [00:35:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:35:04]Read from MH i2c: E2 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 03 00 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 03 00 86 35 00 90 00 2F [00:35:04]RAPDU: 90 00 [00:35:04]wFMCommunicate OK [00:35:04]wFMCommunicate request_size=255 [00:35:04]MH_SAM_APDU [00:35: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 B9 E7 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 60 02 00 35 04 06 00 1C [00:35:04]Write to MH i2c: E2 02 01 87 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 B9 E7 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 60 02 00 35 04 06 00 1C 00 00 97 [00:35:04]Write i2c OK [00:35:04]MH_I2C_Read... [00:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:04]Read from MH i2c: E2 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 03 00 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 03 00 87 35 00 90 00 30 [00:35:04]RAPDU: 90 00 [00:35:04]wFMCommunicate OK [00:35:04]wFMCommunicate request_size=10 [00:35:04]MH_SAM_APDU [00:35:04]CAPDU: 80 0D 02 02 05 DB 22 07 10 B5 [00:35:04]Write to MH i2c: E2 0D 00 88 35 80 0D 02 02 05 00 DB 22 07 10 B5 00 00 0A [00:35:04]Write i2c OK [00:35:04]MH_I2C_Read... [00:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:04]Read from MH i2c: E2 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 03 00 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 03 00 88 35 00 90 00 31 [00:35:04]RAPDU: 90 00 [00:35:04]wFMCommunicate OK [00:35:04]wFMCommunicate request_size=4 [00:35:04]MH_SAM_APDU [00:35:04]CAPDU: 80 0D 03 02 [00:35:04]Write to MH i2c: E2 08 00 89 35 80 0D 03 02 00 00 00 00 39 [00:35:04]Write i2c OK [00:35:04]MH_I2C_Read... [00:35:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:35:04]Read from MH i2c: E2 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 0B 00 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 0B 00 89 35 00 1B A3 31 21 C2 AF DB D3 90 00 69 [00:35:04]RAPDU: 1B A3 31 21 C2 AF DB D3 90 00 [00:35:04]wFMCommunicate OK [00:35:04]SAM_PROTO_SignData done [00:35:04]FM_MakeSignedData done [00:35:04]CreateOFDProtocolMessage [00:35:04]wFMCommunicate request_size=4 [00:35:04]MH_SAM_APDU [00:35:04]CAPDU: 80 11 00 00 [00:35:04]Write to MH i2c: E2 08 00 8A 35 80 11 00 00 00 00 00 00 39 [00:35:04]Write i2c OK [00:35:04]MH_I2C_Read... [00:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:04]Read from MH i2c: E2 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 17 00 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 17 00 8A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8E [00:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:35:04]wFMCommunicate OK [00:35:04]CreateOFDProtocolMessage done [00:35:04]OFDSenderStorePacket 155726 [00:35:04]StoreOFDPacket docnum=155726 [00:35:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7C E8 07 01 58 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 B9 E7 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 60 02 00 35 04 06 00 1C DB 22 07 10 B5 1B A3 31 21 C2 AF DB D3 [00:35:04]CheckFolder [00:35:04]dirname=/storage/ofd_packets [00:35:04]CheckFolder done [00:35:04]ProducePacketName [00:35:04]name=ofd_packets/00155726 [00:35:04]NVStorageSaveData ofd_packets/00155726 [00:35:04]File name is /storage/ofd_packets/00155726 [00:35:04]Write 301 bytes [00:35:04]NVStorageSaveData done [00:35:04]OFDSenderStorePacket done [00:35:04]KKMCreateOFDPacket done [00:35:04]NVStorageSaveData kkm_last_timestamp [00:35:04]File name is /storage/kkm_last_timestamp [00:35:04]Write 4 bytes [00:35:04]NVStorageSaveData done [00:35:04]ExternCall_PrintAddStr [00:35:04]wPrintStart [00:35:04]Write to MH i2c: 01 00 00 8B 35 C0 [00:35:04]Write i2c OK [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: 01 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: 01 07 00 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: 01 07 00 8B 35 00 00 00 00 00 FF 0F D5 [00:35:04]RasterBufferAndPrint [00:35:04]line Счет N : (1)98532 [00:35:04]line ИНН: 02508201610067 [00:35:04]line Контрольно-Кассовый Чек [00:35:04]line ПРОДАЖА [00:35:04]line ТРК (МРК, ГНК) : 21 [00:35:04]line Товар: 2710124130 [00:35:04]line Аи-92-К-5 [00:35:04]line 2.990 * 66.90 [00:35:04]line = 200.03 [00:35:04]line НДС 12% НСП 1% [00:35:04]line > о реализуемом товаре [00:35:04]line ИТОГО: 200.03 [00:35:04]line НСП 1% : 1.77 [00:35:04]line НДС 12% : 21.24 [00:35:04]line Наличными: 0.00 [00:35:04]line Безнал.: 200.03 [00:35:04]line Место: АЗС № 143 "Партнер Нефть" [00:35:04]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [00:35:04]line СНО: Общий режим [00:35:04]line Чек 1 25.10.2024 00:35 [00:35:04]line Смена: 535 ФФД: 1.0 [00:35:04]line ЗНМ: 0300000096 [00:35:04]line РНМ: 0000000000091693 [00:35:04]line Версия ККМ: 001 [00:35:04]line Платежная система: Mbank [00:35:04]line ФМ: 0000000000871792 [00:35:04]line ФД: 155726 [00:35:04]line ФПД: 31727494303925 [00:35:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T003505&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155726&fm=31727494303925&tin=02508201610067®Number=0000000000091693&sum=20003 [00:35:04]OFD Sender: Processing packet 155726 [packets to send 31, broken 30] [00:35:04]ProducePacketName [00:35:04]name=ofd_packets/00155726 [00:35:04]OFD Sender: To server: pG, [00:35:04]CommunicateWithHost lk.salyk.kg:30040 [00:35:04]ConnectInit lk.salyk.kg [00:35:04]written 0, free lines is 4095 [00:35:04]Connected sock=10 [00:35:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7C E8 07 01 58 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 B9 E7 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 60 02 00 35 04 06 00 1C DB 22 07 10 B5 1B A3 31 21 C2 AF DB D3 [00:35: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 39 32 4F 00 00 00 0F 52 47 00 62 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 60 02 00 F4 03 04 00 30 8D 1A 67 B6 04 01 00 00 CB 91 34 5E AA 72 D0 3B [00:35:05]CommunicateWithHost err = 0 [00:35:05]CheckOFDResponse [00:35:05]1017 (14) - 77093643461234 [00:35:05]1041 (16) - 0000000000871792 [00:35:05]1040 (4) - 155726 [00:35:05]1012 (4) - 24.10.2024 18:08 [00:35:05]1206 (1) - 0 [00:35:05]OFD Sender: Remove packet 155726 [00:35:05]ProducePacketName [00:35:05]name=ofd_packets/00155726 [00:35:05]NVStorageDeleteData [00:35:05]Write to MH i2c: 01 00 00 B4 35 E9 [00:35:05]Write i2c OK [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: 01 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: 01 07 00 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: 01 07 00 B4 35 00 00 00 00 00 0A 0D 07 [00:35:05]RasterBufferAndPrint [00:35:05]line [00:35:05]line [00:35:05]line [00:35:05]line [00:35:05]line [00:35:05]written 0, free lines is 3347 [00:35:05]process_action close_receipt done [00:35:05]requested_data is exist [00:35:05]produce_requested_data [00:35:05]requested_item fm.sn is exist - process it [00:35:05]wFMCommunicate request_size=4 [00:35:05]MH_SAM_APDU [00:35:05]CAPDU: 80 11 00 00 [00:35:05]Write to MH i2c: E2 08 00 BB 35 80 11 00 00 00 00 00 00 6A [00:35:05]Write i2c OK [00:35:05]MH_I2C_Read... [00:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:05]Read from MH i2c: E2 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 17 00 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 17 00 BB 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BF [00:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:35:05]wFMCommunicate OK [00:35:05]requested_item fd.num is exist - process it [00:35:05]SAM_PROTO_GetFieldsCounters [00:35:05]wFMCommunicate request_size=4 [00:35:05]MH_SAM_APDU [00:35:05]CAPDU: 80 13 00 00 [00:35:05]Write to MH i2c: E2 08 00 BC 35 80 13 00 00 00 00 00 00 6D [00:35:05]Write i2c OK [00:35:05]MH_I2C_Read... [00:35:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:05]Read from MH i2c: E2 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 62 00 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 62 00 BC 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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4E 60 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [00:35: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4E 60 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:05]wFMCommunicate OK [00:35:05]SAM_PROTO_GetFieldsCounters done [00:35:05]requested_item shift.num is exist - process it [00:35:05]requested_item shift.opened is exist - process it [00:35:05]req_shift_opened [00:35:05]FM_GetShiftState [00:35:05]SAM_PROTO_GetShiftState [00:35:05]wFMCommunicate request_size=4 [00:35:05]MH_SAM_APDU [00:35:05]CAPDU: 80 13 01 00 [00:35:05]Write to MH i2c: E2 08 00 BD 35 80 13 01 00 00 00 00 00 6F [00:35:05]Write i2c OK [00:35:05]MH_I2C_Read... [00:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:05]Read from MH i2c: E2 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 0E 00 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 0E 00 BD 35 00 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 D8 [00:35:05]RAPDU: 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 [00:35:05]wFMCommunicate OK [00:35:05]SAM_PROTO_GetShiftState done [00:35:05]FM_GetShiftState done [00:35:05]req_shift_opened done [00:35:05]requested_item shift.open_date is exist - process it [00:35:05]req_shift_open_date [00:35:05]req_shift_open_date done [00:35:05]produce_requested_data done [00:35:05]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155726,"shift.num":535,"shift.opened":1,"shift.open_date":1729816310} [00:35:05]process_action_free close_receipt [00:35:05]json_value_free [00:35:05]json_value_free done [00:35:05]process_json_proto returns [00:35:05]Send response to host [00:35:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155726,"shift.num":535,"shift.opened":1,"shift.open_date":1729816310}}} [00:35:05]free response buf [00:35:05]execute_script done [00:35:05]execute_script returns [00:35:05]free content buf [00:35:05]Sock 9.Close socket [00:35:05]Sock 9.Thread stoped [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:20]accept exits with 8 [00:51:20]New connection [00:51:20]New thread 3066781028 created [00:51:20]Thread 3066637668 joined [00:51:20]Waiting for new connection... [00:51:20] Sock 8.Parse request [00:51:20]Sock 8.Check first char [00:51:20]Sock 8.First char is OK [00:51:20]request: POST /json_proto HTTP/1.0 [00:51:20]Method: POST [00:51:20]URL: /json_proto [00:51:20]Method is POST - this is cgi request [00:51:20]url: /json_proto [00:51:20]query_string will be loaded in cgi processing [00:51:20]execute_cgi json_proto POST (null) [00:51:20]execute_cgi path=json_proto method=POST [00:51:20]POST find Content-Length [00:51:20]Host: 172.17.63.3:8080 [00:51:20]Content-Length: 678 [00:51:20]Content-Type: application/json [00:51:20] [00:51:20]POST finish read [00:51:20]Found Content-Length = 678 [00:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:20]execute_script... [00:51: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)98533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:20]POST & json_proto [00:51:20]process_json_proto [00:51:20]json parsed OK: [00:51:20]protocol is kg_v1.0 [00:51:20]action value=close_receipt [00:51:20]process_action close_receipt [00:51:20]cmd_close_receipt [00:51:20]MH_GetDate [00:51:20]Write to MH i2c: F0 00 00 BE 35 E2 [00:51:20]Write i2c OK [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: F0 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: F0 09 00 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: F0 09 00 BE 35 00 8A EB 1A 67 50 D1 6C 64 D2 [00:51:20]GetLastDocTimeStamp 1729816505 [00:51:20]current date 1729817482 [00:51:20]FM_GetShiftState [00:51:20]SAM_PROTO_GetShiftState [00:51:20]wFMCommunicate request_size=4 [00:51:20]MH_SAM_APDU [00:51:20]CAPDU: 80 13 01 00 [00:51:20]Write to MH i2c: E2 08 00 BF 35 80 13 01 00 00 00 00 00 71 [00:51:20]Write i2c OK [00:51:20]MH_I2C_Read... [00:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:20]Read from MH i2c: E2 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: E2 0E 00 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: E2 0E 00 BF 35 00 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 DA [00:51:20]RAPDU: 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 [00:51:20]wFMCommunicate OK [00:51:20]SAM_PROTO_GetShiftState done [00:51:20]FM_GetShiftState done [00:51:20]opened in 1729816310 [00:51:20]opened+sec_in_day 1729902710 [00:51:20]quantity*price = 100050 [00:51:20]sum+1 = 100052 [00:51:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 2 25.10.2024 00:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155727 ФПД: 196663459969410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T005122&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155727&fm=196663459969410&tin=02508201610067®Number=0000000000091693&sum=100000 [00:51:21]StoreToDocumentArchive [00:51:21]shift 535 fd 155727 [00:51:21]save to /storage/0535/doc_00155727 [00:51:21]save last doc name /storage/0535/doc_00155727 to /storage/kkm_last_doc_name [00:51:21]save OK [00:51:21]Clear old archive folders... [00:51:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:51:21]tlvbuf is 01F53540 [00:51:21]SAM_PROTO_ClearQueue [00:51:21]wFMCommunicate request_size=4 [00:51:21]MH_SAM_APDU [00:51:21]CAPDU: 80 09 00 00 [00:51:21]Write to MH i2c: E2 08 00 CC 35 80 09 00 00 00 00 00 00 73 [00:51:21]Write i2c OK [00:51:21]MH_I2C_Read... [00:51:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:51:21]Read from MH i2c: E2 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 03 00 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 03 00 CC 35 00 90 00 75 [00:51:21]RAPDU: 90 00 [00:51:21]wFMCommunicate OK [00:51:21]SAM_PROTO_ClearQueue done [00:51:21]KKMCreateOFDPacket [00:51:21]OFDProtocolAddRootSTLVToBuf [00:51:21]FM_MakeSignedData [00:51:21]FM_MakeSignedData [00:51:21]SAM_PROTO_SignData [00:51:21]wFMCommunicate request_size=4 [00:51:21]MH_SAM_APDU [00:51:21]CAPDU: 80 0D 01 02 [00:51:21]Write to MH i2c: E2 08 00 CD 35 80 0D 01 02 00 00 00 00 7B [00:51:21]Write i2c OK [00:51:21]MH_I2C_Read... [00:51:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:51:21]Read from MH i2c: E2 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 03 00 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 03 00 CD 35 00 90 00 76 [00:51:21]RAPDU: 90 00 [00:51:21]wFMCommunicate OK [00:51:21]wFMCommunicate request_size=255 [00:51:21]MH_SAM_APDU [00:51:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 8A EB 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4F 60 02 00 35 04 06 00 B2 DD 47 AB [00:51:21]Write to MH i2c: E2 02 01 CE 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 8A EB 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4F 60 02 00 35 04 06 00 B2 DD 47 AB 00 00 48 [00:51:21]Write i2c OK [00:51:21]MH_I2C_Read... [00:51:21]OFD Sender: No OFD packet to send [00:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:21]Read from MH i2c: E2 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 03 00 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 03 00 CE 35 00 90 00 77 [00:51:21]RAPDU: 90 00 [00:51:21]wFMCommunicate OK [00:51:21]wFMCommunicate request_size=7 [00:51:21]MH_SAM_APDU [00:51:21]CAPDU: 80 0D 02 02 02 F9 82 [00:51:21]Write to MH i2c: E2 0A 00 CF 35 80 0D 02 02 02 00 F9 82 00 00 FD [00:51:21]Write i2c OK [00:51:21]MH_I2C_Read... [00:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:21]Read from MH i2c: E2 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 03 00 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 03 00 CF 35 00 90 00 78 [00:51:21]RAPDU: 90 00 [00:51:21]wFMCommunicate OK [00:51:21]wFMCommunicate request_size=4 [00:51:21]MH_SAM_APDU [00:51:21]CAPDU: 80 0D 03 02 [00:51:21]Write to MH i2c: E2 08 00 D0 35 80 0D 03 02 00 00 00 00 80 [00:51:21]Write i2c OK [00:51:21]MH_I2C_Read... [00:51:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:51:21]Read from MH i2c: E2 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 0B 00 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 0B 00 D0 35 00 87 5C 9F E5 EE BF FD CC 90 00 5E [00:51:21]RAPDU: 87 5C 9F E5 EE BF FD CC 90 00 [00:51:21]wFMCommunicate OK [00:51:21]SAM_PROTO_SignData done [00:51:21]FM_MakeSignedData done [00:51:21]CreateOFDProtocolMessage [00:51:21]wFMCommunicate request_size=4 [00:51:21]MH_SAM_APDU [00:51:21]CAPDU: 80 11 00 00 [00:51:21]Write to MH i2c: E2 08 00 D1 35 80 11 00 00 00 00 00 00 80 [00:51:21]Write i2c OK [00:51:21]MH_I2C_Read... [00:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:21]Read from MH i2c: E2 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 17 00 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 17 00 D1 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D5 [00:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:51:21]wFMCommunicate OK [00:51:21]CreateOFDProtocolMessage done [00:51:21]OFDSenderStorePacket 155727 [00:51:21]StoreOFDPacket docnum=155727 [00:51:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 14 B5 04 01 01 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 02 00 00 00 F4 03 04 00 8A EB 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4F 60 02 00 35 04 06 00 B2 DD 47 AB F9 82 87 5C 9F E5 EE BF FD CC [00:51:21]CheckFolder [00:51:21]dirname=/storage/ofd_packets [00:51:21]CheckFolder done [00:51:21]ProducePacketName [00:51:21]name=ofd_packets/00155727 [00:51:21]NVStorageSaveData ofd_packets/00155727 [00:51:21]File name is /storage/ofd_packets/00155727 [00:51:21]Write 298 bytes [00:51:21]NVStorageSaveData done [00:51:21]OFDSenderStorePacket done [00:51:21]KKMCreateOFDPacket done [00:51:21]NVStorageSaveData kkm_last_timestamp [00:51:21]File name is /storage/kkm_last_timestamp [00:51:21]Write 4 bytes [00:51:21]NVStorageSaveData done [00:51:21]ExternCall_PrintAddStr [00:51:21]wPrintStart [00:51:21]Write to MH i2c: 01 00 00 D2 35 07 [00:51:21]Write i2c OK [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: 01 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: 01 07 00 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: 01 07 00 D2 35 00 00 00 00 00 FF 0F 1C [00:51:21]RasterBufferAndPrint [00:51:21]line Счет N : (1)98533 [00:51:21]line ИНН: 02508201610067 [00:51:21]line Контрольно-Кассовый Чек [00:51:21]line ПРОДАЖА [00:51:21]line ТРК (МРК, ГНК) : 32 [00:51:21]line Товар: 2710194210 [00:51:21]line ДТ-К-5 [00:51:21]line 13.130 * 76.20 [00:51:21]line = 1000.51 [00:51:21]line НДС 12% НСП 1% [00:51:21]line > о реализуемом товаре [00:51:21]line ОКРУГЛЕНИЕ: -0.51 [00:51:21]line ИТОГО: 1000.00 [00:51:21]line Внесено: 1000.00 [00:51:21]line СДАЧА: 0.00 [00:51:21]line НСП 1% : 8.85 [00:51:21]line НДС 12% : 106.25 [00:51:21]line Наличными: 1000.00 [00:51:21]line Безнал.: 0.00 [00:51:21]line Место: АЗС № 143 "Партнер Нефть" [00:51:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [00:51:21]line СНО: Общий режим [00:51:21]line Чек 2 25.10.2024 00:51 [00:51:21]line Смена: 535 ФФД: 1.0 [00:51:21]line ЗНМ: 0300000096 [00:51:21]line РНМ: 0000000000091693 [00:51:21]line Версия ККМ: 001 [00:51:21]line ФМ: 0000000000871792 [00:51:21]line ФД: 155727 [00:51:21]line ФПД: 196663459969410 [00:51:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T005122&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155727&fm=196663459969410&tin=02508201610067®Number=0000000000091693&sum=100000 [00:51:22]OFD Sender: Processing packet 155727 [packets to send 31, broken 30] [00:51:22]ProducePacketName [00:51:22]name=ofd_packets/00155727 [00:51:22]OFD Sender: To server: pG, [00:51:22]CommunicateWithHost lk.salyk.kg:30040 [00:51:22]ConnectInit lk.salyk.kg [00:51:22]written 0, free lines is 4095 [00:51:22]Connected sock=10 [00:51: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 39 32 0C 01 00 00 14 B5 04 01 01 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 02 00 00 00 F4 03 04 00 8A EB 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4F 60 02 00 35 04 06 00 B2 DD 47 AB F9 82 87 5C 9F E5 EE BF FD CC [00:51: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 39 32 4F 00 00 00 26 71 47 00 6F 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 39 32 10 04 04 00 4F 60 02 00 F4 03 04 00 02 91 1A 67 B6 04 01 00 00 CF 9E 9C 9F 18 A3 80 79 [00:51:22]CommunicateWithHost err = 0 [00:51:22]CheckOFDResponse [00:51:22]1017 (14) - 77093643461234 [00:51:22]1041 (16) - 0000000000871792 [00:51:22]1040 (4) - 155727 [00:51:22]1012 (4) - 24.10.2024 18:25 [00:51:22]1206 (1) - 0 [00:51:22]OFD Sender: Remove packet 155727 [00:51:22]ProducePacketName [00:51:22]name=ofd_packets/00155727 [00:51:22]NVStorageDeleteData [00:51:22]Write to MH i2c: 01 00 00 FD 35 32 [00:51:22]Write i2c OK [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: 01 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: 01 07 00 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: 01 07 00 FD 35 00 00 00 00 00 E1 0C 26 [00:51:22]RasterBufferAndPrint [00:51:22]line [00:51:22]line [00:51:22]line [00:51:22]line [00:51:22]line [00:51:22]written 0, free lines is 3302 [00:51:22]process_action close_receipt done [00:51:22]requested_data is exist [00:51:22]produce_requested_data [00:51:22]requested_item fm.sn is exist - process it [00:51:22]wFMCommunicate request_size=4 [00:51:22]MH_SAM_APDU [00:51:22]CAPDU: 80 11 00 00 [00:51:22]Write to MH i2c: E2 08 00 04 36 80 11 00 00 00 00 00 00 B4 [00:51:22]Write i2c OK [00:51:22]MH_I2C_Read... [00:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:22]Read from MH i2c: E2 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: E2 17 00 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: E2 17 00 04 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 09 [00:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:51:22]wFMCommunicate OK [00:51:22]requested_item fd.num is exist - process it [00:51:22]SAM_PROTO_GetFieldsCounters [00:51:22]wFMCommunicate request_size=4 [00:51:22]MH_SAM_APDU [00:51:22]CAPDU: 80 13 00 00 [00:51:22]Write to MH i2c: E2 08 00 05 36 80 13 00 00 00 00 00 00 B7 [00:51:22]Write i2c OK [00:51:22]MH_I2C_Read... [00:51:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:22]Read from MH i2c: E2 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: E2 62 00 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: E2 62 00 05 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4F 60 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [00:51:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4F 60 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:51:22]wFMCommunicate OK [00:51:22]SAM_PROTO_GetFieldsCounters done [00:51:22]requested_item shift.num is exist - process it [00:51:22]requested_item shift.opened is exist - process it [00:51:22]req_shift_opened [00:51:22]FM_GetShiftState [00:51:22]SAM_PROTO_GetShiftState [00:51:22]wFMCommunicate request_size=4 [00:51:22]MH_SAM_APDU [00:51:22]CAPDU: 80 13 01 00 [00:51:22]Write to MH i2c: E2 08 00 06 36 80 13 01 00 00 00 00 00 B9 [00:51:22]Write i2c OK [00:51:22]MH_I2C_Read... [00:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:22]Read from MH i2c: E2 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: E2 0E 00 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: E2 0E 00 06 36 00 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 22 [00:51:22]RAPDU: 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 [00:51:22]wFMCommunicate OK [00:51:22]SAM_PROTO_GetShiftState done [00:51:22]FM_GetShiftState done [00:51:22]req_shift_opened done [00:51:22]requested_item shift.open_date is exist - process it [00:51:22]req_shift_open_date [00:51:22]req_shift_open_date done [00:51:22]produce_requested_data done [00:51:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155727,"shift.num":535,"shift.opened":1,"shift.open_date":1729816310} [00:51:22]process_action_free close_receipt [00:51:22]json_value_free [00:51:22]json_value_free done [00:51:22]process_json_proto returns [00:51:22]Send response to host [00:51:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155727,"shift.num":535,"shift.opened":1,"shift.open_date":1729816310}}} [00:51:22]free response buf [00:51:22]execute_script done [00:51:22]execute_script returns [00:51:22]free content buf [00:51:22]Sock 8.Close socket [00:51:22]Sock 8.Thread stoped [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:03]OFD Sender: No OFD packet to send [01:01:08]OFD Sender: No OFD packet to send [01:01:13]OFD Sender: No OFD packet to send [01:01:18]OFD Sender: No OFD packet to send [01:01:23]OFD Sender: No OFD packet to send [01:01:28]OFD Sender: No OFD packet to send [01:01:33]OFD Sender: No OFD packet to send [01:01:38]OFD Sender: No OFD packet to send [01:01:43]OFD Sender: No OFD packet to send [01:01:48]OFD Sender: No OFD packet to send [01:01:53]OFD Sender: No OFD packet to send [01:01:58]OFD Sender: No OFD packet to send [01:02:03]OFD Sender: No OFD packet to send [01:02:08]OFD Sender: No OFD packet to send [01:02:13]OFD Sender: No OFD packet to send [01:02:18]OFD Sender: No OFD packet to send [01:02:23]OFD Sender: No OFD packet to send [01:02:28]OFD Sender: No OFD packet to send [01:02:30]accept exits with 9 [01:02:30]New connection [01:02:30]New thread 3066637668 created [01:02:30]Thread 3066781028 joined [01:02:30]Waiting for new connection... [01:02:30] Sock 9.Parse request [01:02:30]Sock 9.Check first char [01:02:30]Sock 9.First char is OK [01:02:30]request: POST /json_proto HTTP/1.0 [01:02:30]Method: POST [01:02:30]URL: /json_proto [01:02:30]Method is POST - this is cgi request [01:02:30]url: /json_proto [01:02:30]query_string will be loaded in cgi processing [01:02:30]execute_cgi json_proto POST (null) [01:02:30]execute_cgi path=json_proto method=POST [01:02:30]POST find Content-Length [01:02:30]Host: 172.17.63.3:8080 [01:02:30]Content-Length: 676 [01:02:30]Content-Type: application/json [01:02:30] [01:02:30]POST finish read [01:02:30]Found Content-Length = 676 [01:02:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "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" ] } } [01:02:30]execute_script... [01:02: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)98534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "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" ] } } [01:02:30]POST & json_proto [01:02:30]process_json_proto [01:02:30]json parsed OK: [01:02:30]protocol is kg_v1.0 [01:02:30]action value=close_receipt [01:02:30]process_action close_receipt [01:02:30]cmd_close_receipt [01:02:30]MH_GetDate [01:02:30]Write to MH i2c: F0 00 00 07 36 2C [01:02:30]Write i2c OK [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: F0 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: F0 09 00 [01:02:30]MH_I2C_Read... [01:02:30]Read from MH i2c: F0 09 00 07 36 00 29 EE 1A 67 50 D1 6C 64 BE [01:02:30]GetLastDocTimeStamp 1729817482 [01:02:30]current date 1729818153 [01:02:30]FM_GetShiftState [01:02:30]SAM_PROTO_GetShiftState [01:02:30]wFMCommunicate request_size=4 [01:02:30]MH_SAM_APDU [01:02:30]CAPDU: 80 13 01 00 [01:02:30]Write to MH i2c: E2 08 00 08 36 80 13 01 00 00 00 00 00 BB [01:02:30]Write i2c OK [01:02:30]MH_I2C_Read... [01:02:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:31]Read from MH i2c: E2 [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: E2 0E 00 [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: E2 0E 00 08 36 00 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 24 [01:02:31]RAPDU: 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 [01:02:31]wFMCommunicate OK [01:02:31]SAM_PROTO_GetShiftState done [01:02:31]FM_GetShiftState done [01:02:31]opened in 1729816310 [01:02:31]opened+sec_in_day 1729902710 [01:02:31]quantity*price = 25020 [01:02:31]sum+1 = 25022 [01:02:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 3 25.10.2024 01:02 Смена: 535 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155728 ФПД: 188757516896754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T010233&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155728&fm=188757516896754&tin=02508201610067®Number=0000000000091693&sum=25000 [01:02:32]StoreToDocumentArchive [01:02:32]shift 535 fd 155728 [01:02:32]save to /storage/0535/doc_00155728 [01:02:32]save last doc name /storage/0535/doc_00155728 to /storage/kkm_last_doc_name [01:02:32]save OK [01:02:32]Clear old archive folders... [01:02:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:02:32]tlvbuf is 01F53750 [01:02:32]SAM_PROTO_ClearQueue [01:02:32]wFMCommunicate request_size=4 [01:02:32]MH_SAM_APDU [01:02:32]CAPDU: 80 09 00 00 [01:02:32]Write to MH i2c: E2 08 00 15 36 80 09 00 00 00 00 00 00 BD [01:02:32]Write i2c OK [01:02:32]MH_I2C_Read... [01:02:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:02:32]Read from MH i2c: E2 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 03 00 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 03 00 15 36 00 90 00 BF [01:02:32]RAPDU: 90 00 [01:02:32]wFMCommunicate OK [01:02:32]SAM_PROTO_ClearQueue done [01:02:32]KKMCreateOFDPacket [01:02:32]OFDProtocolAddRootSTLVToBuf [01:02:32]FM_MakeSignedData [01:02:32]FM_MakeSignedData [01:02:32]SAM_PROTO_SignData [01:02:32]wFMCommunicate request_size=4 [01:02:32]MH_SAM_APDU [01:02:32]CAPDU: 80 0D 01 02 [01:02:32]Write to MH i2c: E2 08 00 16 36 80 0D 01 02 00 00 00 00 C5 [01:02:32]Write i2c OK [01:02:32]MH_I2C_Read... [01:02:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:02:32]Read from MH i2c: E2 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 03 00 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 03 00 16 36 00 90 00 C0 [01:02:32]RAPDU: 90 00 [01:02:32]wFMCommunicate OK [01:02:32]wFMCommunicate request_size=255 [01:02:32]MH_SAM_APDU [01: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 03 00 00 00 F4 03 04 00 29 EE 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 60 02 00 35 04 06 00 AB [01:02:32]Write to MH i2c: E2 02 01 17 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 03 00 00 00 F4 03 04 00 29 EE 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 60 02 00 35 04 06 00 AB 00 00 43 [01:02:32]Write i2c OK [01:02:32]MH_I2C_Read... [01:02:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:32]Read from MH i2c: E2 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 03 00 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 03 00 17 36 00 90 00 C1 [01:02:32]RAPDU: 90 00 [01:02:32]wFMCommunicate OK [01:02:32]wFMCommunicate request_size=10 [01:02:32]MH_SAM_APDU [01:02:32]CAPDU: 80 0D 02 02 05 AC 88 BE 49 F2 [01:02:32]Write to MH i2c: E2 0D 00 18 36 80 0D 02 02 05 00 AC 88 BE 49 F2 00 00 FF [01:02:32]Write i2c OK [01:02:32]MH_I2C_Read... [01:02:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:32]Read from MH i2c: E2 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 03 00 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 03 00 18 36 00 90 00 C2 [01:02:32]RAPDU: 90 00 [01:02:32]wFMCommunicate OK [01:02:32]wFMCommunicate request_size=4 [01:02:32]MH_SAM_APDU [01:02:32]CAPDU: 80 0D 03 02 [01:02:32]Write to MH i2c: E2 08 00 19 36 80 0D 03 02 00 00 00 00 CA [01:02:32]Write i2c OK [01:02:32]MH_I2C_Read... [01:02:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:02:32]Read from MH i2c: E2 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 0B 00 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 0B 00 19 36 00 9E 89 B3 45 B0 EF B3 B8 90 00 F4 [01:02:32]RAPDU: 9E 89 B3 45 B0 EF B3 B8 90 00 [01:02:32]wFMCommunicate OK [01:02:32]SAM_PROTO_SignData done [01:02:32]FM_MakeSignedData done [01:02:32]CreateOFDProtocolMessage [01:02:32]wFMCommunicate request_size=4 [01:02:32]MH_SAM_APDU [01:02:32]CAPDU: 80 11 00 00 [01:02:32]Write to MH i2c: E2 08 00 1A 36 80 11 00 00 00 00 00 00 CA [01:02:32]Write i2c OK [01:02:32]MH_I2C_Read... [01:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:32]Read from MH i2c: E2 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 17 00 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 17 00 1A 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1F [01:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [01:02:32]wFMCommunicate OK [01:02:32]CreateOFDProtocolMessage done [01:02:32]OFDSenderStorePacket 155728 [01:02:32]StoreOFDPacket docnum=155728 [01:02:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 86 F3 07 01 FB 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 03 00 00 00 F4 03 04 00 29 EE 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 60 02 00 35 04 06 00 AB AC 88 BE 49 F2 9E 89 B3 45 B0 EF B3 B8 [01:02:32]CheckFolder [01:02:32]dirname=/storage/ofd_packets [01:02:32]CheckFolder done [01:02:32]ProducePacketName [01:02:32]name=ofd_packets/00155728 [01:02:32]NVStorageSaveData ofd_packets/00155728 [01:02:32]File name is /storage/ofd_packets/00155728 [01:02:32]Write 301 bytes [01:02:32]NVStorageSaveData done [01:02:32]OFDSenderStorePacket done [01:02:32]KKMCreateOFDPacket done [01:02:32]NVStorageSaveData kkm_last_timestamp [01:02:32]File name is /storage/kkm_last_timestamp [01:02:32]Write 4 bytes [01:02:32]NVStorageSaveData done [01:02:32]ExternCall_PrintAddStr [01:02:32]wPrintStart [01:02:32]Write to MH i2c: 01 00 00 1B 36 51 [01:02:32]Write i2c OK [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: 01 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: 01 07 00 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: 01 07 00 1B 36 00 00 00 00 00 FF 0F 66 [01:02:32]RasterBufferAndPrint [01:02:32]line Счет N : (1)98534 [01:02:32]line ИНН: 02508201610067 [01:02:32]line Контрольно-Кассовый Чек [01:02:32]line ПРОДАЖА [01:02:32]line ТРК (МРК, ГНК) : 11 [01:02:32]line Товар: 2710124130 [01:02:32]line Аи-92-К-5 [01:02:32]line 3.740 * 66.90 [01:02:32]line = 250.21 [01:02:32]line НДС 12% НСП 1% [01:02:32]line > о реализуемом товаре [01:02:32]line ОКРУГЛЕНИЕ: -0.21 [01:02:32]line ИТОГО: 250.00 [01:02:32]line Внесено: 250.00 [01:02:32]line СДАЧА: 0.00 [01:02:32]line НСП 1% : 2.21 [01:02:32]line НДС 12% : 26.57 [01:02:32]line Наличными: 250.00 [01:02:32]line Безнал.: 0.00 [01:02:32]line Место: АЗС № 143 "Партнер Нефть" [01:02:32]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [01:02:32]line СНО: Общий режим [01:02:32]line Чек 3 25.10.2024 01:02 [01:02:32]line Смена: 535 ФФД: 1.0 [01:02:32]line ЗНМ: 0300000096 [01:02:32]line РНМ: 0000000000091693 [01:02:32]line Версия ККМ: 001 [01:02:32]line ФМ: 0000000000871792 [01:02:32]line ФД: 155728 [01:02:32]line ФПД: 188757516896754 [01:02:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T010233&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155728&fm=188757516896754&tin=02508201610067®Number=0000000000091693&sum=25000 [01:02:32]OFD Sender: Processing packet 155728 [packets to send 31, broken 30] [01:02:32]ProducePacketName [01:02:32]name=ofd_packets/00155728 [01:02:32]OFD Sender: To server: pG, [01:02:33]CommunicateWithHost lk.salyk.kg:30040 [01:02:33]ConnectInit lk.salyk.kg [01:02:33]written 0, free lines is 4095 [01:02:33]Connected sock=10 [01: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 39 32 0F 01 00 00 86 F3 07 01 FB 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 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 03 00 00 00 F4 03 04 00 29 EE 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 60 02 00 35 04 06 00 AB AC 88 BE 49 F2 9E 89 B3 45 B0 EF B3 B8 [01:02: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 39 32 4F 00 00 00 D2 89 47 00 28 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 39 32 10 04 04 00 50 60 02 00 F4 03 04 00 A1 93 1A 67 B6 04 01 00 00 3C 93 E4 C5 C1 38 9C 05 [01:02:33]CommunicateWithHost err = 0 [01:02:33]CheckOFDResponse [01:02:33]1017 (14) - 77093643461234 [01:02:33]1041 (16) - 0000000000871792 [01:02:33]1040 (4) - 155728 [01:02:33]1012 (4) - 24.10.2024 18:36 [01:02:33]1206 (1) - 0 [01:02:33]OFD Sender: Remove packet 155728 [01:02:33]ProducePacketName [01:02:33]name=ofd_packets/00155728 [01:02:33]NVStorageDeleteData [01:02:33]Write to MH i2c: 01 00 00 46 36 7C [01:02:33]Write i2c OK [01:02:33]MH_I2C_Read... [01:02:33]Read from MH i2c: 01 [01:02:33]MH_I2C_Read... [01:02:33]Read from MH i2c: 01 07 00 [01:02:33]MH_I2C_Read... [01:02:33]Read from MH i2c: 01 07 00 46 36 00 00 00 00 00 DD 0C 6C [01:02:33]RasterBufferAndPrint [01:02:33]line [01:02:33]line [01:02:33]line [01:02:33]line [01:02:33]line [01:02:33]written 0, free lines is 3299 [01:02:33]process_action close_receipt done [01:02:33]requested_data is exist [01:02:33]produce_requested_data [01:02:33]requested_item fm.sn is exist - process it [01:02:33]wFMCommunicate request_size=4 [01:02:33]MH_SAM_APDU [01:02:33]CAPDU: 80 11 00 00 [01:02:33]Write to MH i2c: E2 08 00 4D 36 80 11 00 00 00 00 00 00 FD [01:02:33]Write i2c OK [01:02:33]MH_I2C_Read... [01:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:33]Read from MH i2c: E2 [01:02:33]MH_I2C_Read... [01:02:33]Read from MH i2c: E2 17 00 [01:02:33]MH_I2C_Read... [01:02:33]Read from MH i2c: E2 17 00 4D 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 52 [01:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [01:02:33]wFMCommunicate OK [01:02:33]requested_item fd.num is exist - process it [01:02:33]SAM_PROTO_GetFieldsCounters [01:02:33]wFMCommunicate request_size=4 [01:02:33]MH_SAM_APDU [01:02:33]CAPDU: 80 13 00 00 [01:02:33]Write to MH i2c: E2 08 00 4E 36 80 13 00 00 00 00 00 00 00 [01:02:33]Write i2c OK [01:02:33]MH_I2C_Read... [01:02:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:02:33]Read from MH i2c: E2 [01:02:33]MH_I2C_Read... [01:02:33]Read from MH i2c: E2 62 00 [01:02:33]MH_I2C_Read... [01:02:33]Read from MH i2c: E2 62 00 4E 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 50 60 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [01:02:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 50 60 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:02:33]wFMCommunicate OK [01:02:33]SAM_PROTO_GetFieldsCounters done [01:02:33]requested_item shift.num is exist - process it [01:02:33]requested_item shift.opened is exist - process it [01:02:33]req_shift_opened [01:02:33]FM_GetShiftState [01:02:33]SAM_PROTO_GetShiftState [01:02:33]wFMCommunicate request_size=4 [01:02:33]MH_SAM_APDU [01:02:33]CAPDU: 80 13 01 00 [01:02:33]Write to MH i2c: E2 08 00 4F 36 80 13 01 00 00 00 00 00 02 [01:02:33]Write i2c OK [01:02:33]MH_I2C_Read... [01:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:33]Read from MH i2c: E2 [01:02:33]MH_I2C_Read... [01:02:33]Read from MH i2c: E2 0E 00 [01:02:33]MH_I2C_Read... [01:02:33]Read from MH i2c: E2 0E 00 4F 36 00 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 6B [01:02:33]RAPDU: 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 [01:02:33]wFMCommunicate OK [01:02:33]SAM_PROTO_GetShiftState done [01:02:33]FM_GetShiftState done [01:02:33]req_shift_opened done [01:02:33]requested_item shift.open_date is exist - process it [01:02:33]req_shift_open_date [01:02:33]req_shift_open_date done [01:02:33]produce_requested_data done [01:02:33]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155728,"shift.num":535,"shift.opened":1,"shift.open_date":1729816310} [01:02:33]process_action_free close_receipt [01:02:33]json_value_free [01:02:33]json_value_free done [01:02:33]process_json_proto returns [01:02:33]Send response to host [01:02:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155728,"shift.num":535,"shift.opened":1,"shift.open_date":1729816310}}} [01:02:33]free response buf [01:02:33]execute_script done [01:02:33]execute_script returns [01:02:33]free content buf [01:02:33]Sock 9.Close socket [01:02:33]Sock 9.Thread stoped [01:02:33]OFD Sender: No OFD packet to send [01:02:38]OFD Sender: No OFD packet to send [01:02:43]OFD Sender: No OFD packet to send [01:02:48]OFD Sender: No OFD packet to send [01:02:53]OFD Sender: No OFD packet to send [01:02:58]OFD Sender: No OFD packet to send [01:03:03]OFD Sender: No OFD packet to send [01:03:08]OFD Sender: No OFD packet to send [01:03:13]OFD Sender: No OFD packet to send [01:03:18]OFD Sender: No OFD packet to send [01:03:23]OFD Sender: No OFD packet to send [01:03:28]OFD Sender: No OFD packet to send [01:03:33]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:11:04]OFD Sender: No OFD packet to send [01:11:09]OFD Sender: No OFD packet to send [01:11:14]OFD Sender: No OFD packet to send [01:11:19]OFD Sender: No OFD packet to send [01:11:24]OFD Sender: No OFD packet to send [01:11:29]OFD Sender: No OFD packet to send [01:11:34]OFD Sender: No OFD packet to send [01:11:39]OFD Sender: No OFD packet to send [01:11:44]OFD Sender: No OFD packet to send [01:11:49]OFD Sender: No OFD packet to send [01:11:54]OFD Sender: No OFD packet to send [01:11:59]OFD Sender: No OFD packet to send [01:12:04]OFD Sender: No OFD packet to send [01:12:09]OFD Sender: No OFD packet to send [01:12:14]OFD Sender: No OFD packet to send [01:12:19]OFD Sender: No OFD packet to send [01:12:24]OFD Sender: No OFD packet to send [01:12:25]ConnectInit Can't connect to host [01:12:29]OFD Sender: No OFD packet to send [01:12:34]OFD Sender: No OFD packet to send [01:12:44]OFD Sender: No OFD packet to send [01:12:49]OFD Sender: No OFD packet to send [01:12:54]OFD Sender: No OFD packet to send [01:12:59]OFD Sender: No OFD packet to send [01:13:04]OFD Sender: No OFD packet to send [01:13:09]OFD Sender: No OFD packet to send [01:13:14]OFD Sender: No OFD packet to send [01:13:19]OFD Sender: No OFD packet to send [01:13:24]OFD Sender: No OFD packet to send [01:13:29]OFD Sender: No OFD packet to send [01:13:34]OFD Sender: No OFD packet to send [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:54]ConnectInit Can't connect to host [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:46]accept exits with 8 [01:24:46]New connection [01:24:46]New thread 3066781028 created [01:24:46]Thread 3066637668 joined [01:24:46]Waiting for new connection... [01:24:46] Sock 8.Parse request [01:24:46]Sock 8.Check first char [01:24:46]Sock 8.First char is OK [01:24:46]request: POST /json_proto HTTP/1.0 [01:24:46]Method: POST [01:24:46]URL: /json_proto [01:24:46]Method is POST - this is cgi request [01:24:46]url: /json_proto [01:24:46]query_string will be loaded in cgi processing [01:24:46]execute_cgi json_proto POST (null) [01:24:46]execute_cgi path=json_proto method=POST [01:24:46]POST find Content-Length [01:24:46]Host: 172.17.63.3:8080 [01:24:46]Content-Length: 673 [01:24:46]Content-Type: application/json [01:24:46] [01:24:46]POST finish read [01:24:46]Found Content-Length = 673 [01:24:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [01:24:46]execute_script... [01:24: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)98535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\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" ] } } [01:24:46]POST & json_proto [01:24:46]process_json_proto [01:24:46]json parsed OK: [01:24:46]protocol is kg_v1.0 [01:24:46]action value=close_receipt [01:24:46]process_action close_receipt [01:24:46]cmd_close_receipt [01:24:46]MH_GetDate [01:24:46]Write to MH i2c: F0 00 00 50 36 75 [01:24:46]Write i2c OK [01:24:46]MH_I2C_Read... [01:24:46]Read from MH i2c: F0 [01:24:46]MH_I2C_Read... [01:24:46]Read from MH i2c: F0 09 00 [01:24:46]MH_I2C_Read... [01:24:46]Read from MH i2c: F0 09 00 50 36 00 61 F3 1A 67 50 D1 6C 64 44 [01:24:46]GetLastDocTimeStamp 1729818153 [01:24:46]current date 1729819489 [01:24:46]FM_GetShiftState [01:24:46]SAM_PROTO_GetShiftState [01:24:46]wFMCommunicate request_size=4 [01:24:46]MH_SAM_APDU [01:24:46]CAPDU: 80 13 01 00 [01:24:46]Write to MH i2c: E2 08 00 51 36 80 13 01 00 00 00 00 00 04 [01:24:46]Write i2c OK [01:24:46]MH_I2C_Read... [01:24:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:46]Read from MH i2c: E2 [01:24:46]MH_I2C_Read... [01:24:46]Read from MH i2c: E2 0E 00 [01:24:46]MH_I2C_Read... [01:24:46]Read from MH i2c: E2 0E 00 51 36 00 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 6D [01:24:46]RAPDU: 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 [01:24:46]wFMCommunicate OK [01:24:46]SAM_PROTO_GetShiftState done [01:24:46]FM_GetShiftState done [01:24:46]opened in 1729816310 [01:24:46]opened+sec_in_day 1729902710 [01:24:46]quantity*price = 20040 [01:24:46]sum+1 = 20042 [01:24:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 4 25.10.2024 01:24 Смена: 535 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155729 ФПД: 28063495666496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T012449&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155729&fm=28063495666496&tin=02508201610067®Number=0000000000091693&sum=20000 [01:24:47]StoreToDocumentArchive [01:24:47]shift 535 fd 155729 [01:24:47]save to /storage/0535/doc_00155729 [01:24:47]save last doc name /storage/0535/doc_00155729 to /storage/kkm_last_doc_name [01:24:47]save OK [01:24:47]Clear old archive folders... [01:24:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:24:47]tlvbuf is 01F7D260 [01:24:47]SAM_PROTO_ClearQueue [01:24:47]wFMCommunicate request_size=4 [01:24:47]MH_SAM_APDU [01:24:47]CAPDU: 80 09 00 00 [01:24:47]Write to MH i2c: E2 08 00 5E 36 80 09 00 00 00 00 00 00 06 [01:24:47]Write i2c OK [01:24:47]MH_I2C_Read... [01:24:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:24:47]Read from MH i2c: E2 [01:24:47]MH_I2C_Read... [01:24:47]Read from MH i2c: E2 03 00 [01:24:47]MH_I2C_Read... [01:24:47]Read from MH i2c: E2 03 00 5E 36 00 90 00 08 [01:24:47]RAPDU: 90 00 [01:24:47]wFMCommunicate OK [01:24:47]SAM_PROTO_ClearQueue done [01:24:47]KKMCreateOFDPacket [01:24:47]OFDProtocolAddRootSTLVToBuf [01:24:47]FM_MakeSignedData [01:24:47]FM_MakeSignedData [01:24:47]SAM_PROTO_SignData [01:24:47]wFMCommunicate request_size=4 [01:24:47]MH_SAM_APDU [01:24:47]CAPDU: 80 0D 01 02 [01:24:47]Write to MH i2c: E2 08 00 5F 36 80 0D 01 02 00 00 00 00 0E [01:24:47]Write i2c OK [01:24:47]MH_I2C_Read... [01:24:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:24:47]Read from MH i2c: E2 [01:24:47]MH_I2C_Read... [01:24:47]Read from MH i2c: E2 03 00 [01:24:47]MH_I2C_Read... [01:24:47]Read from MH i2c: E2 03 00 5F 36 00 90 00 09 [01:24:47]RAPDU: 90 00 [01:24:47]wFMCommunicate OK [01:24:47]wFMCommunicate request_size=255 [01:24:47]MH_SAM_APDU [01:24:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 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 04 00 00 00 F4 03 04 00 61 F3 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 60 02 00 35 04 06 00 19 86 0A B0 [01:24:47]Write to MH i2c: E2 02 01 60 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 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 04 00 00 00 F4 03 04 00 61 F3 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 60 02 00 35 04 06 00 19 86 0A B0 00 00 1B [01:24:47]Write i2c OK [01:24:47]MH_I2C_Read... [01:24:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:47]Read from MH i2c: E2 [01:24:47]MH_I2C_Read... [01:24:47]Read from MH i2c: E2 03 00 [01:24:47]MH_I2C_Read... [01:24:47]Read from MH i2c: E2 03 00 60 36 00 90 00 0A [01:24:47]RAPDU: 90 00 [01:24:47]wFMCommunicate OK [01:24:47]wFMCommunicate request_size=7 [01:24:47]MH_SAM_APDU [01:24:47]CAPDU: 80 0D 02 02 02 BB 40 [01:24:47]Write to MH i2c: E2 0A 00 61 36 80 0D 02 02 02 00 BB 40 00 00 10 [01:24:47]Write i2c OK [01:24:47]MH_I2C_Read... [01:24:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:47]Read from MH i2c: E2 [01:24:47]MH_I2C_Read... [01:24:47]Read from MH i2c: E2 03 00 [01:24:47]MH_I2C_Read... [01:24:47]Read from MH i2c: E2 03 00 61 36 00 90 00 0B [01:24:47]RAPDU: 90 00 [01:24:47]wFMCommunicate OK [01:24:47]wFMCommunicate request_size=4 [01:24:47]MH_SAM_APDU [01:24:47]CAPDU: 80 0D 03 02 [01:24:47]Write to MH i2c: E2 08 00 62 36 80 0D 03 02 00 00 00 00 13 [01:24:47]Write i2c OK [01:24:47]MH_I2C_Read... [01:24:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:24:47]Read from MH i2c: E2 [01:24:47]MH_I2C_Read... [01:24:47]Read from MH i2c: E2 0B 00 [01:24:47]MH_I2C_Read... [01:24:47]Read from MH i2c: E2 0B 00 62 36 00 81 44 8B 05 41 AC 0A 86 90 00 E6 [01:24:47]RAPDU: 81 44 8B 05 41 AC 0A 86 90 00 [01:24:47]wFMCommunicate OK [01:24:47]SAM_PROTO_SignData done [01:24:47]FM_MakeSignedData done [01:24:47]CreateOFDProtocolMessage [01:24:47]wFMCommunicate request_size=4 [01:24:47]MH_SAM_APDU [01:24:47]CAPDU: 80 11 00 00 [01:24:47]Write to MH i2c: E2 08 00 63 36 80 11 00 00 00 00 00 00 13 [01:24:47]Write i2c OK [01:24:47]MH_I2C_Read... [01:24:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:47]Read from MH i2c: E2 [01:24:47]MH_I2C_Read... [01:24:47]Read from MH i2c: E2 17 00 [01:24:47]MH_I2C_Read... [01:24:47]Read from MH i2c: E2 17 00 63 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 68 [01:24:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [01:24:47]wFMCommunicate OK [01:24:47]CreateOFDProtocolMessage done [01:24:47]OFDSenderStorePacket 155729 [01:24:47]StoreOFDPacket docnum=155729 [01:24:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 50 AD 04 01 7F CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 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 04 00 00 00 F4 03 04 00 61 F3 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 60 02 00 35 04 06 00 19 86 0A B0 BB 40 81 44 8B 05 41 AC 0A 86 [01:24:47]CheckFolder [01:24:47]dirname=/storage/ofd_packets [01:24:47]CheckFolder done [01:24:47]ProducePacketName [01:24:47]name=ofd_packets/00155729 [01:24:47]NVStorageSaveData ofd_packets/00155729 [01:24:47]File name is /storage/ofd_packets/00155729 [01:24:47]Write 298 bytes [01:24:47]NVStorageSaveData done [01:24:47]OFDSenderStorePacket done [01:24:47]KKMCreateOFDPacket done [01:24:47]NVStorageSaveData kkm_last_timestamp [01:24:47]File name is /storage/kkm_last_timestamp [01:24:47]Write 4 bytes [01:24:47]NVStorageSaveData done [01:24:47]ExternCall_PrintAddStr [01:24:47]wPrintStart [01:24:47]Write to MH i2c: 01 00 00 64 36 9A [01:24:47]Write i2c OK [01:24:47]MH_I2C_Read... [01:24:47]Read from MH i2c: 01 [01:24:47]MH_I2C_Read... [01:24:47]Read from MH i2c: 01 07 00 [01:24:47]MH_I2C_Read... [01:24:47]Read from MH i2c: 01 07 00 64 36 00 00 00 00 00 FF 0F AF [01:24:47]RasterBufferAndPrint [01:24:47]line Счет N : (1)98535 [01:24:47]line ИНН: 02508201610067 [01:24:47]line Контрольно-Кассовый Чек [01:24:47]line ПРОДАЖА [01:24:47]line ТРК (МРК, ГНК) : 32 [01:24:47]line Товар: 2710194210 [01:24:47]line ДТ-К-5 [01:24:47]line 2.630 * 76.20 [01:24:47]line = 200.41 [01:24:47]line НДС 12% НСП 1% [01:24:47]line > о реализуемом товаре [01:24:47]line ОКРУГЛЕНИЕ: -0.41 [01:24:47]line ИТОГО: 200.00 [01:24:47]line Внесено: 200.00 [01:24:47]line СДАЧА: 0.00 [01:24:47]line НСП 1% : 1.77 [01:24:47]line НДС 12% : 21.28 [01:24:47]line Наличными: 200.00 [01:24:47]line Безнал.: 0.00 [01:24:47]line Место: АЗС № 143 "Партнер Нефть" [01:24:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [01:24:47]line СНО: Общий режим [01:24:47]line Чек 4 25.10.2024 01:24 [01:24:47]line Смена: 535 ФФД: 1.0 [01:24:47]line ЗНМ: 0300000096 [01:24:47]line РНМ: 0000000000091693 [01:24:47]line Версия ККМ: 001 [01:24:47]line ФМ: 0000000000871792 [01:24:47]line ФД: 155729 [01:24:47]line ФПД: 28063495666496 [01:24:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T012449&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155729&fm=28063495666496&tin=02508201610067®Number=0000000000091693&sum=20000 [01:24:47]written 0, free lines is 4095 [01:24:48]OFD Sender: Processing packet 155729 [packets to send 31, broken 30] [01:24:48]ProducePacketName [01:24:48]name=ofd_packets/00155729 [01:24:48]OFD Sender: To server: pG, [01:24:48]CommunicateWithHost lk.salyk.kg:30040 [01:24:48]ConnectInit lk.salyk.kg [01:24:48]Connected sock=11 [01:24: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 39 32 0C 01 00 00 50 AD 04 01 7F CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 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 04 00 00 00 F4 03 04 00 61 F3 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 60 02 00 35 04 06 00 19 86 0A B0 BB 40 81 44 8B 05 41 AC 0A 86 [01:24: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 39 32 4F 00 00 00 F4 FF 47 00 FE 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 39 32 10 04 04 00 51 60 02 00 F4 03 04 00 D8 98 1A 67 B6 04 01 00 00 3D 7B F5 48 E3 2B 37 7F [01:24:48]CommunicateWithHost err = 0 [01:24:48]CheckOFDResponse [01:24:48]1017 (14) - 77093643461234 [01:24:48]1041 (16) - 0000000000871792 [01:24:48]1040 (4) - 155729 [01:24:48]1012 (4) - 24.10.2024 18:58 [01:24:48]1206 (1) - 0 [01:24:48]OFD Sender: Remove packet 155729 [01:24:48]ProducePacketName [01:24:48]name=ofd_packets/00155729 [01:24:48]NVStorageDeleteData [01:24:48]Write to MH i2c: 01 00 00 8F 36 C5 [01:24:48]Write i2c OK [01:24:48]MH_I2C_Read... [01:24:48]Read from MH i2c: 01 [01:24:48]MH_I2C_Read... [01:24:48]Read from MH i2c: 01 07 00 [01:24:48]MH_I2C_Read... [01:24:48]Read from MH i2c: 01 07 00 8F 36 00 00 00 00 00 D7 0C AF [01:24:48]RasterBufferAndPrint [01:24:48]line [01:24:48]line [01:24:48]line [01:24:48]line [01:24:48]line [01:24:48]written 0, free lines is 3294 [01:24:48]process_action close_receipt done [01:24:48]requested_data is exist [01:24:48]produce_requested_data [01:24:48]requested_item fm.sn is exist - process it [01:24:48]wFMCommunicate request_size=4 [01:24:48]MH_SAM_APDU [01:24:48]CAPDU: 80 11 00 00 [01:24:48]Write to MH i2c: E2 08 00 96 36 80 11 00 00 00 00 00 00 46 [01:24:48]Write i2c OK [01:24:48]MH_I2C_Read... [01:24:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:48]Read from MH i2c: E2 [01:24:48]MH_I2C_Read... [01:24:48]Read from MH i2c: E2 17 00 [01:24:48]MH_I2C_Read... [01:24:48]Read from MH i2c: E2 17 00 96 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9B [01:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [01:24:48]wFMCommunicate OK [01:24:48]requested_item fd.num is exist - process it [01:24:48]SAM_PROTO_GetFieldsCounters [01:24:48]wFMCommunicate request_size=4 [01:24:48]MH_SAM_APDU [01:24:48]CAPDU: 80 13 00 00 [01:24:48]Write to MH i2c: E2 08 00 97 36 80 13 00 00 00 00 00 00 49 [01:24:48]Write i2c OK [01:24:48]MH_I2C_Read... [01:24:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:24:48]Read from MH i2c: E2 [01:24:48]MH_I2C_Read... [01:24:48]Read from MH i2c: E2 62 00 [01:24:48]MH_I2C_Read... [01:24:48]Read from MH i2c: E2 62 00 97 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 51 60 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [01: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 51 60 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:24:48]wFMCommunicate OK [01:24:48]SAM_PROTO_GetFieldsCounters done [01:24:48]requested_item shift.num is exist - process it [01:24:48]requested_item shift.opened is exist - process it [01:24:48]req_shift_opened [01:24:48]FM_GetShiftState [01:24:48]SAM_PROTO_GetShiftState [01:24:48]wFMCommunicate request_size=4 [01:24:48]MH_SAM_APDU [01:24:48]CAPDU: 80 13 01 00 [01:24:48]Write to MH i2c: E2 08 00 98 36 80 13 01 00 00 00 00 00 4B [01:24:48]Write i2c OK [01:24:48]MH_I2C_Read... [01:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:48]Read from MH i2c: E2 [01:24:48]MH_I2C_Read... [01:24:48]Read from MH i2c: E2 0E 00 [01:24:48]MH_I2C_Read... [01:24:48]Read from MH i2c: E2 0E 00 98 36 00 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 B4 [01:24:48]RAPDU: 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 [01:24:48]wFMCommunicate OK [01:24:48]SAM_PROTO_GetShiftState done [01:24:48]FM_GetShiftState done [01:24:48]req_shift_opened done [01:24:48]requested_item shift.open_date is exist - process it [01:24:48]req_shift_open_date [01:24:48]req_shift_open_date done [01:24:48]produce_requested_data done [01:24:48]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155729,"shift.num":535,"shift.opened":1,"shift.open_date":1729816310} [01:24:48]process_action_free close_receipt [01:24:48]json_value_free [01:24:48]json_value_free done [01:24:48]process_json_proto returns [01:24:48]Send response to host [01:24:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155729,"shift.num":535,"shift.opened":1,"shift.open_date":1729816310}}} [01:24:48]free response buf [01:24:48]execute_script done [01:24:48]execute_script returns [01:24:48]free content buf [01:24:48]Sock 8.Close socket [01:24:48]Sock 8.Thread stoped [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:18]OFD Sender: No OFD packet to send [01:25:23]OFD Sender: No OFD packet to send [01:25:28]OFD Sender: No OFD packet to send [01:25:33]OFD Sender: No OFD packet to send [01:25:38]OFD Sender: No OFD packet to send [01:25:43]OFD Sender: No OFD packet to send [01:25:48]OFD Sender: No OFD packet to send [01:25:53]OFD Sender: No OFD packet to send [01:25:58]OFD Sender: No OFD packet to send [01:26:03]OFD Sender: No OFD packet to send [01:26:08]OFD Sender: No OFD packet to send [01:26:13]OFD Sender: No OFD packet to send [01:26:18]OFD Sender: No OFD packet to send [01:26:23]OFD Sender: No OFD packet to send [01:26:28]OFD Sender: No OFD packet to send [01:26:33]OFD Sender: No OFD packet to send [01:26:38]OFD Sender: No OFD packet to send [01:26:42]accept exits with 9 [01:26:42]New connection [01:26:42]New thread 3066637668 created [01:26:42]Thread 3066781028 joined [01:26:42]Waiting for new connection... [01:26:42] Sock 9.Parse request [01:26:42]Sock 9.Check first char [01:26:42]Sock 9.First char is OK [01:26:42]request: POST /json_proto HTTP/1.0 [01:26:42]Method: POST [01:26:42]URL: /json_proto [01:26:42]Method is POST - this is cgi request [01:26:42]url: /json_proto [01:26:42]query_string will be loaded in cgi processing [01:26:42]execute_cgi json_proto POST (null) [01:26:42]execute_cgi path=json_proto method=POST [01:26:42]POST find Content-Length [01:26:42]Host: 172.17.63.3:8080 [01:26:42]Content-Length: 676 [01:26:42]Content-Type: application/json [01:26:42] [01:26:42]POST finish read [01:26:42]Found Content-Length = 676 [01:26:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:42]execute_script... [01:26: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)98536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:42]POST & json_proto [01:26:42]process_json_proto [01:26:42]json parsed OK: [01:26:42]protocol is kg_v1.0 [01:26:42]action value=close_receipt [01:26:42]process_action close_receipt [01:26:42]cmd_close_receipt [01:26:42]MH_GetDate [01:26:42]Write to MH i2c: F0 00 00 99 36 BE [01:26:42]Write i2c OK [01:26:42]MH_I2C_Read... [01:26:42]Read from MH i2c: F0 [01:26:42]MH_I2C_Read... [01:26:42]Read from MH i2c: F0 09 00 [01:26:42]MH_I2C_Read... [01:26:42]Read from MH i2c: F0 09 00 99 36 00 D4 F3 1A 67 50 D1 6C 64 00 [01:26:42]GetLastDocTimeStamp 1729819489 [01:26:42]current date 1729819604 [01:26:42]FM_GetShiftState [01:26:42]SAM_PROTO_GetShiftState [01:26:42]wFMCommunicate request_size=4 [01:26:42]MH_SAM_APDU [01:26:42]CAPDU: 80 13 01 00 [01:26:42]Write to MH i2c: E2 08 00 9A 36 80 13 01 00 00 00 00 00 4D [01:26:42]Write i2c OK [01:26:42]MH_I2C_Read... [01:26:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:42]Read from MH i2c: E2 [01:26:42]MH_I2C_Read... [01:26:42]Read from MH i2c: E2 0E 00 [01:26:42]MH_I2C_Read... [01:26:42]Read from MH i2c: E2 0E 00 9A 36 00 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 B6 [01:26:42]RAPDU: 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 [01:26:42]wFMCommunicate OK [01:26:42]SAM_PROTO_GetShiftState done [01:26:42]FM_GetShiftState done [01:26:42]opened in 1729816310 [01:26:42]opened+sec_in_day 1729902710 [01:26:42]quantity*price = 50041 [01:26:42]sum+1 = 50042 [01:26:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 5 25.10.2024 01:26 Смена: 535 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155730 ФПД: 116694738382027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T012644&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155730&fm=116694738382027&tin=02508201610067®Number=0000000000091693&sum=50000 [01:26:43]StoreToDocumentArchive [01:26:43]shift 535 fd 155730 [01:26:43]save to /storage/0535/doc_00155730 [01:26:43]save last doc name /storage/0535/doc_00155730 to /storage/kkm_last_doc_name [01:26:43]save OK [01:26:43]Clear old archive folders... [01:26:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:26:43]tlvbuf is 01F83700 [01:26:43]SAM_PROTO_ClearQueue [01:26:43]wFMCommunicate request_size=4 [01:26:43]MH_SAM_APDU [01:26:43]CAPDU: 80 09 00 00 [01:26:43]Write to MH i2c: E2 08 00 A7 36 80 09 00 00 00 00 00 00 4F [01:26:43]Write i2c OK [01:26:43]MH_I2C_Read... [01:26:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:26:43]Read from MH i2c: E2 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 03 00 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 03 00 A7 36 00 90 00 51 [01:26:43]RAPDU: 90 00 [01:26:43]wFMCommunicate OK [01:26:43]SAM_PROTO_ClearQueue done [01:26:43]KKMCreateOFDPacket [01:26:43]OFDProtocolAddRootSTLVToBuf [01:26:43]FM_MakeSignedData [01:26:43]FM_MakeSignedData [01:26:43]SAM_PROTO_SignData [01:26:43]wFMCommunicate request_size=4 [01:26:43]MH_SAM_APDU [01:26:43]CAPDU: 80 0D 01 02 [01:26:43]Write to MH i2c: E2 08 00 A8 36 80 0D 01 02 00 00 00 00 57 [01:26:43]Write i2c OK [01:26:43]MH_I2C_Read... [01:26:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:26:43]Read from MH i2c: E2 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 03 00 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 03 00 A8 36 00 90 00 52 [01:26:43]RAPDU: 90 00 [01:26:43]wFMCommunicate OK [01:26:43]wFMCommunicate request_size=255 [01:26:43]MH_SAM_APDU [01:26: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 D4 F3 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 60 02 00 35 04 06 00 6A [01:26:43]Write to MH i2c: E2 02 01 A9 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 D4 F3 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 60 02 00 35 04 06 00 6A 00 00 6F [01:26:43]Write i2c OK [01:26:43]MH_I2C_Read... [01:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:43]Read from MH i2c: E2 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 03 00 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 03 00 A9 36 00 90 00 53 [01:26:43]RAPDU: 90 00 [01:26:43]wFMCommunicate OK [01:26:43]wFMCommunicate request_size=10 [01:26:43]MH_SAM_APDU [01:26:43]CAPDU: 80 0D 02 02 05 22 1C 6D AC CB [01:26:43]Write to MH i2c: E2 0D 00 AA 36 80 0D 02 02 05 00 22 1C 6D AC CB 00 00 86 [01:26:43]Write i2c OK [01:26:43]MH_I2C_Read... [01:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:43]Read from MH i2c: E2 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 03 00 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 03 00 AA 36 00 90 00 54 [01:26:43]RAPDU: 90 00 [01:26:43]wFMCommunicate OK [01:26:43]wFMCommunicate request_size=4 [01:26:43]MH_SAM_APDU [01:26:43]CAPDU: 80 0D 03 02 [01:26:43]Write to MH i2c: E2 08 00 AB 36 80 0D 03 02 00 00 00 00 5C [01:26:43]Write i2c OK [01:26:43]MH_I2C_Read... [01:26:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:26:43]Read from MH i2c: E2 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 0B 00 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 0B 00 AB 36 00 2E 7B 07 C5 3B 30 51 4E 90 00 DC [01:26:43]RAPDU: 2E 7B 07 C5 3B 30 51 4E 90 00 [01:26:43]wFMCommunicate OK [01:26:43]SAM_PROTO_SignData done [01:26:43]FM_MakeSignedData done [01:26:43]CreateOFDProtocolMessage [01:26:43]wFMCommunicate request_size=4 [01:26:43]MH_SAM_APDU [01:26:43]CAPDU: 80 11 00 00 [01:26:43]Write to MH i2c: E2 08 00 AC 36 80 11 00 00 00 00 00 00 5C [01:26:43]Write i2c OK [01:26:43]MH_I2C_Read... [01:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:43]Read from MH i2c: E2 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 17 00 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 17 00 AC 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B1 [01:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [01:26:43]wFMCommunicate OK [01:26:43]CreateOFDProtocolMessage done [01:26:43]OFDSenderStorePacket 155730 [01:26:43]StoreOFDPacket docnum=155730 [01:26:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 26 FC 07 01 4D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 D4 F3 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 60 02 00 35 04 06 00 6A 22 1C 6D AC CB 2E 7B 07 C5 3B 30 51 4E [01:26:43]CheckFolder [01:26:43]dirname=/storage/ofd_packets [01:26:43]CheckFolder done [01:26:43]ProducePacketName [01:26:43]name=ofd_packets/00155730 [01:26:43]NVStorageSaveData ofd_packets/00155730 [01:26:43]File name is /storage/ofd_packets/00155730 [01:26:43]Write 301 bytes [01:26:43]NVStorageSaveData done [01:26:43]OFDSenderStorePacket done [01:26:43]KKMCreateOFDPacket done [01:26:43]NVStorageSaveData kkm_last_timestamp [01:26:43]File name is /storage/kkm_last_timestamp [01:26:43]Write 4 bytes [01:26:43]NVStorageSaveData done [01:26:43]ExternCall_PrintAddStr [01:26:43]wPrintStart [01:26:43]Write to MH i2c: 01 00 00 AD 36 E3 [01:26:43]Write i2c OK [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: 01 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: 01 07 00 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: 01 07 00 AD 36 00 00 00 00 00 FF 0F F8 [01:26:43]RasterBufferAndPrint [01:26:43]line Счет N : (1)98536 [01:26:43]line ИНН: 02508201610067 [01:26:43]line Контрольно-Кассовый Чек [01:26:43]line ПРОДАЖА [01:26:43]line ТРК (МРК, ГНК) : 31 [01:26:43]line Товар: 2710124130 [01:26:43]line Аи-92-К-5 [01:26:43]line 7.480 * 66.90 [01:26:43]line = 500.41 [01:26:43]line НДС 12% НСП 1% [01:26:43]line > о реализуемом товаре [01:26:43]line ОКРУГЛЕНИЕ: -0.41 [01:26:43]line ИТОГО: 500.00 [01:26:43]line Внесено: 500.00 [01:26:43]line СДАЧА: 0.00 [01:26:43]line НСП 1% : 4.43 [01:26:43]line НДС 12% : 53.14 [01:26:43]line Наличными: 500.00 [01:26:43]line Безнал.: 0.00 [01:26:43]line Место: АЗС № 143 "Партнер Нефть" [01:26:43]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [01:26:43]line СНО: Общий режим [01:26:43]line Чек 5 25.10.2024 01:26 [01:26:43]line Смена: 535 ФФД: 1.0 [01:26:43]line ЗНМ: 0300000096 [01:26:43]line РНМ: 0000000000091693 [01:26:43]line Версия ККМ: 001 [01:26:43]line ФМ: 0000000000871792 [01:26:43]line ФД: 155730 [01:26:43]line ФПД: 116694738382027 [01:26:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T012644&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155730&fm=116694738382027&tin=02508201610067®Number=0000000000091693&sum=50000 [01:26:44]OFD Sender: Processing packet 155730 [packets to send 31, broken 30] [01:26:44]ProducePacketName [01:26:44]name=ofd_packets/00155730 [01:26:44]OFD Sender: To server: pG, [01:26:44]CommunicateWithHost lk.salyk.kg:30040 [01:26:44]ConnectInit lk.salyk.kg [01:26:44]written 0, free lines is 4095 [01:26:44]Connected sock=10 [01:26: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 39 32 0F 01 00 00 26 FC 07 01 4D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 D4 F3 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 60 02 00 35 04 06 00 6A 22 1C 6D AC CB 2E 7B 07 C5 3B 30 51 4E [01:26: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 39 32 4F 00 00 00 8A D4 47 00 6F 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 39 32 10 04 04 00 52 60 02 00 F4 03 04 00 4C 99 1A 67 B6 04 01 00 00 FD 5B 57 99 67 78 CC 88 [01:26:44]CommunicateWithHost err = 0 [01:26:44]CheckOFDResponse [01:26:44]1017 (14) - 77093643461234 [01:26:44]1041 (16) - 0000000000871792 [01:26:44]1040 (4) - 155730 [01:26:44]1012 (4) - 24.10.2024 19:00 [01:26:44]1206 (1) - 0 [01:26:44]OFD Sender: Remove packet 155730 [01:26:44]ProducePacketName [01:26:44]name=ofd_packets/00155730 [01:26:44]NVStorageDeleteData [01:26:44]Write to MH i2c: 01 00 00 D8 36 0E [01:26:44]Write i2c OK [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: 01 [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: 01 07 00 [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: 01 07 00 D8 36 00 00 00 00 00 E4 0C 05 [01:26:44]RasterBufferAndPrint [01:26:44]line [01:26:44]line [01:26:44]line [01:26:44]line [01:26:44]line [01:26:44]written 0, free lines is 3306 [01:26:44]process_action close_receipt done [01:26:44]requested_data is exist [01:26:44]produce_requested_data [01:26:44]requested_item fm.sn is exist - process it [01:26:44]wFMCommunicate request_size=4 [01:26:44]MH_SAM_APDU [01:26:44]CAPDU: 80 11 00 00 [01:26:44]Write to MH i2c: E2 08 00 DF 36 80 11 00 00 00 00 00 00 8F [01:26:44]Write i2c OK [01:26:44]MH_I2C_Read... [01:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:44]Read from MH i2c: E2 [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: E2 17 00 [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: E2 17 00 DF 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E4 [01:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [01:26:44]wFMCommunicate OK [01:26:44]requested_item fd.num is exist - process it [01:26:44]SAM_PROTO_GetFieldsCounters [01:26:44]wFMCommunicate request_size=4 [01:26:44]MH_SAM_APDU [01:26:44]CAPDU: 80 13 00 00 [01:26:44]Write to MH i2c: E2 08 00 E0 36 80 13 00 00 00 00 00 00 92 [01:26:44]Write i2c OK [01:26:44]MH_I2C_Read... [01:26:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:44]Read from MH i2c: E2 [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: E2 62 00 [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: E2 62 00 E0 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 52 60 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [01:26: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 52 60 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:26:44]wFMCommunicate OK [01:26:44]SAM_PROTO_GetFieldsCounters done [01:26:44]requested_item shift.num is exist - process it [01:26:44]requested_item shift.opened is exist - process it [01:26:44]req_shift_opened [01:26:44]FM_GetShiftState [01:26:44]SAM_PROTO_GetShiftState [01:26:44]wFMCommunicate request_size=4 [01:26:44]MH_SAM_APDU [01:26:44]CAPDU: 80 13 01 00 [01:26:44]Write to MH i2c: E2 08 00 E1 36 80 13 01 00 00 00 00 00 94 [01:26:44]Write i2c OK [01:26:44]MH_I2C_Read... [01:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:44]Read from MH i2c: E2 [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: E2 0E 00 [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: E2 0E 00 E1 36 00 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 FD [01:26:44]RAPDU: 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 [01:26:44]wFMCommunicate OK [01:26:44]SAM_PROTO_GetShiftState done [01:26:44]FM_GetShiftState done [01:26:44]req_shift_opened done [01:26:44]requested_item shift.open_date is exist - process it [01:26:44]req_shift_open_date [01:26:44]req_shift_open_date done [01:26:44]produce_requested_data done [01:26:44]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155730,"shift.num":535,"shift.opened":1,"shift.open_date":1729816310} [01:26:44]process_action_free close_receipt [01:26:44]json_value_free [01:26:44]json_value_free done [01:26:44]process_json_proto returns [01:26:44]Send response to host [01:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155730,"shift.num":535,"shift.opened":1,"shift.open_date":1729816310}}} [01:26:44]free response buf [01:26:44]execute_script done [01:26:44]execute_script returns [01:26:44]free content buf [01:26:44]Sock 9.Close socket [01:26:44]Sock 9.Thread stoped [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:25]accept exits with 8 [01:32:25]New connection [01:32:25]New thread 3066781028 created [01:32:25]Thread 3066637668 joined [01:32:25]Waiting for new connection... [01:32:25] Sock 8.Parse request [01:32:25]Sock 8.Check first char [01:32:25]Sock 8.First char is OK [01:32:25]request: POST /json_proto HTTP/1.0 [01:32:25]Method: POST [01:32:25]URL: /json_proto [01:32:25]Method is POST - this is cgi request [01:32:25]url: /json_proto [01:32:25]query_string will be loaded in cgi processing [01:32:25]execute_cgi json_proto POST (null) [01:32:25]execute_cgi path=json_proto method=POST [01:32:25]POST find Content-Length [01:32:25]Host: 172.17.63.3:8080 [01:32:25]Content-Length: 681 [01:32:25]Content-Type: application/json [01:32:25] [01:32:25]POST finish read [01:32:25]Found Content-Length = 681 [01:32:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:32:25]execute_script... [01:32:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:32:25]POST & json_proto [01:32:25]process_json_proto [01:32:25]json parsed OK: [01:32:25]protocol is kg_v1.0 [01:32:25]action value=close_receipt [01:32:25]process_action close_receipt [01:32:25]cmd_close_receipt [01:32:25]MH_GetDate [01:32:25]Write to MH i2c: F0 00 00 E2 36 07 [01:32:25]Write i2c OK [01:32:25]MH_I2C_Read... [01:32:25]Read from MH i2c: F0 [01:32:25]MH_I2C_Read... [01:32:25]Read from MH i2c: F0 09 00 [01:32:25]MH_I2C_Read... [01:32:25]Read from MH i2c: F0 09 00 E2 36 00 2C F5 1A 67 50 D1 6C 64 A3 [01:32:25]GetLastDocTimeStamp 1729819604 [01:32:25]current date 1729819948 [01:32:25]FM_GetShiftState [01:32:25]SAM_PROTO_GetShiftState [01:32:25]wFMCommunicate request_size=4 [01:32:25]MH_SAM_APDU [01:32:25]CAPDU: 80 13 01 00 [01:32:25]Write to MH i2c: E2 08 00 E3 36 80 13 01 00 00 00 00 00 96 [01:32:25]Write i2c OK [01:32:25]MH_I2C_Read... [01:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:32:25]Read from MH i2c: E2 [01:32:25]MH_I2C_Read... [01:32:25]Read from MH i2c: E2 0E 00 [01:32:25]MH_I2C_Read... [01:32:25]Read from MH i2c: E2 0E 00 E3 36 00 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 FF [01:32:25]RAPDU: 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 [01:32:25]wFMCommunicate OK [01:32:25]SAM_PROTO_GetShiftState done [01:32:25]FM_GetShiftState done [01:32:25]opened in 1729816310 [01:32:25]opened+sec_in_day 1729902710 [01:32:25]quantity*price = 200031 [01:32:25]sum+1 = 200032 [01:32:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 6 25.10.2024 01:32 Смена: 535 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155731 ФПД: 233998751381392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T013228&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155731&fm=233998751381392&tin=02508201610067®Number=0000000000091693&sum=200000 [01:32:26]StoreToDocumentArchive [01:32:26]shift 535 fd 155731 [01:32:26]save to /storage/0535/doc_00155731 [01:32:26]save last doc name /storage/0535/doc_00155731 to /storage/kkm_last_doc_name [01:32:26]save OK [01:32:26]Clear old archive folders... [01:32:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:32:26]tlvbuf is 01FBEE80 [01:32:26]SAM_PROTO_ClearQueue [01:32:26]wFMCommunicate request_size=4 [01:32:26]MH_SAM_APDU [01:32:26]CAPDU: 80 09 00 00 [01:32:26]Write to MH i2c: E2 08 00 F0 36 80 09 00 00 00 00 00 00 98 [01:32:26]Write i2c OK [01:32:26]MH_I2C_Read... [01:32:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:32:26]Read from MH i2c: E2 [01:32:26]MH_I2C_Read... [01:32:26]Read from MH i2c: E2 03 00 [01:32:26]MH_I2C_Read... [01:32:26]Read from MH i2c: E2 03 00 F0 36 00 90 00 9A [01:32:26]RAPDU: 90 00 [01:32:26]wFMCommunicate OK [01:32:26]SAM_PROTO_ClearQueue done [01:32:26]KKMCreateOFDPacket [01:32:26]OFDProtocolAddRootSTLVToBuf [01:32:26]FM_MakeSignedData [01:32:26]FM_MakeSignedData [01:32:26]SAM_PROTO_SignData [01:32:26]wFMCommunicate request_size=4 [01:32:26]MH_SAM_APDU [01:32:26]CAPDU: 80 0D 01 02 [01:32:26]Write to MH i2c: E2 08 00 F1 36 80 0D 01 02 00 00 00 00 A0 [01:32:26]Write i2c OK [01:32:26]MH_I2C_Read... [01:32:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:32:26]Read from MH i2c: E2 [01:32:26]MH_I2C_Read... [01:32:26]Read from MH i2c: E2 03 00 [01:32:26]MH_I2C_Read... [01:32:26]Read from MH i2c: E2 03 00 F1 36 00 90 00 9B [01:32:26]RAPDU: 90 00 [01:32:26]wFMCommunicate OK [01:32:26]wFMCommunicate request_size=255 [01:32:26]MH_SAM_APDU [01:32: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 06 00 00 00 F4 03 04 00 2C F5 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 60 02 00 35 04 06 00 D4 [01:32:26]Write to MH i2c: E2 02 01 F2 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 06 00 00 00 F4 03 04 00 2C F5 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 60 02 00 35 04 06 00 D4 00 00 C0 [01:32:26]Write i2c OK [01:32:26]MH_I2C_Read... [01:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:32:27]Read from MH i2c: E2 [01:32:27]MH_I2C_Read... [01:32:27]Read from MH i2c: E2 03 00 [01:32:27]MH_I2C_Read... [01:32:27]Read from MH i2c: E2 03 00 F2 36 00 90 00 9C [01:32:27]RAPDU: 90 00 [01:32:27]wFMCommunicate OK [01:32:27]wFMCommunicate request_size=10 [01:32:27]MH_SAM_APDU [01:32:27]CAPDU: 80 0D 02 02 05 D2 14 74 37 90 [01:32:27]Write to MH i2c: E2 0D 00 F3 36 80 0D 02 02 05 00 D2 14 74 37 90 00 00 CE [01:32:27]Write i2c OK [01:32:27]MH_I2C_Read... [01:32:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:32:27]Read from MH i2c: E2 [01:32:27]MH_I2C_Read... [01:32:27]Read from MH i2c: E2 03 00 [01:32:27]MH_I2C_Read... [01:32:27]Read from MH i2c: E2 03 00 F3 36 00 90 00 9D [01:32:27]RAPDU: 90 00 [01:32:27]wFMCommunicate OK [01:32:27]wFMCommunicate request_size=4 [01:32:27]MH_SAM_APDU [01:32:27]CAPDU: 80 0D 03 02 [01:32:27]Write to MH i2c: E2 08 00 F4 36 80 0D 03 02 00 00 00 00 A5 [01:32:27]Write i2c OK [01:32:27]MH_I2C_Read... [01:32:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:32:27]Read from MH i2c: E2 [01:32:27]MH_I2C_Read... [01:32:27]Read from MH i2c: E2 0B 00 [01:32:27]MH_I2C_Read... [01:32:27]Read from MH i2c: E2 0B 00 F4 36 00 14 0A 3B B2 9D 90 8D 03 90 00 6E [01:32:27]RAPDU: 14 0A 3B B2 9D 90 8D 03 90 00 [01:32:27]wFMCommunicate OK [01:32:27]SAM_PROTO_SignData done [01:32:27]FM_MakeSignedData done [01:32:27]CreateOFDProtocolMessage [01:32:27]wFMCommunicate request_size=4 [01:32:27]MH_SAM_APDU [01:32:27]CAPDU: 80 11 00 00 [01:32:27]Write to MH i2c: E2 08 00 F5 36 80 11 00 00 00 00 00 00 A5 [01:32:27]Write i2c OK [01:32:27]MH_I2C_Read... [01:32:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:32:27]Read from MH i2c: E2 [01:32:27]MH_I2C_Read... [01:32:27]Read from MH i2c: E2 17 00 [01:32:27]MH_I2C_Read... [01:32:27]Read from MH i2c: E2 17 00 F5 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FA [01:32:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [01:32:27]wFMCommunicate OK [01:32:27]CreateOFDProtocolMessage done [01:32:27]OFDSenderStorePacket 155731 [01:32:27]StoreOFDPacket docnum=155731 [01:32:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F2 30 07 01 72 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 06 00 00 00 F4 03 04 00 2C F5 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 60 02 00 35 04 06 00 D4 D2 14 74 37 90 14 0A 3B B2 9D 90 8D 03 [01:32:27]CheckFolder [01:32:27]dirname=/storage/ofd_packets [01:32:27]CheckFolder done [01:32:27]ProducePacketName [01:32:27]name=ofd_packets/00155731 [01:32:27]NVStorageSaveData ofd_packets/00155731 [01:32:27]File name is /storage/ofd_packets/00155731 [01:32:27]Write 301 bytes [01:32:27]NVStorageSaveData done [01:32:27]OFDSenderStorePacket done [01:32:27]KKMCreateOFDPacket done [01:32:27]NVStorageSaveData kkm_last_timestamp [01:32:27]File name is /storage/kkm_last_timestamp [01:32:27]Write 4 bytes [01:32:27]OFD Sender: Processing packet 155731 [packets to send 31, broken 30] [01:32:27]ProducePacketName [01:32:27]name=ofd_packets/00155731 [01:32:27]OFD Sender: To server: pG, [01:32:27]CommunicateWithHost lk.salyk.kg:30040 [01:32:27]ConnectInit lk.salyk.kg [01:32:27]NVStorageSaveData done [01:32:27]ExternCall_PrintAddStr [01:32:27]wPrintStart [01:32:27]Write to MH i2c: 01 00 00 F6 36 2C [01:32:27]Write i2c OK [01:32:27]MH_I2C_Read... [01:32:27]Read from MH i2c: 01 [01:32:27]MH_I2C_Read... [01:32:27]Read from MH i2c: 01 07 00 [01:32:27]MH_I2C_Read... [01:32:27]Read from MH i2c: 01 07 00 F6 36 00 00 00 00 00 FF 0F 41 [01:32:27]RasterBufferAndPrint [01:32:27]line Счет N : (1)98537 [01:32:27]line ИНН: 02508201610067 [01:32:27]line Контрольно-Кассовый Чек [01:32:27]line ПРОДАЖА [01:32:27]line ТРК (МРК, ГНК) : 31 [01:32:27]line Товар: 2710124130 [01:32:27]line Аи-92-К-5 [01:32:27]line 29.900 * 66.90 [01:32:27]line = 2000.31 [01:32:27]line НДС 12% НСП 1% [01:32:27]line > о реализуемом товаре [01:32:27]line ОКРУГЛЕНИЕ: -0.31 [01:32:27]line ИТОГО: 2000.00 [01:32:27]line Внесено: 2000.00 [01:32:27]line СДАЧА: 0.00 [01:32:27]line НСП 1% : 17.70 [01:32:27]line НДС 12% : 212.42 [01:32:27]line Наличными: 2000.00 [01:32:27]line Безнал.: 0.00 [01:32:27]line Место: АЗС № 143 "Партнер Нефть" [01:32:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [01:32:27]line СНО: Общий режим [01:32:27]line Чек 6 25.10.2024 01:32 [01:32:27]line Смена: 535 ФФД: 1.0 [01:32:27]line ЗНМ: 0300000096 [01:32:27]line РНМ: 0000000000091693 [01:32:27]line Версия ККМ: 001 [01:32:27]line ФМ: 0000000000871792 [01:32:27]line ФД: 155731 [01:32:27]line ФПД: 233998751381392 [01:32:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T013228&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155731&fm=233998751381392&tin=02508201610067®Number=0000000000091693&sum=200000 [01:32:27]Connected sock=11 [01:32: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 39 32 0F 01 00 00 F2 30 07 01 72 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 06 00 00 00 F4 03 04 00 2C F5 1A 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 60 02 00 35 04 06 00 D4 D2 14 74 37 90 14 0A 3B B2 9D 90 8D 03 [01:32:27]written 0, free lines is 4095 [01:32: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 39 32 4F 00 00 00 85 95 47 00 BA 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 39 32 10 04 04 00 53 60 02 00 F4 03 04 00 A3 9A 1A 67 B6 04 01 00 00 C5 E4 42 35 11 90 40 40 [01:32:27]CommunicateWithHost err = 0 [01:32:27]CheckOFDResponse [01:32:27]1017 (14) - 77093643461234 [01:32:27]1041 (16) - 0000000000871792 [01:32:27]1040 (4) - 155731 [01:32:27]1012 (4) - 24.10.2024 19:06 [01:32:27]1206 (1) - 0 [01:32:27]OFD Sender: Remove packet 155731 [01:32:27]ProducePacketName [01:32:27]name=ofd_packets/00155731 [01:32:27]NVStorageDeleteData [01:32:27]Write to MH i2c: 01 00 00 21 37 58 [01:32:27]Write i2c OK [01:32:27]MH_I2C_Read... [01:32:27]Read from MH i2c: 01 [01:32:27]MH_I2C_Read... [01:32:27]Read from MH i2c: 01 07 00 [01:32:27]MH_I2C_Read... [01:32:27]Read from MH i2c: 01 07 00 21 37 00 00 00 00 00 DD 0C 48 [01:32:27]RasterBufferAndPrint [01:32:27]line [01:32:27]line [01:32:27]line [01:32:27]line [01:32:27]line [01:32:27]written 0, free lines is 3300 [01:32:27]process_action close_receipt done [01:32:27]requested_data is exist [01:32:27]produce_requested_data [01:32:27]requested_item fm.sn is exist - process it [01:32:27]wFMCommunicate request_size=4 [01:32:27]MH_SAM_APDU [01:32:27]CAPDU: 80 11 00 00 [01:32:27]Write to MH i2c: E2 08 00 28 37 80 11 00 00 00 00 00 00 D9 [01:32:27]Write i2c OK [01:32:27]MH_I2C_Read... [01:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:32:28]Read from MH i2c: E2 [01:32:28]MH_I2C_Read... [01:32:28]Read from MH i2c: E2 17 00 [01:32:28]MH_I2C_Read... [01:32:28]Read from MH i2c: E2 17 00 28 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2E [01:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [01:32:28]wFMCommunicate OK [01:32:28]requested_item fd.num is exist - process it [01:32:28]SAM_PROTO_GetFieldsCounters [01:32:28]wFMCommunicate request_size=4 [01:32:28]MH_SAM_APDU [01:32:28]CAPDU: 80 13 00 00 [01:32:28]Write to MH i2c: E2 08 00 29 37 80 13 00 00 00 00 00 00 DC [01:32:28]Write i2c OK [01:32:28]MH_I2C_Read... [01:32:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:32:28]Read from MH i2c: E2 [01:32:28]MH_I2C_Read... [01:32:28]Read from MH i2c: E2 62 00 [01:32:28]MH_I2C_Read... [01:32:28]Read from MH i2c: E2 62 00 29 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 53 60 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [01:32: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 53 60 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:32:28]wFMCommunicate OK [01:32:28]SAM_PROTO_GetFieldsCounters done [01:32:28]requested_item shift.num is exist - process it [01:32:28]requested_item shift.opened is exist - process it [01:32:28]req_shift_opened [01:32:28]FM_GetShiftState [01:32:28]SAM_PROTO_GetShiftState [01:32:28]wFMCommunicate request_size=4 [01:32:28]MH_SAM_APDU [01:32:28]CAPDU: 80 13 01 00 [01:32:28]Write to MH i2c: E2 08 00 2A 37 80 13 01 00 00 00 00 00 DE [01:32:28]OFD Sender: No OFD packet to send [01:32:28]Write i2c OK [01:32:28]MH_I2C_Read... [01:32:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:32:28]Read from MH i2c: E2 [01:32:28]MH_I2C_Read... [01:32:28]Read from MH i2c: E2 0E 00 [01:32:28]MH_I2C_Read... [01:32:28]Read from MH i2c: E2 0E 00 2A 37 00 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 47 [01:32:28]RAPDU: 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 [01:32:28]wFMCommunicate OK [01:32:28]SAM_PROTO_GetShiftState done [01:32:28]FM_GetShiftState done [01:32:28]req_shift_opened done [01:32:28]requested_item shift.open_date is exist - process it [01:32:28]req_shift_open_date [01:32:28]req_shift_open_date done [01:32:28]produce_requested_data done [01:32:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155731,"shift.num":535,"shift.opened":1,"shift.open_date":1729816310} [01:32:28]process_action_free close_receipt [01:32:28]json_value_free [01:32:28]json_value_free done [01:32:28]process_json_proto returns [01:32:28]Send response to host [01:32:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155731,"shift.num":535,"shift.opened":1,"shift.open_date":1729816310}}} [01:32:28]free response buf [01:32:28]execute_script done [01:32:28]execute_script returns [01:32:28]free content buf [01:32:28]Sock 8.Close socket [01:32:28]Sock 8.Thread stoped [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]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:23]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]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: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:08]ConnectInit Can't connect to host [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06: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:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [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:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]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:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]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:20]accept exits with 9 [02:51:20]New connection [02:51:20]New thread 3066637668 created [02:51:20]Thread 3066781028 joined [02:51:20]Waiting for new connection... [02:51:20] Sock 9.Parse request [02:51:20]Sock 9.Check first char [02:51:20]Sock 9.First char is OK [02:51:20]request: POST /json_proto HTTP/1.0 [02:51:20]Method: POST [02:51:20]URL: /json_proto [02:51:20]Method is POST - this is cgi request [02:51:20]url: /json_proto [02:51:20]query_string will be loaded in cgi processing [02:51:20]execute_cgi json_proto POST (null) [02:51:20]execute_cgi path=json_proto method=POST [02:51:20]POST find Content-Length [02:51:20]Host: 172.17.63.3:8080 [02:51:20]Content-Length: 676 [02:51:20]Content-Type: application/json [02:51:20] [02:51:20]POST finish read [02:51:20]Found Content-Length = 676 [02:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)98538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:20]execute_script... [02:51: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)98538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:51:20]POST & json_proto [02:51:20]process_json_proto [02:51:20]json parsed OK: [02:51:20]protocol is kg_v1.0 [02:51:20]action value=close_receipt [02:51:20]process_action close_receipt [02:51:20]cmd_close_receipt [02:51:20]MH_GetDate [02:51:20]Write to MH i2c: F0 00 00 2B 37 51 [02:51:20]Write i2c OK [02:51:20]MH_I2C_Read... [02:51:20]Read from MH i2c: F0 [02:51:20]MH_I2C_Read... [02:51:20]Read from MH i2c: F0 09 00 [02:51:20]MH_I2C_Read... [02:51:20]Read from MH i2c: F0 09 00 2B 37 00 AC 07 1B 67 50 D1 6C 64 80 [02:51:20]GetLastDocTimeStamp 1729819948 [02:51:20]current date 1729824684 [02:51:20]FM_GetShiftState [02:51:20]SAM_PROTO_GetShiftState [02:51:20]wFMCommunicate request_size=4 [02:51:20]MH_SAM_APDU [02:51:20]CAPDU: 80 13 01 00 [02:51:20]Write to MH i2c: E2 08 00 2C 37 80 13 01 00 00 00 00 00 E0 [02:51:20]Write i2c OK [02:51:20]MH_I2C_Read... [02:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:21]Read from MH i2c: E2 [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: E2 0E 00 [02:51:21]MH_I2C_Read... [02:51:21]Read from MH i2c: E2 0E 00 2C 37 00 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 49 [02:51:21]RAPDU: 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 [02:51:21]wFMCommunicate OK [02:51:21]SAM_PROTO_GetShiftState done [02:51:21]FM_GetShiftState done [02:51:21]opened in 1729816310 [02:51:21]opened+sec_in_day 1729902710 [02:51:21]quantity*price = 50041 [02:51:21]sum+1 = 50042 [02:51:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 7 25.10.2024 02:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 155732 ФПД: 2564603799173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T025124&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155732&fm=2564603799173&tin=02508201610067®Number=0000000000091693&sum=50000 [02:51:22]StoreToDocumentArchive [02:51:22]shift 535 fd 155732 [02:51:22]save to /storage/0535/doc_00155732 [02:51:22]save last doc name /storage/0535/doc_00155732 to /storage/kkm_last_doc_name [02:51:22]save OK [02:51:22]Clear old archive folders... [02:51:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:51:22]tlvbuf is 01F99550 [02:51:22]SAM_PROTO_ClearQueue [02:51:22]wFMCommunicate request_size=4 [02:51:22]MH_SAM_APDU [02:51:22]CAPDU: 80 09 00 00 [02:51:22]Write to MH i2c: E2 08 00 39 37 80 09 00 00 00 00 00 00 E2 [02:51:22]Write i2c OK [02:51:22]MH_I2C_Read... [02:51:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:51:22]Read from MH i2c: E2 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: E2 03 00 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: E2 03 00 39 37 00 90 00 E4 [02:51:22]RAPDU: 90 00 [02:51:22]wFMCommunicate OK [02:51:22]SAM_PROTO_ClearQueue done [02:51:22]KKMCreateOFDPacket [02:51:22]OFDProtocolAddRootSTLVToBuf [02:51:22]FM_MakeSignedData [02:51:22]FM_MakeSignedData [02:51:22]SAM_PROTO_SignData [02:51:22]wFMCommunicate request_size=4 [02:51:22]MH_SAM_APDU [02:51:22]CAPDU: 80 0D 01 02 [02:51:22]Write to MH i2c: E2 08 00 3A 37 80 0D 01 02 00 00 00 00 EA [02:51:22]Write i2c OK [02:51:22]MH_I2C_Read... [02:51:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:51:22]Read from MH i2c: E2 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: E2 03 00 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: E2 03 00 3A 37 00 90 00 E5 [02:51:22]RAPDU: 90 00 [02:51:22]wFMCommunicate OK [02:51:22]wFMCommunicate request_size=255 [02:51:22]MH_SAM_APDU [02:51: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 AC 07 1B 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 60 02 00 35 04 06 00 02 [02:51:22]Write to MH i2c: E2 02 01 3B 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 AC 07 1B 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 60 02 00 35 04 06 00 02 00 00 8B [02:51:22]Write i2c OK [02:51:22]MH_I2C_Read... [02:51:22]OFD Sender: No OFD packet to send [02:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:22]Read from MH i2c: E2 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: E2 03 00 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: E2 03 00 3B 37 00 90 00 E6 [02:51:22]RAPDU: 90 00 [02:51:22]wFMCommunicate OK [02:51:22]wFMCommunicate request_size=10 [02:51:22]MH_SAM_APDU [02:51:22]CAPDU: 80 0D 02 02 05 55 1E 4C 66 85 [02:51:22]Write to MH i2c: E2 0D 00 3C 37 80 0D 02 02 05 00 55 1E 4C 66 85 00 00 A1 [02:51:22]Write i2c OK [02:51:22]MH_I2C_Read... [02:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:22]Read from MH i2c: E2 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: E2 03 00 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: E2 03 00 3C 37 00 90 00 E7 [02:51:22]RAPDU: 90 00 [02:51:22]wFMCommunicate OK [02:51:22]wFMCommunicate request_size=4 [02:51:22]MH_SAM_APDU [02:51:22]CAPDU: 80 0D 03 02 [02:51:22]Write to MH i2c: E2 08 00 3D 37 80 0D 03 02 00 00 00 00 EF [02:51:22]Write i2c OK [02:51:22]MH_I2C_Read... [02:51:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:51:22]Read from MH i2c: E2 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: E2 0B 00 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: E2 0B 00 3D 37 00 61 F2 AB 07 B5 A7 8B C6 90 00 A2 [02:51:22]RAPDU: 61 F2 AB 07 B5 A7 8B C6 90 00 [02:51:22]wFMCommunicate OK [02:51:22]SAM_PROTO_SignData done [02:51:22]FM_MakeSignedData done [02:51:22]CreateOFDProtocolMessage [02:51:22]wFMCommunicate request_size=4 [02:51:22]MH_SAM_APDU [02:51:22]CAPDU: 80 11 00 00 [02:51:22]Write to MH i2c: E2 08 00 3E 37 80 11 00 00 00 00 00 00 EF [02:51:22]Write i2c OK [02:51:22]MH_I2C_Read... [02:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:51:22]Read from MH i2c: E2 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: E2 17 00 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: E2 17 00 3E 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 44 [02:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [02:51:22]wFMCommunicate OK [02:51:22]CreateOFDProtocolMessage done [02:51:22]OFDSenderStorePacket 155732 [02:51:22]StoreOFDPacket docnum=155732 [02:51:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 48 94 07 01 62 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 AC 07 1B 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 60 02 00 35 04 06 00 02 55 1E 4C 66 85 61 F2 AB 07 B5 A7 8B C6 [02:51:22]CheckFolder [02:51:22]dirname=/storage/ofd_packets [02:51:22]CheckFolder done [02:51:22]ProducePacketName [02:51:22]name=ofd_packets/00155732 [02:51:22]NVStorageSaveData ofd_packets/00155732 [02:51:22]File name is /storage/ofd_packets/00155732 [02:51:22]Write 301 bytes [02:51:22]NVStorageSaveData done [02:51:22]OFDSenderStorePacket done [02:51:22]KKMCreateOFDPacket done [02:51:22]NVStorageSaveData kkm_last_timestamp [02:51:22]File name is /storage/kkm_last_timestamp [02:51:22]Write 4 bytes [02:51:22]NVStorageSaveData done [02:51:22]ExternCall_PrintAddStr [02:51:22]wPrintStart [02:51:22]Write to MH i2c: 01 00 00 3F 37 76 [02:51:22]Write i2c OK [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: 01 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: 01 07 00 [02:51:22]MH_I2C_Read... [02:51:22]Read from MH i2c: 01 07 00 3F 37 00 00 00 00 00 FF 0F 8B [02:51:22]RasterBufferAndPrint [02:51:22]line Счет N : (1)98538 [02:51:22]line ИНН: 02508201610067 [02:51:22]line Контрольно-Кассовый Чек [02:51:22]line ПРОДАЖА [02:51:22]line ТРК (МРК, ГНК) : 11 [02:51:22]line Товар: 2710124130 [02:51:22]line Аи-92-К-5 [02:51:22]line 7.480 * 66.90 [02:51:22]line = 500.41 [02:51:22]line НДС 12% НСП 1% [02:51:22]line > о реализуемом товаре [02:51:22]line ОКРУГЛЕНИЕ: -0.41 [02:51:22]line ИТОГО: 500.00 [02:51:22]line Внесено: 500.00 [02:51:22]line СДАЧА: 0.00 [02:51:22]line НСП 1% : 4.43 [02:51:22]line НДС 12% : 53.14 [02:51:22]line Наличными: 500.00 [02:51:22]line Безнал.: 0.00 [02:51:22]line Место: АЗС № 143 "Партнер Нефть" [02:51:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [02:51:22]line СНО: Общий режим [02:51:22]line Чек 7 25.10.2024 02:51 [02:51:22]line Смена: 535 ФФД: 1.0 [02:51:22]line ЗНМ: 0300000096 [02:51:22]line РНМ: 0000000000091693 [02:51:22]line Версия ККМ: 001 [02:51:22]line ФМ: 0000000000871792 [02:51:22]line ФД: 155732 [02:51:22]line ФПД: 2564603799173 [02:51:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241025T025124&type=1&operation_type=1&fn_number=0000000000871792&fd_number=155732&fm=2564603799173&tin=02508201610067®Number=0000000000091693&sum=50000 [02:51:22]OFD Sender: Processing packet 155732 [packets to send 31, broken 30] [02:51:22]ProducePacketName [02:51:22]name=ofd_packets/00155732 [02:51:22]OFD Sender: To server: pG, [02:51:22]CommunicateWithHost lk.salyk.kg:30040 [02:51:22]ConnectInit lk.salyk.kg [02:51:22]written 0, free lines is 4095 [02:51:23]Connected sock=10 [02:51: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 39 32 0F 01 00 00 48 94 07 01 62 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 AC 07 1B 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 60 02 00 35 04 06 00 02 55 1E 4C 66 85 61 F2 AB 07 B5 A7 8B C6 [02:51: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 39 32 4F 00 00 00 AF E5 47 00 36 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 39 32 10 04 04 00 54 60 02 00 F4 03 04 00 23 AD 1A 67 B6 04 01 00 00 25 81 B1 5D CB 13 50 9D [02:51:23]CommunicateWithHost err = 0 [02:51:23]CheckOFDResponse [02:51:23]1017 (14) - 77093643461234 [02:51:23]1041 (16) - 0000000000871792 [02:51:23]1040 (4) - 155732 [02:51:23]1012 (4) - 24.10.2024 20:25 [02:51:23]1206 (1) - 0 [02:51:23]OFD Sender: Remove packet 155732 [02:51:23]ProducePacketName [02:51:23]name=ofd_packets/00155732 [02:51:23]NVStorageDeleteData [02:51:23]Write to MH i2c: 01 00 00 6A 37 A1 [02:51:23]Write i2c OK [02:51:23]MH_I2C_Read... [02:51:23]Read from MH i2c: 01 [02:51:23]MH_I2C_Read... [02:51:23]Read from MH i2c: 01 07 00 [02:51:23]MH_I2C_Read... [02:51:23]Read from MH i2c: 01 07 00 6A 37 00 00 00 00 00 D7 0C 8B [02:51:23]RasterBufferAndPrint [02:51:23]line [02:51:23]line [02:51:23]line [02:51:23]line [02:51:23]line [02:51:23]written 0, free lines is 3290 [02:51:23]process_action close_receipt done [02:51:23]requested_data is exist [02:51:23]produce_requested_data [02:51:23]requested_item fm.sn is exist - process it [02:51:23]wFMCommunicate request_size=4 [02:51:23]MH_SAM_APDU [02:51:23]CAPDU: 80 11 00 00 [02:51:23]Write to MH i2c: E2 08 00 71 37 80 11 00 00 00 00 00 00 22 [02:51:23]Write i2c OK [02:51:23]MH_I2C_Read... [02:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:51:23]Read from MH i2c: E2 [02:51:23]MH_I2C_Read... [02:51:23]Read from MH i2c: E2 17 00 [02:51:23]MH_I2C_Read... [02:51:23]Read from MH i2c: E2 17 00 71 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 77 [02:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [02:51:23]wFMCommunicate OK [02:51:23]requested_item fd.num is exist - process it [02:51:23]SAM_PROTO_GetFieldsCounters [02:51:23]wFMCommunicate request_size=4 [02:51:23]MH_SAM_APDU [02:51:23]CAPDU: 80 13 00 00 [02:51:23]Write to MH i2c: E2 08 00 72 37 80 13 00 00 00 00 00 00 25 [02:51:23]Write i2c OK [02:51:23]MH_I2C_Read... [02:51:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:51:23]Read from MH i2c: E2 [02:51:23]MH_I2C_Read... [02:51:23]Read from MH i2c: E2 62 00 [02:51:23]MH_I2C_Read... [02:51:23]Read from MH i2c: E2 62 00 72 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 54 60 02 00 0E 04 04 00 17 02 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 2F [02:51: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 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 54 60 02 00 0E 04 04 00 17 02 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:51:23]wFMCommunicate OK [02:51:23]SAM_PROTO_GetFieldsCounters done [02:51:23]requested_item shift.num is exist - process it [02:51:23]requested_item shift.opened is exist - process it [02:51:23]req_shift_opened [02:51:23]FM_GetShiftState [02:51:23]SAM_PROTO_GetShiftState [02:51:23]wFMCommunicate request_size=4 [02:51:23]MH_SAM_APDU [02:51:23]CAPDU: 80 13 01 00 [02:51:23]Write to MH i2c: E2 08 00 73 37 80 13 01 00 00 00 00 00 27 [02:51:23]Write i2c OK [02:51:23]MH_I2C_Read... [02:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:23]Read from MH i2c: E2 [02:51:23]MH_I2C_Read... [02:51:23]Read from MH i2c: E2 0E 00 [02:51:23]MH_I2C_Read... [02:51:23]Read from MH i2c: E2 0E 00 73 37 00 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 90 [02:51:23]RAPDU: 09 00 01 F6 E6 1A 67 00 00 00 00 90 00 [02:51:23]wFMCommunicate OK [02:51:23]SAM_PROTO_GetShiftState done [02:51:23]FM_GetShiftState done [02:51:23]req_shift_opened done [02:51:23]requested_item shift.open_date is exist - process it [02:51:23]req_shift_open_date [02:51:23]req_shift_open_date done [02:51:23]produce_requested_data done [02:51:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":155732,"shift.num":535,"shift.opened":1,"shift.open_date":1729816310} [02:51:23]process_action_free close_receipt [02:51:23]json_value_free [02:51:23]json_value_free done [02:51:23]process_json_proto returns [02:51:23]Send response to host [02:51:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":155732,"shift.num":535,"shift.opened":1,"shift.open_date":1729816310}}} [02:51:23]free response buf [02:51:23]execute_script done [02:51:23]execute_script returns [02:51:23]free content buf [02:51:23]Sock 9.Close socket [02:51:23]Sock 9.Thread stoped [02:51:23]OFD Sender: No OFD packet to send [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:24:00]OFD Sender: No OFD packet to send [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send